Anthropic research: the privileged basis of the Transformer residual stream comes from the Adam optimizer
Privileged Bases in the Transformer Residual Stream
Anthropic's interpretability research examined why coordinates in the Transformer residual stream show basis-aligned outliers, and preliminarily attributed the cause to the Adam optimizer. The authors reproduced the outlier phenomenon described by Dettmers on a 200 million parameter model, with typical layers having 20-60 outlier dimensions (total d_model=1280), and proposed using activation kurtosis as a general metric for detecting a privileged basis, where kurtosis should be close to 3 without a privileged basis. Experiments ruled out two hypotheses: LayerNorm and limited-precision floating point. Switching to RMSNorm made outliers more heavy-tailed, while applying random rotations in both forward passes and training produced model performance essentially consistent with the baseline, indicating that Transformers can train normally without relying on a privileged basis.
Through rotation experiments and the kurtosis metric, the source of residual stream outliers was progressively ruled out from LayerNorm and floating-point precision, pointing to the Adam optimizer.