Toy Models of Superposition: A Comprehensive Report
Original Paper: Toy Models of Superposition
Authors: Nelson Elhage, Tristan Hume, Catherine Olsson, Nicholas Schiefer, Tom Henighan, Shauna Kravec, Zac Hatfield-Dodds, Robert Lasenby, Dawn Drain, Carol Chen, Roger Grosse, Sam McCandlish, Jared Kaplan, Dario Amodei, Martin Wattenberg, Christopher Olah
Affiliation: Anthropic
Published: September 14, 2022
Table of Contents
- Introduction and Motivation
- The Linear Representation Hypothesis
- What Are Features?
- The Superposition Hypothesis
- Experimental Setup: The Toy Model
- Demonstrating Superposition
- Mathematical Analysis of Superposition
- Superposition as a Phase Change
- The Geometry of Superposition
- Non-Uniform Superposition and Feature Correlations
- Learning Dynamics
- Adversarial Robustness
- Superposition in a Privileged Basis
- Computation in Superposition
- The Strategic Picture
- Open Questions and Discussion
1. Introduction and Motivation
Neural networks represent information in ways that remain deeply mysterious. When researchers observe that “word embeddings have a gender direction” or “vision models have curve detector neurons,” they implicitly claim something profound about the internal geometry of neural network representations. This paper provides the first systematic investigation of superposition — the phenomenon whereby neural networks represent more features than they have dimensions — using controlled toy models.
The central question is: How do neural networks organize their internal representations when the number of meaningful features in the data exceeds the dimensionality of the model’s internal representations?
Figure 1: Overview of superposition — neural networks representing more features than dimensions by exploiting the geometry of high-dimensional spaces.
2. The Linear Representation Hypothesis
The paper formalizes a core assumption underlying much of interpretability research through two key properties:
Decomposability: Network representations can be described in terms of independently understandable features. This is the property that defeats the curse of dimensionality — it allows us to reason about a model without fitting the entire thing in our heads.
Linearity: Features are represented as directions in activation space. Each feature has a corresponding representation direction . The simultaneous presence of multiple features activating with values is represented by the linear combination:
This hypothesis is supported by empirical evidence across domains:
- Word embedding arithmetic (e.g., )
- Interpretable directions in GAN latent spaces
- Interpretable neurons in CNNs and RNNs
- Universality of features across independently trained networks
- Polysemantic neurons that respond to seemingly unrelated input mixtures
Three benefits explain why neural networks might form linear representations:
- They are natural outputs of pattern-matching algorithms
- They make features linearly accessible to subsequent layers via a single linear transformation
- They enable non-local generalization, increasing statistical efficiency
Privileged vs. Non-Privileged Basis
An important distinction: some representations have a privileged basis (created by element-wise activation functions like ReLU), making basis directions (“neurons”) special. Others (like word embeddings without nonlinearities) have no privileged basis — any rotation gives an equivalent model. A privileged basis is necessary (but not sufficient) for “is this neuron interpretable?” to be a meaningful question.
Hierarchy of Feature Properties
The paper establishes a hierarchy from weakest to strongest:
| Level | Property | Description |
|---|---|---|
| 1 | Decomposability | Activations decompose into independent features |
| 2 | Linearity | Features correspond to directions |
| 3 | Non-superposition | is invertible; no more features than dimensions |
| 4 | Basis-aligned | All are one-hot basis vectors (features = neurons) |
Properties 1–2 are hypothesized to be widespread; 3–4 only sometimes occur.
3. What Are Features?
Three candidate definitions are considered:
- Features as arbitrary functions of the input — too broad to be useful
- Features as interpretable properties — excludes features we might not understand (e.g., protein folding structures)
- Neurons in sufficiently large models — the working definition adopted
Working Definition: A feature is a property of the input that a sufficiently large neural network would reliably dedicate a neuron to representing.
This definition sidesteps philosophical debates while remaining practically useful: it leverages the empirical observation that larger models tend to develop more monosemantic neurons.
4. The Superposition Hypothesis
The core claim: Neural networks “want to represent more features than they have neurons,” so they exploit high-dimensional geometry to simulate a larger model.
Two mathematical facts enable this:
Johnson-Lindenstrauss Lemma: In -dimensional space, one can find vectors with pairwise cosine similarity less than . This means exponentially many features can be “almost orthogonal.”
Compressed Sensing: A sparse vector projected into lower dimensions can often be recovered, provided the vector is sufficiently sparse.
In superposition, features are represented as almost-orthogonal directions. Since they are only almost orthogonal, one feature activating causes other features to appear slightly activated — this “interference” or “noise” comes at a cost. But for sparse features, this cost is outweighed by the benefit of representing more features. Sparsity is the key enabler: sparse features rarely co-activate, reducing the probability of interference.
Figure 2: The superposition hypothesis — features are represented as nearly-orthogonal directions, with interference as the cost of packing more features than dimensions.
5. Experimental Setup: The Toy Model
The paper constructs a minimal model to study superposition in a controlled setting.
Data Generation
Synthetic feature vectors with:
- Sparsity: with probability ; otherwise
- More features than neurons:
- Varying importance: Feature importances (e.g., )
Model Architectures
Two models are compared:
Linear Model:
ReLU Output Model:
where projects -dimensional features into -dimensional hidden space (), with tied weights for encoding and decoding.
Loss Function
Importance-weighted mean squared reconstruction error:
Visualization
Results are visualized via (features × features matrix). Two quantities are tracked per feature:
- — whether the feature is represented at all
- — how much a feature shares its dimension with others
Figure 3: The toy model setup showing how features are encoded into a lower-dimensional space and the visualization approach for .
6. Demonstrating Superposition
Key Results
Figure 4: Basic results comparing linear and ReLU output models across sparsity levels.
Linear Model: Always learns the top- most important features (analogous to PCA), regardless of sparsity. It never exhibits superposition.
ReLU Output Model: Behaves like the linear model on dense features, but as sparsity increases:
- Superposition emerges: The model represents more features by making them non-orthogonal
- Superposition starts with less important features and gradually affects more important ones
- Initial superposition takes the form of antipodal pairs ()
Figure 5: The ReLU output model transitions from a PCA-like solution (dense features) to superposition (sparse features).
Figure 6: Detailed visualization of superposition emergence across varying sparsity levels.
7. Mathematical Analysis of Superposition
Loss Decomposition
The loss decomposes over sparsity patterns:
As (high sparsity), the terms and dominate:
- (zero input): Simply penalizes positive biases:
- (one-sparse input): Reveals two competing forces:
- Feature benefit: Representing more features reduces loss
- Interference: Non-orthogonal features create cross-talk
The Thomson Problem Connection
Under simplifying assumptions (uniform importance, , ), the interference minimization becomes a generalized Thomson problem — packing points on the surface of a hypersphere with an unusual energy function.
Crucially, the ReLU activation makes negative interference “free” in the 1-sparse case since clips negative outputs to zero. This explains the strong preference for antipodal pairs (where interference is purely negative).
Two Competing Forces
For each feature, the model faces a tradeoff:
The linear model always finds it optimal to represent only features orthogonally. The ReLU model can exploit negative interference to represent more, since when interference is smaller than the signal.
Figure 7: Mathematical analysis showing the feature benefit vs. interference tradeoff.
Figure 8: Visualization of interference patterns between features in superposition.
8. Superposition as a Phase Change
Two Features, One Dimension
To isolate the phase change, the authors study features in dimension. Three natural configurations:
| Configuration | Weight | Description |
|---|---|---|
| Ignore extra feature | Only learn the primary feature | |
| Ignore primary feature | Dedicate dimension to extra feature | |
| Superposition | Antipodal pair, both features stored |
Closed-form loss expressions for each configuration reveal a first-order phase transition: the optimal weight configuration changes discontinuously as a function of sparsity and relative importance.
Figure 9: Phase diagram showing how the optimal configuration changes as a function of sparsity and relative feature importance.
Key Findings
- Sparsity is necessary for superposition
- Sparsity interacts with importance — higher sparsity and lower relative importance favor superposition
- The transition is first-order (discontinuous jump in the optimal solution)
- The same analysis extends to 3 features in 2 dimensions with richer phase structure
Figure 10: Extended phase analysis showing transitions between different superposition configurations.
9. The Geometry of Superposition
Dimensions Per Feature
With features, hidden dimensions, and uniform importance, the authors define:
where approximates the number of represented features.
Feature Dimensionality
For individual features:
The numerator measures how much a feature is represented; the denominator measures how many features share its dimension. Feature dimensionalities sum to the number of hidden dimensions.
Sticky Fractional Dimensionalities
Figure 11: Feature dimensionality as a function of sparsity, showing “sticky” values at specific fractions.
The curve is remarkably “sticky” at specific fractions, each corresponding to a geometric polytope:
| Dimensionality | Polytope | Description |
|---|---|---|
| 1 | Point | Dedicated dimension |
| 3/4 | Tetrahedron | 4 features in 3 dimensions |
| 2/3 | Triangle | 3 features in 2 dimensions |
| 1/2 | Antipodal pair | 2 features sharing 1 dimension |
| 2/5 | Pentagon | 5 features in 2 dimensions |
| 3/8 | Square antiprism | 8 features in 3 dimensions |
| 0 | Not learned | Feature is ignored |
This is analogous to phases of matter: just as water has multiple ice crystal structures (hexagonal, cubic, etc.), superposition has sub-phases corresponding to different geometric arrangements.
Figure 12: Illustration of the polytope structures that emerge in superposition.
Figure 13: Different geometric arrangements of features in superposition.
Tegum Products
Many Thomson solutions are tegum products — polytopes constructed by embedding two polytopes in orthogonal subspaces. Tegum factors ensure zero interference across groups, which the model prefers because simultaneous interference from multiple features is especially costly.
This explains why 3D Thomson solutions appear in higher-dimensional problems: higher-dimensional solutions are often tegum products of lower-dimensional ones.
Figure 14: Illustration of tegum product structures used in higher-dimensional superposition.
Polytope-Matrix Correspondence
There is an exact correspondence between polytopes and symmetric, positive-definite, low-rank matrices :
- A rank- matrix where corresponds to points in -dimensional space
- Off-diagonal entries are governed by the geometry of these points
- Every superposition strategy corresponds to a polytope, and vice versa
Figure 15: The correspondence between the matrix structure and geometric polytopes.
10. Non-Uniform Superposition and Feature Correlations
Deformation Under Non-Uniformity
When features differ in importance or sparsity, the uniform geometry deforms:
- With 5 features in 2 dimensions forming a pentagon: making one feature sparser causes others to “repel” from it; making it denser causes others to give it more space
- Sufficiently large changes cause a phase transition — the pentagon collapses to a different structure
Figure 16: How non-uniform feature properties deform the geometric arrangement.
Correlated Features
The behavior depends critically on feature correlations:
Correlated features (tend to co-occur) exhibit a preference hierarchy:
- Orthogonal — in separate tegum factors with no interaction (preferred)
- Side-by-side — positive interference preferred over negative
- Collapse into PCA — merge into their principal component when space is insufficient
This reveals a fundamental tradeoff: as features become more correlated, PCA becomes better; as features become sparser, superposition becomes better.
Anti-correlated features (mutually exclusive) prefer to share tegum factors with negative interference, ideally in antipodal arrangements.
Figure 17: How correlated and anti-correlated features organize in superposition.
Figure 18: The effect of feature correlations on superposition geometry.
Implications
The tendency of correlated features to be orthogonal generates “local almost-orthogonal bases”: even when the model as a whole is in superposition, correlated feature sets considered in isolation are nearly orthogonal. This suggests a “local non-superposition” assumption may be valid for narrow sub-distributions.
Furthermore, polysemantic neuron groupings are not random but strongly influenced by feature correlation structure.
11. Learning Dynamics
Energy Level Jumps
Figure 19: Training dynamics showing “energy level jumps” where features discretely transition between dimensionalities.
The most striking finding: training dynamics are dominated by “energy level jumps” where features discretely transition between different dimensionalities (e.g., ). These jumps correspond to sudden drops in the loss curve.
This suggests that seemingly smooth loss decreases in larger models may be composed of many small discrete transitions — connecting to broader evidence of sudden mechanistic changes (induction head phase changes, grokking).
Sequential Geometric Transformations
For correlated features in 3D ( features as 2 correlated sets of 3, ), learning proceeds through distinct regimes:
- Linear/PCA-like solution — consistent with theory that two-layer networks first learn linear approximations
- Splitting of embedding vectors as features differentiate
- Rotation and rearrangement into more efficient configurations
- Convergence to structured solutions (e.g., octahedra)
Figure 20: Sequential geometric transformations during training for correlated features.
Different training runs can follow different trajectories to similar final solutions, depending on which geometric attractor the model approaches at critical transition points.
12. Adversarial Robustness
Superposition Creates an Attack Surface
In a model without superposition, end-to-end weights for a feature are clean:
With superposition, they become noisy:
The terms create an attack surface exploitable by adversarial perturbations.
Figure 21: Adversarial vulnerability sharply increases as superposition forms.
Key Findings
- Vulnerability to adversarial examples sharply increases as superposition forms (>3× increase)
- Vulnerability tracks the number of features per dimension
- This holds even in the infinite data limit: optimal sparse models use superposition, leaving them inherently vulnerable
Predictions from a “Superposition Maximalist” View
- Adversarial examples exist — from interference terms in
- Robust models have worse performance — they must give up superposition, representing fewer features
- Robust models are more interpretable — less superposition means cleaner representations
- Adversarial examples transfer across models — shared feature correlation structure drives similar arrangements
Figure 22: Detailed analysis of the relationship between superposition and adversarial robustness.
13. Superposition in a Privileged Basis
Adding a ReLU to the hidden layer creates a privileged basis:
Monosemantic vs. Polysemantic Neurons
Figure 23: The shift from monosemantic to polysemantic neurons with increasing sparsity.
Key observations with , , :
- Clear shift from monosemantic to polysemantic neurons as sparsity increases — a neuron-level phase change
- Both types coexist in the same model, matching observations in real networks
- Polysemantic neurons are surprisingly structured and neuron-aligned
- More important features tend to avoid superposition, getting dedicated monosemantic neurons
Limitations
This toy model has a significant weakness: the ReLU hidden layer has no computational role (it only constrains encoding). Given any chance, the model circumvents it, limiting the regimes showing interesting results.
Figure 24: Structure of polysemantic neurons in the privileged basis model.
14. Computation in Superposition
Model Setup
A model computes (absolute value) using a hidden layer:
The absolute value function requires ReLU: , giving the hidden layer a genuine computational role.
Key Results
Figure 25: The model performing computation (absolute value) in superposition.
With features, neurons, , as sparsity increases:
- The model achieves computation in superposition — computing absolute value for more features than it has neuron-pairs
- Many neurons are monosemantic while a subset are highly polysemantic
- Neurons representing the most important features tend to be monosemantic
- Many neurons have a “primary” feature (large weight) plus “secondary” features (smaller weights)
Figure 26: Primary and secondary feature patterns in neurons computing in superposition.
The Asymmetric Superposition Motif
A novel computational motif is discovered: asymmetric superposition with inhibition.
Instead of symmetric storage , features are stored with asymmetric magnitudes (e.g., ) and reciprocal output weights (). This causes one feature to heavily interfere with the other but not vice versa. A second “inhibition” neuron cancels the interference selectively.
Figure 27: The asymmetric superposition motif with inhibition.
15. The Strategic Picture
Why Superposition Matters for Safety
Solving superposition enables the ability to enumerate all features in a model — critical for:
- Decomposing activation space into independently understandable components
- Describing activations in terms of pure features
- Circuit analysis (understanding weights requires connecting interpretable features)
- Detecting deceptive behavior (even basic methods like cosine similarity become unreliable under superposition)
Three Approaches to “Solving” Superposition
1. Create models without superposition
L1 regularization on hidden activations ( added to the loss) eliminates superposition in toy models. However:
- Models benefit significantly from superposition, especially for sparse features
- The performance cost of eliminating superposition could be substantial
- Mixture of Experts (MoE) models may naturally reduce superposition by allowing more neurons for similar FLOPs
2. Find an overcomplete basis (dictionary learning / sparse coding)
Post-hoc sparse coding on trained model activations. Advantages: no damage to model performance. Challenges:
- Unknown number of features
- Solutions are “virtual neurons” not in the model’s structure
- Massive engineering scale required
- No training-time pressure working in your favor
3. Hybrid approaches
Modify models to make post-hoc analysis easier — reduce superposition during training or make overcomplete basis discovery more tractable.
Figure 28: Overview of strategic approaches to addressing superposition.
16. Open Questions and Discussion
Validation Against Real Models
The toy model’s predictions are consistent with real observations:
- Polysemantic neurons co-occur with monosemantic neurons in the same layer
- InceptionV1 has more polysemantic neurons in later layers (where features are sparser)
- Early Transformer MLP neurons are extremely polysemantic
Key Open Questions
- Detection: Is there a statistical test for catching superposition in real models?
- Control: How can we change the phase diagram so features avoid superposition? (L1 regularization, adversarial training, activation function changes)
- Closed-form solutions: Are there models with analytically tractable solutions?
- Realism: To what extent do toy models capture real model behavior?
- Empirical estimation: Can we estimate feature importance and sparsity curves for real models?
- Scaling: Does superposition go away with sufficient scale, remain constant, or increase?
- Computation: What class of computation is amenable to superposition?
- Correlation structure: How does superposition interact with correlated features in practice?
- Capacity bounds: How many features can be stored in superposition? (Compressed sensing upper bounds)
- Definitions: What is the most principled definition and measurement of superposition?
- Importance: If X% of neurons are interpretable, how much should we trust our understanding?
- Non-robust features: How does superposition relate to useful but non-robust features?
Key Takeaways
- Superposition is real and measurable in toy models: neural networks systematically represent more features than they have dimensions when features are sparse
- The ReLU activation is critical — linear models never exhibit superposition; the nonlinearity enables interference management
- Superposition is governed by phase transitions — sharp, discrete changes between regimes as sparsity and importance vary
- The geometry is surprisingly rich — features organize into specific polytopes (antipodal pairs, triangles, pentagons, etc.) that correspond to solutions of the Thomson problem
- Computation can occur in superposition — networks can perform meaningful nonlinear operations on superposed representations
- Superposition creates adversarial vulnerability — inherent to optimal models on sparse data
- Solving superposition is critical for AI safety — without it, we cannot enumerate features or verify model behavior
This report was generated from the original Anthropic publication. All figures are screenshots from the original interactive article.



























