Neural networks routinely represent more independent concepts than they have neurons or hidden dimensions, packing sparse features as almost-orthogonal vector directions and letting nonlinearities filter out the resulting interference. In Toy Models of Superposition, Nelson Elhage, Tristan Hume, Catherine Olsson, Martin Wattenberg, Chris Olah, and collaborators at Anthropic and Harvard constructed minimal ReLU autoencoders where polysemanticity emerges cleanly from first principles, turning a puzzling interpretability failure into a geometric and thermodynamic theory.
For engineers debugging models or building safety monitors, this paper explains why reading individual neurons fails in LLMs and why naive cosine-similarity probes misfire when unrelated concepts share positive dot products. It also laid the theoretical foundation for sparse dictionary learning and scaling monosemanticity, showing that models behave like noisy simulations of much larger, sparser networks.
- Nonlinearity unlocks compression: A linear autoencoder (
x' = W^T W x + b) always keeps only the topmprincipal components regardless of sparsity; adding a singleReLUletsm = 2dimensions pack five features in a pentagon when inputs are sparse. - Sharp phase transitions: In a 2-feature, 1-dimension toy network, optimal weights jump discontinuously between ignoring one feature (
[1, 0]or[0, 1]) and packing both antipodally ([1, -1]). - Thomson-problem polytopes: Across
n = 400uniform features inm = 30dimensions, per-feature dimensionalityD_isnaps to discrete polytope fractions:1,3/4(tetrahedron),2/3(triangle),1/2(antipodal pair),2/5(pentagon), and3/8(square antiprism). - Computation and robustness costs: Networks can compute
y = abs(x)in superposition (n = 100features inm = 40neurons) using asymmetric weights plus inhibition, while superposition interference causes L2 adversarial vulnerability to jump by over 3x.
Why linear models cannot pack extra features, and how ReLU changes the math
The authors strip representation learning down to a single bottleneck autoencoder reconstructing x in R^n through h = W x in R^m (n > m). Each synthetic feature x_i is zero with sparsity probability S, and otherwise uniform on [0, 1], weighted in mean squared error by an importance curve such as I_i = 0.7^i (for n = 20, m = 5) or 0.9^i (for n = 80, m = 20).
Compare two models that differ by one operation:
- Linear model:
x' = W^T W x + b. - ReLU output model:
x' = ReLU(W^T W x + b).
In the linear model, Saxe-style loss decomposition splits reconstruction error into two competing forces: feature benefit (rewarding ||W_i|| near 1) and interference (sum_{i != j} (W_i . W_j)^2). Because every active feature leaks linearly into every non-orthogonal neighbor, interference always dominates once features exceed m. Regardless of sparsity S, the linear model converges to principal component analysis: it encodes the top m most important features orthogonally and drops the rest.
Adding ReLU breaks that ceiling. Expanding the loss across active feature counts yields (1 - S)^n L_n + ... + (1 - S) S^{n-1} L_1 + S^n L_0. As sparsity S approaches 1, L_1 (single active features) and L_0 (positive bias penalty) dominate. On 1-sparse vectors, negative interference is completely free: if feature j projects negatively onto feature i, ReLU clamps the negative leak to zero. Better yet, setting a negative bias b_i filters out small positive interference too, with the model compensating by stretching ||W_i|| = 1 / (1 - b_i) slightly past unit length.
To prove the transition is a true first-order phase change rather than a smooth blur, the team solved the n = 2, m = 1 case analytically and empirically, holding I_1 = 1.0 while sweeping I_2 from 0.1 to 10 and sparsity S from 0.01 to 1.0. Three clean solutions compete: ignore the extra feature (W = [1, 0]), replace the primary feature (W = [0, 1]), or pack both antipodally (W = [1, -1]), sacrificing only the rare [1, 1] co-occurrence. Crossing from one regime to another creates a discontinuous kink in the loss derivative. (In a published replication note, DeepMind’s Tom McGrath solved the n = 2, m = 1 integral in closed form and uncovered a small “confused feature” minimum W_1 ~ W_2 ~ 1/2 when sparsity is low and both features are important.)
Polytope geometry, correlated bundles, and computation in superposition
Scaling to n = 400 equally important, equally sparse features in m = 30 dimensions revealed an unexpected link to the Thomson problem (packing repelling charges on a sphere). Defining per-feature dimensionality as D_i = ||W_i||^2 / sum_j (W_hat_i . W_j)^2, the average dimensionality m / ||W||_F^2 does not slide smoothly with sparsity. Instead, features lock onto discrete “sticky” fractions corresponding to uniform polytopes embedded across orthogonal subspaces (tegum products) so interference stays isolated to small cliques:
1: dedicated orthogonal dimension.3/4: tetrahedron (4 features in 3D).2/3: equilateral triangle (3 features in 2D).1/2: antipodal digon pair (2 features in 1D).2/5: regular pentagon (5 features in 2D).3/8: square antiprism (8 features in 3D).
Real data is neither uniform nor independent, and the paper tests both violations. Perturbing a single feature’s sparsity inside an n = 5, m = 2 pentagon (1 - S = 0.05) smoothly stretches the polygon until a first-order phase jump collapses it into two digons plus zero. When features co-occur in correlated bundles, the model enforces a strict hierarchy: first place correlated features orthogonally in separate tegum factors (creating a “local almost-orthogonal basis”); if space runs out, place them side-by-side with positive interference; when density grows further, collapse a and b into their single principal component (a + b) / sqrt(2). Anti-correlated mutually exclusive features do the exact opposite, eagerly sharing antipodal directions because they never collide.
Does superposition survive when a layer has to compute rather than copy the identity? An earlier h = ReLU(W x) test cheated by setting positive hidden biases to stay linear. So the authors forced real nonlinearity by training h = ReLU(W_1 x) and y' = ReLU(W_2 h + b) to compute y = abs(x) = ReLU(x) + ReLU(-x) on inputs in [-1, 1]. Without superposition, n = 3 features require m = 6 dedicated neurons (ReLU(x_i) and ReLU(-x_i)). On n = 100 features in m = 40 neurons (I_i = 0.8^i), dense inputs produce clean monosemantic positive/negative neuron pairs for top features. Sparse inputs trigger polysemantic neurons and an asymmetric superposition motif: one neuron encodes two features with unequal weights like [2, -1/2] and reciprocal outputs [1/2, 2], paired with a second inhibitory neuron that flips positive interference into ReLU-clipped negative interference.
Compare the regimes and safety tradeoffs
Use the explorer below to step through the five distinct representational behaviors demonstrated in the toy models, from dense PCA through asymmetric computation and adversarial vulnerability.
Select a regime (or use Left and Right arrow keys) to inspect how weights organize, why naive interpretations break, and what each predicts for real networks.
Dense features collapse to orthogonal PCA
No superpositionWhen features activate frequently (1 - S near 1.0), interference destroys any packing gain, so the network keeps only the top m features.
- Why packing fails
- Co-occurring features add squared interference errors across every shared direction, outweighing any extra feature benefit.
- Toy model behavior
- Both linear and ReLU-output models allocate exact unit orthogonal vectors to the top m features (such as m=5 out of n=20) and zero out the rest.
- Basis alignment
- Without an activation function on h, W can be rotated by any orthogonal matrix O; with ReLU(W_1 x) on abs(x), neurons align 1-to-1 with features.
- Real-model echo
- Low-level vision features like Gabor edge detectors occur densely across images, helping explain why early InceptionV1 layers have cleaner neurons.
Thomson-problem packing and sticky plateaus
GeometrySparse uniform features self-organize into uniform polytopes in orthogonal subspaces, isolating interference into small groups.
- Why naive scaling misleads
- Representations do not smear smoothly into random Gaussian clouds; dimensionality snaps across plateaus at 1, 3/4, 2/3, 1/2, 2/5, and 3/8.
- Toy model behavior
- In n=400, m=30 experiments, negative bias b_i clips positive leaks while ||W_i|| = 1/(1 - b_i) compensates, forming antipodes, triangles, and pentagons.
- Training dynamics
- Loss curves that look smooth at scale hide discrete 'energy level jumps' where features snap between fractional dimensionalities.
- Interpretability snag
- With W^T W non-invertible, subtracting a known feature direction via Gram-Schmidt cannot remove its interference with packed neighbors.
Nonlinear computation inside polysemantic neurons
Privileged basisTraining ReLU hidden layers to compute y = abs(x) on n=100 features in m=40 neurons yields monosemantic leaders and asymmetric polysemantic circuits.
- Why identity models cheated
- When hidden ReLUs were unneeded for y = x, networks pushed biases positive to stay linear; abs(x) forces genuine ReLU(x) + ReLU(-x) use.
- Asymmetric motif
- One neuron encodes features at [2, -1/2] with reciprocal outputs [1/2, 2], while a partner neuron inhibits positive interference below ReLU threshold.
- Primary vs secondary weights
- Neurons often show one large primary feature weight plus several tiny secondary weights, matching LLMs whose top activations look deceptively pure.
- Virtual simulator view
- Networks act like noisy simulators of much larger sparse models, recovering k times more effective capacity per neuron.
Off-diagonal interference fuels adversarial attacks
RobustnessBecause (W^T W)_0 accumulates tiny off-diagonal epsilons under superposition, L2 adversarial vulnerability jumps by over 3x as features pack.
- Why gradient attacks hid it
- At 99% sparsity, ReLU units sit at zero almost everywhere, causing gradient masking; analytic optimal L2 attacks expose the true fragility.
- Toy model evidence
- Under an L2 attack budget of 0.1 average input norm, error spikes over 3x alongside the reciprocal of feature dimensionality (features per dim).
- Adversarial training cost
- Eliminating superposition via adversarial training required massive perturbations equal to 80% of the input L2 norm.
- Probe failure mode
- Simple cosine-similarity monitors break in superposition because unrelated concepts share positive dot products.
Source: Elhage et al. (2022), Basic Results through Strategic Picture.
Without clicking through the tabs, here are the five takeaways from the toy model regimes:
- Dense features yield clean PCA: Without sparsity, interference beats compression, so both linear and ReLU models dedicate orthogonal directions to the top
mfeatures. - Uniform sparsity builds polytopes: Features pack into Thomson-problem cliques (
1,3/4,2/3,1/2,2/5,3/8) separated into orthogonal subspaces, with discrete jumps during training. - Correlations shape packing: Co-occurring bundles stay locally orthogonal before collapsing into principal components, whereas mutually exclusive features pair antipodally, meaning local probe cleanliness breaks off-distribution.
- Computation runs in superposition: On
y = abs(x)(n = 100, m = 40), models mix monosemantic high-importance neurons with asymmetric polysemantic pairs and inhibitory cleanup neurons. - Superposition creates adversarial handles: Off-diagonal
(W^T W)interference raises L2 vulnerability by over 3x and breaks naive cosine-similarity detection.
Caveats, open questions, and the path to dictionary learning
The authors caution against over-interpreting every geometric detail of their setup. First, these are tiny synthetic autoencoders with tied weights W^T W and hand-picked uniform or bundled distributions; real transformers use multi-layer MLPs, residual streams, and power-law feature frequencies, and even the n = 10, m = 5 hidden-layer toy model required 1,000 random restarts to find clean low-loss minima. Second, the authors explicitly flag the polytopes and energy-level jumps as “too elegant to be true” and potentially idiosyncratic to small uniform bottlenecks. Third, compressed sensing theory bounds linear-threshold recovery at m = Omega(-n (1 - S) log(1 - S)), showing that while extreme sparsity packs far more features than m, capacity still scales linearly in m for fixed sparsity S.
Strategically, the paper framed the roadmap that dominated mechanistic interpretability over the next several years. To “solve superposition” and enumerate every concept inside a model, teams faced three choices: train superposition-free models (via L1 activation penalties or Mixture-of-Experts routing that buys spare neurons without extra FLOPs), build hybrid architectures, or extract an overcomplete sparse dictionary after training. Because removing superposition at training time carried steep capability penalties, the field bet heavily on Approach 2: applying sparse coding to frozen activations via sparse autoencoders, scaling them to frontier models in Claude 3 Sonnet, and confronting the exact packing artifacts predicted here, including feature absorption.
For practitioners today, the core lesson holds: never assume a clean top-activating neuron is monosemantic, never trust cosine similarity alone as a safety detector, and remember that compressing rare capabilities into fixed hidden width trades interpretability and adversarial margin directly for capacity.


