MATH · IN · MODELS
structures / Hypotheses / Linear Representation Hypothesis

Linear Representation Hypothesis

CLAIMhypothesisintermediatehow it's classified →

Human-interpretable features are encoded as linear directions in activation space; linear operations over them (addition, reflection, sign flip) are semantically meaningful.

Replicationcomputed from the corpus — never hand-assigned
2 papers · no shared authors1 architecture class1 domain2 model families · one study
Filled = two or more values reported by papers that share no author — replication. Outlined = two or more values, but all from a single study — breadth, not replication. Grey = a single value. Derived from paper authorship and each model's architecture class, domain and family; it updates itself when a paper is added.

Statement

For each human-interpretable feature ff, there exists a unit vector rfRdr_f\in\mathbb{R}^d, rf=1\|r_f\|=1, such that the projection rfxr_f\cdot x monotonically reflects the “value” of ff in the context generating activation xx (see Linear Direction).

Strong (operational) form: if f1,f2f_1,f_2 are independent features with directions r1,r2r_1,r_2, a system can “edit” the value of f1f_1 without changing f2f_2 via a linear intervention in activation space, and semantic operations correspond to linear operations — antonymy to reflection through a hyperplane perpendicular to rfr_f, negation to a sign flip of the projection.

Intuition

The claim is not that the underlying computation is linear — it plainly is not, for any sufficiently expressive non-linear system. The claim is that the geometry of the representation space itself is linearly organized: concepts occupy directions, and combining concepts corresponds to adding vectors, even though the process that produced those vectors was highly non-linear.

Properties

  • A geometric claim, decoupled from the computation that produces it. LRH concerns the structure of the set of representations, not the function mapping inputs to representations.
  • Implies linear separability, but is strictly stronger. If rfr_f exists as stated, then any two classes differing in the value of ff are linearly separable by a hyperplane orthogonal to rfr_f (see Linear Separability) — but separability alone (existence of some hyperplane) does not imply the stronger operational claim that the same rfr_f continues to track graded feature value, or that arithmetic over rfr_f is meaningful.
  • Predicts a specific parallelogram structure for analogies. If “gender” is a direction rgr_g and “royalty” a direction rrr_r, with man,woman,king,queen\text{man},\text{woman},\text{king},\text{queen} positioned as man+rgwoman\text{man}+r_g\approx\text{woman} and man+rrking\text{man}+r_r\approx\text{king}, the strong form predicts kingman+womanqueen\text{king}-\text{man}+\text{woman}\approx\text{queen} — a parallelogram in activation space, testable independently of whichever specific words are chosen.
  • In tension with superposition. If a dd-dimensional space must encode d\gg d features, the pigeonhole principle rules out d\gg d mutually orthogonal directions, forcing either shared (non-orthogonal, interfering) directions per feature or a breakdown of the “one clean direction per feature” picture — LRH’s strong form is easiest to maintain exactly for features that are comparatively rare or highly salient relative to the ambient dimension.
  • Linearity can be an artifact of the experimenter’s choice of target labelling, not just the network’s computation. Whether a feature “is” linear or non-linear can depend on which semantically-equivalent relabelling of the classification target a researcher happens to probe for — Nanda, Lee & Wattenberg (2023) show OthelloGPT’s board state, previously reported as non-linearly encoded when probed as absolute colour (BLACK/WHITE/EMPTY), becomes near-perfectly linearly decodable once relabelled relative to the current player (MINE/YOURS/EMPTY) — the same underlying computation, a different human-chosen frame. A negative linearity result should therefore be treated as evidence about the probed labelling, not necessarily about the network, until alternative natural framings have been ruled out.
  • Underdetermined without a causal test. A direction extracted by fitting a classifier to correlate with a feature is a candidate rfr_f; confirming it satisfies the operational form of LRH (edits along rfr_f change only ff, predictably) requires an intervention, not just a fit — see Linear Direction‘s independence discussion.

Exercises

Base

  1. If man+rg=woman\text{man} + r_g = \text{woman} and king+rg=queen\text{king}+r_g=\text{queen} exactly (same rgr_g for both pairs), express queenking\text{queen}-\text{king} in terms of womanman\text{woman}-\text{man}.
