Introduction
Do Large Language Models (LLMs) truly develop internal "world models," or are they merely sophisticated "stochastic parrots" matching patterns in text? When an LLM predicts the next move in a chess game, researchers question whether it maintains a mental map of the board or simply identifies high-probability character sequences.
Traditional methods for answering this question, such as "probing" neural activations, are often invasive and model-specific. Conversely, simple string-based metrics—like checking if a model's board description matches a ground-truth string—are "semantically blind." A minor text error, such as omitting a single piece, can represent a catastrophic failure of the model's internal logic. Researchers from the University of Tokyo have proposed a new, model-agnostic framework to evaluate "state affordances": checking if the moves a model deems legal actually align with the rules of the environment.
Methodology: Chess as a Finite State Automaton
The authors treat chess as a Finite State Automaton (FSA), where every board position represents a state and every move is a transition. They propose a State Reconstruction Task: given a sequence of moves in Portable Game Notation (PGN), the model must output the current board state in Forsyth-Edwards Notation (FEN).
To evaluate the predicted state ($\tilde{S}$) against the true state ($S$), they introduce two key metrics:
- State-based Precision ($p_m$): The probability that a sequence of $m$ legal moves from the predicted state is also legal in the true state.
- State-based Recall ($r_m$): The probability that a sequence of $m$ legal moves from the true state is also legal in the predicted state.
Because the tree of possible moves grows exponentially, the authors developed an Intermediate Probability Estimator. This algorithm uses conditional probabilities to estimate these metrics in $O(m^2)$ time, making it feasible to test deep move sequences without the computational burden of naive sampling.
Results and Analysis
The researchers tested OpenAI’s GPT-4o using a dataset of 10,000 real chess games from Lichess, categorized by game length (5 to 50 moves).
Long-range Performance Decay
While GPT-4o demonstrates a significant understanding of the board compared to random baselines, its performance is not flawless. On average, the model achieves a $p_4$ (precision over 4 moves) of approximately 0.6. However, this internal representation is "leaky." As the game progresses and the history of moves grows longer, the model's ability to track the state degrades sharply.
Metric Correlation and Semantic Fidelity
A critical finding of the study is the relationship between state-based precision and traditional string-matching metrics like Levenshtein (edit) distance. While there is a moderate correlation (0.69 Kendall’s tau) in early game stages, this correlation vanishes as the games become more complex.
This divergence suggests that in complex scenarios, simple string matching fails to capture how "broken" the model's internal logic actually is. A model might produce a FEN string that looks nearly identical to the correct one but describes a state where the fundamental rules of the game are no longer applicable.
Conclusion and Future Work
The proposed framework shifts the focus from syntax to affordances—what a model believes can be done in a given state. While GPT-4o shows a decent grasp of chess states, its "mental map" remains fragile over long sequences.
Future research may expand this methodology to other structured domains, such as program synthesis or robotic planning, where the "state" of the world is governed by rigid rules. By evaluating models based on their understanding of environmental constraints rather than just text matching, researchers can better quantify the depth of LLM "understanding."
Summary updated