Critical attention scaling in long-context transformers
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
- 2015Deep Residual Learning for Image Recognitioncited by 51,809
- 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,082
- 2020Longformer: The Long-Document Transformercited by 3,362
- 2023YaRN: Efficient Context Window Extension of Large Language Modelscited by 584
- 2021Attention is Not All You Need: Pure Attention Loses Rank Doubly Exponentially with Depthcited by 411
- 2023A mathematical perspective on Transformerscited by 160
- 2022Signal Propagation in Transformers: Theoretical Perspectives and the Role of Rank Collapsecited by 136
- 2023The emergence of clusters in self-attention dynamicscited by 133
- 2024Dynamic metastability in the self-attention modelcited by 42
- 2025Scalable-Softmax Is Superior for Attentioncited by 38
- 2024Emergence of meta-stable clustering in mean-field transformer modelscited by 35
- 2024Clustering in Causal Attention Maskingcited by 31
8 more
- 2024Geometric Dynamics of Signal Propagation Predict Trainability of Transformerscited by 24
- 2025A multiscale analysis of mean-field transformers in the moderate interaction regimecited by 24
- 2025Quantitative Clustering in Mean-Field Transformer Modelscited by 23
- 2025SWAN-GPT: An Efficient and Scalable Approach for Long-Context Language Modelingcited by 16
- 2025Two failure modes of deep transformers and how to avoid them: a unified theory of signal propagation at initialisationcited by 15
- 2025Synchronization of mean-field models on the circlecited by 10
- 2022Expander graphs are globally synchronizingcited by 8
- 2025Residual connections provably mitigate oversmoothing in graph neural networkscited by 5
Built on by
Citing papers per year: 2025: 2; 2026: 15.
17 papers.
Sort:
By area:
- 2025The Mean-Field Dynamics of Transformerscited by 24
- 2026Perceptrons and localization of attention's mean-field landscapecited by 7
- 2026Threshold Differential Attention for Sink-Free, Ultra-Sparse, and Non-Dispersive Language Modelingcited by 4
- 2026Quantifying Concentration Phenomena of Mean-Field Transformers in the Low-Temperature Regimecited by 4
- 2026YuriiFormer: A Suite of Nesterov-Accelerated Transformerscited by 2
- 2026DySCO: Dynamic Attention-Scaling Decoding for Long-Context Language Modelscited by 2
- 2026Propagation of Chaos in Contextual Flow Mapscited by 2
- 2026Gradient Flow Structure and Quantitative Dynamics of Multi-Head Self-Attentioncited by 1
- 2026FreeSpec: Training-Free Long Video Generation via Singular-Spectrum Reconstructioncited by 1
- 2026Scaling Limits of Long-Context Transformerscited by 1
- 2026Measure-to-measure Regression with Transformerscited by 1
- 2026Kernelized Linear Attention: Breaking the Capacity Wall with Symmetric Conescited by 1
5 more
- 2025Gaussian Equivalence for Self-Attention: Asymptotic Spectral Analysis of Attention Matrixcited by 0
- 2026ExtraVAR: Stage-Aware RoPE Remapping for Resolution Extrapolation in Visual Autoregressive Modelscited by 0
- 2026A Unified Framework for Critical Scaling of Inverse Temperature in Self-Attentioncited by 0
- 2026Reachability and asymptotics of Gaussian Transformer dynamicscited by 0
- 2026Pre-registered tests of solid-state-physics-inspired LLM compression: a cluster-level negative result at small-language-model scalecited by 0
- 2026Pre-registered tests of solid-state-physics-inspired LLM compression: a cluster-level negative result at small-language-model scale28 Sep 2026
- 2026Kernelized Linear Attention: Breaking the Capacity Wall with Symmetric Cones19 Jul 2026
- 2026Reachability and asymptotics of Gaussian Transformer dynamics29 May 2026
- 2026Measure-to-measure Regression with Transformers27 May 2026
- 2026Propagation of Chaos in Contextual Flow Maps16 May 2026
- 2026A Unified Framework for Critical Scaling of Inverse Temperature in Self-Attention12 May 2026
- 2026Quantifying Concentration Phenomena of Mean-Field Transformers in the Low-Temperature Regime11 May 2026
- 2026ExtraVAR: Stage-Aware RoPE Remapping for Resolution Extrapolation in Visual Autoregressive Models11 May 2026
- 2026Scaling Limits of Long-Context Transformers8 May 2026
- 2026FreeSpec: Training-Free Long Video Generation via Singular-Spectrum Reconstruction7 May 2026
- 2026Gradient Flow Structure and Quantitative Dynamics of Multi-Head Self-Attention5 May 2026
- 2026DySCO: Dynamic Attention-Scaling Decoding for Long-Context Language Models25 Feb 2026
5 more
- 2026YuriiFormer: A Suite of Nesterov-Accelerated Transformers30 Jan 2026
- 2026Perceptrons and localization of attention's mean-field landscape29 Jan 2026
- 2026Threshold Differential Attention for Sink-Free, Ultra-Sparse, and Non-Dispersive Language Modeling17 Jan 2026
- 2025The Mean-Field Dynamics of Transformers1 Dec 2025
- 2025Gaussian Equivalence for Self-Attention: Asymptotic Spectral Analysis of Attention Matrix8 Oct 2025
- 2025The Mean-Field Dynamics of Transformerscited by 24
- 2026Perceptrons and localization of attention's mean-field landscapecited by 7
- 2026Threshold Differential Attention for Sink-Free, Ultra-Sparse, and Non-Dispersive Language Modelingcited by 4
- 2026Quantifying Concentration Phenomena of Mean-Field Transformers in the Low-Temperature Regimecited by 4
- 2026YuriiFormer: A Suite of Nesterov-Accelerated Transformerscited by 2
- 2026DySCO: Dynamic Attention-Scaling Decoding for Long-Context Language Modelscited by 2
- 2026Propagation of Chaos in Contextual Flow Mapscited by 2
- 2026Gradient Flow Structure and Quantitative Dynamics of Multi-Head Self-Attentioncited by 1
- 2026Scaling Limits of Long-Context Transformerscited by 1
- 2026Measure-to-measure Regression with Transformerscited by 1
- 2026Kernelized Linear Attention: Breaking the Capacity Wall with Symmetric Conescited by 1
- 2025Gaussian Equivalence for Self-Attention: Asymptotic Spectral Analysis of Attention Matrixcited by 0
12 most cited of 16 All 16 (JSON)
- 2026Pre-registered tests of solid-state-physics-inspired LLM compression: a cluster-level negative result at small-language-model scale28 Sep 2026
- 2026Kernelized Linear Attention: Breaking the Capacity Wall with Symmetric Cones19 Jul 2026
- 2026Reachability and asymptotics of Gaussian Transformer dynamics29 May 2026
- 2026Measure-to-measure Regression with Transformers27 May 2026
- 2026Propagation of Chaos in Contextual Flow Maps16 May 2026
- 2026A Unified Framework for Critical Scaling of Inverse Temperature in Self-Attention12 May 2026
- 2026Quantifying Concentration Phenomena of Mean-Field Transformers in the Low-Temperature Regime11 May 2026
- 2026ExtraVAR: Stage-Aware RoPE Remapping for Resolution Extrapolation in Visual Autoregressive Models11 May 2026
- 2026Scaling Limits of Long-Context Transformers8 May 2026
- 2026Gradient Flow Structure and Quantitative Dynamics of Multi-Head Self-Attention5 May 2026
- 2026DySCO: Dynamic Attention-Scaling Decoding for Long-Context Language Models25 Feb 2026
- 2026YuriiFormer: A Suite of Nesterov-Accelerated Transformers30 Jan 2026
12 newest of 16 All 16 (JSON)