mlsanityData to 7 Oct 2026

Critical attention scaling in long-context transformers

arXiv 2510.05554 ↗First posted 7 Oct 2025cs.LG cs.AI cs.DMcited by 17

Not on the map. Why?

Abstract (arXiv)

As large language models scale to longer contexts, attention layers suffer from a fundamental pathology: attention scores collapse toward uniformity as context length n increases, causing tokens to cluster excessively, a phenomenon known as rank-collapse. While textitattention scaling effectively addresses this deficiency by rescaling attention scores with a polylogarithmic factor βn, theoretical justification for this approach remains lacking. We analyze a simplified yet tractable model that magnifies the effect of attention scaling. In this model, attention exhibits a phase transition governed by the scaling factor βn: insufficient scaling collapses all tokens to a single direction, while excessive scaling reduces attention to identity, thereby eliminating meaningful interactions between tokens. Our main result identifies the critical scaling βn asymp log n and provides a rigorous justification for attention scaling in YaRN and Qwen, clarifying why logarithmic scaling maintains sparse, content-adaptive attention at large context lengths.

Key facts. Cited by 17 papers in the map (data through 7 Oct 2026). Builds on 20 of its 29 references that are in the map. First posted on arXiv 7 Oct 2025.

Builds on

20 of 29 references.

References · 20

  1. 2015Deep Residual Learning for Image Recognitioncited by 51,809
  2. 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,082
  3. 2020Longformer: The Long-Document Transformercited by 3,362
  4. 2023YaRN: Efficient Context Window Extension of Large Language Modelscited by 584
  5. 2021Attention is Not All You Need: Pure Attention Loses Rank Doubly Exponentially with Depthcited by 411
  6. 2023A mathematical perspective on Transformerscited by 160
  7. 2022Signal Propagation in Transformers: Theoretical Perspectives and the Role of Rank Collapsecited by 136
  8. 2023The emergence of clusters in self-attention dynamicscited by 133
  9. 2024Dynamic metastability in the self-attention modelcited by 42
  10. 2025Scalable-Softmax Is Superior for Attentioncited by 38
  11. 2024Emergence of meta-stable clustering in mean-field transformer modelscited by 35
  12. 2024Clustering in Causal Attention Maskingcited by 31
8 more
  1. 2024Geometric Dynamics of Signal Propagation Predict Trainability of Transformerscited by 24
  2. 2025A multiscale analysis of mean-field transformers in the moderate interaction regimecited by 24
  3. 2025Quantitative Clustering in Mean-Field Transformer Modelscited by 23
  4. 2025SWAN-GPT: An Efficient and Scalable Approach for Long-Context Language Modelingcited by 16
  5. 2025Two failure modes of deep transformers and how to avoid them: a unified theory of signal propagation at initialisationcited by 15
  6. 2025Synchronization of mean-field models on the circlecited by 10
  7. 2022Expander graphs are globally synchronizingcited by 8
  8. 2025Residual connections provably mitigate oversmoothing in graph neural networkscited by 5

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2025: 2; 2026: 15.

17 papers.

Sort:

By area: