Looking Beyond The Top-1: Transformers Determine Top Tokens In Order
Not on the map. Why?
Abstract (arXiv)
Understanding the inner workings of Transformers is crucial for achieving more accurate and efficient predictions. In this work, we analyze the computation performed by Transformers in the layers after the top-1 prediction has become fixed, which has been previously referred to as the "saturation event". We expand the concept of saturation events for top-k tokens, demonstrating that similar saturation events occur across language, vision, and speech models. We find that these saturation events happen in order of the corresponding tokens' ranking, i.e., the model first decides on the top ranking token, then the second highest ranking token, and so on. This phenomenon seems intrinsic to the Transformer architecture, occurring across different architectural variants (decoder-only, encoder-only, and to a lesser extent full-Transformer), and even in untrained Transformers. We propose an underlying mechanism of task transition for this sequential saturation, where task k corresponds to predicting the k-th most probable token, and the saturation events are in fact discrete transitions between the tasks. In support of this we show that it is possible to predict the current task from hidden layer embedding. Furthermore, using an intervention method we demonstrate that we can cause the model to switch from one task to the next. Finally, leveraging our findings, we introduce a novel token-level early-exit strategy, which surpasses existing methods in balancing performance and efficiency.
Key facts. Cited by 12 papers in the map (data through 7 Oct 2026). Builds on 26 of its 33 references that are in the map. First posted on arXiv 26 Oct 2024.
Builds on
26 of 33 references.
References · 26
- 2017Attention Is All You Needcited by 59,932
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
- 2022Robust Speech Recognition via Large-Scale Weak Supervisioncited by 3,972
- 2019The Curious Case of Neural Text Degenerationcited by 2,881
- 2018Hierarchical Neural Story Generationcited by 1,182
- 2015Teaching Machines to Read and Comprehendcited by 1,039
- 2023Eliciting Latent Predictions from Transformers with the Tuned Lenscited by 579
- 2022Transformer Feed-Forward Layers Build Predictions by Promoting Concepts in the Vocabulary Spacecited by 522
- 2024ShortGPT: Layers in Large Language Models are More Redundant Than You Expectcited by 369
- 2022Confident Adaptive Language Modelingcited by 297
- 2024Do Llamas Work in English? On the Latent Language of Multilingual Transformerscited by 275
- 2023Google USM: Scaling Automatic Speech Recognition Beyond 100 Languagescited by 228
14 more
- 2024Do Large Language Models Latently Perform Multi-Hop Reasoning?cited by 165
- 2020The Right Tool for the Job: Matching Model and Instance Complexitiescited by 125
- 2024Transformers are Multi-State RNNscited by 120
- 2024A Thorough Examination of Decoding Methods in the Era of LLMscited by 112
- 2023A Mechanistic Interpretation of Arithmetic Reasoning in Language Models using Causal Mediation Analysiscited by 88
- 2024What Matters in Transformers? Not All Attention is Neededcited by 83
- 2023Overthinking the Truth: Understanding how Language Models Process False Demonstrationscited by 78
- 2024Transformer Layers as Painterscited by 50
- 2024Explorations of Self-Repair in Language Modelscited by 35
- 2023Analyzing Vision Transformers for Image Classification in Class Embedding Spacecited by 26
- 2024Attend First, Consolidate Later: On the Importance of Attention in Different LLM Layerscited by 25
- 2024Does Transformer Interpretability Transfer to RNNs?cited by 9
- 2021Language Modelling via Learning to Rankcited by 7
- 2023Big model only for hard audios: Sample dependent Whisper model selection for efficient inferencescited by 2
Built on by
Citing papers per year: 2024: 2; 2025: 3; 2026: 7.
12 papers.
- 2024Accelerating Multimodal Large Language Models via Dynamic Visual-Token Exit and the Empirical Findingscited by 15
- 2025How Do LLMs Use Their Depth?cited by 15
- 2025LUMINA: Detecting Hallucinations in RAG System with Context-Knowledge Signalscited by 8
- 2025Deep Thinking by Markov Chain of Continuous Thoughtscited by 8
- 2026Inverse Depth Scaling From Most Layers Being Similarcited by 8
- 2024freePruner: A Training-free Approach for Large Multimodal Model Accelerationcited by 7
- 2026Rethinking Layer Relevance in Large Language Models Beyond Cosine Similaritycited by 4
- 2026PELM: Power Efficient On-Device LLM Inference with Speculative Decoding and Dynamic Voltage Frequency Scalingcited by 1
- 2026Interleaved Speech Language Models Latently Work In Textcited by 0
- 2026Depth Exploration for LLM Decodingcited by 0
- 2026The Hard Decision Layer: Evidence for Committed Inference in Transformerscited by 0
- 2026TULIP: Targeted LLM Unlearning at Layers Identified Per-Inputcited by 0
- 2026TULIP: Targeted LLM Unlearning at Layers Identified Per-Input28 Sep 2026
- 2026PELM: Power Efficient On-Device LLM Inference with Speculative Decoding and Dynamic Voltage Frequency Scaling9 Sep 2026
- 2026Depth Exploration for LLM Decoding28 Jun 2026
- 2026Interleaved Speech Language Models Latently Work In Text21 Jun 2026
- 2026The Hard Decision Layer: Evidence for Committed Inference in Transformers25 May 2026
- 2026Rethinking Layer Relevance in Large Language Models Beyond Cosine Similarity13 May 2026
- 2026Inverse Depth Scaling From Most Layers Being Similar5 Feb 2026
- 2025How Do LLMs Use Their Depth?21 Oct 2025
- 2025Deep Thinking by Markov Chain of Continuous Thoughts29 Sep 2025
- 2025LUMINA: Detecting Hallucinations in RAG System with Context-Knowledge Signals26 Sep 2025
- 2024Accelerating Multimodal Large Language Models via Dynamic Visual-Token Exit and the Empirical Findings29 Nov 2024
- 2024freePruner: A Training-free Approach for Large Multimodal Model Acceleration23 Nov 2024
Similar, not cited
Close in wording, no citation either way
- 2025Dynamical Properties of Tokens in Self-Attention and Effects of Positional Encoding
- 2024Let's Think Dot by Dot: Hidden Computation in Transformer Language Models
- 2024AttnLRP: Attention-Aware Layer-Wise Relevance Propagation for Transformers
- 2026Adaptive Computation Depth via Learned Token Routing in Transformers
- 2026Linear Predictability of Attention Heads in Large Language Models
- 2025The End of Transformers? On Challenging Attention and the Rise of Sub-Quadratic Architectures
- 2026Trading Depth for Time in Recurrent Transformers
- 2023Constraint-aware and Ranking-distilled Token Pruning for Efficient Transformer Inference