Elamur Research

Toy Models of Superposition

Paper · 2022 · Nelson Elhage, Tristan Hume, Catherine Olsson et al.

Summary

A neuron can respond strongly to examples that seem to have little in common. If the neuron is the unit of analysis, its behavior may look like a collection of unrelated exceptions. Toy Models of Superposition asks whether those responses can come from distinct features sharing the same space. The authors train small neural networks on synthetic inputs whose features are known in advance. This lets them follow each feature through the network and see whether it gets its own direction, shares capacity with others, or is dropped. The distinction matters for mechanistic interpretability, which aims to explain how a network's internal computations produce its behavior.

In the opening experiment, the network compresses five features of unequal importance into two hidden dimensions and tries to reconstruct them. When the features are dense, it preserves the two most important ones in perpendicular directions, much like the choice made by principal component analysis. As the features become sparser, the network learns to keep more of them by using directions that overlap. The authors call this superposition. Overlap creates interference because the signal for one feature can register in the readout for another. A rectified linear unit, or ReLU, can suppress some of that interference by setting negative values to zero. A linear baseline with the same bottleneck lacks that filter and has no advantage from storing extra features this way.

The change in encoding can be abrupt. Small experiments and a comparison of analytically tractable solutions show how feature importance and sparsity can move a feature between being omitted, sharing capacity, and having a direction to itself. In wider networks, sharing has a recognizable geometry. Feature vectors form structures such as opposite pairs, triangles, pentagons, and tetrahedra. The authors also track some networks as they train and observe sudden rearrangements of individual features accompanied by drops in reconstruction loss.

The paper goes beyond storage by training a network to compute absolute values. With sparse inputs, it learns to share neurons across several simple computations, while some neurons in the same layer still serve individual features. The authors also find a preliminary link between superposition and sensitivity to adversarial perturbations in their reconstruction task. They discuss possible connections to grokking and to networks that activate only selected groups of neurons. Their broader hypothesis is that some ordinary networks may approximate the work of larger, sparser ones. The experiments establish a mechanism by which this can happen and leave open how much it explains in networks trained on natural data.

Deep dive: Toy Models of Superposition

Toy Models of Superposition explains how neural networks fit more sparse features into fewer dimensions and why individual neurons can have several meanings. · about 37 minutes to read

The problem and its context

Why a neuron can be the wrong unit of explanation

When a neuron consistently activates for a recognizable visual pattern, it gives an investigator a starting point. The investigator can look for the inputs that produce the pattern, inspect the weights that carry its signal, and ask which computations use it. Earlier interpretability work cited by the authors contains examples of this kind, including curve detectors in early vision layers. The paper also describes evidence for interpretable neurons in recurrent networks, convolutional networks, and generative networks. Studies of recurrent networks and of networks trained to generate reviews are among the examples it cites. Visualizing and Understanding Recurrent Networks · Learning to Generate Reviews and Discovering Sentiment

The same literature gives reasons for caution. Some neurons respond to mixtures of apparently unrelated stimuli, a property called polysemanticity. Earlier researchers questioned how much evidence a set of example activations provides for a proposed interpretation. Close studies of particular neurons sought to establish firmer explanations by accounting for their behavior in more detail. The authors also point to analogous feature detectors found across different networks. These observations raise a question about what is stable across networks. It could be the feature a network finds useful, even if the feature's placement among the neurons changes.

Interpretable directions offer a broader starting point. The paper describes how earlier work on word embeddings found directions associated with semantic properties. It also cites analogous observations in the latent spaces of generative networks. A direction can involve changes across several coordinates at once. In that case, looking at each coordinate independently may miss the shared meaning of the changes. A direction is also something a downstream linear operation can read by assigning weights across those coordinates.

The authors distinguish two assumptions about this kind of explanation. Decomposability means that the representation can be understood in terms of features whose meanings can be considered separately. Linearity means that changing the strength of a feature moves the activation along a corresponding direction. The property that a feature detects can itself depend on the input in a complex, nonlinear way. Linearity concerns how the resulting feature value is encoded once it has been detected. This distinction gives the authors room to study the encoding of features without first explaining how a network would discover them from images or text.

When the coordinate axes matter

Some representations permit an arbitrary change of coordinates. In a word embedding followed by a linear operation, an invertible transformation of the embedding can be undone by changing the next set of weights. The overall calculation can therefore stay the same while the individual embedding coordinates change. An observation about a particular coordinate may depend entirely on the choice of axes. A direction tied to a meaningful contrast can still be studied by locating that direction in the representation.

Other layers privilege their coordinate axes. An activation function applied separately to each coordinate can respond differently after the coordinates are rotated. The architecture then gives an individual neuron a distinct computational role. Aligning a feature with an axis allows the activation function to operate directly on that feature. This creates a reason for alignment while leaving room for several features to affect the same neuron. The authors view pressure for alignment and pressure to represent extra features as forces that can act on the same layer.

There is also a difference between a feature spread across several neurons and superposition in the paper's sense. A set of mutually perpendicular feature directions can be rotated so that every direction uses several coordinates. Each coordinate can then carry several feature signals, even though a readout along any feature direction still leaves the others untouched. Superposition concerns an excess of represented features over the dimensions available to encode them independently. That distinction is important because a single neuron with mixed activations cannot, by itself, settle whether the layer is over capacity in this sense.

