The Mean-Field Dynamics of Transformers
Not on the map. Why?
Abstract (arXiv)
We develop a mathematical framework that interprets Transformer attention as an interacting particle system and studies its continuum (mean-field) limits. By idealizing attention on the sphere, we connect Transformer dynamics to Wasserstein gradient flows, synchronization models (Kuramoto), and mean-shift clustering. Central to our results is a global clustering phenomenon whereby tokens cluster asymptotically after long metastable states where they are arranged into multiple clusters. We further analyze a tractable equiangular reduction to obtain exact clustering rates, show how commonly used normalization schemes alter contraction speeds, and identify a phase transition for long-context attention. The results highlight both the mechanisms that drive representation collapse and the regimes that preserve expressive, multi-cluster structure in deep attention architectures.
Key facts. Cited by 24 papers in the map (data through 7 Oct 2026). Builds on 41 of its 67 references that are in the map. First posted on arXiv 1 Dec 2025.
Builds on
41 of 67 references.
References · 41
- 2017Attention Is All You Needcited by 59,932
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,084
- 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,082
- 2018Neural Ordinary Differential Equationscited by 3,733
- 2016Gaussian Error Linear Units (GELUs)cited by 3,431
- 2017Outrageously Large Neural Networks: The Sparsely-Gated Mixture-of-Experts Layercited by 3,413
- 2020Longformer: The Long-Document Transformercited by 3,362
- 2019ALBERT: A Lite BERT for Self-supervised Learning of Language Representationscited by 2,772
- 2016Identity Mappings in Deep Residual Networkscited by 1,960
- 2019Generating Long Sequences with Sparse Transformerscited by 1,523
- 2019Root Mean Square Layer Normalizationcited by 1,425
29 more
- 2017Stable Architectures for Deep Neural Networkscited by 340
- 2023A mathematical perspective on Transformerscited by 160
- 2021Sinkformers: Transformers with Doubly Stochastic Attentioncited by 136
- 2022Signal Propagation in Transformers: Theoretical Perspectives and the Role of Rank Collapsecited by 136
- 2023The emergence of clusters in self-attention dynamicscited by 133
- 2017Maximum Principle Based Algorithms for Deep Learningcited by 77
- 2024nGPT: Normalized Transformer with Representation Learning on the Hyperspherecited by 68
- 2018A Mean-Field Optimal Control Formulation of Deep Learningcited by 67
- 2021Neural ODE control for classification, approximation and transportcited by 56
- 2024Dynamic metastability in the self-attention modelcited by 42
- 2025Scalable-Softmax Is Superior for Attentioncited by 38
- 2024Mix-LN: Unleashing the Power of Deeper Layers by Combining Pre-LN and Post-LNcited by 37
- 2024Emergence of meta-stable clustering in mean-field transformer modelscited by 35
- 2024Clustering in Causal Attention Maskingcited by 31
- 2025A Unified Perspective on the Dynamics of Deep Transformerscited by 30
- 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
- 2024Three Decades of Activations: A Comprehensive Survey of 400 Activation Functions for Neural Networkscited by 21
- 2024Synchronization on circles and spheres with nonlinear interactionscited by 17
- 2025Critical attention scaling in long-context transformerscited by 17
- 2025SWAN-GPT: An Efficient and Scalable Approach for Long-Context Language Modelingcited by 16
- 2024Clustering in pure-attention hardmax transformers and its role in sentiment analysiscited by 15
- 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
- 2025On the Structure of Stationary Solutions to McKean-Vlasov Equations with Applications to Noisy Transformerscited by 10
- 2025The power of fine-grained experts: Granularity boosts expressivity in Mixture of Expertscited by 9
- 2025Normalization in Attention Dynamicscited by 9
- 2015Consensus Convergence with Stochastic Effectscited by 4
- 2024On the number of modes of Gaussian kernel density estimatorscited by 4
Built on by
Citing papers per year: 2026: 24.
24 papers.
Sort:
- 2026Quantifying Concentration Phenomena of Mean-Field Transformers in the Low-Temperature Regimecited by 4
- 2026Krause Synchronization Transformerscited by 3
- 2026YuriiFormer: A Suite of Nesterov-Accelerated Transformerscited by 2
- 2026Random Quadratic Form on a Sphere: Synchronization by Common Noisecited by 2
- 2026Propagation of Chaos in Contextual Flow Mapscited by 2
- 2026Physics-based phenomenological characterization of cross-modal bias in multimodal modelscited by 1
- 2026Diffusion Operator Geometry of Feedforward Representationscited by 1
- 2026Gradient Flow Structure and Quantitative Dynamics of Multi-Head Self-Attentioncited by 1
- 2026Training-Induced Escape from Token Clustering in a Mean-Field Formulation of Transformerscited by 1
- 2026L2 over Wasserstein: Statistical Analysis for Optimal Transportcited by 1
- 2026The physics of AI weather modelscited by 1
- 2026Static and Dynamic Approaches to Computing Barycenters of Probability Measures on Graphscited by 0
12 more
- 2026Symmetry Reveals Layerwise Dynamics: How Transformers Perform In-Context Classificationcited by 0
- 2026Explanation of Dynamic Physical Field Predictions using WassersteinGrad: Application to Autoregressive Weather Forecastingcited by 0
- 2026A Unified Framework for Critical Scaling of Inverse Temperature in Self-Attentioncited by 0
- 2026Anti Mode-Collapse in Mean-Field Transformer via Auxiliary Variablescited by 0
- 2026Self-Attention Dynamics with Rotary Position Embeddings: Twisted States and Explicit Consensus Rates on the Spherecited by 0
- 2026Many-body Tipping Dynamics of ChatGPT-like AIscited by 0
- 2026Clustered Attractor Manifolds and Dynamical Condensation in Self-Attentioncited by 0
- 2026Random Quadratic Form with random forcing: Metastable synchronization by noisecited by 0
- 2026Opinion Leader Dynamics: How Sparse Attention Shapes Token Clusteringcited by 0
- 2026Sharp Convergence of Wasserstein Gradient Flows for Spectrally Nonnegative Interaction Energiescited by 0
- 2026Relative Generalization Invariance of LLM Pretrainingcited by 0
- 2026Universal Approximation of Measure-to-Measure Operators by Pushforwardscited by 0
- 2026Universal Approximation of Measure-to-Measure Operators by Pushforwards28 Sep 2026
- 2026Relative Generalization Invariance of LLM Pretraining26 Sep 2026
- 2026Sharp Convergence of Wasserstein Gradient Flows for Spectrally Nonnegative Interaction Energies22 Sep 2026
- 2026Opinion Leader Dynamics: How Sparse Attention Shapes Token Clustering21 Sep 2026
- 2026Random Quadratic Form with random forcing: Metastable synchronization by noise17 Aug 2026
- 2026Clustered Attractor Manifolds and Dynamical Condensation in Self-Attention9 Aug 2026
- 2026Many-body Tipping Dynamics of ChatGPT-like AIs28 Jul 2026
- 2026Self-Attention Dynamics with Rotary Position Embeddings: Twisted States and Explicit Consensus Rates on the Sphere27 Jul 2026
- 2026Anti Mode-Collapse in Mean-Field Transformer via Auxiliary Variables28 May 2026
- 2026The physics of AI weather models22 May 2026
- 2026L2 over Wasserstein: Statistical Analysis for Optimal Transport20 May 2026
- 2026Propagation of Chaos in Contextual Flow Maps16 May 2026
12 more
- 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
- 2026Training-Induced Escape from Token Clustering in a Mean-Field Formulation of Transformers8 May 2026
- 2026Gradient Flow Structure and Quantitative Dynamics of Multi-Head Self-Attention5 May 2026
- 2026Diffusion Operator Geometry of Feedforward Representations1 May 2026
- 2026Explanation of Dynamic Physical Field Predictions using WassersteinGrad: Application to Autoregressive Weather Forecasting24 Apr 2026
- 2026Symmetry Reveals Layerwise Dynamics: How Transformers Perform In-Context Classification13 Apr 2026
- 2026Static and Dynamic Approaches to Computing Barycenters of Probability Measures on Graphs27 Mar 2026
- 2026Random Quadratic Form on a Sphere: Synchronization by Common Noise6 Mar 2026
- 2026Physics-based phenomenological characterization of cross-modal bias in multimodal models24 Feb 2026
- 2026Krause Synchronization Transformers12 Feb 2026
- 2026YuriiFormer: A Suite of Nesterov-Accelerated Transformers30 Jan 2026
- 2026Quantifying Concentration Phenomena of Mean-Field Transformers in the Low-Temperature Regimecited by 4
- 2026Krause Synchronization Transformerscited by 3
- 2026YuriiFormer: A Suite of Nesterov-Accelerated Transformerscited by 2
- 2026Random Quadratic Form on a Sphere: Synchronization by Common Noisecited by 2
- 2026Propagation of Chaos in Contextual Flow Mapscited by 2
- 2026Physics-based phenomenological characterization of cross-modal bias in multimodal modelscited by 1
- 2026Diffusion Operator Geometry of Feedforward Representationscited by 1
- 2026Gradient Flow Structure and Quantitative Dynamics of Multi-Head Self-Attentioncited by 1
- 2026Training-Induced Escape from Token Clustering in a Mean-Field Formulation of Transformerscited by 1
- 2026L2 over Wasserstein: Statistical Analysis for Optimal Transportcited by 1
- 2026The physics of AI weather modelscited by 1
- 2026Static and Dynamic Approaches to Computing Barycenters of Probability Measures on Graphscited by 0
12 most cited of 24 All 24 (JSON)
- 2026Universal Approximation of Measure-to-Measure Operators by Pushforwards28 Sep 2026
- 2026Relative Generalization Invariance of LLM Pretraining26 Sep 2026
- 2026Sharp Convergence of Wasserstein Gradient Flows for Spectrally Nonnegative Interaction Energies22 Sep 2026
- 2026Opinion Leader Dynamics: How Sparse Attention Shapes Token Clustering21 Sep 2026
- 2026Random Quadratic Form with random forcing: Metastable synchronization by noise17 Aug 2026
- 2026Clustered Attractor Manifolds and Dynamical Condensation in Self-Attention9 Aug 2026
- 2026Many-body Tipping Dynamics of ChatGPT-like AIs28 Jul 2026
- 2026Self-Attention Dynamics with Rotary Position Embeddings: Twisted States and Explicit Consensus Rates on the Sphere27 Jul 2026
- 2026Anti Mode-Collapse in Mean-Field Transformer via Auxiliary Variables28 May 2026
- 2026The physics of AI weather models22 May 2026
- 2026L2 over Wasserstein: Statistical Analysis for Optimal Transport20 May 2026
- 2026Propagation of Chaos in Contextual Flow Maps16 May 2026
12 newest of 24 All 24 (JSON)