mlsanityData to 7 Oct 2026

Looking Beyond The Top-1: Transformers Determine Top Tokens In Order

arXiv 2410.20210 ↗First posted 26 Oct 2024cs.CL cs.LGcited by 12

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

  1. 2017Attention Is All You Needcited by 59,932
  2. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
  3. 2022Robust Speech Recognition via Large-Scale Weak Supervisioncited by 3,972
  4. 2019The Curious Case of Neural Text Degenerationcited by 2,881
  5. 2018Hierarchical Neural Story Generationcited by 1,182
  6. 2015Teaching Machines to Read and Comprehendcited by 1,039
  7. 2023Eliciting Latent Predictions from Transformers with the Tuned Lenscited by 579
  8. 2022Transformer Feed-Forward Layers Build Predictions by Promoting Concepts in the Vocabulary Spacecited by 522
  9. 2024ShortGPT: Layers in Large Language Models are More Redundant Than You Expectcited by 369
  10. 2022Confident Adaptive Language Modelingcited by 297
  11. 2024Do Llamas Work in English? On the Latent Language of Multilingual Transformerscited by 275
  12. 2023Google USM: Scaling Automatic Speech Recognition Beyond 100 Languagescited by 228
14 more
  1. 2024Do Large Language Models Latently Perform Multi-Hop Reasoning?cited by 165
  2. 2020The Right Tool for the Job: Matching Model and Instance Complexitiescited by 125
  3. 2024Transformers are Multi-State RNNscited by 120
  4. 2024A Thorough Examination of Decoding Methods in the Era of LLMscited by 112
  5. 2023A Mechanistic Interpretation of Arithmetic Reasoning in Language Models using Causal Mediation Analysiscited by 88
  6. 2024What Matters in Transformers? Not All Attention is Neededcited by 83
  7. 2023Overthinking the Truth: Understanding how Language Models Process False Demonstrationscited by 78
  8. 2024Transformer Layers as Painterscited by 50
  9. 2024Explorations of Self-Repair in Language Modelscited by 35
  10. 2023Analyzing Vision Transformers for Image Classification in Class Embedding Spacecited by 26
  11. 2024Attend First, Consolidate Later: On the Importance of Attention in Different LLM Layerscited by 25
  12. 2024Does Transformer Interpretability Transfer to RNNs?cited by 9
  13. 2021Language Modelling via Learning to Rankcited by 7
  14. 2023Big model only for hard audios: Sample dependent Whisper model selection for efficient inferencescited by 2

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 2; 2025: 3; 2026: 7.

12 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2025Dynamical Properties of Tokens in Self-Attention and Effects of Positional Encoding
  2. 2024Let's Think Dot by Dot: Hidden Computation in Transformer Language Models
  3. 2024AttnLRP: Attention-Aware Layer-Wise Relevance Propagation for Transformers
  4. 2026Adaptive Computation Depth via Learned Token Routing in Transformers
  5. 2026Linear Predictability of Attention Heads in Large Language Models
  6. 2025The End of Transformers? On Challenging Attention and the Rise of Sub-Quadratic Architectures
  7. 2026Trading Depth for Time in Recurrent Transformers
  8. 2023Constraint-aware and Ranking-distilled Token Pruning for Efficient Transformer Inference