TL;DR
Traditional metrics like string edit distance fail to capture whether large language models (LLMs) maintain coherent internal "world models" because tiny textual errors can catastrophically alter state semantics. This paper introduces an external, model-agnostic evaluation framework that measures the fidelity of an LLM's predicted state by comparing its downstream legal action trajectories (affordances) to the ground truth. Evaluating GPT-4o on chess reveals that while LLMs generate locally plausible single moves, their ability to maintain valid state affordances decays sharply over longer horizons.
What Problem Does This Paper Address?
Do sequence models truly internalize deterministic world models, or are they just relying on surface-level heuristics? Existing evaluations generally take one of two flawed paths:
- Probing internal activations: Analyzing hidden states requires white-box access, making it model-specific, opaque, and difficult to generalize.
- Syntactic string comparisons: Metrics like Levenshtein edit distance or board accuracy fail to reflect true task semantics. In chess, for example, removing a king alters only one character in board representation (achieving >98% board accuracy and an edit distance of 1), but leaves behind a completely illegal, nonsensical game state.
The authors address the need for a model-agnostic, semantic-level evaluation that tests whether an LLM's predicted environment state preserves the real state's operational rules and action possibilities.
Methods
The authors formalize world state tracking using Finite State Automata (FSA), where actions transition an environment between valid states.
- State Reconstruction Task: The model receives a history of actions (e.g., chess moves in standard PGN notation) and is prompted to output the current board state in Forsyth–Edwards Notation (FEN).
- Affordance-Based Precision and Recall: Instead of checking characters, the framework evaluates the set of valid length-$m$ action sequences ($A_S^m$) reachable from true state $S$ versus predicted state $\tilde{S}$:
- Precision ($p_m$): The probability that a sequence generated legally under predicted state $\tilde{S}$ is also legal under ground truth $S$.
- Recall ($r_m$): The probability that a valid sequence from ground truth $S$ is valid under $\tilde{S}$.
- Intermediate Probability Estimator: Naive sampling of $m$-step trajectories requires exponential sample complexity ($O(e^{\lambda m})$) because the acceptance rate decays exponentially with depth. The authors introduce a chain estimator that computes conditional step-wise acceptance probabilities ($p_m = \prod_{i=1}^m v_i$), reducing sample complexity to quadratic in sequence depth ($O(m^2)$).
Datasets
The authors evaluated their methodology using real-world chess games:
- Lichess Benchmark: A dataset of 10,000 real chess games sourced from Lichess.
- Evaluation Splits: Divided into five groups of 2,000 games each, truncated at lengths ranging from 5 to 50 moves.
- Model Tested: OpenAI’s GPT-4o, tasked with converting PGN move histories into FEN board states.
Key Insights and Ideas
- Syntactic and Semantic Metrics Diverge at Depth: Overall, negative edit distance and state precision exhibit a seemingly solid Kendall’s $\tau$ correlation of 0.69. However, broken down by game length, this correlation evaporates. As game length increases, edit distance becomes virtually uncorrelated with functional correctness.
- The "Illusion" of Competence in Local Actions: GPT-4o consistently produces a legal next action ($m=1$) with near-certain probability, masking underlying state degradation. When rolled out to a 4-step action horizon ($m=4$), the model's structural tracking failures become immediately obvious.
- Black-Box Environment Auditing: Because the method only requires state strings and an external environment transition engine, it allows rigorous world-model evaluation of closed-source proprietary models without probing internals.
Key Results
- Sharp Performance Drop Over Long Sequences: At depth $m=4$, GPT-4o’s precision ($p_4$) plunges from ~0.60 at move 5 down to ~0.015 by move 50.
- Far Above Random, Far Below Ground Truth: Even after 5 moves, a randomly generated board achieves a 1-step legal move probability of only $(8 \pm 2) \times 10^{-4}$. GPT-4o scores ~0.60, demonstrating significant learned structure, though still failing to sustain high fidelity over longer trajectories.
- Estimator Efficiency: In variance benchmarks on chess states with edit distance 17, the intermediate probability estimator converged stably at sample sizes of $N = 500$, where naive branch sampling failed due to high variance.
Limitations and Future Work
- Prompt Sensitivity: LLM outputs are notoriously sensitive to phrasing, formatting, and the use of chain-of-thought prompting, which can shift state accuracy independently of underlying world modeling.
- Requirement of an Executable Action Model: The framework relies on an existing, deterministic transition engine (e.g., a chess validator). It is difficult to apply directly to open-ended, continuous, or partially observable domains without formalized rules.
- Fixed Trajectory Depth Trade-off: Choosing trajectory horizon $m$ introduces a direct trade-off between semantic sensitivity and computational cost.
- Future Directions: Incorporating adaptive stopping criteria, importance-guided rollouts, bidirectional validation (verifying whether a reconstructed state is plausible given past context), and extending the benchmark to program synthesis, dialog state tracking, and robotics planning.
Summary updated