Solution

From the two equations, rg=womanmanr_g = \text{woman}-\text{man} and also rg=queenkingr_g=\text{queen}-\text{king}. So queenking=womanman\text{queen}-\text{king} = \text{woman}-\text{man}, i.e. the two “gender gaps” are equal as vectors — this is exactly the parallelogram condition.

  1. Using the same exact relations, derive kingman+woman=queen\text{king}-\text{man}+\text{woman}=\text{queen}.
Solution

From Exercise 1, queen=king+rg=king+(womanman)=kingman+woman\text{queen}=\text{king}+r_g = \text{king}+(\text{woman}-\text{man}) = \text{king}-\text{man}+\text{woman}.

Middle

  1. Suppose r1,r2r_1,r_2 are two feature directions with r1r2=0.3r_1\cdot r_2 = 0.3 (not orthogonal). An intervention adds αr1\alpha r_1 to xx. By how much does the projection r2xr_2\cdot x change, and what does this imply about “editing f1f_1 without changing f2f_2” when the directions are not orthogonal?
Solution

r2(x+αr1)=r2x+α(r2r1)=r2x+0.3αr_2\cdot(x+\alpha r_1) = r_2\cdot x + \alpha(r_2\cdot r_1) = r_2\cdot x + 0.3\alpha — a change proportional to α\alpha, nonzero whenever α0\alpha\neq0. This shows that the strong (operational) form of LRH’s “edit one without affecting the other” specifically requires orthogonal directions (or, even then, only guarantees it under the further assumption that each feature’s readout is exactly the linear projection, per Linear Direction Exercise 5) — non-orthogonal directions necessarily entangle any additive intervention.

  1. Superposition forces NdN \gg d features into dd dimensions. Using a bound on the maximum number of pairwise-near-orthogonal unit vectors in Rd\mathbb{R}^d (that a set of unit vectors with pairwise dot product ϵ\leq \epsilon in absolute value has size at most exponential in dd, for fixed small ϵ>0\epsilon>0, by a packing/Johnson–Lindenstrauss-type argument), explain qualitatively why LRH’s strong form (fully orthogonal, non-interfering directions per feature) becomes easier, not harder, to maintain as ϵ\epsilon tolerance is relaxed from “exactly 00” to “small but nonzero.”
Solution

Exactly NN mutually exactly orthogonal unit vectors can exist only if NdN\leq d — an absolute, hard cap. But the number of unit vectors with pairwise dot product bounded by a small ϵ>0\epsilon>0 in absolute value (near-orthogonal, not exactly orthogonal) can be exponentially large in dd (a classical fact used in compressed sensing / Johnson-Lindenstrauss-type constructions) — so relaxing “independence” from exact orthogonality to approximate (near-)orthogonality with small tolerable interference ϵ\epsilon dramatically increases how many features can be packed in, at the cost of small, bounded cross-talk between features (exactly the 0.30.3-type leakage from Exercise 3, but with a much smaller coefficient). This is why real systems facing superposition are better modeled as using near-orthogonal, slightly-interfering directions for many more features than dd, rather than either “exactly dd clean orthogonal features” or “no linear structure at all.”

Pro

  1. Formalize ”f1,f2f_1,f_2 can be independently edited” as a property of a pair of directions and a linear intervention model, and prove that mutual orthogonality of {r1,,rN}\{r_1,\ldots,r_N\} is sufficient for pairwise independent editability of all NN features simultaneously (not just two at a time).
Solution

