Transformers Build World Models But Struggle to Maintain Them

Devin Pereira, Willem Zuidema· August 10, 2026 View original

Key takeaways

  • Large Reasoning Models can form emergent world models for planning tasks.
  • These models struggle to maintain critical internal representations during extended reasoning.
  • The failure is due to representation decay, not the inability to form the model initially.
  • Performance can be improved by re-injecting stable representations during inference.

Who benefits

AI DevelopmentRoboticsAutonomous SystemsSoftware EngineeringResearch & Development

Summary

This paper investigates why large reasoning models (LRMs) struggle with the Tower of Hanoi puzzle, revealing that while they develop an emergent world model, they fail to maintain this representation during extended planning, leading to performance collapse.

Large Reasoning Models (LRMs) have shown impressive capabilities, but their performance on complex planning tasks like the Tower of Hanoi puzzle remains a challenge, particularly for variants beyond the standard formulation. Previous work indicated that these models struggle, and this new research delves into the mechanistic reasons behind these failures.The study first trained smaller Transformers on precomputed solutions for the Tower of Hanoi. Through interpretability techniques, it was discovered that these models develop an "emergent world model"—a geometrically accurate, linearly decodable representation of the puzzle's state space, resembling a Sierpinski triangle. Crucially, this world model was found to be causally involved in the puzzle-solving process.Applying these same techniques to frontier LRMs like Qwen3.6-27B and DeepSeek-R1-Distill-Qwen-32B, the researchers made a surprising observation: these models also encode the Sierpinski world model almost perfectly at the beginning of a prompt. However, they still fail on most tasks with more than three rings. The core issue identified is not the absence of a world model, but its decay during the planning process. Probing at different stages of planning confirmed this degradation, and performance could be partially recovered by re-injecting the initial, well-formed representation. This suggests that the models' failure is one of maintaining necessary representations, rather than an inability to form them.

Why it matters

This research provides critical insights into the limitations of current large language models in complex reasoning, highlighting that their "thinking" can be an illusion if internal representations are not sustained. This impacts the reliability of AI for planning and multi-step tasks.

How to implement this in your domain

  1. 1Design prompts for LLMs that explicitly encourage or reinforce the maintenance of internal state representations throughout multi-step reasoning.
  2. 2Develop monitoring tools to track the stability of critical latent representations in LLMs during complex tasks.
  3. 3Explore techniques like "representation injection" or "memory refreshing" to prevent decay of emergent world models in long reasoning chains.
  4. 4Benchmark LLM performance on planning tasks with varying complexity to identify thresholds where representation decay becomes problematic.

Original post by Devin Pereira, Willem Zuidema

"arXiv:2608.07077v1 Announce Type: new Abstract: The Tower of Hanoi is a simple planning puzzle that in prior work has proven challenging for large reasoning models (LRMs). Current models solve the standard formulation of the puzzle, but still struggle with the flat-to-flat varian…"

View on X

Originally posted by Devin Pereira, Willem Zuidema on X · view source

Want to go deeper?

Turn these trends into skills with Learnijoy's hands-on AI & tech courses.

Explore courses