Linear representation hypothesis

On this page 7

The linear representation hypothesis is the claim that neural networks, and large language models in particular, encode high-level concepts as directions in activation space, so that the presence or strength of a concept corresponds to how far an activation vector points along a particular direction. In Explainable AI, it is a foundational assumption of mechanistic interpretability, because it implies that concepts can be found, measured and changed with simple linear algebra rather than opaque nonlinear analysis.

The idea predates modern transformers. Word embeddings showed that the vector difference between “king” and “queen” roughly matches the difference between “man” and “woman”, and later work found similar linear structure in the residual stream of language models. Researchers treat it as an empirical hypothesis with strong but incomplete support, not as a proven law.

What the hypothesis states precisely

The hypothesis has several readings that are often conflated. In its weakest form, a concept is linearly decodable: a linear classifier trained on activations can predict it. In stronger forms, the concept is a direction that the model itself uses, so adding or removing that direction changes the model’s behavior in the expected way.

Formal treatments distinguish representations in the embedding space, where inputs are encoded, from the unembedding space, where the final layer maps activations to token probabilities. One influential formalization shows that, under a suitable causal inner product, these readings line up, which connects probing, measurement and intervention.

The table below separates the main readings and the evidence each one requires.

ReadingCore claimTypical evidence
Linear decodabilityA linear probe recovers the conceptHigh probe accuracy on held-out data
MeasurementProjection onto a direction tracks concept strengthProjection correlates with graded labels
Causal interventionAdding the direction changes behavior predictablySteering changes outputs as expected
CompositionalityConcept directions add and subtract meaningfullyAnalogy arithmetic and combined steering
Readings of the linear representation hypothesis

Why linear structure emerges in neural networks

Linear structure is plausible because most computation inside a transformer is linear or close to linear. Attention outputs and MLP outputs are added into a shared residual stream, and later layers read that stream through matrix multiplications. A feature stored as a direction is easy for every later component to read and write, which makes it a natural solution for gradient descent.

The next-token objective also encourages linearity. Because logits are computed by a dot product with the unembedding matrix, any concept that shifts token probabilities in a consistent way is most cheaply represented as a direction aligned with that shift.

A complication is superposition. Models represent far more features than they have dimensions by storing them as nearly orthogonal directions, which works when features are sparse. Superposition preserves linearity per feature but explains polysemanticity, the observation that single neurons respond to several unrelated concepts.

Methods that rely on linear representations

Many interpretability and control techniques assume the hypothesis, explicitly or implicitly. Each method uses linear directions differently, and each inherits the hypothesis as a failure mode when it does not hold.

The following table lists the main method families and how they use concept directions.

MethodHow it uses directionsTypical purpose
Probing classifierLearns a direction that separates a conceptTest whether information is present
Difference of meansSubtracts mean activations of two prompt setsFind a concept direction cheaply
Steering vectorsAdds a scaled direction during inferenceShift tone, topic or refusal behavior
Sparse autoencodersDecompose activations into many sparse directionsRecover monosemantic features
Directional ablationProjects a direction out of activationsTest whether a feature is causally necessary
TCAVUses concept activation vectors in vision modelsMeasure concept influence on predictions
Techniques built on the hypothesis

Representation engineering and many safety studies use difference-of-means directions because they are simple, robust and often outperform trained probes for steering. Sparse autoencoders scale the same idea to millions of candidate features.

Evidence and counterexamples

Support for the hypothesis is broad. Researchers have found linear directions for truthfulness, sentiment, refusal, spatial and temporal position, and the state of board games such as Othello. Removing a single refusal direction in some chat models largely disables refusals, which is strong causal evidence for at least that concept.

The hypothesis is not universally true. Some features are intrinsically multidimensional, such as days of the week and months, which several models represent on a circular manifold rather than a line. Other concepts appear linear only within a layer range, or only after nonlinear preprocessing by earlier layers.

The table summarizes typical cases and what they imply for the hypothesis.

CaseObserved structureImplication
Sentiment in language modelsSingle dominant directionSupports a strong linear reading
Refusal in chat modelsDirection that is causally necessarySupports causal linearity
Days of the weekCircular two-dimensional structureLinear subspace, not a single direction
Board state in game modelsLinear only relative to the current playerChoice of basis matters
Observed cases and their implications

Limitations and common misreadings

The most common error is treating probe accuracy as proof of use. A probe may find information that the model never reads, especially with high-capacity probes or large datasets. Causal tests such as ablation or steering are needed before claiming the model relies on a direction.

  • Direction is not uniqueness: several directions can predict the same label, and the found one may be a correlated proxy.
  • Linear does not mean global: a direction can work in one layer and fail in another.
  • Steering side effects: large steering coefficients degrade fluency and affect unrelated behaviors.
  • Dataset bias: contrast sets that differ in style or length produce directions for those artifacts instead of the concept.

In simple terms

Imagine every idea inside an AI model as an arrow pointing in some direction. One arrow might mean “happy”. Another might mean “French”. The linear representation hypothesis says that many ideas are stored this way.

If that is true, researchers can find an idea by finding its arrow. They can also push the model along that arrow to change what it says. This makes the inside of a model much easier to study. It does not work for every idea, though. Some ideas, like the days of the week, sit on a circle rather than a straight line.

A practical example

An interpretability team wants to know whether an open-weight chat model has a direction for overconfident claims. They write 400 pairs of prompts that differ only in whether the answer is hedged or stated with false certainty, then record residual stream activations at a middle layer.

The difference of the two mean activations gives a candidate direction. A linear probe along it separates held-out examples with high accuracy, which shows the concept is decodable. The team then runs causal tests: subtracting a scaled copy of the direction makes answers noticeably more hedged, while adding it makes them more assertive.

Because both measurement and intervention behave as predicted, the team adopts the direction as a monitoring signal in evaluation. They also document its limits: the effect weakens in late layers, and steering beyond a moderate coefficient harms answer quality.