Formalize: directions r1,,rNr_1,\ldots,r_N allow independent editing if, for every ii and every α\alpha, the intervention xx+αrix\mapsto x+\alpha r_i leaves rjxr_j\cdot x unchanged for all jij\neq i. Claim: pairwise orthogonality (rirj=0r_i\cdot r_j=0 for all iji\neq j) suffices. Proof: rj(x+αri)=rjx+α(rjri)=rjx+α0=rjxr_j\cdot(x+\alpha r_i) = r_j\cdot x + \alpha(r_j\cdot r_i) = r_j\cdot x + \alpha\cdot0 = r_j\cdot x for every jij\neq i, using pairwise orthogonality of ri,rjr_i,r_j. Since i,ji,j were arbitrary (with iji\neq j), this holds for every pair simultaneously — no assumption beyond pairwise orthogonality (not, e.g., some stronger joint condition) is needed, because each check only ever involves one pair (ri,rj)(r_i,r_j) at a time.

  1. Given the packing bound referenced in Exercise 4 (exponentially many near-orthogonal directions exist in Rd\mathbb{R}^d for a fixed small tolerance ϵ\epsilon), derive an approximate bound on the total cross-talk a single feature fif_i experiences from all other N1N-1 features simultaneously intervened upon with independent random signs/magnitudes αj\alpha_j, assuming each pairwise dot product is bounded by ϵ\epsilon in absolute value and the αj\alpha_j are independent, mean-zero, unit-variance.
Solution

The readout perturbation on feature ii from simultaneous interventions jiαjrj\sum_{j\neq i}\alpha_j r_j is rijiαjrj=jiαj(rirj)r_i\cdot\sum_{j\neq i}\alpha_j r_j = \sum_{j\neq i}\alpha_j (r_i\cdot r_j). This is a sum of N1N-1 independent, mean-zero terms, each with variance ϵ2\leq \epsilon^2 (since rirjϵ|r_i\cdot r_j|\leq\epsilon and Var(αj)=1\text{Var}(\alpha_j)=1). By independence, the variance of the sum is the sum of variances: Var(jiαj(rirj))=ji(rirj)2(N1)ϵ2\text{Var}\Big(\sum_{j\neq i}\alpha_j(r_i\cdot r_j)\Big) = \sum_{j\neq i}(r_i\cdot r_j)^2 \leq (N-1)\epsilon^2. So the standard deviation of the total cross-talk on feature ii scales as O(Nϵ)O(\sqrt{N}\,\epsilon) — meaning that even with a fixed small per-pair tolerance ϵ\epsilon, cross-talk accumulates with N\sqrt{N} as more features are packed in simultaneously, so the tolerable per-pair ϵ\epsilon must itself shrink (roughly as 1/N1/\sqrt{N}) to keep total cross-talk bounded as the number of packed features grows — a quantitative version of the tension between LRH’s clean-direction picture and superposition at large NN.

