Inferensys

Glossary

Linear Representation Hypothesis

The conjecture that high-level, human-interpretable concepts are encoded as specific linear directions (vectors) within the activation space of a neural network's hidden layers.
Engineer reviewing vector database search results on laptop, embeddings visualization on screen, home office coding session.
MECHANISTIC INTERPRETABILITY

What is the Linear Representation Hypothesis?

The Linear Representation Hypothesis posits that neural networks encode high-level, human-interpretable concepts as specific, linear directions within their activation vector spaces.

The Linear Representation Hypothesis is the conjecture that a neural network's internal representation space is fundamentally structured such that high-level concepts correspond to linear directions. This means a concept like 'honesty' or 'the French language' is not stored in a single neuron but is encoded as a vector in activation space, allowing the model to manipulate these concepts through simple linear algebra.

This hypothesis is a cornerstone of mechanistic interpretability because it implies that model computations can be decomposed and understood by identifying these linear feature directions. Evidence for it comes from techniques like probing classifiers, which can easily recover interpretable concepts using a linear model on a network's activations, and activation engineering, where adding a concept's steering vector directly alters the model's behavior in a predictable way.

FOUNDATIONAL CONJECTURE

Core Characteristics of the Hypothesis

The Linear Representation Hypothesis posits that neural networks encode high-level, human-interpretable concepts as specific, linear directions within their activation vector spaces. This conjecture is the bedrock of modern mechanistic interpretability, providing a tractable framework for decoding model internals.

01

Concept as a Direction

The core claim is that a concept (e.g., 'honesty', 'French text', 'Python code') is represented not by a single neuron, but by a linear direction—a vector—in the model's activation space. This means the model's internal representation of a concept can be mathematically described as a straight line. The intensity of the concept in an input is measured by the dot product between the input's activation vector and the concept's direction vector. This linearity makes concepts amenable to algebraic manipulation.

02

Linear Probing as Evidence

The primary empirical support comes from probing classifiers. A simple linear model (like logistic regression) trained on a network's internal activations can easily predict a high-level property (e.g., part-of-speech, sentiment). Key implications:

  • If a linear probe can decode a concept, the information is linearly separable in the representation space.
  • This suggests the network itself is already using a linear encoding, as a non-linear probe would be required to untangle a non-linear representation.
  • The probe's learned weights form a vector orthogonal to the decision boundary, which is interpreted as the concept direction.
03

Algebraic Vector Manipulation

A powerful consequence is that concepts can be manipulated with simple linear algebra. This is most famously demonstrated with word embeddings (e.g., Word2Vec, GloVe) where vector('King') - vector('Man') + vector('Woman') ≈ vector('Queen'). In transformer models, this extends to activation engineering:

  • A steering vector for a concept (e.g., 'refusal') can be derived.
  • Adding or subtracting this vector from the model's residual stream during a forward pass directly modulates the model's behavior.
  • This allows for controlled generation without any prompt engineering, providing causal evidence for the hypothesis.
04

Relationship to Superposition

The Linear Representation Hypothesis is in direct tension with the phenomenon of superposition. Superposition posits that models compress more features than they have dimensions, leading to polysemantic neurons that fire for multiple unrelated concepts. The resolution is that concepts are still linear directions, but these directions are not axis-aligned (i.e., not a single neuron). Instead, they are sparse, almost-orthogonal vectors in a high-dimensional space. Sparse autoencoders are a key tool used to disentangle these superimposed features into a set of monosemantic, linear directions.

05

Causal Validation via Patching

Correlation from probing is not causation. The hypothesis is causally validated using activation patching and direct logit attribution. These techniques confirm that the linear direction is not just readable, but functionally used by the model:

  • Activation Patching: Replacing an activation along a hypothesized concept direction with a counterfactual value changes the model's output in a predictable way.
  • Direct Logit Attribution: The final model output (logits) can be linearly decomposed into the sum of individual component contributions, showing that the model's computation is fundamentally additive and linear in the residual stream.
06

The Residual Stream as a Communication Channel

The hypothesis is architecturally grounded in the residual stream of transformers. Each layer reads from and writes its output back to this shared, accumulating state vector. This design naturally encourages a linear representation scheme:

  • Each attention head and MLP layer adds its output vector to the stream.
  • The final representation is a linear sum of all component outputs.
  • This additive structure makes it optimal for components to communicate by writing information into specific, independent linear directions, allowing later layers to read them without destructive interference.
LINEAR REPRESENTATION HYPOTHESIS

Frequently Asked Questions

Explore the core questions surrounding the conjecture that neural networks encode high-level concepts as linear directions in their activation space, a foundational idea in mechanistic interpretability.

The Linear Representation Hypothesis is the conjecture that high-level, human-interpretable concepts are encoded as linear directions in the representation space of a neural network's activation vectors. This means a concept like 'honesty,' 'the French language,' or 'a positive sentiment' is not stored in a single neuron but rather as a specific, straight-line direction in the high-dimensional vector space of a layer's residual stream. The presence or intensity of that concept in the input can be measured by projecting the model's activation vector onto that concept's direction. This hypothesis is a cornerstone of mechanistic interpretability because it suggests we can understand and manipulate a model's internal world model using simple linear algebra, moving beyond the limitations of analyzing individual, polysemantic neurons.

Prasad Kumkar

About the author

Prasad Kumkar

CEO & MD, Inference Systems

Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.

His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.