Why sparsity opens another possibility

The usual dimensionality argument says that a space can accommodate only as many mutually perpendicular directions as it has dimensions. It can accommodate many more directions if some overlap is allowed. A network could therefore use more directions than it has dimensions if it has a way to manage the resulting readout errors. The relevance of this observation depends on which feature combinations the network actually encounters. When many features are present together, their contributions can be difficult to disentangle. When most are absent, there is less opportunity for their signals to collide.

This intuition connects the work to compressed sensing. Given a lower-dimensional measurement of a vector, recovery becomes possible under conditions that exploit the small number of non-zero entries. The authors' network faces a related problem with a much more restricted decoder. It learns the projection and uses a linear readout followed by an activation function. It is also free to sacrifice the reconstruction of some features if that improves the weighted objective. The analogy motivates the experiment without giving the network the recovery guarantees of a general sparse-recovery algorithm.

The paper also relates the issue to the literature on distributed and population codes. A code can be distributed because many units participate in representing each feature, because it carries more features than it has dimensions, or both. Earlier work on disentanglement pursued a different goal, seeking latent coordinates that track separate factors of variation. If a data distribution contains many individually rare factors that collectively matter, dedicating a coordinate to each one may be expensive. Feature superposition had already been proposed in interpretability research. The authors also distinguish it from previous work on storing multiple independent networks in shared parameters. Their question is whether ordinary training can produce a shared code for distinct features within a single network and task.

The method, step by step

Begin with known features

The authors start with an input vector whose coordinates already have a clear interpretation. Each coordinate is the strength of a separate feature. The vector stands in for what a much larger, disentangled network might represent internally. There is no need to identify the synthetic features from activation examples. Their identities are fixed by the coordinate system of the data generator, so the authors can ask directly what happens to a particular feature as the network trains.

Each feature has a sparsity and an importance. Sparsity is the probability that a feature is absent from an input. An absent feature is assigned a value of 0. An active feature in the reconstruction experiments takes a value drawn uniformly from [0, 1]. In the basic setting the presence decisions are independent, and most experiments of this type give all features the same sparsity. The authors can change the frequency of a feature without changing the distribution of its strength when it is present.

Importance determines how heavily a reconstruction mistake counts toward the loss. Two features can occur equally often while having different importance. Conversely, two features can have the same loss weight while one occurs less often. A feature that is absent from most examples offers fewer opportunities for reconstruction to improve the loss, but its absence also reduces the chance that it will interfere with other active features. Keeping the two controls separate allows the authors to observe both sides of that tradeoff.

Learning a compressed representation of synthetic features

The steps in order.

Learning a compressed representation of synthetic featuresStep 1: Sample which input features are active1. Sample which input features are activeStep 2: Draw values for active features2. Draw values for active featuresStep 3: Project the input into fewer dimensions3. Project the input into fewer dimensionsStep 4: Read out features with the transposed weights4. Read out features with the transposed weightsStep 5: Add feature biases and apply output ReLU5. Add feature biases and apply output ReLUStep 6: Measure weighted reconstruction error6. Measure weighted reconstruction errorStep 7: Update the projection weights and biases7. Update the projection weights and biases

Encode and decode with the same weights

The encoder turns the feature vector into a shorter vector of hidden activations.

h = Wx

Here x is the input, with n feature coordinates. h is the hidden activation vector, with m coordinates, where m is smaller than n. W is the learned matrix with m rows and n columns. Multiplying W by x adds the columns of W in proportions given by the input feature values. The column associated with feature i, written Wᵢ, is the direction in which that feature moves the hidden representation.

To read a feature back out, the decoder takes the dot product of the hidden vector with the same column used to encode it. It then adds a feature-specific bias. The linear baseline leaves this biased readout unchanged.

x′ = Wᵀh + b

Here x′ is the vector of reconstructed features, Wᵀ is the transpose of the encoder matrix, h is the hidden vector, and b is the vector of learned output biases, with one entry per feature. Tying the weights makes the geometry easy to interpret because the decoder asks exactly how much of the hidden signal lies along each encoding direction. The bias also lets a coordinate receive a constant prediction even if the encoder ignores it. For squared error, predicting the mean is the best constant choice.

The main reconstruction variant applies a rectifier to the biased readout.

x′ = ReLU(WᵀWx + b)

Here x′ is the reconstruction, x is the original feature vector, W is the encoder, Wᵀ is its transpose, and b is the output bias. ReLU acts separately on each output. It preserves positive values and maps negative ones to zero. The expression uses the encoder directly inside the decoder by substituting the formula for h. The same architecture can be written with a subtracted threshold by reversing the sign convention for the bias.

The matrix WᵀW is the matrix of dot products between encoding directions. Its diagonal gives the squared lengths of the feature vectors. Its off-diagonal entries give the contribution one feature makes to another feature's readout per unit of activation. If two directions are perpendicular, their entry is zero. If they point partly the same way, the contribution is positive. If they point partly against each other, it is negative. With the tied weights, this is a direct description of the network before its biases and final activation function are applied.

The hidden space in the basic reconstruction network has no privileged axes. The authors can rotate all the columns together without changing their dot products.

(OW)ᵀ(OW) = WᵀW

