Privileged Bases in the Transformer Residual Stream

Elhage, Lasenby and Olah ask why individual coordinates of a transformer's residual stream carry unusually large values when the architecture gives them no special status; using a kurtosis measure and models trained with random rotations, they rule out layer normalization and floating-point precision and provisionally blame the per-coordinate normalization in the Adam optimizer.

Nelson Elhage, Robert Lasenby, Chris Olah (Anthropic) · 2023-03-16 · original

Elhage, Lasenby and Olah (Anthropic, Transformer Circuits Thread, March 2023) find that the residual stream of a 200-million-parameter transformer is strongly aligned with its coordinate axes although nothing in the forward pass requires it: mean activation kurtosis is well above the value of 3 expected without a privileged basis, in every layer. Replacing LayerNorm with a rotation-invariant RMSNorm leaves the heavy tails in place. Models trained with random rotations between the residual stream and the layers train as well, and their heavy tails follow the basis in which the layers compute, which the authors take as strong evidence against floating-point precision as the cause. They provisionally blame the per-coordinate normalization in the Adam optimizer, without testing it directly; each variant was trained once.

The residual stream of a transformer is the vector at each token position that every layer reads from and adds its output to (see Assembling the Transformer Block). Anthropic's mathematical account of transformers held that this stream has no privileged basis: every read and write passes through a full linear map, so the stream could be rotated by any invertible transformation, with the compensating transformation folded into every weight matrix, and the network would compute exactly the same function in different coordinates. On that account no single coordinate should mean anything special. Yet Tim Dettmers had reported "emergent outliers" in large transformers: particular residual-stream coordinates taking values up to 20 times larger than any other. This short paper, published on the Transformer Circuits Thread, asks not what those outliers represent but why they line up with the coordinate axes at all. Its abstract states the answer as provisional: "the per-dimension normalizers in the Adam optimizer are to blame".

Terms used in this note

  • Basis and privileged basis. A basis is the set of coordinate directions in which a vector is written down. A layer has a privileged basis when something in the computation treats those particular directions differently from others, most commonly a nonlinear function applied to each coordinate separately. Without one, a rotated copy of the representation is equally valid.
  • Outlier. Following Dettmers' first definition, a single residual-stream value whose absolute value exceeds 6 ("Measuring Outliers").
  • Kurtosis. A measure of how heavy a distribution's tails are. A Gaussian distribution has kurtosis 3; larger values mean more extreme values than a Gaussian would produce. Summarizing Data with pandas gives the moment formula and the "excess" convention, kurtosis minus 3, that some software reports by default.
  • LayerNorm and RMSNorm. Layer normalization subtracts the mean of a vector, divides by its spread and applies a learned scale to each coordinate. The variant used here, close to RMSNorm, only divides by the root-mean-square of the vector and multiplies by a single learned number, which gives the same result in any rotated basis ("LayerNorm").
  • Adam. An optimizer that keeps running averages of each parameter's gradient and squared gradient and scales each parameter's update by them separately (see The Bigram Language Model for its use in a small model). Because the scaling is done parameter by parameter, it treats the coordinates in which the weights are stored differently from other directions.

What the paper does

A model and a measure

The experiments use a 200-million-parameter transformer trained with Anthropic's codebase, with a residual stream of 1,280 dimensions ("The experiments"). Dettmers had suggested that outliers appear inconsistently below larger sizes, but the authors find them frequent enough at this size. Counting, over a test batch of 128 sequences of 1,024 tokens, how many residual-stream dimensions ever exceed the outlier threshold, they find the count growing through the model, with a typical layer having 20 to 60 outlier dimensions. The bar chart in that section, which prints its values, shows ten layers: none in the first two, then 22 rising to 69 in the last.

Because a threshold is arbitrary, they propose a general test ("Activation Kurtosis"). If features were stored in random directions, the coordinates of each feature's direction would look like independent samples from a Gaussian, and so would the coordinates of the activation vector, which is a sum of such directions. Treating one token's activation vector as a sample and computing its kurtosis should then give about 3. Values above 3 indicate that some coordinates are special. The authors average this over many tokens. A footnote adds an asymmetry: kurtosis above 3 implies a privileged basis, but kurtosis of 3 does not prove there is none, since features with Gaussian activations would also give 3 (footnote 1).

