World models and neuro-symbolic AI¶
Two old questions meet here. Does a network trained only to predict build a model of the world that produced its data? And should intelligent systems keep some explicit, symbolic structure (rules, programs, proofs) rather than learn everything end to end? The answer as of 2026: prediction does build world models, but patchy ones; and the most reliable systems in hard domains pair a neural generator with an exact symbolic checker.
10,000 ft
AI began as two traditions. The symbolic one (logic, search, rules; see before the boom) represented the world explicitly and reasoned exactly, but could not learn its representations from raw data. The connectionist one learned everything from data, but its knowledge was implicit and its reasoning unverifiable. Large language models revived the old argument in a sharp form: a system trained only on next-token prediction now writes proofs and code, so either it has learned an internal model of the world, or prediction without a world model goes further than anyone thought. This page covers the evidence from interpretability (probes and interventions inside networks), the tests that show where those internal models break, and the neuro-symbolic systems that bolt explicit structure back on: AlphaGeometry and AlphaProof in mathematics, program synthesis on ARC, LLMs with planners and solvers. Learned simulators (Dreamer, Genie, V-JEPA 2) are covered in video and world models and model-based RL; this page is about whether models contain world models and how symbols make them trustworthy. It connects to reasoning models, AI for science and the open problems of generalisation and reliability.
2,000 ft
- A world model is a representation of the state of some environment and of how actions or time change it, good enough to predict, answer counterfactuals and plan.
- It can live in three places: implicitly inside a network, as a learned simulator, or as explicit code and rules.
- Implicit world models are found with probes: small classifiers that read a property (a board square, a city's latitude) from hidden activations. Probes need controls, and the decisive test is an intervention that edits the representation and changes the model's behaviour.
- Evidence for: Othello-GPT represents the board; Llama-2 represents space and time linearly; a chess model represents player skill.
- Evidence against coherence: a transformer that gives valid Manhattan directions 96–99% of the time has an internal map with impossible streets; a model trained on orbits predicts them well but implies a different, nonsensical force law in every sample. Prediction finds heuristics that cover the training distribution, not necessarily the true mechanism.
- Neuro-symbolic systems keep explicit structure where it pays: a neural model proposes, a symbolic engine checks or searches. That pattern took AI from 10 to 25 of 30 olympiad geometry problems (2024), to formal IMO silver (2024), and to formal proofs of 5 of 6 IMO 2025 problems.
- The twist: in July 2025 natural-language reasoning models also reached IMO gold standard with no formal checker. The live question is no longer "symbols or not" but where the verifier should live.
Ground level¶
What "world model" means¶
The phrase is used loosely, so pin it down. An environment has a state \(s\) (the board, the positions of the planets, the street network and where you are on it). Observations \(o\) are partial views of the state. A world model is anything that lets a system compute, from what it has seen, a representation \(z\) that carries the information about \(s\) needed to predict what comes next, and ideally a transition rule \(z' = f(z, a)\) that says how an action \(a\) changes it.
Three properties separate a world model from a pile of correlations:
- Sufficiency. Two histories that lead to the same state should be treated the same, because the future does not depend on how you got there. A chess position reached by different move orders has the same legal continuations.
- Counterfactual reach. It should answer questions about situations absent from the data: what if this piece were elsewhere, what if I took a detour.
- Compositional reuse. The same model should support many tasks (predict, plan, explain) without retraining for each.
The video and world models page draws four meanings of the term. Two are learned simulators: action-conditioned models like Dreamer and Genie, and video generators treated as implicit simulators. The third is predictive representations such as V-JEPA 2. This page takes the fourth meaning, the internal state inside a sequence model, and then turns to explicit, symbolic models.
Looking inside: Othello-GPT¶
The cleanest experiment is a toy. Li et al. (2022) trained a GPT to predict legal next moves in the board game Othello from sequences of move tokens like D3 C5 F6 …. The model never sees a board: only move names. Yet to predict legal moves you must know which squares are occupied and by whom, because Othello moves flip discs. If the model predicts legal moves well, does it reconstruct the board?
They trained probes: small classifiers that take the model's hidden activation at a given layer and position and predict the state (black, white or empty) of each of the 64 squares. A linear probe is just logistic regression on the activation vector. Linear probes did poorly; two-layer MLP probes did well. The board was recoverable, but apparently encoded nonlinearly.
Neel Nanda and colleagues then found the encoding was linear after all, in a different coordinate system (Nanda, Lee and Wattenberg 2023). The model does not store "black" and "white". It stores "mine" and "yours", relative to the player about to move, which flips every turn. The table shows their probe accuracies across the 8 layers (\(x_0\) is the embedding, \(x_7\) the last layer):
| Probe on OthelloGPT | Layer 0 | Layer 2 | Layer 4 | Layer 6 |
|---|---|---|---|---|
| linear probe on a randomly initialised GPT | 37.0% | 33.9% | 34.8% | 34.4% |
| always guess each square's most likely state | 61.8% | 61.8% | 61.8% | 61.8% |
| linear, | 62.2% | 74.9% | 75.0% | 74.8% |
| MLP, | 63.4% | 93.3% | 97.5% | 98.7% |
| linear, | 90.9% | 97.2% | 99.0% | 99.6% |
(From Table 1 of Nanda, Lee and Wattenberg 2023.)
Two lessons, both general. First, a probe tests a hypothesis about the coordinate system as much as about the content. "Black" equals "mine" on odd moves and "yours" on even ones, so the absolute colour is an XOR of two linearly encoded facts, which no linear probe can read (the maths below proves it). Second, the linear representation is usable: adding or subtracting the probe direction in the residual stream changed the model's predicted legal moves exactly as if the board had changed. Flipping a square's colour by vector arithmetic left an average of 0.10 errors in the predicted legal-move set, against 2.72 for a null intervention.
Probe, then poke
A probe shows that information is present. An intervention shows that the model uses it. Information can be present by accident: any rich enough representation of the input contains, in principle, every function of the input. The standard of evidence is: find a direction with a probe, edit along it, and predict in advance how the model's output will change.
Probes can lie¶
A probe is itself a learner. If it is expressive enough, it can compute the property from the raw input, and its accuracy tells you about the probe rather than the model. Hewitt and Liang (2019) made this precise with control tasks: give each word type a random label and train the same probe. A good probe should be selective: high accuracy on the real task, low on the control. They found popular probes on ELMo representations were not selective; MLP probes partly memorised.
The baselines in the Othello table are the other two standard controls: a probe on an untrained network (does the architecture alone make the property decodable?) and a trivial prior (how much accuracy comes from base rates?). A reported probe accuracy without these three numbers is close to uninterpretable. In the Build it section you will see a quadratic probe reach 85% training accuracy on shuffled labels while staying at chance on held-out data.
Beyond games: space, time and skill¶
Probing scaled up to real language models.
- Space and time. Gurnee and Tegmark (2023) built datasets of places (world, US, New York City) and events (historical figures, artworks, news headlines), ran their names through Llama-2 models, and fitted linear probes from activations to latitude/longitude and to dates. The probes worked across scales and entity types, were robust to prompt variations, and individual "space neurons" and "time neurons" encoded coordinates. Their own conclusion is careful: modern LLMs "possess basic ingredients of a world model".
- Latent variables in chess. Karvonen (2024) trained a character-level GPT on real chess games in PGN notation. Linear probes recovered the board state, and interventions edited it. The model also estimated a variable nobody labelled, player skill, because predicting a move depends on who is playing. Adding the derived skill vector improved the model's win rate by up to 2.6 times.
The pattern is consistent: when a latent variable helps predict the next token, prediction training tends to make it linearly readable somewhere in the network. This is the basis of the "linear representation hypothesis" that much of mechanistic interpretability rests on.
Coherent or patchy? Testing the whole model¶
Finding the board in Othello-GPT shows the model tracks some state. It does not show that the model's state is the right one: that histories leading to the same world state are treated alike, and histories leading to different states are told apart. Three lines of work tested exactly that, and all three found the internal models patchier than probes suggest.
The Manhattan map. Vafa et al. (2024) used deterministic finite automata (DFAs) as ground truth, because a DFA's states are exactly a world model. Their richest domain is navigation: the Manhattan street grid as a graph of 4,580 intersections and 9,846 directed street segments, and turn-by-turn sequences from 3.36 million real New York taxi rides. Transformers trained on these sequences produced valid routes between 96% and 99% of the time, and 97% of the shortest-path model's routes were truly shortest. By next-token accuracy and by state probes, the models looked like they knew the city.
They then proposed two metrics from the Myhill–Nerode theorem (defined below): compression (two routes ending at the same intersection should allow the same continuations) and distinction (routes ending at different intersections should be told apart by the right continuations). Measured this way, the models trained on shortest paths scored 0.10 compression precision and 0.35 distinction precision, against 1.00 for a perfect world model. When the authors reconstructed the map implied by the model, it contained streets with physically impossible orientations and flyovers over other streets, a map that "bears little resemblance to the actual streets of Manhattan".
The incoherence matters as soon as the task shifts. Force the model off its preferred route with random detours, and validity collapses:
The same metrics separate the two Othello models: trained on championship games, compression precision 0.00 and validity falling to 0.66 at 1% random detours; trained on synthetic random games, 0.98 and 0.97 validity at 10% detours. Data coverage decides coherence. A predictor only needs to distinguish states that its training distribution makes it distinguish.
Kepler without Newton. Vafa, Chang, Rambachan and Mullainathan (2025) asked the question behind the whole foundation-model programme: Kepler's accurate predictions of planetary motion led to Newton's mechanics; does accurate sequence prediction lead models to the underlying law? They trained a 109M-parameter transformer on 10 million simulated solar systems (about 20 billion tokens), then fine-tuned it to output the force on each body and ran symbolic regression on the implied forces. The true law is \(F \propto m_1 m_2 / r^2\). On five random samples of systems the model implied five different laws, for example \(F \propto \cos(\cos(2.19\, m_1))\); a nearest-neighbour baseline given the true state recovered Newton's law every time. Their inductive-bias probe generalises the idea: adapt the model to many small tasks generated from a postulated world model and check whether what it extrapolates matches that model. Across domains, models "behave as if they develop task-specific heuristics that fail to generalize".
Bags of heuristics. The same picture appears at the circuit level. Nikankin et al. (2024) traced how LLMs do arithmetic and found neither an algorithm nor memorisation, but a "bag of heuristics": sparse neurons that each fire on a numerical pattern (an operand in some range, a result ending in some digit) and whose unordered combination yields the answer. Dziri et al. (2023) found that transformers solve compositional tasks such as multi-digit multiplication by "linearized subgraph matching" against patterns seen in training, with accuracy decaying as the computation graph grows.
\"It has a world model\" versus \"it does not\" is the wrong question
Every result above is compatible with the same summary: next-token training builds representations of the latent variables that the training distribution forces it to track, in whatever coordinates are convenient, and stitches them together with heuristics that work on that distribution. Whether that counts as a "world model" depends on the use. For prediction in-distribution it is enough. For counterfactuals, detours and new tasks, coherence must be measured, not assumed.
Two traditions and how to join them¶
The symbolic tradition stores knowledge as discrete structures with exact semantics: logic, rules, programs, search trees. Its strengths are exactly the connectionist weaknesses: guaranteed correctness when the rules are right, compositional generalisation for free (a rule applies to any arguments), and inspectable reasoning. Its weaknesses are the mirror image: rules must be written or searched for, perception from raw data is hard, and brittleness at the edge of the formalism. Marcus (2020) argued that robust AI needs hybrid architectures, structured knowledge and reasoning on top of learned representations; Garcez and Lamb (2020) called neuro-symbolic integration "the third wave".
Henry Kautz's 2020 Engelmore lecture (AI Magazine, 2022) gave the most-cited taxonomy, five ways to combine the two, summarised by Sarker et al. (2021):
| Kautz type | Meaning | Examples |
|---|---|---|
| symbolic Neuro symbolic | symbols in and out, neural processing in between | an LLM or seq2seq model reading and writing text |
| Symbolic[Neuro] | a neural pattern recogniser inside a symbolic solver | AlphaGo and AlphaZero: tree search guided by networks |
| Neuro ∪ compile(Symbolic) | symbolic rules "compiled" into training data | Lample and Charton's symbolic integration |
| Neuro → Symbolic | a neural system cascades into a symbolic reasoner | the Neuro-Symbolic Concept Learner: perception to a program over the scene |
| Neuro[Symbolic] | symbolic, deliberative reasoning inside a neural engine | Kautz's aspiration; arguably today's reasoning models with tool calls |
A separate family makes logic differentiable: Logic Tensor Networks (Badreddine et al. 2020) turn first-order formulas into fuzzy-truth losses, and DeepProbLog (Manhaeve et al. 2018) puts neural predicates inside a probabilistic logic program trained end to end. These are elegant and data-efficient on small structured problems, but none has yet matched the scale of the pattern that dominates the results below.
The everyday form is in the second box. Program-aided language models (PAL, Gao et al. 2022) have the model write Python for the reasoning steps and let the interpreter compute; every function call to a calculator, database or solver is the same move. It is neuro-symbolic in the most practical sense: the model translates and decides, the symbolic system computes exactly.
Generate and verify: mathematics¶
Mathematics is where neuro-symbolic systems produced their most striking results, because a proof assistant gives a perfect verifier. Lean is a programming language and proof assistant in which a proof is a program whose type is the theorem; a small trusted kernel checks it. If Lean accepts a proof, it is correct relative to the formal statement. Lean's community library, mathlib, formalises a large part of undergraduate and research mathematics.
- AlphaGeometry (Trinh et al., Nature 2024). A symbolic deduction engine derives every fact it can about a geometry diagram. When it gets stuck, a language model proposes an auxiliary construction (a new point, line or circle), the creative step humans find hardest, and deduction resumes. The language model was trained on 100 million synthetic proofs generated by the symbolic engine itself, with no human demonstrations. It solved 25 of 30 olympiad geometry problems within the time limit, against 10 for the best previous method (Wu's method) and 25.9 for an average gold medallist (DeepMind, January 2024). AlphaGeometry2 (Chervonyi et al. 2025) widened the formal language so it covers 88% of IMO geometry problems from 2000–2024 (up from 66%) and solved 84% of them (up from 54%). Note the order: the formalism's coverage was a binding limit, which is the classic symbolic weakness.
- AlphaProof (Hubert et al., Nature 2025). An AlphaZero-style agent that searches for Lean proofs, trained by RL on millions of problems auto-formalised from natural language by a fine-tuned Gemini. For the hardest problems it uses test-time RL: generate many variants of the target problem and train on them during the contest. At IMO 2024, AlphaProof and AlphaGeometry 2 solved 4 of 6 problems for 28 of 42 points, silver-medal standard (gold started at 29), including the hardest problem. The problems were translated into Lean by hand, and some solutions took up to three days of computation against the contestants' 4.5-hour sessions (DeepMind, July 2024).
- Open provers. DeepSeek-Prover-V2 (Ren et al. 2025) decomposes problems into subgoals with a general model, proves them in Lean, and is trained by RL; it reached 88.9% on the miniF2F test set (Zheng et al. 2021) and 49 of 658 PutnamBench problems. Seed-Prover (Chen et al. 2025) refines whole proofs using Lean feedback, proved 78.1% of formalised past IMO problems, and fully proved 5 of 6 IMO 2025 problems. Harmonic's Aristotle (Achim et al. 2025) also produced formally verified solutions to 5 of 6 IMO 2025 problems and published the Lean proofs.
The 2025 twist: gold in natural language¶
On 21 July 2025 Google DeepMind reported that an advanced version of Gemini Deep Think solved 5 of the 6 IMO 2025 problems for 35 of 42 points, gold-medal standard, graded and certified by IMO coordinators. It worked "end-to-end in natural language", from the official problem statements, within the 4.5-hour limit, with no formal language and no hand translation (DeepMind, 2025). Two days earlier OpenAI had announced the same score for an experimental reasoning model, graded by former medallists rather than certified by the IMO (The Decoder, July 2025).
Within one year, the same benchmark was passed by a heavily symbolic system (formal statements, Lean, days of search) and then by purely neural ones. What should you conclude?
- The verifier moved inside the model. Reasoning models are trained with RL on verifiable rewards: during training, symbolic checkers (answer matchers, unit tests, proof checkers) supply the reward. The symbolic component did not disappear; it was used at training time and the model learned to check its own work. Generate-and-verify became a training recipe.
- External verification still matters for trust. A natural-language proof must be graded by experts; a Lean proof is checked by a small kernel in seconds, at any scale, with no expert. For mathematics that nobody can grade quickly (long research proofs, verified software, hardware), formal verification is the only way to trust machine output at volume. That is why formal provers kept improving after July 2025.
- Coverage remains the formal bottleneck. Combinatorics problems were the ones AlphaProof failed in 2024; geometry needed a separate engine because Lean's geometry support is thin (Seed-Prover built Seed-Geometry for the same reason). Formalising a problem is itself a hard, error-prone translation.
Programs as world models: ARC¶
François Chollet's On the Measure of Intelligence (2019) defined intelligence as skill-acquisition efficiency: how quickly a system turns a little experience and some priors into skill on tasks it has not seen. He built the Abstraction and Reasoning Corpus (ARC) to test it: each task shows a few input–output pairs of coloured grids, and the solver must produce the output for a new input. Every task is novel, so memorised skills do not transfer; the natural solution is to infer a small program.
ARC became the main battleground between end-to-end learning and program synthesis, and its history is a compact record of the field:
| Date | Result |
|---|---|
| 2019 | ARC-AGI-1 released; hand-written program search dominates |
| 2024 | ARC Prize: best private-set score rose from 33% to 55.5%, via "deep learning-guided program synthesis and test-time training" (Chollet et al. 2024) |
| May 2025 | ARC-AGI-2: harder tasks, calibrated with human testing (Chollet et al. 2025) |
| Oct 2025 | Tiny Recursive Model: a 7M-parameter, 2-layer network iterating on its own answer scores 45% on ARC-AGI-1 and 8% on ARC-AGI-2 (Jolicoeur-Martineau 2025) |
| Dec 2025 | ARC Prize 2025: Kaggle winner 24.03% on the ARC-AGI-2 private set at about USD 0.20 per task; best verified commercial model 37.6% (Claude Opus 4.5) at USD 2.20; a Gemini 3 Pro refinement harness 54% at about USD 30 per task (ARC Prize, 2025) |
| Mar 2026 | ARC-AGI-3: 135 interactive game environments with no instructions, scored on action efficiency against first-time human players; all solved by humans, frontier models below 1% at launch (The Decoder, March 2026) |
The ARC Prize 2025 analysis names the techniques that worked: refinement loops (generate candidate programs or answers, check them against the demonstration pairs, revise), test-time training (fine-tune on each task's few examples, with augmentations), and evolutionary program synthesis. All three are generate-and-verify: the demonstration pairs are a free, exact verifier for any candidate program. The library-learning line, DreamCoder (Ellis et al. 2020), adds the other half of the symbolic dream: a system that grows a library of reusable abstractions, so later programs become shorter.
ARC-AGI-3 moves the target from inferring a static rule to building a world model by acting: the agent must explore an unknown game, discover what its actions do and what the goal is, and do it with about as few actions as a person. Scoring is quadratic in inefficiency: a level that takes ten times the human's actions scores 1%. That is the agents frontier and this page's question in one benchmark.
Planning with explicit models¶
Classical AI planning represents a domain explicitly (in PDDL, the Planning Domain Definition Language: objects, predicates, actions with preconditions and effects) and searches for a plan that a validator can check. Kambhampati et al. (2024) argued that autoregressive LLMs cannot by themselves plan or self-verify reliably, but are "universal approximate knowledge sources", and proposed LLM-Modulo frameworks: the LLM proposes plans and helps write the domain model; external model-based verifiers critique each proposal; the loop repeats. The position is contested (reasoning models have since improved a great deal on planning benchmarks), but the architecture is the one you would build for any plan whose failure is expensive: let the model propose, let something exact decide.
Jarvis is a small neuro-symbolic system
Jarvis answers financial-planning questions by calling a deterministic FIRE engine. The engine is the explicit world model (cash flows, inflation, returns, tax rules); the LLM routes the question, fills the parameters and explains the result. That split is the "neural calls symbolic" box in the diagram above, chosen for the reason this page keeps returning to: the arithmetic must be right every time, and an exact model is cheaper to trust than a learned one.
What is established and what is not (October 2026)¶
| Claim | Status |
|---|---|
| Sequence models trained on games and text develop linearly decodable representations of latent state (boards, coordinates, dates, skill) | Established, with interventions, in several domains |
| Those internal models are coherent world models | No: Myhill–Nerode tests, detours and inductive-bias probes show incoherence when training data does not force it |
| Training data coverage, not scale alone, drives coherence | Supported in controlled settings (random walks versus shortest paths); untested at frontier scale |
| Generate-and-verify with a symbolic checker reaches top human level in competition mathematics | Established (AlphaGeometry, AlphaProof, Seed-Prover, Aristotle) |
| Pure natural-language reasoning models can match it on olympiad problems | Established for IMO 2025 (certified for Gemini Deep Think) |
| Formal verification will be needed to trust machine-generated research mathematics and software | Widely argued, plausible; not yet demonstrated at scale |
| Explicit symbolic structure is necessary for general intelligence | Open and contested; the strongest current systems put symbols in training and tools, not in the architecture |
| Systems can build world models of unfamiliar interactive environments as efficiently as people | No: ARC-AGI-3 frontier scores under 1% at launch |
History¶
| Year | Event |
|---|---|
| 1956–1980s | Symbolic AI: logic theorists, expert systems, planners (before the boom) |
| 1990 | Schmidhuber's recurrent world models for planning; Sutton's Dyna (1991) |
| 2018 | World Models (Ha and Schmidhuber): an agent trained in its own dream |
| 2019 | Hewitt and Liang's control tasks; Chollet's ARC; Lample and Charton's neural symbolic integration; Neuro-Symbolic Concept Learner |
| 2020 | Kautz's Engelmore lecture and taxonomy; Marcus's "Next Decade in AI"; DreamCoder |
| 2022 | Othello-GPT; LeCun's A Path Towards Autonomous Machine Intelligence proposes JEPA-based world models as the core of future agents; PAL |
| 2023 | Linear "mine/yours" board in Othello-GPT; space and time probes in Llama-2 |
| Jan 2024 | AlphaGeometry: 25 of 30 olympiad geometry problems |
| Jun 2024 | Vafa et al.: Myhill–Nerode tests and the incoherent Manhattan map |
| Jul 2024 | AlphaProof and AlphaGeometry 2: IMO silver standard |
| Jul 2025 | Natural-language IMO gold (Gemini Deep Think, certified; OpenAI, uncertified); Seed-Prover and Aristotle formally prove 5 of 6; "What has a foundation model found?" |
| Nov 2025 | AlphaProof published in Nature |
| Dec 2025 | ARC Prize 2025: ARC-AGI-2 unbeaten |
| Mar 2026 | ARC-AGI-3 launched; LeCun's world-model start-up AMI Labs raises about USD 1 billion |
First principles¶
Why prediction should produce state. Suppose a process emits tokens from a hidden state that evolves deterministically, as in Othello or a street network. The best possible next-token predictor must output the distribution of the next token given the history. That distribution depends on the history only through the state. So the optimal predictor's internal representation can be compressed to the state, and any representation that ignored a state distinction which changes the next-token distribution would lose loss. That is the argument for emergent world models.
Why it often does not. The argument only covers distinctions that change next-token predictions on the training distribution. Two intersections whose difference never shows up in shortest-path data never need to be told apart, and two orbits that the model can extrapolate with a local heuristic never force it to discover the inverse-square law. Gradient descent finds some minimiser of the training loss; among the many representations that achieve it, nothing selects the one that generalises to detours or new tasks. Coherence must be bought with data that exercises the distinctions (random walks, synthetic games, interventions) or with an inductive bias that prefers it.
Why verification is the lever. For many problems, checking a solution is far cheaper than finding one: a Lean kernel checks a proof in seconds; a set of demonstration pairs checks an ARC program instantly; tests check code. If a generator succeeds with probability \(p\) per attempt and the checker is exact, \(k\) attempts succeed with probability \(1-(1-p)^k\). A weak but cheap generator plus an exact checker beats a strong generator without one whenever failures are costly. The symbolic component's job is not to be clever; it is to be sound.
Why symbols are a bias, not a free lunch. A formal language makes some things trivially general (a rule applies to every argument) and other things impossible to say (AlphaGeometry's language could not express a third of IMO geometry problems until it was extended). Choosing a symbolic representation is choosing an inductive bias. It pays where the domain really has that structure (proofs, programs, games, physics laws) and costs where it does not (perception, natural language, open-ended common sense).
The maths¶
A DFA as a world model. A deterministic finite automaton is \(W = (Q, \Sigma, \delta, q_0)\): states \(Q\), a token alphabet \(\Sigma\), a transition function \(\delta : Q \times \Sigma \to Q \cup \{\bot\}\) (where \(\bot\) means "invalid") and a start state \(q_0\). Extend \(\delta\) to sequences. The set of valid continuations from a state is \(L(q) = \{x \in \Sigma^* : \delta(q, x) \neq \bot\}\).
Myhill–Nerode. Define two sequences \(s_1, s_2\) to be equivalent if they admit exactly the same valid continuations: \(s_1 \equiv s_2 \iff L(\delta(q_0, s_1)) = L(\delta(q_0, s_2))\). The Myhill–Nerode theorem says that for a regular language the equivalence classes of \(\equiv\) correspond one-to-one with the states of the minimal DFA. States are exactly equivalence classes of histories with the same futures. That is the formal content of "a world model".
A generative model \(m\) implies its own continuation sets \(L^m(s)\): the sequences whose every token it assigns probability above a threshold \(\epsilon\). The Myhill–Nerode boundary between \(s_1\) and \(s_2\) is the set of minimal suffixes accepted after \(s_1\) but not after \(s_2\) (every proper prefix of the suffix is accepted after both). Vafa et al.'s metrics, with \(q_i = \delta(q_0, s_i)\):
- Compression precision: sample \(s_1 \neq s_2\) with \(q_1 = q_2\). The true boundary is empty; score 1 if the model's boundary is also empty, so the model treats same-state histories alike.
- Distinction precision: sample \(q_1 \neq q_2\). Of the suffixes in the model's boundary, the fraction that truly separate the states, \(|\text{MNB}^m(s_1,s_2) \cap (L(q_1)\setminus L(q_2))| \,/\, |\text{MNB}^m(s_1,s_2)|\).
- Distinction recall: of the true boundary suffixes, the fraction the model also separates.
Next-token accuracy checks one token at a time and only on likely histories; these metrics check whole futures, which is why they catch incoherence that next-token tests miss.
Linear probes. For hidden state \(\mathbf{h} \in \mathbb{R}^D\) at some layer and a property with \(C\) classes, a linear probe is \(p(y \mid \mathbf{h}) = \operatorname{softmax}(W\mathbf{h} + \mathbf{b})\) with \(W \in \mathbb{R}^{C \times D}\); for OthelloGPT's 64 squares and 3 classes the probe tensor has shape \(D \times 64 \times 3\). Hewitt and Liang's selectivity is accuracy on the real task minus accuracy on the control task.
Why no linear probe can read an XOR of two linear features
Let the hidden state contain $u = $ "square is mine" \(\in \{-1, +1\}\) and $t = $ "black to move" \(\in \{-1,+1\}\) linearly: \(\mathbf{h} = u\,\mathbf{a} + t\,\mathbf{b} + \mathbf{r}\), with \(\mathbf{r}\) independent of both. The absolute colour is \(y = u t\) ("black" when the mover owns it and black is moving, or the opponent owns it and white is moving). Suppose a linear probe \(\operatorname{sign}(\mathbf{w}^\top \mathbf{h} + c)\) computed \(y\) for all four \((u,t)\) combinations. Write \(\alpha = \mathbf{w}^\top\mathbf{a}\) and \(\beta = \mathbf{w}^\top\mathbf{b}\) and ignore \(\mathbf{r}\). We need
Adding the first two gives \(c > 0\); adding the last two gives \(c < 0\). Contradiction. So absolute colour is not linearly decodable at all, even though both ingredients are perfectly linear. A probe on the product needs a quadratic term \((\mathbf{w}_1^\top\mathbf{h})(\mathbf{w}_2^\top\mathbf{h})\), which is why the MLP probe worked and why the right basis made a linear one work.
Generate and verify. Let each proposal be correct with probability \(p\). Let the verifier accept a correct proposal with probability \(t\) and a wrong one with probability \(f\) (the false-accept rate). Stop at the first acceptance. Each proposal is accepted with probability \(pt + (1-p)f\), independently, so the probability that the first accepted proposal is correct is
With an exact checker (\(f = 0\), \(t = 1\)), precision is 1 and the only cost is the number of tries: \(P(\text{solved within } k) = 1 - (1-p)^k\), so the expected number of proposals is \(1/p\). With a fallible checker, precision depends on the ratio \(f/p\). Worked numbers: a generator that is right 1% of the time with a verifier that wrongly accepts 1% of wrong answers gives precision \(0.01/(0.01 + 0.99 \times 0.01) = 0.503\): half of the "verified" answers are wrong. Cut \(f\) to 0.1% and precision is 0.910. For weak generators on hard problems, the verifier's false-accept rate must be far below the generator's success rate. This is the quantitative case for Lean over an LLM judge, and for test suites that cannot be gamed.
Build it¶
Two NumPy experiments. The first rebuilds the Othello-GPT lesson in miniature: a network that stores the board relative to the player to move, linear and nonlinear probes, the controls, and an intervention. The second simulates generate-and-verify with imperfect checkers.
import numpy as np
rng = np.random.default_rng(0)
# A toy "Othello-GPT": 16 tiles with colours c in {-1,+1}, and whose turn it is, p in {-1,+1}.
# The network stores the board RELATIVE to the player to move ("mine" = c*p), plus the turn,
# mixed into a 64-d hidden state by an unknown matrix A, with noise.
N, K, D = 6000, 16, 64
c = rng.choice([-1, 1], (N, K)) # absolute colours (black = +1)
p = rng.choice([-1, 1], (N, 1)) # +1 = black to move
A = rng.normal(size=(K + 1, D))
h = np.c_[c * p, p] @ A + 0.5 * rng.normal(size=(N, D))
def probe(X, y, ntr=4000, lam=1e-2): # ridge regression on ±1 labels = linear probe
X = np.c_[np.ones(len(X)), X]
w = np.linalg.solve(X[:ntr].T @ X[:ntr] + lam * np.eye(X.shape[1]), X[:ntr].T @ y[:ntr])
acc = lambda a, b: np.mean(np.sign(X[a:b] @ w) == y[a:b])
return acc(0, ntr), acc(ntr, None) # train, held-out accuracy
def quad(X): # pairwise products: a "nonlinear" probe
i, j = np.triu_indices(X.shape[1])
return X[:, i] * X[:, j]
absolute, relative = c[:, 0], (c * p)[:, 0]
print("linear probe, absolute colour of tile 0: train %.2f test %.2f" % probe(h, absolute))
print("linear probe, 'mine vs yours' of tile 0: train %.2f test %.2f" % probe(h, relative))
print("quadratic probe, absolute colour of tile 0: train %.2f test %.2f" % probe(quad(h), absolute))
# Controls (Hewitt & Liang): what can the probe do WITHOUT the network's help?
shuffled = rng.permutation(relative) # labels unrelated to the input
print("linear probe, shuffled labels: train %.2f test %.2f" % probe(h, shuffled))
print("quadratic probe, shuffled labels: train %.2f test %.2f" % probe(quad(h), shuffled))
h_rand = rng.normal(size=(N, D)) # an "untrained network": no board info at all
print("linear probe, untrained network: train %.2f test %.2f" % probe(h_rand, relative))
# Intervention: does the network's OWN downstream computation use that direction?
# Its readout is whatever later layers do with h; here, the least-squares inverse of A.
readout = lambda H: np.sign(H @ np.linalg.pinv(A)) # the network's own view of (mine, turn)
X1 = np.c_[np.ones(N), h]
w = np.linalg.solve(X1[:4000].T @ X1[:4000] + 1e-2*np.eye(D+1), X1[:4000].T @ relative[:4000])
b, v = w[0], w[1:]
H = h[4000:]
H_edit = H - 2 * ((H @ v + b) / (v @ v))[:, None] * v # reflect across the probe's boundary
z0, z1 = readout(H), readout(H_edit)
print(f"intervention: network's own 'tile 0 is mine' flipped in {np.mean(z0[:,0] != z1[:,0]):.0%} "
f"of boards; other tiles unchanged in {np.mean(z0[:,1:K] == z1[:,1:K]):.0%}")
Output:
linear probe, absolute colour of tile 0: train 0.56 test 0.50
linear probe, 'mine vs yours' of tile 0: train 1.00 test 1.00
quadratic probe, absolute colour of tile 0: train 1.00 test 1.00
linear probe, shuffled labels: train 0.56 test 0.48
quadratic probe, shuffled labels: train 0.85 test 0.52
linear probe, untrained network: train 0.55 test 0.51
intervention: network's own 'tile 0 is mine' flipped in 100% of boards; other tiles unchanged in 100%
The information about absolute colour is all there, yet the linear probe is at chance, exactly the XOR proof above. In the right basis a linear probe is perfect. The quadratic probe recovers absolute colour, but the control shows its cost: with 2,080 features and 4,000 examples it fits 85% of random labels in training. Only the held-out column and the control together tell you the representation, not the probe, did the work. The intervention edits the hidden state along the probe direction and checks the network's own readout, not the probe's.
import numpy as np
rng = np.random.default_rng(1)
# Generate-and-verify: a generator proposes; a verifier accepts or rejects; stop at first accept.
# p = chance a proposal is correct; f = verifier's false-accept rate on wrong proposals;
# t = true-accept rate on correct ones. Budget: k proposals per problem.
def run(p, f, t=1.0, k=200, problems=20_000):
correct = rng.random((problems, k)) < p
accept = np.where(correct, rng.random((problems, k)) < t, rng.random((problems, k)) < f)
first = np.where(accept.any(1), accept.argmax(1), -1) # index of first acceptance
answered = first >= 0
right = answered & correct[np.arange(problems), np.maximum(first, 0)]
return answered.mean(), right.sum() / max(answered.sum(), 1)
print(" p f answered precision (theory: p*t / (p*t + (1-p)*f))")
for p, f in [(0.01, 0.0), (0.01, 0.001), (0.01, 0.01), (0.01, 0.05), (0.2, 0.05)]:
ans, prec = run(p, f)
theory = p / (p + (1 - p) * f)
print(f"{p:5.2f} {f:6.3f} {ans:7.2f} {prec:8.3f} {theory:8.3f}")
# How many proposals does a perfect verifier need? P(solved within k) = 1 - (1-p)^k
for p in (0.01, 0.001):
ks = [10, 100, 1000, 10000]
print(f"p={p}: solved within k = " + ", ".join(f"{k}: {1-(1-p)**k:.2f}" for k in ks))
Output:
p f answered precision (theory: p*t / (p*t + (1-p)*f))
0.01 0.000 0.87 1.000 1.000
0.01 0.001 0.89 0.911 0.910
0.01 0.010 0.98 0.503 0.503
0.01 0.050 1.00 0.169 0.168
0.20 0.050 1.00 0.832 0.833
p=0.01: solved within k = 10: 0.10, 100: 0.63, 1000: 1.00, 10000: 1.00
p=0.001: solved within k = 10: 0.01, 100: 0.10, 1000: 0.63, 10000: 1.00
A sloppy verifier raises the share of problems "answered" (98% versus 87%) while halving how many of those answers are right. That is the trap of grading a weak generator with a lenient judge: the dashboard improves as the truth gets worse. A strong generator (\(p = 0.2\)) tolerates the same 5% false-accept rate far better, which is why LLM-as-judge is acceptable for easy tasks and dangerous for hard ones.
Things to try
- Give the toy network a nonlinear encoding,
h = np.tanh(np.c_[c*p, p] @ A), and check whether the linear probe on "mine" still works. How much noise before it fails? - Train the quadratic probe on 500 examples instead of 4,000. Watch the gap between train and test on shuffled labels grow: probe capacity relative to data is what selectivity measures.
- Build a tiny DFA (a 4×4 grid with some walls) and a "model" that only memorises the transitions seen in shortest paths. Compute compression and distinction precision by brute force over suffixes of length 3. Then retrain on random walks.
- In the generate-and-verify simulation, make \(f\) depend on how plausible a wrong answer looks (correlated false accepts). Does precision fall faster than the formula predicts?
In practice¶
- When you claim a model "knows" a variable, report three numbers: probe accuracy, a control (shuffled labels or an untrained network), and an intervention effect on the model's output.
- Test coherence with distribution shift you control: detours, reordered inputs, counterfactual edits. In-distribution accuracy says almost nothing about the internal model.
- Put an exact model next to the LLM wherever one exists. A calculator, a SQL engine, a rules engine, a simulator, a type checker. Let the model translate and decide; let the exact system compute.
- Invest in the verifier before the generator. On hard tasks, the false-accept rate of your checker bounds the quality you can claim. Unit tests, schema validation, property-based tests and formal checks are cheaper than a smarter model.
- For mathematics and critical code, consider Lean. Tools such as LeanDojo and open provers make LLM-plus-Lean workflows practical; the bottleneck is usually formalising the statement correctly.
Common misconceptions¶
\"High probe accuracy proves the model has a world model\"
It proves the information is decodable by that probe. Without controls the probe may have done the work; without an intervention the model may not use it; without coherence tests the representation may cover only the training distribution.
\"Neuro-symbolic means hand-written rules\"
In the systems that worked, the symbolic parts are mostly checkers and search procedures (a deduction engine, the Lean kernel, an interpreter), and much of the knowledge is still learned, often from synthetic data the symbolic system generated itself.
\"IMO gold in natural language proved symbols are unnecessary\"
Those models were trained with RL against verifiable rewards, so symbolic checking shaped them during training. And at deployment, a natural-language proof needs expert graders; formal proofs do not. Both routes are advancing.
Check yourself¶
Why did a linear probe for black/white plateau near 75% on OthelloGPT while a linear probe for mine/yours reached 99.6%?
The model encodes each square relative to the player about to move. Absolute colour equals "mine" times "black to move", a product of two linearly encoded ±1 features, which is an XOR and not linearly separable. The 75% is only modestly above the 61.8% a probe gets from base rates alone; presumably the rest comes from squares whose colour rarely changes, not from reading the colour in general. In the relative basis the same information is linear.
What three results should accompany any claim that a model internally represents some variable?
A probe's held-out accuracy; a control showing the probe alone cannot reach that accuracy (shuffled-label control task, untrained-network baseline, trivial prior); and an intervention that edits the representation along the probe direction and changes the model's own behaviour in the predicted way.
State the Myhill–Nerode idea in one sentence and say why it defines a world model.
Two histories are equivalent if exactly the same continuations are valid after both; the equivalence classes are the states of the minimal automaton. A world model is precisely a map from histories to these classes plus the transitions between them, so testing whether a model treats same-state histories alike (compression) and different-state histories differently (distinction) tests whether it has the world model.
A transformer gives valid Manhattan routes 99% of the time but collapses under 10% detours. A model trained on random walks does not. Explain.
Shortest-path data never visits most transitions in most contexts, so the loss never forces the model to represent them; it learns heuristics for the routes that appear. Detours put it in histories outside that support. Random walks exercise every transition from every intersection, so distinguishing states is necessary to predict well, and the learned representation becomes coherent.
A generator solves 2% of problems per attempt. Your LLM judge wrongly accepts 3% of wrong answers. What fraction of accepted answers are right? What must the false-accept rate be for 95% precision?
\(0.02/(0.02 + 0.98 \times 0.03) = 0.02/0.0494 = 0.405\). For 95%: \(0.02/(0.02 + 0.98f) = 0.95 \Rightarrow 0.98 f = 0.02/0.95 - 0.02 = 0.00105 \Rightarrow f \approx 0.0011\), about one false accept per thousand wrong answers.
AlphaGeometry2's solve rate rose from 54% to 84% partly because its language's coverage of IMO geometry rose from 66% to 88%. What general lesson about symbolic systems does that illustrate?
A symbolic system can only reason about what its formalism can express. Coverage, not search power, is often the binding constraint, and extending the formalism is skilled manual work. That is the classic brittleness of symbolic AI, still present in its most successful modern form.
Hard: a model trained on orbits predicts trajectories well but implies a different force law on each sample. Give a mechanism, and an experiment that would push it towards Newton's law.
Many functions fit trajectories locally (smooth interpolation of nearby orbits); next-step prediction on the training distribution does not single out the inverse-square law, and fine-tuning reads forces off whatever heuristic the model learned, which differs by region of input space. To push towards the law: train on interventions and counterfactuals (systems with varied masses and initial conditions that differ only in one factor), add multi-task objectives that share the law (forces, energies, orbital periods), or impose structure such as a learned pairwise interaction with symmetry, then run the inductive-bias probe again.
Hard: ARC-AGI-3 scores agents by \((\text{human actions}/\text{AI actions})^2\) per level, capped at 1. Why square the ratio, and what kind of system does this reward?
Squaring punishes inefficiency sharply: twice the human's actions scores 25%, ten times scores 1%. It rewards systems that build a model of an unfamiliar environment quickly from few interactions (exploring deliberately, forming and testing hypotheses about what actions do) rather than brute-force exploration, which could eventually finish a level. That is skill-acquisition efficiency, Chollet's definition of intelligence.
Go deeper¶
Papers
- Emergent World Representations: Exploring a Sequence Model Trained on a Synthetic Task — Li et al., 2022. Othello-GPT: probes plus interventions; the template for the field.
- Emergent Linear Representations in World Models of Self-Supervised Sequence Models — Nanda, Lee, Wattenberg, 2023. The mine/yours basis; read Table 1 and the intervention section.
- Designing and Interpreting Probes with Control Tasks — Hewitt and Liang, 2019. Selectivity: the reason every probing result needs a control.
- Language Models Represent Space and Time — Gurnee and Tegmark, 2023. Linear world coordinates and dates in Llama-2.
- Evaluating the World Model Implicit in a Generative Model — Vafa et al., 2024. Myhill–Nerode metrics and the Manhattan map; the most important corrective in this area.
- What Has a Foundation Model Found? Using Inductive Bias to Probe for World Models — Vafa, Chang, Rambachan, Mullainathan, 2025. Kepler without Newton.
- Solving olympiad geometry without human demonstrations — Trinh et al., Nature, 2024. AlphaGeometry: synthetic data from a symbolic engine trains the model that guides it.
- Olympiad-level formal mathematical reasoning with reinforcement learning — Hubert et al., Nature, 2025. AlphaProof, auto-formalisation and test-time RL.
- On the Measure of Intelligence — Chollet, 2019. Intelligence as skill-acquisition efficiency, and the design of ARC.
- LLMs Can't Plan, But Can Help Planning in LLM-Modulo Frameworks — Kambhampati et al., 2024. The sceptical but constructive case for LLMs plus verifiers.
- DreamCoder — Ellis et al., 2020. Program synthesis that learns its own library of abstractions.
- A Path Towards Autonomous Machine Intelligence — LeCun, 2022. The position paper behind JEPA world models; read the architecture overview.
Videos and lectures
- The Third AI Summer — Henry Kautz, AAAI 2020 Engelmore lecture. The neuro-symbolic taxonomy is presented from about minute 29.
Articles and blog posts
- Large Language Model: world models or surface statistics? — Kenneth Li, The Gradient, 2023. Othello-GPT explained by its first author.
- Actually, Othello-GPT Has A Linear Emergent World Representation — Neel Nanda, 2023. How the mine/yours insight was found, with research-process notes.
- ARC Prize 2025 Results and Analysis — ARC Prize, December 2025. What worked on ARC-AGI-2: refinement loops, test-time training, program synthesis.
- Gemini Deep Think achieves IMO gold-medal standard — Google DeepMind, July 2025. Compare with the 2024 AlphaProof post to see what changed in a year.
Code
- othello_world — Li et al. Train and probe Othello-GPT yourself.
- mathlib4 and Lean — the proof assistant and library behind most formal-maths AI.
- AlphaGeometry, TinyRecursiveModels, Aristotle's IMO 2025 proofs — read a verified Lean proof of an IMO problem once.
Where this leads¶
- Mechanistic interpretability — probes, features and circuits: the toolkit for finding internal world models.
- Video and world models — learned simulators, the other meaning of "world model".
- Model-based RL and planning — what an agent does once it has a model: MCTS, MuZero, Dreamer.
- AI for science — generate-and-verify applied to mathematics, algorithms and materials.
- Open problems — generalisation, reliability and whether scaling alone builds coherent world models.