Here O is an orthogonal transformation of the hidden space, W holds the feature directions as its columns, and ᵀ denotes transposition. The matrix products on both sides yield the same feature readouts. A plot of the feature vectors can still help a reader see their arrangement. Their angles relative to each other are meaningful for this experiment, while the overall orientation of the plot is arbitrary.

Train for weighted reconstruction

The objective measures the discrepancy between the input and the reconstruction, giving errors on more important features greater weight. In population form, it is an average over the synthetic input distribution.

L = 𝔼ₓ[Σᵢ Iᵢ(xᵢ − x′ᵢ)²]

Here L is the loss, 𝔼ₓ averages over draws of input x, and Σᵢ adds the contributions of all feature indices i. Iᵢ is the importance of feature i. The quantities xᵢ and x′ᵢ are its input value and its reconstructed value. The square penalizes the size of the error regardless of its sign. During training, the sampled inputs supply examples of the errors that the network can reduce by adjusting the weights and biases.

The paper uses the squared lengths of the feature vectors to judge how strongly the network has committed to a feature. A zero column means that activating the input feature causes no change in the hidden representation. A substantial column means the encoder responds to it. The off-diagonal dot products then show whether other inputs can produce a signal in its direction. A single picture of the matrix therefore records both which features have meaningful readouts and where the readouts overlap.

The authors also use a measure that aggregates pairwise interference for an individual feature.

Σⱼ≠ᵢ (Wᵢ · Wⱼ)²

Here i is the feature being examined and j runs over the other features. Wᵢ and Wⱼ are their encoding vectors, and · denotes the dot product. Squaring counts overlap of either sign. This is a geometric diagnostic, so its value is determined by the weights. The actual error depends on which features are active together, their values, the bias, and whether their combined signal passes the rectifier.

Separate rare collisions from ordinary readouts

The authors' analysis of the nonlinear objective begins by grouping inputs according to how many features are active. With independent presence decisions and common sparsity, the probability of a particular pattern depends only on how many coordinates are present and how many are absent.

L = Σₖ₌₀ⁿ (1 − S)ᵏSⁿ⁻ᵏ Lₖ

Here L is the expected loss, n is the number of input features, S is the probability that any given feature is zero, and k counts the features that are active. The factor involving S is the probability of a specific pattern with that number of active coordinates. Lₖ pools the losses for all patterns with k active features, averaging over their possible non-zero values within each pattern. With this definition, the number of patterns is already accounted for in Lₖ.

In the sparse regime, inputs with every feature absent or with just one active feature carry much of the probability. An all-zero input tests the biases. A positive output bias can create a false activation by itself. A nonpositive bias passes no signal through the rectifier on that input. A singly active input creates two kinds of terms. The readout for its own feature must reconstruct its value. Every other readout should stay at zero.

Consider a singly active feature whose vector points against the direction of another feature. Its contribution to the other feature's readout is negative, so a nonpositive bias and the rectifier can remove the interference altogether. A small positive contribution can also be suppressed if the bias is negative enough. That choice has a cost. The desired signal also has to pass the threshold, so filtering enough cross-talk to keep inactive outputs quiet can make weak true activations harder to recover. The training objective balances these effects as it adjusts vector lengths, angles, and biases.

Coactivation changes the problem. A negative contribution arriving at an output whose feature is genuinely present can subtract from a useful signal. Several positive contributions can add up and pass a threshold that would have suppressed them individually. Arranging the vectors so that each feature overlaps with only a small group of others can reduce how often several interferences pile up. This is one reason the arrangement of the full set of vectors matters in addition to the size of individual dot products.

For the phase diagrams, the authors simplify the geometry enough to compare a few plausible configurations analytically. With two features in one hidden dimension, a simple encoding can give the line entirely to either feature or place the two at opposite ends of it.

W = [1, −1]

Here W is the row of encoding weights from the two input features to the single hidden coordinate. The entries give opposite signs to the two feature signals. An isolated positive activation can be recognized by the sign it produces in the hidden layer. When both features are active, their signals subtract before either output is read. The resulting errors are the price of using the same line for both features. The authors compare this configuration with choices that allocate the line to just one feature and ask how the expected losses change with sparsity and importance.

Measure how space is shared

The geometry experiments use a network-wide measure of the effective dimensions per feature.

D* = m/‖W‖²ꜰ

Here D* is the effective number of hidden dimensions per represented feature, m is the width of the hidden layer, and ‖W‖²ꜰ is the squared Frobenius norm, the sum of the squares of all entries of W. The denominator is also the sum of the squared lengths of its columns. It approximates the number of represented features when retained features have vectors close to unit length and discarded features have very short vectors. It remains meaningful under a rotation even in dense settings where looking for individual retained input coordinates can be less informative.

The authors also introduce a measure that assigns an effective share of a dimension to each feature with a non-zero vector.

Dᵢ = ‖Wᵢ‖² / Σⱼ (Ŵᵢ · Wⱼ)²

Here Dᵢ is the dimensionality of feature i, Wᵢ is its encoding vector, ‖Wᵢ‖² is its squared length, and Ŵᵢ is the vector pointing in the same direction with unit length. The sum over j includes all feature vectors Wⱼ, including the feature's own vector. Each dot product measures how strongly a feature projects along the direction under study. The numerator reflects the feature's own share of that projected weight. The authors assign zero dimensionality to a feature that has no encoding vector. Features with substantial vectors can have fractional dimensionality because other vectors contribute to the denominator.