Three candidate causes

The paper tests three sources of basis dependence ("Hypotheses for the basis-alignment"):

  • LayerNorm, the one standard operation in the forward pass that depends on the basis, through its mean subtraction and per-coordinate learned weights. The test replaces it with the rotation-invariant RMSNorm variant.
  • Finite-precision arithmetic, a hypothesis attributed to Neel Nanda and Alex Silverstein: floating-point numbers lose precision when values of very different sizes are added, so the model might benefit from keeping features of different magnitudes in separate coordinates. The test rotates the trained model's weights by a random orthonormal matrix and measures the change in loss; it then trains models in which the residual stream is rotated relative to the layers.
  • The optimizer, which remains after the other two are ruled out.

The rotated-training experiment has two versions ("Optimizing in an arbitrary basis"). In the shared rotation model, one fixed random rotation is applied whenever a layer reads from the residual stream (and its inverse whenever a layer writes to it), so all layers compute in one shared basis that differs from the residual stream's. In the independent rotations model, every read and write uses a different random rotation, so each layer computes in its own unrelated basis. Because each rotation sits next to a full linear map, neither change alters what functions the model can express.

What it finds

The residual stream is far from rotation-invariant in practice

In the 200-million-parameter baseline model, mean kurtosis is well above 3 in every layer: the chart in "Activation Kurtosis" prints values from 11 in the first layer and a peak of 59 in the second, falling to 17 in the last. Applying a fixed random rotation to the same activations brings the measure to 3.0 in every layer, as the argument predicts; the authors present this as confirming that the metric behaves as intended.

LayerNorm is not the cause

The RMSNorm model trained as well as the LayerNorm baseline, and its kurtosis results were, in the authors' words, "broadly similar to the reference model, and, if anything, even more heavy-tailed" ("LayerNorm"). By layer, the printed values are lower than the baseline's in the first two layers (7.2 and 32, against 11 and 59) and higher in the other eight (36 to 58, against 17 to 56). The authors conclude that the small basis dependence of standard LayerNorm does not cause the outliers. The test removes LayerNorm's basis-dependent parts, its mean subtraction and per-coordinate weights; the model still normalizes its activations, so the experiment does not address whether normalization itself contributes.

Floating-point precision is ruled out, with a stated reservation

With RMSNorm, the model should be fully rotation-invariant, so rotating every weight matrix should leave it unchanged up to rounding error. Random rotations did tend to raise the loss on average, but by tiny amounts, against a baseline test loss of about 3.02 nats ("Verifying the model is basis-independent"). The chart there shows 20 rotations without printed values; read from its axis, the changes lie between about -2×10⁻⁵ and +6×10⁻⁵ nats. The authors add that they "see much larger noise from e.g. different random seeds at model initialization", without giving that noise as a number. They conclude that the forward pass is rotation-invariant even with floating-point error.

Both rotated-training models trained essentially as well as the baseline; their loss curves, which run to about 2 billion training tokens, differ slightly early in training and converge to what the authors "believe is within noise" after about a billion tokens ("Optimizing in an arbitrary basis"; "Loss curves"). The authors conclude that transformers do not need a privileged basis to train and work well, and count this as moderate evidence against the precision hypothesis. In both rotated models, the residual stream's kurtosis was 3.0 in every layer. The stronger evidence came from looking inside the layers: in the shared rotation model, the activations entering each MLP layer, in the shared computation basis, look "very similar to the baseline model, in terms of the heaviness of its tails". The printed values are 5.8 in the first layer and 41 to 62 in the other nine, against 9.7 to 69 for the baseline at the same point. The authors conclude that the basis alignment follows the basis in which computation happens, not the basis in which information is passed between layers, and call this strong evidence against the precision hypothesis. In the independent rotations model, tails were "very small" (pre-MLP kurtosis 3.0 to 3.2, highest in the first three layers), which the authors read as suggesting that the effect arises when all the layers share one basis and reinforce it together.

