← Latest papers
🤖 machine learning

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

This paper challenges the traditional separation between model-based and model-free reinforcement learning by proving that value-based agents trained on diverse reward functions implicitly encode a unique world model, which can be explicitly extracted via a new method called PP-learning to achieve strong generalization on out-of-distribution tasks.

Original authors: Alistair Letcher, Mattie Fellows, Alexander D. Goldie, Jonathan Richens, Jakob N. Foerster, Oliver Richardson

Published 2026-06-23
📖 4 min read☕ Coffee break read

Original authors: Alistair Letcher, Mattie Fellows, Alexander D. Goldie, Jonathan Richens, Jakob N. Foerster, Oliver Richardson

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you are teaching a robot to navigate a maze. Traditionally, there are two ways to do this:

  1. The Map-Maker (Model-Based): You give the robot a blank piece of paper and ask it to draw a map of the maze, learning exactly where walls are and where doors lead.
  2. The Muscle-Memory Learner (Model-Free): You don't ask for a map. Instead, you just tell the robot, "If you go left here, you get a cookie. If you go right, you get a shock." The robot learns a list of "good moves" for specific situations but doesn't necessarily understand why those moves work or how the maze is built.

For a long time, scientists thought these two approaches were completely separate. They believed the "Muscle-Memory Learner" only knew what to do to get a reward, but it didn't actually know the rules of the world it was living in.

The Big Discovery
This paper says: Actually, the Muscle-Memory Learner does know the map. It's just hiding it.

The authors found that if you train a robot on a wide variety of different goals (not just "get to the exit," but "get to the red spot," "get to the blue spot," "get to the corner," etc.), the robot's internal brain (its "Q-values") secretly encodes a perfect, accurate map of the entire world. It knows exactly where every action will lead, even if it was never explicitly asked to draw a map.

The Magic Trick: "P-Learning"
The paper introduces a new method called P-Learning (which stands for "Probability Learning" or "World Model Learning"). Think of it as a reverse-engineering tool.

  • Standard Learning (Q-Learning): You have a map (the world) and you try to figure out the best moves (the Q-values).
  • P-Learning: You have the best moves (the Q-values) and you try to figure out the map (the world).

The authors show that you can take a robot that has already learned how to solve many different tasks, look at its internal "to-do list" of values, and mathematically "invert" the equations to pull out the hidden map it was using all along. It's like looking at a chef's perfectly cooked meal and being able to deduce the exact recipe and ingredients they used, even if they never wrote the recipe down.

The "One Goal" vs. "Many Goals" Mystery
The paper also answers a tricky question: How many different goals does the robot need to see to learn the full map?

  • In a simple, predictable world (Deterministic): The robot only needs to see one goal to figure out the whole map. It's like learning a puzzle where every piece fits in only one spot; once you see the picture, you know where everything goes.
  • In a chaotic, unpredictable world (Stochastic): The robot needs to see many different goals (roughly as many as there are rooms in the maze) to be sure of the map. It's like trying to learn the rules of a game where dice are rolled; you need to see many different outcomes to understand the odds.

The Surprise: Hidden Superpowers
The most surprising part of the experiments is what happens when you use this "pulled-out map" to solve new problems the robot never saw before.

In one experiment, they trained a robot arm only on reaching specific positions (like "touch the red dot"). They then used P-Learning to extract the robot's hidden map. When they asked the robot to use this map to reach a specific speed (a goal it was never trained on), it succeeded!

This suggests that the robot had learned the underlying physics of the arm (how joints move to create speed) even though it was only told to care about position. It's as if you taught a person to drive only by telling them "stay in the lane," and then they could suddenly drive perfectly on a race track because they secretly understood how the car's engine and steering worked all along.

In Summary

  • Old Idea: Model-free agents (those that just learn rewards) don't know the world; they just know what to do.
  • New Idea: If you train them on enough different goals, they secretly build a perfect model of the world inside their heads.
  • The Tool: P-Learning is a way to "read" that hidden model out of the agent.
  • The Result: This hidden model is so accurate that it allows the agent to solve brand new, strange problems it was never trained for, proving that "model-free" and "model-based" learning are actually two sides of the same coin.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →