Context. Many neurons in trained networks are polysemantic, firing for unrelated things, and the leading explanation was the superposition hypothesis: a network represents more features than it has dimensions by giving each feature its own direction and tolerating interference between directions that are not orthogonal. It rested on analogies, and nobody had shown gradient descent doing it. The paper trains tiny autoencoders on synthetic sparse features and maps when superposition appears, its geometry, and when neurons become polysemantic. Behind a ReLU, interference costs something only when two features are active together, which happens with probability about for features active with probability , while leaving a feature out costs its contribution every time it is active, and a negative bias filters the small interference that remains. A linear readout incurs interference on every input where another feature is active, so it never superposes and keeps the most important features, an importance-weighted PCA.
Setting. Features have independent coordinates, with probability (the sparsity; is the density) and otherwise, with importances . The hidden layer , , is decoded with the same matrix, and the two basic models differ only in the readout: Column is feature 's direction, of norm near 1 if the feature is represented and near 0 if not, and the feature dimensionality is 1 for a dedicated dimension, for an antipodal pair () and 0 for a dropped feature, while counts dimensions per represented feature overall. Superposition means more represented features than dimensions. All findings are empirical, apart from closed-form losses of a few candidate configurations.
Main findings. The linear model learns the most important features as an orthogonal basis at every sparsity. The ReLU output model does the same on dense data, but as features get sparser it represents more of them in superposition, least important first. Whether a feature is dropped, superposed or given its own dimension changes abruptly with sparsity and relative importance, identical features settle into uniform polytopes, and with a ReLU on the hidden layer neurons turn polysemantic as sparsity increases and can compute in superposition.
A ReLU readout superposes sparse features and a linear readout does not. With , and , the linear model always learns the top five features, as PCA would. The ReLU output model matches it at density 1, but already at density 0.3, and more so below, it represents extra features through non-orthogonal directions, least important first and in antipodal pairs. Since the two models share architecture, data and loss, superposition needs the output nonlinearity together with sparsity; sparsity alone does nothing for a linear readout.
The loss is feature benefit against interference, and sparsity makes interference rare. For the linear model with Gaussian inputs (as in Saxe et al. on deep linear networks) the loss is, up to constants, : a benefit for each represented feature and a penalty for every overlap, so representing more than features never lowers the loss. For the ReLU model, split the expectation by which features are active; as inputs with one active feature dominate (the all-zero input only penalizes positive biases), with loss The ReLU makes negative interference cost nothing, a negative bias turns small positive interference negative, and with unit norms, zero bias and equal importances the interference term is a Thomson-type energy for points on a sphere. The smallest case shows the orders of magnitude (my computation, not in the paper; Monte Carlo agrees). With , , , density and importance for the second feature, compare dropping that feature with the antipodal pair , which is exact when one feature is active and loses the smaller one from both outputs when both are: so the pair wins exactly when . Through a linear readout it costs , or with the best bias, against for dropping, so it loses at every density.
The choice between dropping, superposing and dedicating a dimension changes abruptly. The optimal loss is the minimum of a few smooth curves, one per candidate configuration, so where two cross its derivative jumps, a first-order transition. For two features in one dimension, across importance and density, the trained diagram has three regions with sharp borders (extra feature dropped, antipodal pair, extra feature given the dimension) and matches the one built from the closed-form losses of , , . "Phase change" here means a jump in the optimum of a finite system, with no large-system limit. The candidate list is not complete: an external replication solved the bias-free two-feature case exactly and found a further phase with similar weights, and regions where the optimum moves continuously.
Identical features settle into uniform polytopes, and unequal ones deform them. With identical features in dimensions, stays at 1 and at over wide ranges of sparsity, and the individual cluster at (tetrahedron), (triangle), (antipodal pair), (pentagon), (square antiprism) and 0. Each value is for points in dimensions, and the reason is a tight frame (my gloss; the paper reads the shapes as Thomson-problem solutions): the denominator of is , so for points of equal norm at every vertex exactly when . Polytopes whose vertices differ appear split into smaller polytopes in orthogonal subspaces, with no interference across factors. Unequal features deform the shapes. Five features in two dimensions form a regular pentagon; making one denser pushes the others away from it, and making it sparser lets them move closer to it until the pentagon changes abruptly into two antipodal pairs with that feature dropped. Correlated features prefer orthogonal directions, and with too little room collapse onto their sum , as PCA would; anticorrelated features prefer to be antipodal.
With a ReLU on the hidden layer, neurons become polysemantic and can still compute. In , , neurons are monosemantic on dense data and turn polysemantic as sparsity grows, and both kinds coexist in one model. This is a weak test, since the model gains nothing from the hidden ReLU and avoids using it when it can, say with positive biases that make every neuron linear. Computing requires the hidden ReLU: in , with active inputs uniform on , the target needs two neurons per feature, and with , the model learns exactly that. With , it is monosemantic on dense data and on sparse data computes for more features than it has neurons, so superposition supports computation as well as storage. Many neurons carry one primary feature with a large weight and a few secondary ones with small weights, so their strongest activations look clean and their weaker ones mixed, as in language-model neurons.
Superposition predicts vulnerability to adversarial inputs, and feature dimensionalities change in jumps during training. In superposition a feature's end-to-end weights look like , and the off-diagonal entries give an attacker a direction that moves feature 's output without activating it. With the optimal attack in closed form, vulnerability rises more than threefold as superposition forms and tracks features per dimension, . During ordinary training, feature dimensionalities jump between the polytope values, each jump with a small drop in the loss. Both observations are correlational and confined to the toy model.
Consequences and limits. Polysemanticity becomes a predicted outcome: whether a feature is superposed depends on its importance and sparsity, so superposition should be heavy where many sparse distinctions share few dimensions. An appendix bounds how much. If the decoder returns every -sparse input to small error and has the restricted isometry property, a deterministic compressed-sensing lower bound gives , and with this reads : linearly many features in , with a factor that grows as features get sparser. Interpreting a model then requires enumerating its features, either by training without superposition or by finding an overcomplete basis afterward with sparse coding, the route of Bricken et al. The authors name the limits (synthetic, independent, uniform features and a reconstruction task) and expect superposition and the mix of monosemantic and polysemantic neurons to carry over, the polytopes much less. The decoder is also far weaker than compressed sensing allows: one matrix and a ReLU in place of an program.
Terms
- Sparsity
- probability a feature is zero; density
- Importance
- weight of feature in the squared-error loss
- ReLU output model
- ; superposes sparse features, the linear readout never does
- Feature dimensionality
- : 1 dedicated, 1/2 antipodal, 0 dropped
- dimensions per represented feature; stays at 1 and 1/2 over wide ranges
- Antipodal pair
- : exact when one is active, loses the smaller when both are
- Uniform polytope
- equal features as a tight frame, : triangle 2/3, pentagon 2/5
- Tegum product
- polytopes in orthogonal subspaces; no interference across factors
- Privileged basis
- coordinates made special by a nonlinearity, so neurons can align with features
- Asymmetric superposition
- write , read , plus an inhibitory neuron
- Superposition capacity bound
- with RIP, ,
Quiz
- In the ReLU output model on inputs with one active feature, why is negative interference free?An inactive feature has target 0 and output , which is 0 whenever the argument is negative. Only positive overlaps cost anything, and a negative bias pushes small positive ones below zero too.
- Why does the linear model never represent more features than dimensions?A linear readout passes straight into output , so interference costs as often as the extra feature helps, first order in density. In the two-feature example the antipodal pair costs against for dropping.
- Two correlated features compete for room that fits only one. Why does the model represent ?When and are usually active together, their sum carries most of their joint variance, so with room for one direction the model keeps the first principal component, as PCA would. Superposing them instead would incur interference on almost every input where either is active, since they co-occur.
- The appendix bound gives . Why does it allow only linearly many features in , not exponentially many?would allow exponential in for fixed , but here sparsity is a fixed probability, so scales with . The factor still shrinks as features get sparser, allowing more features per dimension.
Sources
- Nelson Elhage et al. Toy Models of Superposition. Transformer Circuits Thread, 2022.
- Trenton Bricken et al. Towards Monosemanticity: Decomposing Language Models With Dictionary Learning. Transformer Circuits Thread, 2023.