TL;DR
While Large Language Models (LLMs) often appear to possess "world models"—internal maps of the rules and logic governing a domain—this paper demonstrates that standard evaluation metrics like next-token accuracy are dangerously deceptive. By introducing new metrics based on the Myhill-Nerode theorem, the authors reveal that even high-performing models often harbor incoherent internal representations, leading to "fragility" where performance collapses when faced with minor task variations.
Introduction
There is a heated debate in AI: do generative models simply memorize statistical patterns of text, or do they build a functional "world model" of the underlying reality? Previous research suggested the latter, pointing to the fact that models trained on Othello moves or NYC directions can predict the next valid move with near-perfect accuracy.
However, the authors argue that next-token prediction is a "fragile" metric. A model can be 99% accurate at predicting the next step without actually understanding the global state. For example, a model might know that a specific move is valid simply because it is statistically common in that context, without knowing why or how that move affects the overall board state. The gap addressed here is the lack of theoretically grounded metrics to distinguish between "statistical mimicry" and "true world model recovery."
Methodology: The Myhill-Nerode Framework
The authors formalize the "world" as a Deterministic Finite Automaton (DFA)—a system with discrete states and rules for transitioning between them. They then leverage the Myhill-Nerode theorem from formal language theory, which states that two states are identical if and only if they allow for the exact same set of future sequences (continuations).
Based on this, they propose two model-agnostic metrics:
- Sequence Compression: If two different sequences of actions lead to the same state in the real world, does the generative model treat them as identical? (i.e., does it predict the same future for both?)
- Sequence Distinction: If two sequences lead to different states, can the model actually distinguish between them in its predicted futures?
Key Insights and Results
The study evaluates models across three distinct domains: NYC Taxi Navigation, Othello, and Logic Puzzles. Several critical findings emerged:
- The "Aha!" of Fragility: Models that achieve ~100% accuracy on next-token prediction often fail miserably on the new compression/distinction metrics. This "incoherence" explains why a model that can navigate perfectly from A to B might completely break down if forced to take a one-block detour.
- Optimal Data is Suboptimal for Learning: Surprisingly, models trained on "optimal" data (like shortest paths in NYC or championship Othello games) developed worse world models than those trained on random walks. Random exploration forces the model to see more of the "boundary" of the state space, leading to a more robust internal map.
- Impossible Maps: When the authors reconstructed the models' internal maps of Manhattan, they found "flyovers" and physically impossible orientations (e.g., a street labeled "North" that actually leads East). The model learned the local probability of a turn but not the global geometry of the city.
- LLMs and Logic: Even top-tier models like GPT-4 achieved 100% task accuracy on logic puzzles but showed significant failures in compression (scoring ~0.21), meaning they didn't consistently recognize when two different sets of clues described the same physical arrangement.
Conclusion
The primary limitation of this study is its reliance on DFAs, which may not capture the stochastic or infinite nature of many real-world tasks. However, the results clearly indicate that next-token accuracy is an insufficient benchmark for intelligence. To build truly robust AI, we must move beyond training on "optimal" human demonstrations and instead provide data that explicitly highlights the boundaries and underlying logic of the domain.
Summary updated