The authors examine the dimensions assigned by this measure together with a graph of the feature vectors. Each feature is a node. Stronger absolute dot products make stronger connections, so opposite vectors can be closely connected in the graph even though they are far apart when drawn as points. Since this graph suppresses the sign of the overlap, the geometry and the signed readout matrix are useful companions to it. Separate groups with mutually perpendicular spans can be interpreted without attributing interference from one group to the other.

Give the hidden layer a computation to perform

To study individual neurons, the authors apply ReLU to the hidden coordinates as well as to the output.

h = ReLU(Wx)

Here h is the vector of hidden neuron activations, W maps the input features to neuron coordinates, x contains the input feature values, and ReLU acts on each coordinate separately. The output is read with the transposed weights and a bias and then rectified as before. Because the hidden activation is applied coordinate by coordinate, a rotation can change which signals are clipped. The entries of W now give meaningful connections from input features to actual neurons.

Reconstruction presents a difficulty for this variant. The target is to reproduce the input, so the hidden nonlinearity can stand in the way. A stronger demonstration gives the hidden rectifier a role in solving the task. The authors make the non-zero feature values uniform on [−1, 1] and ask the network to return their absolute values. A rectifier can select either the positive signal or the magnitude of the negative signal, depending on the sign of the input weight.

abs(xᵢ) = ReLU(xᵢ) + ReLU(−xᵢ)

Here abs gives the magnitude of a scalar, xᵢ is the signed value of feature i, and ReLU keeps the positive part of its argument. Only the appropriate branch contributes for each sign. An implementation with dedicated neurons can assign a neuron to each branch and then sum their outputs.

In this computation experiment the authors untie the input and output weights. They retain the same type of weighted squared loss, now measuring the error against the magnitude of the input.

h = ReLU(W₁x)

Here h contains the hidden neuron activations, W₁ contains the learned input weights, x is the signed feature vector, and ReLU rectifies each hidden preactivation.

y′ = ReLU(W₂h + b)

Here y′ is the vector of predicted magnitudes, W₂ contains the separately learned output weights, h is the hidden activation vector, and b is the output bias. The final ReLU keeps the predicted magnitudes non-negative. The weights on either side of a hidden neuron can compensate for one another. Multiplying its incoming weights by a positive factor and dividing its outgoing weights by the same factor leaves its contribution unchanged. The authors normalize the incoming weights for visualization so that the largest magnitude for each hidden unit is 1. This helps comparisons of the displayed circuits reflect their structure.

Experiments and results

Reconstruction with and without a rectifier

The opening illustration compresses five features of unequal importance into two dimensions. The more detailed reconstruction sweep uses 20 synthetic input features, 5 hidden dimensions, and feature importance that decays as 0.7 raised to the feature index. The inputs come from distributions the authors control, so the main comparisons vary the input density or the architecture while the assignment of feature identities stays fixed. The outcomes are read from reconstruction loss, the lengths and dot products of the learned feature vectors, and the organization of the hidden space.

On the dense independent input distribution, where the activation density is 1.0, the linear baseline keeps the 5 most important features. The ReLU-output network also preserves the most important features in this setting and uses the same number of directions. The nonlinear architecture can therefore reproduce the capacity allocation of the linear baseline when the distribution makes overlapping directions expensive.

Features represented on dense synthetic inputs with a 5-dimensional bottleneck

The linear baseline and the ReLU-output network retain the same number of features on dense inputs.

Features represented on dense synthetic inputs with a 5-dimensional bottleneckLinear baseline: 5Linear baseline5ReLU-output network (this paper): 5ReLU-output network (this paper)5
The numbers
System or settingrepresented features
Linear baseline5
ReLU-output network (this paper)5

The count in the chart is a property of the learned dense encodings. The training objective is weighted squared error, so the value of retaining another feature depends on the errors it introduces into the other readouts. As the authors make the distribution sparser, the linear baseline continues to choose the top features. The ReLU-output variant begins to keep additional ones. Overlap first appears among the less important features, where reconstruction can tolerate more error. Increasing sparsity further brings more important features into shared arrangements. Early overlap often takes the form of opposite pairs, which can use the zero output of ReLU to filter one another when only one activates.

The authors repeat the comparison with 80 input features, 20 hidden dimensions, and an importance curve with base 0.9 raised to the feature index. The resulting weight patterns look qualitatively similar. The larger example indicates that the change in encoding is visible beyond the smallest reconstruction networks. It leaves open exactly how the amount of sharing varies with width and feature distribution. The authors release a Colab notebook for reproducing some of the diagrams and a separate notebook for the theoretical phase comparisons.

Mapping the transition between encoding strategies

The first phase diagram gives 2 features a 1-dimensional bottleneck. The reference feature has importance 1.0. The importance of the extra feature ranges from 0.1 to 10, and the sparsity sweep is described with endpoints of 1.0 and 0.01. At each point the authors train ten networks, discard the one with the highest loss, and average the others. They then look at whether the extra feature is dropped, represented in superposition, or given the dimension to itself.

