Predictive Geometry of Hidden Trajectories in Transformers
Timur Mudarisov, Mikhail Burtsev, Tatiana Petrova, Radu State
NeurIPS page · OpenReview · Open on the map
Category: Interpretability & Model Adaptation › Transformer Algorithmic Decomposition · Type: new method · Keywords: transformer geometry, pullback Fisher operator, tokenwise curvature, loss-aware sensitivity, model compression, knowledge distillation
Areas: Model Architectures & Sequence Modeling › Language Model Architectures › Attention Geometry
Summary
The paper introduces a predictive-geometric analysis of transformer hidden states, revealing a pullback Fisher operator and tokenwise curvature scores that can be used for compression and distillation.
Explained to a 5-year-old
Computers learn to write text by looking at many words. Inside the computer, there are hidden places that hold information about each word it sees. The paper looks at how these hidden places are shaped by the final goal of predicting the next word. It finds a way to see which hidden places are important and which are not, like a map of what matters. By using this map, we can make the computer model smaller and faster without losing its ability to write well.
Explained to a 5-year-old, longer
A computer program called a transformer learns to guess the next word in a sentence. It does this by looking at many example sentences and trying to predict what comes next. While it learns, it also has hidden places inside it that store information about each word it sees. The paper studies how these hidden places are shaped by the final goal of getting the predictions right. It discovers that there is a special rule, like a map, that tells which hidden places are important for the final answer. This rule is based on how much the final answer changes when we slightly tweak a hidden place. The rule shows that only a few hidden places really matter, and many are not needed for the final prediction. By using this rule, we can make the computer model simpler and faster, like removing unnecessary toys. It also helps the model teach a smaller version of itself more effectively. The findings give us a better understanding of how transformers work inside. This can help engineers build better and more efficient language models.
For a technical reader
The work analyzes how the final loss of a decoder-only transformer shapes its internal hidden representations. By computing layerwise loss-to-go functions and a pullback Fisher operator, the authors derive tokenwise curvature scores that indicate which tokens most influence the final logits. These scores are loss-aware, unlike simple attention magnitudes, and can be used to prune tokens, allocate rank non-uniformly, and improve knowledge distillation. The approach is evaluated on standard language-modeling corpora, showing improved compression and student performance.
Problem
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, making it difficult to understand how hidden trajectories are shaped.
Method
The authors study layerwise loss-to-go functions, derive a pullback Fisher operator on hidden-state space, compute tokenwise curvature scores via Jacobian-vector products, and use these geometric quantities for tasks such as token pruning and student distillation.
Results
The geometry predicts perturbation sensitivity, enables nonuniform layerwise rank allocation, provides competitive token-pruning signals, and improves low-rank student recovery when combined with reverse KL and skew KL distillation.
Contributions
A predictive-geometric view of transformer computation, a pullback Fisher operator and tokenwise curvature score, and empirical evidence that these quantities can be used for compression and distillation.
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