Intellectually Curious

Inverting the Bellman Equation: How Simple Goals Build World Models in AI

Mike Breault

Use Left/Right to seek, Home/End to jump to start or end. Hold shift to jump forward or backward.

0:00 | 5:22

A deep-dive into the 2026 paper showing that model-free agents trained on a diverse set of goals implicitly encode a detailed map of their environment in their Q-values. Through P-learning, researchers reverse-engineer this hidden world model from the agent’s value function, revealing emergent concepts like velocity and basic physics intuition in continuous-control tasks such as Reacher and MountainCar, with broad implications for interpretability and adaptable AI.


Note:  This podcast was AI-generated, and sometimes AI can make mistakes.  Please double-check any critical information.

Sponsored by Embersilk LLC

SPEAKER_00

Have you ever like woken up in a pitch black room and just had to find a light switch?

SPEAKER_01

Oh, absolutely. Countless times.

SPEAKER_00

Right. So you can't see anything, so you're just shuffling forward, purely chasing that reward of flipping the switch. But you know, after doing that a few nights, you don't just memorize the footwork, you actually build this 3D map of the room in your head.

SPEAKER_01

Yeah, you know exactly where the dresser is, right?

SPEAKER_00

Exactly. All from just trying to reach one single goal. And that cognitive trick taking, a really narrow, goal-oriented task and extracting a universal understanding of the environment from it. Well, it turns out that's not just a human treat.

SPEAKER_01

No, it's really not. I mean, there's this fascinating 2026 paper we are diving into today called Inverting the Bellman Equation. And it proves that artificial intelligence agents do the exact same thing.

SPEAKER_00

Right. So our mission for this deep dive is to look at how simple goal-seeking algorithms secretly build perfect mental maps of their environment. But uh before we jump into the math of how they actually pull that off, I want to give a quick shout-out to our sponsor, Ember Silk.

SPEAKER_01

Always good to mention them.

SPEAKER_00

Yeah. If you are, you know, trying to uncover where AI agents can make the most impact for your business, or maybe you need help with AI training, automation, or software development, you can discover all your solutions over at Embersilk.com. Okay, so getting into this paper, we usually treat model free and model-based agents as like totally different beasts, right?

SPEAKER_01

Aaron Powell Totally. I mean, historically, the assumption has always been that model free agents just map states to actions based on rewards.

SPEAKER_00

Aaron Powell Basically completely ignoring the underlying physics of their environment.

SPEAKER_01

Aaron Powell Exactly. They just learn what to do, not how the world works. But this paper, well, it completely upends that division.

SPEAKER_00

Aaron Powell Wait, really? How so?

SPEAKER_01

Well, the researchers mathematically prove that if you train a model free agent on a sufficiently rich set of goals, it inherently encodes a highly accurate map of the environment. Trevor Burrus, Jr.

SPEAKER_00

Like a world model.

SPEAKER_01

Aaron Powell Yeah, a world model right inside its basic Q values.

SPEAKER_00

Aaron Powell Okay, wait. I need to pause you there because my understanding is that the math shouldn't really let it do that.

SPEAKER_01

Oh, I know. It sounds counterintuitive.

SPEAKER_00

Aaron Powell Right. Because if it is just, you know, memorizing the most rewarding steps to reach a target, what happens when you block a path? It shouldn't know the layout of the city to find a detour, right? Like it just knows the driving direction.

SPEAKER_01

And that right there is the big breakthrough. Because if the agent only has one goal, you are totally right. It just memorizes the path.

SPEAKER_00

Okay. So how does it get the whole map?

SPEAKER_01

So if you give the agent a diverse set of goals, like go to the grocery store, then the park, then the bank well, those overlapping reward pathways force the Q values to factor in the actual structure of the maze.

SPEAKER_00

Oh wow. So the agent's value function just implicitly becomes a map of the world's transition dynamics?

SPEAKER_01

Exactly. And to prove this map actually exists inside the agent, the author has created this novel algorithm called p-learning.

SPEAKER_00

Let's break down how p-learning actually works because I think it's so clever. Normally, the Bellman equation uses the environment's map to calculate the value of the next step, right? Right.

SPEAKER_01

That is the standard approach.

SPEAKER_00

But p-learning flips the algebra. It basically looks at the values the AI has already assigned to various steps across all those different goals, and then it reverse engineers the map that those values, you know, must have come from.

SPEAKER_01

Precisely. They use the agent's own value function to extract its hidden world model. And I have to say, the experiments they ran to test this were just stunning.

SPEAKER_00

Yeah, they used continuous control environments, didn't they?

SPEAKER_01

They did. They used a robotic arm called Reacher and a physics simulation called Mountain Car.

SPEAKER_00

And the crazy part is they only train these agents on really simple position-based goals, just like move the arm to coordinate X or move the car to point Y.

SPEAKER_01

Right. But when they applied P learning to extract that internal world model, they found the agent had perfectly understood entirely different physical concepts.

SPEAKER_00

Wait, like what?

SPEAKER_01

Well, for example, it understood velocity.

SPEAKER_00

Without ever being explicitly trained to calculate velocity, that is wild.

SPEAKER_01

I know. The agent just naturally generalized its knowledge. To reliably reach those positions, the most efficient mathematical shortcut was to just secretly map out the entire physics engine of that universe.

SPEAKER_00

Aaron Powell You know, for anyone building or utilizing AI, this is a massive shift. It means these highly performant agents aren't just memorizing blind pathways.

SPEAKER_01

Aaron Powell Not at all. They are naturally developing this deep, really flexible understanding of reality.

SPEAKER_00

Aaron Powell It really is just pure optimism for the future of problem solving. I mean, simple learning mechanisms organically giving rise to robust, interpretable understandings of the world.

SPEAKER_01

Aaron Powell It is incredibly inspiring. And because we can now use tools like P-Learning to, you know, audit the models these agents build, it paves the way for incredibly adaptable, transparent AI solutions to some of our greatest human challenges.

SPEAKER_00

Aaron Powell Which is exactly what we want to see. And it leaves me with a final thought for you, our listener. If simple, repetitive goal seeking naturally creates a complex, brilliant world model in machines, well, what hidden maps of reality are you building just by pursuing your everyday routines?

SPEAKER_01

That is a great question to ponder.

SPEAKER_00

The next time you are fumbling for the light switch in the dark, remember you are not just finding the light, you are mapping your universe. If you enjoyed this intellectually curious deep dive, please subscribe to the show and leave us a five star review. It really helps get the word out. Thanks for tuning in.