This comparison makes the role of relative importance visible. If a feature is sufficiently valuable compared with its competitor, the network can give it the hidden coordinate and sacrifice the competitor. If the relative value is low, the feature can be omitted. When activations are rare enough, placing both in opposite directions becomes worthwhile across a region of the diagram. In that region, training accepts the loss from occasional simultaneous activations in exchange for representing each feature on inputs where it occurs alone.

The theoretical diagram compares the losses of fixed configurations. When curves cross, the candidate with the lowest loss switches from one configuration to another. At a first-order transition of this kind, the favored solution changes abruptly and the derivative of the best achievable loss within that comparison changes discontinuously. The empirical diagram shows abrupt changes in the learned feature lengths and overlap as well. This gives the phase language a concrete meaning at finite network width.

The authors next compress three features into two dimensions, keeping one as the extra feature whose importance varies. Now the network can share a direction between two features and still have space for a separate direction. One candidate shares the extra feature with another and leaves the remaining feature a dimension. A different candidate pairs the other features and gives the extra feature its own dimension. There are also strategies that drop a feature entirely. The analytical comparison treats these as a small set of possible choices. An arrangement in which all three features share the plane also exists, and the theoretical comparison for this sweep leaves it out.

Measuring the geometry of sharing

For the uniform geometry experiment, the authors use 400 input features and 30 hidden dimensions. All features have importance 1, equal sparsity, and independent presence decisions. The network-wide measure of dimensions per feature stays near 1 over one range and near 1/2 over another. The latter plateau corresponds to pairs pointing in opposite directions. Each pair can be assigned a line, and its members can still send distinct positive readouts when they occur separately. The authors report that the same broad pattern persists when the number of available input features is already much larger than the bottleneck and when the width is varied relative to the effective number of retained features.

Looking at individual features reveals arrangements that the global curve can hide. Feature dimensionality clusters around ¾ for tetrahedra, ⅔ for triangles, ½ for antipodal pairs, ⅖ for pentagons, and ⅜ for square antiprisms. A feature left out entirely has dimensionality 0. The fractions tell the reader how much of a direction the metric attributes to an individual feature in a shared arrangement. They can distinguish a network with several kinds of local geometry from one in which every feature experiences the same amount of interference.

The authors explain some of the cluster structure by looking at groups in orthogonal subspaces. A triangle and an opposite pair can, for instance, use the same hidden representation while their vectors remain perpendicular across the groups. Their interference occurs within each group. This helps explain why a network can have separate clusters associated with triangles and opposite pairs even when the combined points form a more complicated figure. The paper uses the term tegum product for the geometric construction of combining polytopes across mutually orthogonal subspaces.

The relationship to the Thomson problem is an analogy with a concrete basis. In a simplified limit, the authors fix how many features are represented, set the retained vector lengths to 1, make importances equal, and use zero biases. The benefit from retaining the specified features is then fixed. Optimizing the arrangement amounts to placing points on a sphere to control interference. The cost in the network comes from the readout and the activation function. In particular, negative overlap can be harmless on singly active inputs, so its cost differs from that of positive overlap. The resulting objective is a variant of the sphere-packing problem that motivates the comparison.

Following changes during training

The authors also look at how these arrangements emerge. In a uniform case that ends in opposite pairs, they track the dimensionality of individual features over training. Several feature traces change suddenly, and features can trade the values they occupy. The reconstruction loss drops at these events. One such drop is small and a later one is more pronounced. The traces show that a curve summarizing total error can obscure a reorganization visible in the weights and in the allocation of space to particular features.

Another experiment places 6 features in 3 hidden dimensions. The features are drawn in 2 groups of 3 that coactivate within a group. The authors can plot the vectors directly in three dimensions and connect changes in the shape to regimes of the loss curve. An early stage resembles a linear principal-component solution. Later stages reorganize the feature vectors, with one endpoint an octahedron whose opposite pairs contain features from different coactivating groups. The authors observe more than one trajectory to that endpoint. Some runs enter an antiprism-like configuration along the way, and others can form opposite pairs through a different route.

These observations give a geometric description of particular training runs. The authors connect the sudden changes to earlier work on mechanistic transitions, including work related to grokking, where generalization can emerge after an extended period of training. Their own evidence concerns changes in feature arrangement and loss in the synthetic task. It suggests a question about seemingly smooth loss curves in larger networks: fine-grained transitions may be visible only when the representations are examined directly.

From overlapping features to polysemantic neurons

In the reconstruction network with a hidden ReLU, the authors use 10 input features and 5 hidden neurons, with an importance curve based on 0.75 raised to the feature index. They train 1000 networks for each displayed setting and show the one with the lowest loss. This selection serves the aim of illustrating well-optimized solutions, especially in a small hidden space where optimization can be difficult. It does mean that a figure displays a selected solution. The authors report that typical solutions are often qualitatively similar and that selecting the lowest-loss runs reveals more structure.

With a privileged basis, the weight plots can show directly which features affect a neuron. Some neurons have weights dedicated to a single feature, and some have substantial connections to several. Increasing sparsity shifts the solutions towards more sharing. Both kinds of neurons can coexist. Furthermore, even where individual neurons are polysemantic, a feature can have a structured pattern of connections to a particular set of neurons. A neuron-based analysis and a feature-based analysis then describe different aspects of the same weights.

