The Asymptotic Behavior of Attention in Transformers
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
- 2017Attention Is All You Needcited by 59,932
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2024The Llama 3 Herd of Modelscited by 14,192
- 2016Layer Normalizationcited by 5,579
- 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,581
- 2023Mistral 7Bcited by 3,065
- 2022What Can Transformers Learn In-Context? A Case Study of Simple Function Classescited by 700
- 2015An Introduction to Convolutional Neural Networkscited by 510
- 2021Attention is Not All You Need: Pure Attention Loses Rank Doubly Exponentially with Depthcited by 411
- 2019Are Transformers universal approximators of sequence-to-sequence functions?cited by 404
- 2019A Survey of Deep Learning Techniques for Autonomous Drivingcited by 401
- 2015Attention-Based Models for Speech Recognitioncited by 400
16 more
- 2022DeepNet: Scaling Transformers to 1,000 Layerscited by 176
- 2023A mathematical perspective on Transformerscited by 160
- 2023The emergence of clusters in self-attention dynamicscited by 133
- 2019Understanding and Improving Transformer From a Multi-Particle Dynamic System Point of Viewcited by 108
- 2024The rising costs of training frontier AI modelscited by 91
- 2024On Limitations of the Transformer Architecturecited by 63
- 2020Natural Language Processing Advancements By Deep Learning: A Surveycited by 50
- 2022Rank Diminishing in Deep Neural Networkscited by 47
- 2024On the Role of Attention Masks and LayerNorm in Transformerscited by 45
- 2024Dynamic metastability in the self-attention modelcited by 42
- 2023The Impact of Depth on Compositional Generalization in Transformer Language Modelscited by 37
- 2024Clustering in Causal Attention Maskingcited by 31
- 2021Redesigning the Transformer Architecture with Insights from Multi-particle Dynamical Systemscited by 29
- 2023Large Language Models: The Need for Nuance in Current Debates and a Pragmatic Perspective on Understandingcited by 20
- 2018A Lifting method for analyzing distributed synchronization on the unit spherecited by 4
- 2023Consensus on Lie groups for the Riemannian Center of Masscited by 2
Built on by
Citing papers per year: 2025: 7; 2026: 5.
12 papers.
- 2025Quantitative Clustering in Mean-Field Transformer Modelscited by 23
- 2025Synchronization of mean-field models on the circlecited by 10
- 2025Multistability of Self-Attention Dynamics in Transformerscited by 6
- 2026Quantifying Concentration Phenomena of Mean-Field Transformers in the Low-Temperature Regimecited by 4
- 2025Localmax dynamics for attention in transformers and its asymptotic behaviorcited by 2
- 2025Context-Selective State Space Models: Feedback is All You Needcited by 1
- 2025Dual Filter: A Transformer-like Inference Architecture for Hidden Markov Modelscited by 0
- 2025How Smoothing is N-simplicial Attention?cited by 0
- 2026Transformer-like Inference from Optimal Controlcited by 0
- 2026Analogies between Transformer Layers and Power Methodcited by 0
- 2026Self-Attention Dynamics with Rotary Position Embeddings: Twisted States and Explicit Consensus Rates on the Spherecited by 0
- 2026The Attention Within: Consensus Dynamics in Selective State Space Modelscited by 0
- 2026The Attention Within: Consensus Dynamics in Selective State Space Models16 Sep 2026
- 2026Self-Attention Dynamics with Rotary Position Embeddings: Twisted States and Explicit Consensus Rates on the Sphere27 Jul 2026
- 2026Analogies between Transformer Layers and Power Method25 May 2026
- 2026Transformer-like Inference from Optimal Control15 May 2026
- 2026Quantifying Concentration Phenomena of Mean-Field Transformers in the Low-Temperature Regime11 May 2026
- 2025How Smoothing is N-simplicial Attention?17 Dec 2025
- 2025Multistability of Self-Attention Dynamics in Transformers14 Nov 2025
- 2025Context-Selective State Space Models: Feedback is All You Need15 Oct 2025
- 2025Localmax dynamics for attention in transformers and its asymptotic behavior19 Sep 2025
- 2025Synchronization of mean-field models on the circle30 Jul 2025
- 2025Dual Filter: A Transformer-like Inference Architecture for Hidden Markov Models1 May 2025
- 2025Quantitative Clustering in Mean-Field Transformer Models20 Apr 2025
Similar, not cited
Close in wording, no citation either way
- 2025Dynamical Properties of Tokens in Self-Attention and Effects of Positional Encoding
- 2025From Condensation to Rank Collapse: A Two-Stage Analysis of Transformer Training Dynamics
- 2025Attention Sinks in Diffusion Language Models
- 2025Two-Scale Latent Dynamics for Recurrent-Depth Transformers
- 2025The End of Transformers? On Challenging Attention and the Rise of Sub-Quadratic Architectures
- 2025Equivalence of Context and Parameter Updates in Modern Transformer Blocks
- 2026Revisiting the Shape Convention of Transformer Language Models
- 2026Latent Object Permanence: Topological Phase Transitions, Free-Energy Principles, and Renormalization Group Flows in Deep Transformer Manifolds