From States to Dynamics: Detecting Rule Violations in OthelloGPT

David L. Cao, Sai Sumedh R. Hindupur, Demba BaarXiv 2026

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:

  1. 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.
  2. 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.
  3. 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."
Figure 3: Step-length metric detects rule violations in residual stream activations. (a) Example Othello game centered at t0 = 20, where an R2 violation occurs; the metric correctly classifies 4/5 moves in the displayed window. (b) The detection metric computed from residual stream activations peaks at the illegal move t0. (c) AUROC for detecting {illegal, R1, R2, R3} against {legal} exceeds the random baseline of 0.50 for all violation classes. (d) Despite this separation, the metric distributions show substantial overlap between legal moves and illegal moves, including each rule-violation class.
  • 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.
Figure 2: Rule violations can be distinguished using linear probes. (a) 2D Multidimensional Scaling (MDS) visualization of linear probe directions (ring is linear probe direction, point is re-fitted probe per square) of the five classes (legal, illegal, R1, R2, and R3) (b) Cosine similarity matrix between the five probe directions. Illegal moves are anti-correlated with legal moves, and illegal classes are also anti-correlated with each other. (c) AUROC of linear probes for distinguishing each class. Performance is highest for distinguishing legal from illegal moves and lowest for distinguishing legal from R1 violations.

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

Abstract

Sequence models trained on game moves have been shown to encode world models, with structured linear probes revealing the underlying game states. World models, however, are inherently dynamic: in deterministic board games, a set of rules constrain how states evolve over time. We therefore ask if and how OthelloGPT, a transformer trained only on Othello move sequences, manifests the rules of the game in its activation space. We divide the rules of Othello, and symmetrically their violations, into three classes: placing a disc on an empty square (R1), flanking an opponent's disc (R2), and moving in turn (R3). We find that linear probes accurately separate legal from illegal moves, and also distinguish between the three kinds of rule violations. We introduce an unsupervised rule-violation detector based on the step length of activations between consecutive moves, which identifies illegal moves above chance. We further improve our detection metric by computing step length in the latent space of select sparse autoencoders. Together, we find that OthelloGPT follows game rules of Othello to a large extent, and that we can detect rule violations using structured detectors on model activations.
BibTeX
@misc{cao2026from,
  author = {David L. Cao and Sai Sumedh R. Hindupur and Demba Ba},
  title = {{From States to Dynamics: Detecting Rule Violations in OthelloGPT}},
  year = {2026},
  eprint = {2611.29715},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.29715},
}
Figure