A Close Look At World Model Recovery In Supervised Fine-Tuned LLM Planners
This paper investigates whether supervised fine-tuned LLMs learn internal world models for classical planning, revealing that while these models linearly encode action validity and state predicates, their ability to recover the underlying world model is significantly enhanced by broader state space coverage during training.
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 have a very smart, well-read robot (a Large Language Model, or LLM) that has never played a specific board game before. You want it to learn how to play by showing it examples of winning games. The big question this paper asks is: When the robot learns to play, does it actually understand the rules of the game, or is it just memorizing the moves?
The researchers call this "World Model Recovery." It's like asking: "Did the robot build a mental map of how the world works, or is it just a parrot repeating phrases it heard?"
Here is a breakdown of their findings using simple analogies:
The Experiment: Teaching the Robot to Plan
The researchers taught the robot to solve planning problems (like moving blocks in a tower or delivering packages with a plane) using a method called Supervised Fine-Tuning (SFT). Think of this as giving the robot a textbook of perfect solutions.
They tested three different ways to create these textbooks:
- The "Perfect Path" Book: Only showing the shortest, most efficient route to the goal (like a GPS showing only the fastest route).
- The "Random Walk" Book: Showing the robot random valid moves, even if they go in circles or take the long way around.
- The "Smart Random Walk" Book: Similar to the random walk, but with a rule to stop the robot from going in circles, forcing it to explore new areas of the map.
The Two Ways They Checked for Understanding
The researchers didn't just ask, "Did the robot solve the puzzle?" They looked inside the robot's brain in two ways:
1. The "X-Ray" (Internal Representations)
They used a tool called a "linear probe" to look at the robot's internal code while it was thinking.
- The Metaphor: Imagine the robot is a chef cooking a meal. The researchers didn't just taste the food; they looked at the chef's hands to see if they knew which ingredients were fresh and which were rotten.
- The Finding: Even when the robot was just copying a list of moves, its internal "brain" had learned to distinguish between valid moves (legal moves) and invalid moves (illegal moves). It also learned the truth about some specific facts (like "is block A on top of block B?").
- The Catch: The robot was better at spotting valid moves than it was at explaining why they were valid using its own words. It was like a driver who knows instinctively not to run a red light but can't explain the traffic laws.
2. The "Voice" (Generative Capabilities)
They asked the robot to predict the next move and checked if it gave high confidence to legal moves and low confidence to illegal ones.
- The Metaphor: This is like asking the chef, "If I give you a rotten egg, will you say 'No, I won't use that'?"
- The Finding: Here, the results were mixed.
- Robots trained on Perfect Paths (the shortest routes) were terrible at this. They couldn't tell the difference between a legal and illegal move when asked to predict. They only knew the one specific path they memorized.
- Robots trained on Random Walks were excellent. Because they saw many different ways to move, they learned the general rules of the game. They could confidently say, "That move is illegal," even if they hadn't seen that exact situation before.
The Big Surprise: "Knowing More Than They Say"
The most interesting discovery was a mismatch between the robot's brain and its voice.
- Some robots had a "brain" that clearly understood the rules (the X-ray showed they knew valid from invalid).
- However, their "voice" (the probability they assigned to moves) failed to show this understanding.
- The Analogy: It's like a student who takes a test and gets every answer right in their head (internal knowledge) but writes down the wrong answers because they are nervous or confused about how to express it. The paper suggests that just because a robot says it doesn't know the rules, doesn't mean it doesn't know them internally.
The Lesson on Training Data
The type of data used to train the robot mattered immensely:
- Training on only the "Best" solutions made the robot a good memorizer but a bad rule-follower. It couldn't handle new situations.
- Training on "Random" valid moves (especially the "Smart Random Walk" that avoided circles) made the robot a true learner. It built a better mental map of the world.
- The "OOD" Test (Out-of-Distribution): When the researchers gave the robots a harder version of the game (more blocks or packages than they saw in training), the robots trained on "Perfect Paths" failed completely. The robots trained on "Smart Random Walks" held up much better, proving they had actually learned the concept of the game, not just the specific moves.
Summary
The paper concludes that if you want an AI to truly understand how to plan and navigate a world, you shouldn't just show it the perfect, shortest path. You need to show it a variety of valid paths, including the messy, non-optimal ones. This helps the AI build a robust "world model" inside its brain, even if it sometimes struggles to explain that knowledge perfectly in its output.
In short: To teach an AI to think like a planner, don't just show it the answer key; let it explore the playground.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.