Evaluating the World Model Implicit in a Generative Model
Keyon Vafa, Justin Y. Chen, Ashesh Rambachan, Jon Kleinberg, Sendhil Mullainathan
TL;DR
The paper asks how to evaluate whether generative sequence models learn coherent world models, framing the problem with deterministic finite automata (DFA) and Myhill-Nerode theory. It shows that typical next-token diagnostics can overstate world-model fidelity and introduces two model-agnostic metrics—sequence compression and sequence distinction—grounded in the DFA boundary to better assess recovery. Through NYC taxi-route data, Othello, and logic puzzles, the authors demonstrate that models can perform exceptionally on traditional metrics while their inferred world models remain incoherent, leading to fragility under detours or task shifts. The work provides a principled evaluation framework and a public benchmark, underscoring the need to generalize beyond DFAs to capture more complex underlying structures in real-world domains.
Abstract
Recent work suggests that large language models may implicitly learn world models. How should we assess this possibility? We formalize this question for the case where the underlying reality is governed by a deterministic finite automaton. This includes problems as diverse as simple logical reasoning, geographic navigation, game-playing, and chemistry. We propose new evaluation metrics for world model recovery inspired by the classic Myhill-Nerode theorem from language theory. We illustrate their utility in three domains: game playing, logic puzzles, and navigation. In all domains, the generative models we consider do well on existing diagnostics for assessing world models, but our evaluation metrics reveal their world models to be far less coherent than they appear. Such incoherence creates fragility: using a generative model to solve related but subtly different tasks can lead to failures. Building generative models that meaningfully capture the underlying logic of the domains they model would be immensely valuable; our results suggest new ways to assess how close a given model is to that goal.