The absolute-value experiment first uses 3 features and 6 hidden neurons as a reference case. The network learns the familiar arrangement in which positive and negative inputs are handled by separate neurons and their outputs are combined for the magnitude. The larger experiment has 100 input features and 40 hidden neurons, with an importance curve based on 0.8 raised to the feature index. In the dense regime the network tends to assign neurons to individual features. As sparsity increases, it learns solutions in which a neuron participates in multiple absolute-value computations.

At intermediate sparsity, some neurons remain dedicated while others encode mixtures. The most important features tend to have dedicated neurons. The authors also see neurons with a large weight for a primary feature and smaller weights for secondary features. Examining only the strongest activations can make such a neuron look cleanly interpretable. Its behavior on more modest activations can tell a different story. This is a direct consequence of unequal connection strengths in the synthetic network, and the authors compare it to qualitative observations from earlier interpretability work on language networks.

Sensitivity to perturbations

The authors measure how the reconstruction network responds to deliberately chosen input perturbations. The maximum perturbation size is 0.1 of the average input norm, with size measured by the L2 norm. The vulnerability measure increases by >3x as superposition forms, and the authors report that its variation closely follows the effective number of features per dimension. Overlapping readouts offer an explanation in this setup. A change to one input feature can modify the decoded signal for others because the feature directions have non-zero dot products.

The authors briefly reverse the comparison by including adversarially perturbed inputs during training. This reduces sharing, but eliminating it in their trial requires perturbations as large as 80% of the input L2 norm. They regard that requirement as too high to make the experiment a satisfying solution. The result is chiefly evidence that the nature of the inputs on which errors are penalized can change whether shared directions are worthwhile.

What the ablations show

The output activation changes the cost of overlap

The most direct architectural comparison removes the output ReLU while retaining the tied projection, bottleneck, and bias. A linear decoder pays for off-diagonal contributions of both signs. With independent features, its objective favors preserving the most useful available directions without spending capacity on overlapping copies. The rectifier changes the costs selectively. A negative contribution to an absent feature can be harmless, and a bias can suppress weak positive cross-talk. This explains why adding the output activation matters especially when most features are absent on most inputs.

The density sweep establishes the other part of the mechanism. ReLU is present even in the dense run, where the learned strategy still resembles the linear solution. Its ability to set a readout to zero is most useful on inputs for which that feature is genuinely absent. Under frequent coactivation, interference can alter a present feature, and clipping cannot restore the value that was lost. Sparsity changes how frequently suppression is appropriate. The activation changes whether suppression is available.

The theoretical phase comparison isolates a related point. An antipodal pair and a dedicated direction have different kinds of failure. A dedicated direction sacrifices whichever feature it leaves out. An antipodal pair can reconstruct either feature in isolation but can confuse their presence and magnitude when they occur together. Increasing sparsity reduces the cost of the second kind of failure. Increasing the importance of a particular feature increases the value of keeping its readout reliable. The crossing between candidate loss curves makes this exchange visible in a way that a weight plot alone cannot.

Change one feature and watch the others move

The non-uniform geometry experiments first vary the sparsity of one feature. The reference case has 5 features, 2 hidden dimensions, importance 1, and activation density 0.05. With equal frequencies the vectors form a regular pentagon. Making one feature denser moves the other vectors away from it. Making that feature rarer allows the others to encroach on its direction. Thus the learned geometry responds to a local change in the data distribution while retaining a recognizable version of the original arrangement.

The deformation has a boundary. When the exceptional feature becomes sparse enough, a pair of opposite pairs replaces the pentagon, and the rare feature loses its encoding. The authors fit the networks repeatedly and inspect less successful solutions alongside the best ones. In the region of the switch, runs can realize the different geometries and reveal how their losses vary. The loss curves cross. The analysis shows that a feature can change its position gradually within an arrangement and then drop out when a different allocation of space becomes preferable.

Change which features occur together

The coactivation experiments vary the dependency structure of the data. In correlated groups, features share the random decision about whether to be present. Their non-zero values can still vary independently. In anticorrelated groups, only one member can be active when the group is present. These constructions let the authors change the chance of interference during coactivation while keeping control over what it means for a given feature to have a strength.

Correlated features often occupy nearly perpendicular directions. In a network that is globally sharing capacity, a subset of features that frequently occur together can have an almost orthogonal local basis. If the network cannot maintain orthogonality for a set of correlated features, nearby directions can be preferable to opposite ones. Opposite directions cancel signals when the features occur together, which is exactly when a reconstruction of both is required. For features that tend to exclude each other, opposition is more useful. An opposite pair can share a dimension with little risk that the pair will have to be decoded simultaneously.

The collapse experiment shows another option. The authors use six features grouped into three correlated pairs, with shared presence decisions within each pair. With very sparse inputs, the feature vectors form a hexagon and the members of each pair are neighbors. As density increases, paired directions progressively merge, and a dense solution resembles principal component analysis. The resulting readout preserves the shared strength of a pair while giving up its contrast. This is a distinct form of compression within the same problem. A principal component summarizes signals that occur together. Superposition can preserve separate signals that typically occur apart. Some settings reward a mixture of the two strategies.

Put the nonlinearity where the task needs it

