Superposition in Neural Networks
Superposition in neural networks refers to the phenomenon whereby a network encodes more features than it has dimensions, representing multiple distinct concepts in overlapping, non-orthogonal directions within a single layer's activation space. This matters enormously for modern AI interpretability because it implies that individual neurons are not the fundamental unit of meaning — features are — and that the geometry of representation is far richer and more entangled than classical linear probing suggests. The remarkable fact is that a network can represent exponentially many sparse features in a space of fixed dimension with only polynomial interference, a result with deep connections to compressed sensing and random coding theory.
A neural network with neurons in a layer need not be limited to representing independent concepts: if the true underlying features of the data are sufficiently sparse and the network tolerates a small amount of interference, it can store features as nearly-orthogonal directions in , exploiting the counterintuitive geometry of high-dimensional spaces where exponentially many almost-orthogonal vectors exist. The "aha moment" is realising that monosemanticity (one neuron, one concept) is not the default — it is the special case that occurs only when features are dense and the network has sufficient capacity, while superposition is the generic solution to representational compression under sparsity. This fundamentally breaks the interpretability assumption that neurons are the right level of analysis, demanding instead that we search for directions in activation space.
How It Works
The Toy Model of Superposition
Following Elhage et al. (2022), consider a one-hidden-layer bottleneck autoencoder that must reconstruct features from a -dimensional hidden representation with . Let be a sparse input where feature is active independently with probability . The model learns an embedding matrix and reconstructs via:
Explanation: The network projects the input into a low-dimensional space via and then projects back with , applying a nonlinearity to suppress cross-feature interference. Here is the effective feature interaction matrix. Denote the columns of as , each a direction in . The expected loss decomposes into a self-term and an interference term. Defining (feature strength) and (cosine-squared similarity), the total loss is:
Explanation: Each feature pays a reconstruction cost from being underrepresented (first term) and an interference cost from all other co-encoded features bleeding into its direction (second term), weighted by feature importance and sparsity . The key insight from this loss is that sparsity discounts the interference term: if only a small fraction of features are simultaneously active, the expected cross-contamination is low even when is non-negligible. The network therefore faces an optimization over geometry — finding a packing of vectors into that minimises weighted interference.
Capacity and the Johnson–Lindenstrauss Bound
The theoretical capacity of superposition is quantified via nearly-orthogonal vector packings. For a tolerance , a set of unit vectors satisfying for all constitutes an -nearly-orthogonal family. By a probabilistic argument (random unit vectors in ), one can pack:
Explanation: The number of nearly-orthogonal directions grows exponentially in the ambient dimension for any fixed interference tolerance , formalising why high-dimensional spaces can store vastly more features than they have coordinate axes. This is the geometric miracle underlying superposition: a 512-dimensional hidden layer with interference tolerance can in principle encode on the order of features per dimension, giving thousands of representable features. The catch is that simultaneous activation of two superposed features produces interference proportional to , which is acceptable only when activations are sparse.
The Phase Transition
Elhage et al. (2022) identified a sharp phase transition in the learned geometry as a function of the sparsity-importance product . Let (sparsity) for a uniform model. There exists a critical threshold such that:
Explanation: Below the critical sparsity, the network simply ignores lower-priority features entirely (pure dimensionality reduction); above it, it pays the interference cost to superpose features, with the transition becoming sharper as increases. When features enter superposition, their representing directions snap to highly structured configurations — antipodal pairs, regular polygons projected into lower dimensions, or uniform polytope arrangements — minimising mutual interference subject to the geometric constraints. This polyhedral geometry of superposition has been confirmed empirically in toy models and partially in large language models via sparse autoencoders.
Interference and the ReLU Benefit
The ReLU nonlinearity plays a crucial mechanistic role that pure linear superposition cannot exploit. For two superposed features with directions satisfying , when only feature is active (), the pre-activation for feature 's reconstruction is . The ReLU sets this to zero if the bias is tuned such that :
Explanation: By setting a negative bias slightly below the interference threshold, the network uses the ReLU to actively cancel cross-feature contamination, meaning the nonlinearity is not merely for expressive power but serves as a denoising gate for superposed representations. This is why superposition is qualitatively different in networks with nonlinearities: the network learns both a geometric packing (the matrix) and a denoising schedule (the bias vector) jointly, achieving effective separation that pure linear projections cannot.
Chris Olah developed the mechanistic interpretability research programme at OpenAI and later Anthropic, introducing the rigorous use of circuits analysis to understand how neural networks implement algorithms in terms of weights and activations. His 2022 collaboration "Toy Models of Superposition" (with Elhage, Nanda, and colleagues at Anthropic) provided the first mathematically precise framework for understanding how and why neural networks encode more features than dimensions, connecting the phenomenon to sparsity, capacity, and polyhedral geometry. Unusually for a field dominated by PhD-credentialed researchers, Olah has no formal graduate degree, having built his reputation entirely through self-directed research and extraordinarily influential blog posts and papers on neural network interpretability.
Neel Nanda, first at Anthropic and later DeepMind, became one of the primary empirical investigators of superposition in large-scale transformer models, developing and popularising sparse autoencoders (SAEs) as a practical tool for decomposing polysemantic neuron activations into monosemantic feature directions. His work on "Progress measures for grokking via mechanistic interpretability" (2023) and subsequent SAE scaling studies demonstrated that superposition is not merely a toy-model curiosity but is systematically present and structurally organised in models like GPT-2 and Claude. Nanda has been notably transparent about his research process, maintaining public codebases and detailed research notes that have made the sparse autoencoder methodology accessible across the interpretability community.
Intuition
Imagine a small theatre with only 10 spotlights, but the director needs to represent 50 different characters across many scenes. The naive approach assigns one spotlight per character — but that only covers 10. The superposition strategy instead assigns each character a unique blend of spotlight colours and positions, exploiting the fact that at any given moment in the play only 2 or 3 characters are on stage simultaneously. When character 37 appears, a specific combination of spotlights fires; when character 22 appears, a different combination fires. As long as characters don't crowd the stage all at once (sparsity), the audience can reliably identify who is present even though no single spotlight "belongs" to one person. A neuron in superposition is like one of those spotlights: it responds to many characters (polysemanticity), not because it is confused, but because the network has cleverly divided representational responsibility across blended directions. The ReLU is the stage manager who dims residual bleed-through from off-stage characters to zero.
Historical Development
Origins · 1 minhow this was discovered
Why It Matters
Prerequisites
What This Leads To
See Also
Sparse Autoencoders · Mechanistic Interpretability · Polysemanticity · Circuits in Neural Networks · Compressed Sensing and Sparse Representations · Activation Steering · Feature Visualisation