TL;DR
Does a language model trained only on text sequences just memorize surface statistics, or does it build an internal model of the world? By training a GPT variant on Othello game transcripts, this paper demonstrates that the model develops an emergent, non-linear internal representation of the board state. Crucially, the authors use causal interventions to manipulate this internal state, directly controlling the model's legal move predictions.
What Problem Does This Paper Address?
Large language models (LLMs) show incredible capabilities, but a fundamental debate persists: are they merely "stochastic parrots" memorizing complex surface statistics, or do they build coherent internal "world models" to understand the data-generating process?
Investigating this in natural language is notoriously difficult due to its immense complexity and the difficulty of defining a ground-truth "world state." To address this, the authors narrow their focus to a controlled, synthetic setting: the board game Othello. They test whether a standard transformer architecture (Othello-GPT), given only a sequence of moves with zero prior knowledge of the board geometry or rules, implicitly learns to track the underlying state of the game.
Methods
The authors train an 8-layer GPT model with an 8-head attention mechanism and a 512-dimensional hidden space to predict the next legal move in an autoregressive fashion. To investigate what the model learns, they employ two primary techniques:
- Probing: They train classifiers (probes) to predict the state of each of the 64 tiles (empty, black, or white) using only the model's internal activation vectors at specific layers. They compare simple linear probes against 2-layer non-linear Multi-Layer Perceptrons (MLPs).
- Causal Intervention: To prove that these internal representations actively drive the model's predictions (rather than being passive byproducts), the authors introduce an activation-intervention technique. Using gradient descent on a probe's class score, they modify the internal activations at a specific layer ($Ls$) and subsequent layers to flip the perceived state of a single tile (e.g., from white to black) and observe if the model's next-move predictions change accordingly.
By systematically applying these interventions, they generate latent saliency maps to visualize which parts of the board state contribute most to a given move prediction.
Datasets
The model is evaluated using several distinct datasets:
- Championship Dataset: A collection of 140,526 real-world Othello games played by expert humans, reflecting strategic, intent-driven play.
- Synthetic Dataset: A massive dataset of 20 million games generated by uniformly sampling random legal moves from the Othello game tree, reflecting rule-abiding but non-strategic play.
- Skewed Dataset: A modified version of the synthetic dataset where one of the four initial opening moves (C5) is completely removed to test for sequence memorization.
- Natural & Unnatural Benchmarks: Two evaluation sets of 1,000 cases each used for the intervention experiments. The "natural" benchmark contains board states reachable via normal legal play, while the "unnatural" benchmark contains physically impossible board states, serving as a rigorous out-of-distribution test.
Key Insights and Ideas
- Emergent World Models are Non-Linear: Linear probes fail to accurately decode the board state from the activations, whereas non-linear probes succeed. This reveals that the model constructs a complex, non-linear internal representation of the board rather than a simple linear mapping.
- Representations are Causal: The internal board representation actively guides the model's behavior. Changing the internal representation of a tile via intervention causes the model to alter its legal move predictions to match the new counterfactual board state.
- Generalization Beyond Training Distribution: The model's internal world tracking is robust enough to handle "unnatural" board states it has never seen in training, proving it has truly captured the underlying game mechanics rather than just memorizing sequences.
- Strategic vs. Rule-Based Representations: Latent saliency maps reveal that the synthetic model focuses purely on local tiles required to make a move legal, while the championship model develops complex, global saliency patterns reflecting human strategic intent.
Key Results
- Move Legality: Othello-GPT trained on the synthetic dataset achieves a near-perfect error rate of 0.01% in predicting legal moves on unseen games. On the skewed dataset, it maintains a 0.02% error rate, ruling out pure sequence memorization.
- Probing Accuracy: Linear probes show poor performance (error rates never dip below 20%). In contrast, non-linear probes achieve remarkably low error rates, bottoming out at 1.7% in the mid-to-late layers (layer 7) for the synthetic model.
- Intervention Effectiveness: When intervening to change a tile's state across 5 layers ($Ls = 4$), the average prediction error drops drastically from a baseline of ~2.6 down to 0.12 on the natural benchmark and 0.06 on the unnatural benchmark.
Limitations and Future Work
- Logical Misalignments: The intervention-based attribution method struggles to perfectly capture complex logical combinations. For instance, Othello rules use "OR-logic" (a move is legal if any of the eight directions can be flipped), but the current latent saliency maps primarily capture "AND-logic" along a single line.
- Simplicity of the Task: Othello is a closed-world task with simple, deterministic rules compared to natural language. It remains an open question how well these non-linear probing and layerwise intervention techniques will scale to the messy, open-ended world of natural language processing.
- Future Directions: The authors suggest applying these techniques to more complex games, comparing sequence models directly with traditional game engines that take explicit board states as inputs, and exploring synthetic grammar generation tools to bridge the gap to natural language.
Summary updated