Skip to main content
QUICK REVIEW

[Paper Review] Emergent Linear Representations in World Models of Self-Supervised Sequence Models

Neel Nanda, Andrew Lee|arXiv (Cornell University)|Sep 2, 2023
Neural Networks and Reservoir ComputingComputer Science3 citations
TL;DR

This paper demonstrates that OthelloGPT, a self-supervised sequence model, represents the game board state through linearly encoded relative colors—'Mine', 'Yours', and 'Empty'—rather than absolute colors. By probing these linear directions, the model's internal state can be precisely controlled using simple vector arithmetic, enabling interpretable and effective interventions that outperform prior gradient-based methods.

ABSTRACT

How do sequence models represent their decision-making process? Prior work suggests that Othello-playing neural network learned nonlinear models of the board state (Li et al., 2023). In this work, we provide evidence of a closely related linear representation of the board. In particular, we show that probing for "my colour" vs. "opponent's colour" may be a simple yet powerful way to interpret the model's internal state. This precise understanding of the internal representations allows us to control the model's behaviour with simple vector arithmetic. Linear representations enable significant interpretability progress, which we demonstrate with further exploration of how the world model is computed.

Motivation & Objective

  • To investigate how self-supervised sequence models like OthelloGPT represent internal world states, particularly whether these representations are linear.
  • To resolve apparent contradictions between prior work claiming nonlinear board state encoding and the current findings of linear representations.
  • To develop a simpler, more interpretable method for controlling model behavior through vector arithmetic on internal activations.
  • To provide mechanistic insights into how the model computes legal moves and detects empty or flipped tiles.
  • To explore the emergence of linear representations in world models and their implications for interpretability and control.

Proposed method

  • The authors reframe the board state representation not in terms of absolute colors (Black, White, Empty), but in terms of relative player perspective (Mine, Yours, Empty), which varies per timestep based on turn order.
  • They train linear probes to predict the relative color state at each token position, achieving near-perfect accuracy (e.g., 98.3% at timestep 4) on the Mine/Yours/Empty classification.
  • Vector arithmetic is applied to the model’s internal activations by projecting them onto the learned linear directions for Mine, Yours, and Empty, enabling direct manipulation of the model’s internal belief state.
  • The method is validated by editing the activations to simulate altered board states and observing that the model generates legal moves consistent with the modified belief state.
  • The authors further probe for other linear features, such as tiles being flipped at each timestep, and analyze residual stream dynamics to detect multiple circuits for move prediction.
  • They compare linear and nonlinear probing performance, showing that while nonlinear probes achieve high accuracy on absolute colors, linear probes on relative colors achieve near-superior performance.
Figure 1: The emergent world models of OthelloGPT are linearly represented. We find that the board states are encoded relative to the current player’s colour ( Mine vs. Yours ) as opposed to absolute colours ( Black vs. White ).
Figure 1: The emergent world models of OthelloGPT are linearly represented. We find that the board states are encoded relative to the current player’s colour ( Mine vs. Yours ) as opposed to absolute colours ( Black vs. White ).

Experimental results

Research questions

  • RQ1Does the internal representation of the Othello board state in OthelloGPT exhibit linear structure, and if so, in what form?
  • RQ2Can vector arithmetic on linear directions in activation space be used to causally alter the model’s internal world state and behavior?
  • RQ3Why do linear representations emerge in self-supervised world models, and how do they relate to nonlinear representations previously reported?
  • RQ4What mechanistic insights can be gained about how the model computes legal moves and detects empty or flipped tiles through linear probing?
  • RQ5Are there multiple distinct circuits in the model for predicting legal moves, and how do they relate to linear feature representations?

Key findings

  • The model encodes board states not in absolute colors (Black, White, Empty), but in relative terms—'Mine', 'Yours', and 'Empty'—based on the current player’s turn, which enables highly accurate linear probing (e.g., 98.3% accuracy at timestep 4).
  • Linear projections onto the Mine/Yours/Empty directions achieve near-perfect performance in reconstructing the internal world model, outperforming nonlinear probes on absolute color labels.
  • Simple vector arithmetic on the internal activations allows for effective and interpretable control of the model’s behavior, such as steering it to play legal moves in an edited board state.
  • The method enables causal interventions without gradient computation, offering a simpler and more transparent alternative to gradient-based editing techniques.
  • The model shows evidence of multiple circuits for move prediction, particularly in the endgame, and linear representations of tile flipping events are detectable.
  • The findings suggest that linear representations may be more fundamental than previously assumed, with residual connections enabling iterative refinement of features across layers.
Figure 2: Intervening methodology: we intervene by adding either Empty , Mine , or Yours directions into each layer of the residual stream. Red squares in each board indicate the tiles that have been intervened, teal tiles indicate new legal moves post-intervention that the model predicts.
Figure 2: Intervening methodology: we intervene by adding either Empty , Mine , or Yours directions into each layer of the residual stream. Red squares in each board indicate the tiles that have been intervened, teal tiles indicate new legal moves post-intervention that the model predicts.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.