mlsanityData to 14 Oct 2026

Scaling Limits of Long-Context Transformers

arXiv 2605.08505 ↗First posted 8 May 2026cs.LG cs.AI math.PRcited by 3

Not on the map. Why?

Abstract (arXiv)

We study the long-context limit of softmax self-attention with a fixed query and a random context of n i.i.d. keys on the sphere, viewing the inverse temperature βn as the scaling parameter that decides whether attention degenerates into uniform averaging or collapses onto the single closest key. We show that the critical scale at which selectivity emerges is determined by the local exponent of the distance-to-query distribution near zero rather than by global features of the context, and scales like βn^ast asymp n2/(d-1) for uniform keys on mathbbSd-1. Furthermore, we characterize the limiting laws of the ordered attention weights and of the attention output across all regimes of βn: a subcritical regime in which the output reduces to a local average around q with explicit deterministic bias and Gaussian fluctuations; a critical regime in which a finite collection of nearest keys retains macroscopic mass without single-key collapse; and a supercritical regime in which all mass concentrates on the closest key. Of notable interest is the subcritical case with identity value matrix where the attention map approximately implements a backward heat equation.

Key facts. Cited by 3 papers in the map (data through 14 Oct 2026). Builds on 17 of its 27 references that are in the map. First posted on arXiv 8 May 2026.

Builds on

17 of 27 references.

References · 17

  1. 2017Attention Is All You Needcited by 60,361
  2. 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,703
  3. 2020Longformer: The Long-Document Transformercited by 3,413
  4. 2019Transformer-XL: Attentive Language Models Beyond a Fixed-Length Contextcited by 1,850
  5. 2020Big Bird: Transformers for Longer Sequencescited by 1,684
  6. 2023YaRN: Efficient Context Window Extension of Large Language Modelscited by 601
  7. 2023A mathematical perspective on Transformerscited by 164
  8. 2026TabICLv2: A better, faster, scalable, and open tabular foundation modelcited by 144
  9. 2022Overcoming a Theoretical Limitation of Self-Attentioncited by 113
  10. 2024Softmax is not Enough (for Sharp Size Generalisation)cited by 46
  11. 2025Scalable-Softmax Is Superior for Attentioncited by 45
  12. 2025Quantitative Clustering in Mean-Field Transformer Modelscited by 26
5 more
  1. 2025A multiscale analysis of mean-field transformers in the moderate interaction regimecited by 25
  2. 2025Critical attention scaling in long-context transformerscited by 20
  3. 2025Two failure modes of deep transformers and how to avoid them: a unified theory of signal propagation at initialisationcited by 17
  4. 2024Selective Attention: Enhancing Transformer through Principled Context Controlcited by 16
  5. 2025Scale-invariant Attentioncited by 5

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 3.

3 papers.