NeurIPS 2026QuestionsPapersAreasAboutMarkdown

Inverting the Bellman Equation: From Q-Values to World Models

Alistair Letcher, Mattie Fellows, Alexander D. Goldie, Jonathan Richens, Jakob Foerster, Oliver Richardson

NeurIPS page · Open on the map

Category: Reinforcement Learning & Games › Offline-to-Online Reinforcement Learning · Type: new method · Keywords: value-based reinforcement learning, world model extraction, Bellman equation inversion, goal-conditioned RL, model recovery

Summary

P-learning extracts an accurate world model from a value-based agent's Q-values by inverting the Bellman equation, bridging model-based and model-free reinforcement learning.

Explained to a 5-year-old

In a video game, a robot learns to do things by trying actions and seeing if they give a good score. It remembers which actions gave the best results, but it does not draw a picture of the game world. The researchers found a way to look at those good moves and figure out the hidden rules of the game. By using many different goals, they can rebuild a model that predicts what will happen next. This hidden model helps the robot plan new actions for goals it has never tried before.

Explained to a 5-year-old, longer

In a video game, a robot learns to do things by trying actions and seeing if they give a good score. It keeps a list of which actions gave the best results, but it does not draw a map of the game world. The researchers discovered a trick to look at those good moves and figure out the hidden rules that govern the game. By using many different goals, they can rebuild a model that predicts what will happen next. This hidden model lets the robot plan new actions for goals it has never tried before. It works even when the robot only has a few examples of good behavior. The method also works in games where the world is a bit random, not perfectly predictable. It can recover the true dynamics of the game from the robot's memory of good actions. This gives us a new way to understand how robots can learn without needing an explicit map. It also shows that value-based agents secretly contain a model of the world. The approach can be used to plan and act in situations that were not seen during training.

For a technical reader

The paper shows that a value-based RL agent trained on many goal-conditioned rewards implicitly learns a model of the environment’s dynamics. By sampling from its Q-values, policies, and rewards, the approach inverts the Bellman equation to reconstruct the transition kernel. Theoretical results guarantee exact recovery under deterministic MDPs with a single generic goal (or a few Gaussian goals in continuous spaces) when Q-values are accurate, and extensions for stochastic settings. Empirically, the extracted world model yields accurate dynamics on classic control tasks and enables policy execution for unseen goals, demonstrating hidden generalisation capabilities.

Problem

Value-based reinforcement learning agents estimate Q-values but do not provide an explicit model of the environment's transition dynamics. Recovering the underlying dynamics from these value estimates is a fundamental challenge.

Method

The approach samples from the agent's Q-values, policies, and rewards to invert the Bellman equation and recover the environment's transition kernel. In deterministic MDPs, it can reconstruct the true dynamics from a single generic goal (or a few Gaussian goals in continuous spaces) given accurate Q-values. For stochastic settings, it extends to larger goal sets depending on the reward family.

Results

The approach recovers accurate dynamics on stochastic FourRooms, MountainCar, and Reacher, and can be used to train policies for unseen goals, indicating strong generalisation.

Contributions

The paper provides a theoretical proof that value-based agents implicitly encode a world model and introduces a practical inversion technique to extract it, enabling model-based reasoning from model-free agents and revealing hidden generalisation capabilities.

Limitations and assumptions

The method assumes accurate Q-values and may require many goals in stochastic settings; theoretical guarantees are limited to deterministic MDPs or specific reward families.

Research questions this paper is counted under

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction