mlsanityData to 7 Oct 2026

The Asymptotic Behavior of Attention in Transformers

arXiv 2412.02682 ↗First posted 3 Dec 2024cs.AI cs.LG cs.SYcited by 12

Not on the map. Why?

Abstract (arXiv)

The transformer architecture has become the foundation of modern Large Language Models (LLMs), yet its theoretical properties are still not well understood. As with classic neural networks, a common approach to improve these models is to increase their size and depth. However, such strategies may be suboptimal, as several works have shown that adding more layers yields increasingly diminishing returns. More importantly, prior studies have shown that increasing depth may lead to model collapse, i.e., all the tokens converge to a single cluster, undermining the ability of LLMs to generate diverse outputs. Building on differential equation models for the transformer dynamics, we prove that all the tokens in a transformer asymptotically converge to a cluster as depth increases. At the technical level we leverage tools from control theory, including consensus dynamics on manifolds and input-to-state stability (ISS). We then extend our analysis to autoregressive models, exploiting their structure to further generalize the theoretical guarantees.

Key facts. Cited by 12 papers in the map (data through 7 Oct 2026). Builds on 28 of its 50 references that are in the map. First posted on arXiv 3 Dec 2024.

Builds on

28 of 50 references.

References · 28

  1. 2017Attention Is All You Needcited by 59,932
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  3. 2024The Llama 3 Herd of Modelscited by 14,192
  4. 2016Layer Normalizationcited by 5,579
  5. 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,581
  6. 2023Mistral 7Bcited by 3,065
  7. 2022What Can Transformers Learn In-Context? A Case Study of Simple Function Classescited by 700
  8. 2015An Introduction to Convolutional Neural Networkscited by 510
  9. 2021Attention is Not All You Need: Pure Attention Loses Rank Doubly Exponentially with Depthcited by 411
  10. 2019Are Transformers universal approximators of sequence-to-sequence functions?cited by 404
  11. 2019A Survey of Deep Learning Techniques for Autonomous Drivingcited by 401
  12. 2015Attention-Based Models for Speech Recognitioncited by 400
16 more
  1. 2022DeepNet: Scaling Transformers to 1,000 Layerscited by 176
  2. 2023A mathematical perspective on Transformerscited by 160
  3. 2023The emergence of clusters in self-attention dynamicscited by 133
  4. 2019Understanding and Improving Transformer From a Multi-Particle Dynamic System Point of Viewcited by 108
  5. 2024The rising costs of training frontier AI modelscited by 91
  6. 2024On Limitations of the Transformer Architecturecited by 63
  7. 2020Natural Language Processing Advancements By Deep Learning: A Surveycited by 50
  8. 2022Rank Diminishing in Deep Neural Networkscited by 47
  9. 2024On the Role of Attention Masks and LayerNorm in Transformerscited by 45
  10. 2024Dynamic metastability in the self-attention modelcited by 42
  11. 2023The Impact of Depth on Compositional Generalization in Transformer Language Modelscited by 37
  12. 2024Clustering in Causal Attention Maskingcited by 31
  13. 2021Redesigning the Transformer Architecture with Insights from Multi-particle Dynamical Systemscited by 29
  14. 2023Large Language Models: The Need for Nuance in Current Debates and a Pragmatic Perspective on Understandingcited by 20
  15. 2018A Lifting method for analyzing distributed synchronization on the unit spherecited by 4
  16. 2023Consensus on Lie groups for the Riemannian Center of Masscited by 2

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2025: 7; 2026: 5.

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. 2025From Condensation to Rank Collapse: A Two-Stage Analysis of Transformer Training Dynamics
  3. 2025Attention Sinks in Diffusion Language Models
  4. 2025Two-Scale Latent Dynamics for Recurrent-Depth Transformers
  5. 2025The End of Transformers? On Challenging Attention and the Rise of Sub-Quadratic Architectures
  6. 2025Equivalence of Context and Parameter Updates in Modern Transformer Blocks
  7. 2026Revisiting the Shape Convention of Transformer Language Models
  8. 2026Latent Object Permanence: Topological Phase Transitions, Free-Energy Principles, and Renormalization Group Flows in Deep Transformer Manifolds