Key papers

  • Nanda, Lee & Wattenberg (2023). Emergent Linear Representations in World Models of Self-Supervised Sequence Models. arXiv:2309.00941 — a landmark case study for Property 5 above: a board-game world model (OthelloGPT) previously reported as non-linearly encoded turns out to be near-perfectly linear once probed in the model’s own relative (MINE/YOURS) frame rather than the human-preconceived absolute (BLACK/WHITE) one, and the resulting linear directions are causally validated via simple multi-layer vector addition — see othello-relative-frame-direction.
  • Elhage, Hume, Olsson et al. (2022). Toy Models of Superposition. — origin of the superposition hypothesis this page’s Property 4 and Exercises 4-6 build on.
  • Garg, Kleinberg & Peng (2026). How Many Features Can a Language Model Store Under the Linear Representation Hypothesis? arXiv:2602.11246 — formalizes LRH as two separable claims, linear representation (f()=Azf(\ell)=Az) and linear accessibility (features read out by a linear probe bib_i, not merely some function), and proves these are genuinely different in capacity: d=Oϵ(k2logm)d=O_\epsilon(k^2\log m) neurons suffice to both linearly represent and linearly recover any kk-sparse set of mm features (exponential superposition, confirming Elhage et al.’s hypothesis within a formal framework), but d=Ωϵ(k2logklogmk)d = \Omega_\epsilon(\frac{k^2}{\log k}\log\frac{m}{k}) is necessary once recovery is restricted to be linear — a provably larger requirement than the O(klog(m/k))O(k\log(m/k)) that classical (non-linear-decoder) compressed sensing needs for the same task, using compressed-sensing-capacity- bounds. The paper also shows this “clean, mutually orthogonal direction per feature” picture (Property/Exercise 4-6 above) is not forced by the capacity bound alone: a feature’s representation direction and its own probe direction can be nearly orthogonal to each other, while many different features’ representation directions (or probe directions) can be highly mutually correlated, all while still achieving accurate linear recovery — the orthogonal-per-feature picture is recovered only once representation and probe vectors are additionally constrained to unit norm. Finally, adding a bias and a monotonic non-linear activation to the probe does not asymptotically raise the bound, so a single non-linear readout layer is no more capacity-efficient than a purely linear one.
  • Kniazev & Fijalkow (2026). Transformers Linearly Represent Highly Structured World Models. arXiv:2605.18847 — trains an 8-layer transformer on Sudoku solving traces and finds that its linear world model is organized around the puzzle’s constraint algebra (rows/columns/boxes) rather than the surface grid cells a human would naturally decompose the board into: 243 binary probes for “is digit dd present in substructure SS” reach perfect exact-match accuracy in mid-layers, while 81 per-cell digit-identity probes plateau at 80% top-1 accuracy — see Constraint-Algebra Basis Hypothesis, a new hypothesis this paper motivates about which unit a linear world model’s basis tracks when a task’s surface decomposition and its algebraic constraint structure genuinely diverge.
  • Li, Michaud, Baek, Engels, Sun & Tegmark (2024). The Geometry of Concepts: Sparse Autoencoder Feature Structure. Entropy 27(4):344, arXiv:2410.19750 — directly elaborates Property 3’s parallelogram prediction: raw SAE/activation quadruplets for a genuine semantic relation often fail to form clean parallelograms because a high-variance distractor direction (e.g. word length) dominates the difference vectors; projecting it out via Linear Discriminant Analysis (LDA) recovers the structure, and generalizes the parallelogram itself to a trapezoid — one shared function-vector direction without requiring an identical displacement magnitude across instances.
  • Walker, Humayun, Balestriero & Baraniuk (2026). The Linear Centroids Hypothesis: Features as Directions Learned by Local Experts. arXiv:2604.11962 — proposes a rival account, Linear Centroids Hypothesis: features are linear directions not in raw activation space but in the space of centroids (Jacobian row-sums summarizing a sub-component’s actual local input-output map). Proves linear separability in activation space is necessary but not sufficient for a genuine feature (a ReLU-collapse counterexample can make two sets linearly separable as a pure artifact of piecewise-affine folding), and finds centroid-based SAE dictionaries, mass-mean probes and PCA directions transfer more reliably across real ResNet50/DTD, DINOv2/DINOv3, GPT2-Large and Llama-3.1-8B than the same tools applied to raw activations — see walker-etal-2026-jacobian-centroid-features-separate-and-transfer-more-reliably-than-raw-activation-features-across-real-resnet50-dinov2-dinov3-gpt2-large-and-llama-3.1-8b.

Found in (2 observations · 2 families)

Llama

The Linear Representation Hypothesis and the Geometry of Large Language Models (2023)measured

Linear encoding of features with liar counterexamples

Details

Features are encoded as linear directions in activation space, and the model performs linear operations over them (e.g. antonym = reflection, negation = negation). The authors also identify "liar" counterexamples where a linear probe disagrees with the model's actual behavior, and show the geometry of activation space is isomorphic to the logical structure of the underlying concepts.

models: Llama-2-7B · method: Difference-in-means direction, Linear probing, Activation Steering (Addition), Geometric analysis

Gemma

The Linear Representation Hypothesis and the Geometry of Large Language Models (2023)measured

Linear encoding of features with liar counterexamples

Details

Features are encoded as linear directions in activation space, and the model performs linear operations over them (e.g. antonym = reflection, negation = negation). The authors also identify "liar" counterexamples where a linear probe disagrees with the model's actual behavior, and show the geometry of activation space is isomorphic to the logical structure of the underlying concepts.

models: Gemma-2B · method: Difference-in-means direction, Linear probing, Activation Steering (Addition), Geometric analysis