The hidden-ReLU reconstruction experiment is a comparison about alignment, but the authors also investigate ways the network can sidestep the effect of the activation. A free hidden bias can become positive and move the neuron into the linear part of its response. Even without that bias, a broad layer of incoming features can supply something like a steady positive offset. These observations explain why the authors seek another task for studying neuron alignment. If the goal is to preserve a non-negative vector, the network may benefit from keeping hidden activations in a regime where the rectifier changes very little.

Absolute value gives the hidden activation an essential role in the circuit the authors examine. In the dense reference case, positive and negative branches for a feature can occupy dedicated neurons. In the sparse case, the weights show how those roles can be shared. The authors inspect one solution with a pattern of unequal encoding weights and compensating output weights. The unequal weights preserve the intended signal along each route while making interference much stronger in one direction than the other. A second neuron inhibits the affected output in a case that would otherwise yield substantial false positive activity. The final rectifier can then suppress the remaining negative signal. The example explains how a shared neuron can be part of a computation that actively controls interference.

Test whether the observed phases exhaust the possibilities

The paper includes independent replications of the basic sparsity sweeps, phase diagrams, feature-dimensionality patterns, and training jumps. A replication that varied the activation function found that the phase diagrams changed substantially. The result reinforces the interpretation of the nonlinearity as part of the tradeoff that determines the encoding. Sparsity and importance alone cannot determine a universal diagram for every architecture.

A separate analysis in the paper's comments solves the expected loss for the case with 2 features and 1 hidden dimension, with the bias omitted. It finds a configuration in which the learned weights are close together with the same sign when both features matter and sparsity is low. The original theoretical comparison used antipodal sharing or a dedicated direction for one feature. Examining the full loss surface uncovers a shared solution that those candidates leave out. The comment also describes a continuous change of the minimum in part of the diagram and evidence of a discontinuous change elsewhere. This clarifies why an idealized crossover can capture a sharp transition without describing every boundary or every solution found by optimization.

Limitations

Limits identified by the authors

The authors establish that feature superposition can emerge under training in their synthetic setting. They explicitly leave its extent in ordinary neural networks unresolved. Observations of polysemantic neurons in vision and language networks are consistent with the proposed mechanism. The feature definitions, their true activation frequencies, and their importance to the task are available to the experimenter in the synthetic setting. In a network trained on natural inputs, those quantities would themselves have to be inferred.

The authors are especially cautious about generalizing the particular geometric arrangements and training trajectories. The cleanest polytopes arise when features have equal importance and sparsity and independent presence decisions. The experiments that introduce non-uniformity show deformations, abrupt switches, and changes due to correlations. They offer examples of what can happen when the symmetry is broken. The paper leaves a general account of the geometry of unequal or dependent features open.

The authors also flag a practical weakness of the hidden-ReLU reconstruction network. It will seek ways to operate in the linear region of the activation when the architecture and the data allow it. The absolute-value task addresses this issue by giving rectification a useful role, but the authors ask how representative the function is of other computations. Its branches can be treated separately, and the target for each feature depends only on that feature's input. More elaborate computations might require simultaneous, accurate access to features that cause interference when combined.

The paper also notes that sparsity changes the computation benchmark itself. Expected absolute-value loss on denser inputs places more weight on examples where many features are active. Expected loss on sparser inputs places more weight on examples with widespread zeros. The raw losses from these distributions cannot answer how much an alternative encoding would improve the same task under the same test distribution. The evidence for computation in superposition comes chiefly from the trained circuits and the useful approximations they implement.

The robustness results are preliminary. The authors describe other possible explanations of adversarial examples and leave open how much superposition contributes in practice. Observing the effect within an architecture whose readouts follow the feature dot products supports a local explanation. The experiment leaves the relative contribution of that mechanism in other architectures and tasks unsettled. The proposals concerning mixture-of-experts networks are similarly exploratory. The authors suggest that selective activation might reduce pressure to share by weakening the link between total neuron count and computation per input. The reconstruction and absolute-value experiments do not establish that expert routing has this effect in practice.

Limits visible in the experimental setup

The basic architecture ties the decoder to the encoder. This makes the dot products between feature vectors sufficient to describe the preactivation readouts. A network with separate, more expressive decoding weights could have a different tradeoff between packing features and recovering them. A deeper encoder could also learn ways to compress signals that have no direct counterpart in this experiment. The paper's appendix sketches a nonlinear compression scheme as a possibility and discusses reasons such schemes might be hard to learn or use. The main experiments are deliberately set up to observe a linear hidden representation with a simple readout.

The phase diagrams compare well-defined encoding strategies, but the theoretical diagrams only compare the configurations selected for analysis. In particular, the three-feature comparison leaves out joint sharing by all three directions. The findings from the independent loss-surface analysis illustrate why the distinction matters. Even a very small architecture can support a solution that the natural candidates miss. The empirical diagrams also depend on optimization finding good solutions. Averaging over restarts reduces variability, and plotting best runs reveals what training can discover. The frequency and accessibility of those solutions under ordinary training remain separate questions.

The appendix connects the toy reconstruction problem to a compressed-sensing lower bound under a recovery and projection hypothesis.

m = Ω(k log(n/k))

Here m is the dimension of the projection, n is the input dimension, k is the number of non-zero entries allowed in the sparse vectors under consideration, and log denotes a logarithm. Ω denotes an asymptotic lower bound up to a constant factor. The connection assumes sufficiently accurate recovery on the relevant inputs and a restricted isometry property for the encoder, meaning that sparse directions retain approximately their lengths under projection. The training objective averages weighted errors under a distribution and can favor dropping features. A bound for uniform sparse recovery under those assumptions therefore has a different scope from a count of the features a trained network retains.