The paper's overall verdict on precision is hedged: it calls the experiments "fairly compelling evidence that numerical precision is not the driving factor" and adds: "The case is not completely airtight, but we find it strong" ("Conclusion"). The abstract is stronger: it says the authors "confidently rule these out", LayerNorm and finite precision together.

The optimizer remains

Adam normalizes each parameter's update by that parameter's own gradient statistics, so it favors the basis in which the weights are stored. Having ruled out the other candidates, the authors call it the strongest basis-dependent operation they know of in the model and conclude that the experiments "push in the direction of suspecting the optimizer" ("Conclusion").

Limitations and open questions

  • Not a direct test of Adam. The authors write that "we cannot claim to have conclusively put the blame on Adam" and that another, unidentified mechanism could be involved ("Conclusion"). They describe two follow-up experiments they chose not to run: training a transformer with plain SGD or another optimizer that has no basis dependence, possibly with a very low learning rate and many steps, and training with Adam while storing its moment estimates in a different basis from the weights.
  • One small model. The experiments use a 200-million-parameter model; Dettmers' outliers were reported mainly in larger models.
  • One run per variant, no intervals. The paper shows one training run for each of the four models and reports no seeds, variances or intervals for its kurtosis values or loss curves. Its comparison with seed-to-seed noise is stated, not quantified.
  • Later work on normalization and the optimizer. He, Noci, Paliotta, Schlag and Hofmann (NeurIPS 2024) agree that removing a normalization layer's trainable weights does not prevent outlier features, but report that removing normalization layers altogether, in a block designed to train as fast without them, greatly reduces them (Section 3). They also report that optimizers which rotate the parameter space before a per-coordinate update (SOAP, and AdaFactor in Shampoo's eigenbasis) reduce outliers even with normalization layers present (Section 5, Figure 8). They attribute extreme outliers to an interaction of normalization layers and per-coordinate adaptive optimizers (footnote 10), and describe this paper's rotation experiment as showing "a similar result". Their kurtosis is computed over each neuron's activation size across inputs, not over one token's coordinates, so their numbers are not on this paper's scale.
  • A small-scale test of the Adam hypothesis. A LessWrong post by Diego Caples and Rob Neuhaus (6 September 2024) ran the authors' first proposed experiment on a 12-million-parameter model trained on the TinyStories dataset: with Adam, excess kurtosis (kurtosis minus 3) rose above 100; with SGD with momentum it stayed near 0, although SGD needed about 16 times as many steps to reach the same loss. The post reports one run per optimizer and is not peer reviewed; its claim to "conclusively show" the cause is its authors'.
  • What the outliers represent is left open. The paper addresses why outliers are basis-aligned, not what they encode or what purpose they serve.
  • The kurtosis test is one-sided. As footnote 1 notes, a value of 3 does not by itself show that a representation has no privileged basis.

Research questions

  1. Do the outliers disappear when the optimizer has no basis dependence? The authors' own proposed experiment: train matched models with Adam and with SGD (or Adam with moments stored in a rotated basis) and compare kurtosis by layer. The Adam and SGD comparison has since been reported for one 12-million-parameter model, and rotated-basis optimizers have been tested at larger scale (see Limitations); repeated runs at this paper's scale, with the Adam-in-a-rotated-basis variant, would settle the authors' version of the question.
  2. Does the effect grow with model size? The study uses one 200-million-parameter model. Measuring kurtosis across a range of sizes trained with the same recipe would show whether basis alignment strengthens at the scales where Dettmers reported outliers.
  3. What do the basis-aligned outlier dimensions encode? The paper sets this question aside. Correlating outlier dimensions with token types or positions, or ablating them and measuring which predictions change, would begin to answer it.
  4. Does residual-stream basis alignment affect interpretability methods that assume none? Later sparse-autoencoder work treats the residual stream as roughly basis-free. Comparing features learned on raw and randomly rotated residual activations would show whether alignment from the optimizer changes what such methods find.
  5. Why do layers that share a basis reinforce alignment? The independent rotations result suggests a collective effect. Training models in which only some layers share a basis would show how the effect builds up.

How it connects

References

Reviewed: checked against sources, 13 Nov 2026 · editorial review, 23 Nov 2026 · 4 revisions