Not a nuisance but a useful heuristic: Outlier dimensions favor frequent tokens in language models
Iuri Macocco, Nora Graichen, Gemma Boleda, Marco Baroni
TL;DR
This work reveals that last-layer outlier dimensions ($OD$s) are a widespread and structurally impactful feature of decoder-only language models. By identifying $OD$s via extreme activations and tracing their interaction with the unembedding matrix, the authors show that these dimensions implement a baseline heuristic favoring frequent tokens, while other dimensions compensate to enable context-aware predictions. Across multiple models, ablations demonstrate that $OD$s critically shape output distributions, boosting frequent words and reducing token diversity when removed, with the effect modulated by specific parameters such as the last MLP down-projection and LayerNorm components. The findings illuminate a concrete mechanism behind frequency-based token prediction, highlight model-dependent variability, and point to implications for model design, quantization, and interpretability, including training-time emergence of $OD$s.
Abstract
We study last-layer outlier dimensions, i.e. dimensions that display extreme activations for the majority of inputs. We show that outlier dimensions arise in many different modern language models, and trace their function back to the heuristic of constantly predicting frequent words. We further show how a model can block this heuristic when it is not contextually appropriate, by assigning a counterbalancing weight mass to the remaining dimensions, and we investigate which model parameters boost outlier dimensions and when they arise during training. We conclude that outlier dimensions are a specialized mechanism discovered by many distinct models to implement a useful token prediction heuristic.
