Dynamics of the Transformer Residual Stream: Coupling Spectral Geometry to Network Topology
Jesseba Fernando, Grigori Guitchounts
NeurIPS page · OpenReview · alphaXiv · Open on the map
Category: Interpretability & Model Adaptation › Transformer Dynamics Theory · Type: empirical study · Keywords: transformer residual stream, spectral geometry, network topology, Jacobian eigendecomposition, low-rank bottleneck, perturbation propagation
Areas: LLM Reasoning › Efficient Reasoning › Transformer Circuits; Model Architectures & Sequence Modeling › Language Model Architectures › Transformer Structural Properties
Summary
The study reveals that training LLMs creates a monotonic spectral gradient and low-rank bottleneck in the residual stream, linking perturbation propagation to the network’s functional topology.
Explained to a 5-year-old
We looked at big computer programs that write text and how they change information as it moves through many layers. The early layers mix the information a lot, like swirling water, while later layers become calmer and more stable. Some parts of the program become less important over time, like a narrow pipe that only lets a few ideas through. The way the program is organized helps decide if small changes make things bigger or smaller. This helps us understand how these programs think and why they work the way they do.
Explained to a 5-year-old, longer
Big computers can write sentences like we do. Inside them are many layers that pass information from one to another. The first few layers mix the information a lot, like shaking a bottle of juice. As we go deeper, the mixing becomes gentler, like water settling. Some parts of the information become very small, like a tiny stream that only a few drops can go through. This pattern is not just because of how the layers are built, but because the computer learned it. When we remove the mixing, the pattern disappears, showing it was learned. The computer also has groups of information that are connected like friends. Where these groups are placed tells us if the computer will make small changes bigger or smaller. This relationship was not there when the computer was first created. By looking at how the information moves, we can see how the computer compresses and uses what it knows. This helps us understand big language models better and maybe build better ones later.
For a technical reader
The paper analyzes how changes propagate through the hidden layers of large language models by computing the full Jacobian matrix at each layer. It discovers that the eigenvalue spectrum evolves monotonically, starting with non-normal, rotation-dominant behavior in early layers and becoming near-symmetric later. A low-rank bottleneck is observed, funneling most perturbations into a small subset of the model’s dimensions. The study also shows that the placement of graph communities in the model’s topology predicts whether the Jacobian amplifies or suppresses those communities. These findings reveal that the model’s internal dynamics are learned rather than purely architectural, providing insight into compression and stability.
Problem
The dynamics of computation in transformer residual streams, especially their spectral geometry and how it relates to network topology, are not well understood.
Method
The authors perform full Jacobian eigendecomposition across three production-scale LLMs, analyze the resulting eigenvalue spectra, and examine how graph community positions correlate with Jacobian amplification or suppression.
Results
The approach finds a monotonic spectral gradient from early to late layers, a low-rank bottleneck concentrating perturbations, and a link between graph community topology and Jacobian amplification or suppression.
Contributions
It provides the first full Jacobian eigendecomposition of production-scale LLMs, revealing learned spectral geometry, low-rank bottlenecks, and topology-dependent perturbation propagation.
Research questions this paper is counted under
This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction