Clustering in Deep Stochastic Transformers
Not on the map. Why?
Abstract (arXiv)
Transformers have revolutionized deep learning across various domains but understanding the precise token dynamics remains a theoretical challenge. Existing theories of deep Transformers with layer normalization typically predict that tokens cluster to a single point; however, these results rely on deterministic weight assumptions, which fail to capture the standard initialization scheme in Transformers. In this work, we show that accounting for the intrinsic stochasticity of random initialization alters this picture. More precisely, we analyze deep Transformers where noise arises from the random initialization of value matrices. Under diffusion scaling and token-wise RMS normalization, we prove that, as the number of Transformer layers goes to infinity, the discrete token dynamics converge to an interacting-particle system on the sphere where tokens are driven by a common matrix-valued Brownian noise. In this limit, we show that initialization noise prevents the collapse to a single cluster predicted by deterministic models. For two tokens, we prove a phase transition governed by the interaction strength and the token dimension: unlike deterministic attention flows, antipodal configurations become attracting with positive probability. Numerical experiments confirm the predicted transition, reveal that antipodal formations persist for more than two tokens, and demonstrate that suppressing the intrinsic noise degrades accuracy.
Key facts. Cited by 8 papers in the map (data through 14 Oct 2026). Builds on 34 of its 57 references that are in the map. First posted on arXiv 29 Jan 2026.
Builds on
34 of 57 references.
References · 34
- 2017Attention Is All You Needcited by 60,361
- 2015Deep Residual Learning for Image Recognitioncited by 52,096
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,132
- 2014Neural Machine Translation by Jointly Learning to Align and Translatecited by 4,548
- 2018Neural Ordinary Differential Equationscited by 3,779
- 2015Delving Deep into Rectifiers: Surpassing Human-Level Performance on ImageNet Classificationcited by 3,611
- 2020ReZero is All You Need: Fast Convergence at Large Depthcited by 264
- 2023A mathematical perspective on Transformerscited by 164
- 2022Signal Propagation in Transformers: Theoretical Perspectives and the Role of Rank Collapsecited by 141
- 2023The emergence of clusters in self-attention dynamicscited by 140
- 2021Sinkformers: Transformers with Doubly Stochastic Attentioncited by 138
22 more
- 2023Tensor Programs VI: Feature Learning in Infinite-Depth Neural Networkscited by 97
- 2017Mean Field Residual Networks: On the Edge of Chaoscited by 83
- 2020Stable ResNetcited by 49
- 2023The Shaped Transformer: Attention Models in the Infinite Depth-and-Width Limitcited by 47
- 2024Dynamic metastability in the self-attention modelcited by 46
- 2023How Smooth Is Attention?cited by 44
- 2024Transformers are Universal In-context Learnerscited by 43
- 2024Emergence of meta-stable clustering in mean-field transformer modelscited by 39
- 2023Simplifying Transformer Blockscited by 37
- 2024Clustering in Causal Attention Maskingcited by 32
- 2025A Unified Perspective on the Dynamics of Deep Transformerscited by 32
- 2019Infinitely deep neural networks as diffusion processescited by 21
- 2023Implicit regularization of deep residual networks towards neural ODEscited by 20
- 2022Scaling ResNets in the Large-depth Regimecited by 18
- 2024Synchronization on circles and spheres with nonlinear interactionscited by 17
- 2025The Hidden Width of Deep ResNets: Tight Error Bounds and Phase Diagramcited by 17
- 2021Scaling Properties of Deep Residual Networkscited by 16
- 2025On the Structure of Stationary Solutions to McKean-Vlasov Equations with Applications to Noisy Transformerscited by 12
- 2021On the Regularity of Attentioncited by 11
- 2025Normalization in Attention Dynamicscited by 9
- 2020Doubly infinite residual neural networks: a diffusion process approachcited by 4
- 2022Asymptotic Analysis of Deep Residual Networkscited by 3
Built on by
Citing papers per year: 2026: 8.
8 papers.
- 2026Homogenized Transformerscited by 5
- 2026Random Quadratic Form on a Sphere: Synchronization by Common Noisecited by 4
- 2026On the Diverse Dynamical Behaviors Arising in Deep Linear Transformerscited by 3
- 2026Multi-Headed Transformer Architectures as Time-dependent Wasserstein Gradient Flowscited by 1
- 2026Kinetic theory for Transformers and the lost-in-the-middle phenomenoncited by 0
- 2026Uniform Scaling Limits in AdamW-Trained Transformerscited by 0
- 2026Fusion-fission forecasts when AI will shift to undesirable behaviorcited by 0
- 2026Random Quadratic Form with random forcing: Metastable synchronization by noisecited by 0
- 2026Random Quadratic Form with random forcing: Metastable synchronization by noise17 Aug 2026
- 2026On the Diverse Dynamical Behaviors Arising in Deep Linear Transformers20 Jul 2026
- 2026Multi-Headed Transformer Architectures as Time-dependent Wasserstein Gradient Flows15 May 2026
- 2026Fusion-fission forecasts when AI will shift to undesirable behavior14 May 2026
- 2026Uniform Scaling Limits in AdamW-Trained Transformers11 May 2026
- 2026Kinetic theory for Transformers and the lost-in-the-middle phenomenon9 May 2026
- 2026Homogenized Transformers2 Apr 2026
- 2026Random Quadratic Form on a Sphere: Synchronization by Common Noise6 Mar 2026