Imagine you’ve spent months learning to play Othello just by watching thousands of games. You never read a rulebook; you just observed which moves were made and when. Eventually, you get so good that you can predict the next move almost perfectly. But do you actually understand the rules, or are you just a world-class mimic?
This is the question at the heart of OthelloGPT, a transformer model that predicts the next move in Othello sequences. Previous research showed that this model builds an internal "map" of the board. This new paper, "From States to Dynamics," goes a step further. It asks: Does the model understand the physics of the game—the rules that govern how one board state transitions to the next? And if we force the model to look at an illegal move, does its internal "brain" react as if something is wrong?
TL;DR
Researchers found that OthelloGPT doesn't just track where pieces are; it encodes the rules of the game within its internal activations. By measuring the "distance" the model’s internal state travels between moves, they developed an unsupervised "smoke detector" that can spot rule violations without being told what the rules are.
What Problem Does This Paper Address?
In the world of AI interpretability, we often talk about "world models"—the idea that a neural network creates a structured internal representation of the data it's processing. For OthelloGPT, we know it knows the state (the board layout).
However, a true world model must be dynamic. It needs to understand the constraints: you can't place a piece on a square that's already full, and you must "flank" an opponent's piece to capture it. The authors wanted to see if these rules are "baked into" the model's geometry. If a model truly understands the game's dynamics, an illegal move should look fundamentally different to its internal sensors than a legal one.
Methods
The authors categorized Othello rules into three buckets:
- R1 (Empty-Only): You must play on an empty square.
- R2 (Flanking): You must trap opponent discs between your own.
- R3 (Turn): You must wait for your turn.
They used two primary lenses to look into the model:
- Supervised Linear Probes: They trained simple classifiers to see if "legality" is a property that can be easily read out from the model's hidden layers.
- Unsupervised Step-Length Detection: This is the clever bit. They measured the step length—the Euclidean distance between the model's internal activations at move $t$ and move $t-1$. The hypothesis was that an illegal move would cause a "jolt" or a larger-than-normal shift in the model's internal state.
- Sparse Autoencoders (SAEs): They used SAEs to decompose the model's messy activations into cleaner, more "interpretable" features to see if this improved their ability to detect rule-breaking.
Datasets
- Training: 20 million synthetic Othello games consisting of uniform-random legal play.
- Evaluation: A corpus of 1,000 held-out games.
- Counterfactual "Spliced" Games: To test their detectors, they took legal games and "spliced" in a single illegal move at a specific point to see if the model's activations would "spike."
Key Insights and Ideas
- The Geometry of Law and Order: Legality isn't just a vague concept; it's a direction in space. The researchers found that "legal" and "illegal" moves are almost perfectly opposite in the model's activation space (with a cosine similarity of -0.83).
- The "Jolt" of a Violation: When the model processes an illegal move, its internal state undergoes a measurable shift. As shown in Figure 3, the "step length" of activations peaks exactly when a rule is violated. It’s as if the model’s internal world model is saying, "Wait, that shouldn't happen."
- Rule Specialization: Different types of rule violations (R1, R2, R3) occupy distinct regions in the model's "mind." Using a technique called Multidimensional Scaling (MDS), the authors visualized how the model separates these different ways of cheating, as seen in Figure 2.
Key Results
- OthelloGPT is a Law-Abiding Citizen: Left to its own devices, the model rarely cheats. The probability of it generating an illegal move stays below ~7% even late in the game.
- High-Accuracy Probing: Linear probes could distinguish legal from illegal moves with an AUROC of 0.963. This means the information about whether a move is "allowed" is right there on the surface of the model's activations.
- Unsupervised Success: Even without training a specific "illegal move detector," the simple step-length metric achieved an AUROC of 0.68 for detecting violations.
- SAE Enhancement: By looking at the activations through a Gated Sparse Autoencoder, they boosted the unsupervised detection performance to an AUROC of ~0.75.
Limitations and Future Work
The authors are careful to note that while they can detect rule violations, they haven't yet proven a causal link. Does the model's internal representation cause it to play legally, or is it just a reflection of the statistics it learned?
Additionally, while the step-length metric is better than chance, there is still significant overlap between the "legal" and "illegal" distributions (see Figure 3d). A "perfect" unsupervised detector remains elusive. Future work could involve "editing" the model's activations—essentially whispering to the model that a move is legal when it isn't—to see if that forces the model to accept the violation.
Summary updated