On the Geometric Structure of Layer Updates in Deep Language Models
Organizations: Institute of Basic Science, Korea University, 145 Anam-ro, Seoul, South Korea 02841.
Abstract
We study the geometric structure of layer updates in deep language models. Rather than analyzing what information is encoded in intermediate representations, we ask how representations change from one layer to the next. We show that layerwise updates admit a decomposition into a dominant tokenwise component and a residual that is not captured by restricted tokenwise function classes. Across multiple architectures, including Transformers and state-space models, we find that the full layer update is almost perfectly aligned with the tokenwise component, while the residual exhibits substantially weaker alignment, larger angular deviation, and significantly lower projection onto the dominant tokenwise subspace. This indicates that the residual is not merely a small correction, but a geometrically distinct component of the transformation. This geometric separation has functional consequences: approximation error under the restricted tokenwise model is strongly associated with output perturbation, with Spearman correlations often exceeding 0.7 and reaching up to 0.95 in larger models. Together, these results suggest that most layerwise updates behave like structured reparameterizations along a dominant direction, while functionally significant computation is concentrated in a geometrically distinct residual component. Our framework provides a simple, architecture-agnostic method for probing the geometric and functional structure of layer updates in modern language models.
Figures & tables
| Model | Mean Spearman |
|---|---|
| Pythia-70m | 0.906 |
| Pythia-410m | 0.837 |
| Pythia-1b | 0.804 |
| Pythia-1.4b | 0.883 |
| distilgpt2 | 0.321 |
| Mamba-130m | 0.605 |
| Regime | RelErr (Lin) | RelErr (MLP) | KL (Lin) | KL (MLP) | (Lin) | (MLP) |
|---|---|---|---|---|---|---|
| Low | 0.18 | 0.26 | 6.1e-4 | 1.30e-3 | 0.80 | 0.62 |
| Mid | 0.43 | 0.46 | 2.73e-3 | 1.88e-3 | 0.59 | 0.56 |
| High | 0.62 | 0.57 | 7.50e-3 | 2.53e-3 | 0.06 | 0.53 |
| Overall | 0.41 | 0.43 | 3.63e-3 | 1.91e-3 | 0.82 | 0.73 |
Appendix figures & tables1 asset
Supplementary material from the paper’s appendix.
Appendix
Representation Geometry in Language Models
Representation geometry in language models studies how embeddings and hidden states organize concepts, computation, and behavior.
See all 404 papers