There is a similar difference between the existence of an encoding and the ability to discover it after training. The authors know the feature coordinates in advance and can read their directions straight from the network weights. An investigator starting with a trained language network would see activations and weights without that list. An overcomplete dictionary of directions would have to be inferred, and it would raise questions about how many features to include, whether their activations can be recovered reliably, and how the inferred features relate to actual computation. Local sets of nearly perpendicular directions could make analysis easier on particular families of inputs. A complete mechanistic account would also have to explain interactions outside those families.

The paper treats exhaustive feature identification as a possible aid to safety reasoning. It would make it easier to ask which circuits use a particular feature, or to check a proposed explanation against every component found in a layer. Identifying a direction for an undesirable concept would still leave the question of what the network does with that information. The toy tasks demonstrate neither exhaustive feature recovery in realistic systems nor a guarantee about which behaviors their computations can produce.

What came after

Directions as objects of study

The later papers pursue several questions that the toy experiments make easier to distinguish. One is whether meaningful properties can be located in activation space even when a coordinate-by-coordinate description is inadequate. The work on truth examines linear structure associated with true and false examples. The work on sentiment studies linear representations of an affective property. Each focuses on a candidate distinction and asks how it appears as geometry. The toy experiments supply a reason to take such geometry seriously: a feature can have a useful direction even when a neuron along one coordinate is involved in several features. The existence of a direction for a given distinction still leaves the capacity and overlap of the full representation to be characterized. The Geometry of Truth · Linear Representations of Sentiment

The work on space and time extends the inquiry to spatial and temporal information in language models. The work on the linear representation hypothesis addresses the broader geometric picture. The distinction from the toy setting is one of access to the features. In the synthetic experiment, the feature identities are given and their positions are learned. Studies of representations in language networks start with a property of interest and ask how the network encodes it. Such work examines the linearity assumption where it matters for interpretation, while a test for superposition would also require evidence about how many distinct features share the representation and how they interact. Language Models Represent Space and Time · The Linear Representation Hypothesis

Directions as points of intervention

Representation Engineering takes a top-down approach to transparency, starting from a property of interest and looking for a way to describe it at the level of internal representations. Activation Engineering treats activations as a place to intervene to steer behavior. These are natural extensions of an account in which a meaningful signal can span coordinates. If one can find a direction associated with a property, changing activity along it offers a way to ask what role the signal has in the network's behavior. The toy study explains why the intervention may require judgment about side effects. An activation direction can participate in more than one readout whenever it overlaps with other feature directions. Representation Engineering · Steering with Activation Engineering

The study of refusal makes a specific claim about mediation by a single direction. It takes the direction-based view from the description of an internal signal to an account of a particular behavior. ReFT uses representations as the object of fine-tuning, making them a locus for adaptation. These projects address what can be done with selected representations. The toy paper's question about a complete inventory of overlapping features is broader. A successful intervention can establish a consequential role for a selected signal while leaving other features and their connections to be described. Refusal Is Mediated by a Single Direction · ReFT

From individual directions to features and circuits

Sparse probing approaches related questions by looking for neurons that carry information about selected properties. That is a useful counterpart to a search over arbitrary directions because the toy experiments allow individual neurons to remain informative even when the layer as a whole shares capacity. Whether a targeted property can be read from a few neurons and whether those neurons represent the property exclusively are different questions. A primary feature with weaker secondary inputs is a concrete case in which the distinction can matter. Finding Neurons in a Haystack

Llama Scope uses sparse autoencoders to extract features from a trained language network. This is closely related to the toy paper's proposal to fit an overcomplete dictionary after training. An input may be described using a small subset of a large dictionary of possible directions. Allowing the dictionary to have more entries than the activation has coordinates gives such a method room to describe features that share the original space. The question then shifts from whether that kind of code can arise to how well a fitted dictionary recovers the units needed for an explanation. Llama Scope

Sparse Feature Circuits addresses the next step by discovering and editing causal graphs expressed in terms of interpretable features. Its focus connects to the toy paper's distinction between describing activations and explaining the operations performed on them. A feature inventory gives a vocabulary for stating what is present. A causal graph can express how changes in those features affect one another and contribute to behavior. AxBench examines a different criterion, comparing sparse autoencoders with simpler alternatives for steering. Its reported comparison favors simple baselines for that purpose. This sharpens the question of what an extracted feature representation is being evaluated to do: describing an activation, explaining a causal pathway, and steering a behavior each call for their own evidence. Sparse Feature Circuits · AxBench

Cite

Cite as 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 and Christopher Olah. 2022. Toy Models of Superposition. arXiv:2209.10652.

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.48550/arxiv.2209.10652 · arXiv 2209.10652

@misc{elhage2022toy,
  title = {{Toy Models of Superposition}},
  author = {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 and Christopher Olah},
  year = {2022},
  doi = {10.48550/arxiv.2209.10652},
  eprint = {2209.10652},
  archivePrefix = {arXiv},
  url = {https://doi.org/10.48550/arxiv.2209.10652}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/elhage-2022-toy-models-superposition/