Predictive Geometry of Hidden Trajectories in Transformers
Timur Mudarisov, Mikhail Burtsev, Tatiana Petrova, Radu State
Key points
From the paper's conclusion- Formalizing the constraint of decoder-only transformers by studying layerwise loss-to-go functions and their local second-order geometry.
- The geometry identifies output-sensitive directions and approximately prediction-null directions, yielding a local observable subspace of the residual stream.
- The induced geometry predicts perturbation sensitivity and supports nonuniform layerwise rank allocation in transformer models.
Abstract
Decoder-only transformers are trained only through a terminal next-token prediction loss, yet this loss constrains every intermediate hidden state through the fixed downstream computation. We formalize this constraint by studying layerwise loss-to-go functions: the terminal loss obtained by continuing a candidate hidden state through the remaining transformer blocks. Around successful validation trajectories, we show that the local second-order geometry of these functions is governed, up to low-loss residual terms, by a pullback Fisher operator on hidden-state space. Its spectrum identifies output-sensitive directions and approximately prediction-null directions, yielding a local observable subspace of the residual stream. For causal transformers, the same geometry induces a tokenwise curvature score: a Fisher-weighted sensitivity of the target logits to perturbations of each token's hidden state. This score vanishes outside the causal ancestor set of the target and is controlled by downstream Jacobian couplings, making it a loss-aware alternative to attention magnitude. We estimate these quantities using matrix-free Jacobian-vector and vector-Jacobian products and evaluate them across decoder-only language models on WikiText, OpenWebText, and FineWeb. Empirically, the induced geometry predicts perturbation sensitivity, supports nonuniform layerwise rank allocation, yields competitive structured token-pruning signals, and improves low-rank student recovery when added to stronger autoregressive distillation objectives such as reverse KL and skew KL. These results support a predictive-geometric view of transformer computation: near successful trajectories, the terminal loss induces a thin, anisotropic set of output-relevant hidden-state directions that can be measured and exploited for compression and distillation.
Read the paper
Discussion · 1
Science Skim's AI key points, plus readers' public thoughts
- Formalizing the constraint of decoder-only transformers by studying layerwise loss-to-go functions and their local second-order geometry.
- The geometry identifies output-sensitive directions and approximately prediction-null directions, yielding a local observable subspace of the residual stream.
- The induced geometry predicts perturbation sensitivity and supports nonuniform layerwise rank allocation in transformer models.
Readers' thoughts
No reader thoughts yet.
Related papers
- Geometric and Behavioral Stratification in Transformer Residual StreamsarXiv · 2026
- The Geometry of Inference in Transformer Residual StreamsarXiv · 2026
- A Conditional No-Hair Theorem for Transformers: How Language Models Forget Their PromptarXiv · 2026
- Sanity Checks for Attention Surgery: Null Models and Matched Interventions for Representation-Motivated DesignarXiv · 2026
- SympFormer: Inertial Attention Blocks from Damped Hamiltonian Dynamics on Spaces of Probability MeasuresarXiv · 2026
- Beyond Causal Masks: Auditing and Localizing Hidden Future-Token Leakage in Adaptive Sequence ModelsarXiv · 2026