The emergence of clusters in self-attention dynamics
Not on the map. Why?
Abstract (arXiv)
Viewing Transformers as interacting particle systems, we describe the geometry of learned representations when the weights are not time dependent. We show that particles, representing tokens, tend to cluster toward particular limiting objects as time tends to infinity. Cluster locations are determined by the initial tokens, confirming context-awareness of representations learned by Transformers. Using techniques from dynamical systems and partial differential equations, we show that the type of limiting object that emerges depends on the spectrum of the value matrix. Additionally, in the one-dimensional case we prove that the self-attention matrix converges to a low-rank Boolean matrix. The combination of these results mathematically confirms the empirical observation made by Vaswani et al. [VSP'17] that leaders appear in a sequence of tokens when processed by Transformers.
Key facts. Cited by 133 papers in the map (data through 7 Oct 2026). Builds on 18 of its 41 references that are in the map. First posted on arXiv 9 May 2023.
Builds on
18 of 41 references.
References · 18
- 2017Attention Is All You Needcited by 59,932
- 2015Deep Residual Learning for Image Recognitioncited by 51,809
- 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,084
- 2018Neural Ordinary Differential Equationscited by 3,733
- 2019ALBERT: A Lite BERT for Self-supervised Learning of Language Representationscited by 2,772
- 2016Identity Mappings in Deep Residual Networkscited by 1,960
- 2020Linformer: Self-Attention with Linear Complexitycited by 1,462
- 2020Prevalence of Neural Collapse during the terminal phase of deep learning trainingcited by 713
- 2021Attention is Not All You Need: Pure Attention Loses Rank Doubly Exponentially with Depthcited by 411
- 2019Are Transformers universal approximators of sequence-to-sequence functions?cited by 404
- 2021A Survey of Transformerscited by 399
- 2017Stable Architectures for Deep Neural Networkscited by 340
6 more
- 2021Sinkformers: Transformers with Doubly Stochastic Attentioncited by 136
- 2020Fast Transformers with Clustered Attentioncited by 123
- 2019Understanding and Improving Transformer From a Multi-Particle Dynamic System Point of Viewcited by 108
- 2018A Mean-Field Optimal Control Formulation of Deep Learningcited by 67
- 2013On properties of the Generalized Wasserstein distancecited by 11
- 2014Control to flocking of the kinetic Cucker-Smale modelcited by 6
Built on by
Citing papers per year: 2023: 4; 2024: 30; 2025: 43; 2026: 56.
133 papers.
Sort:
By area:
- 2023A mathematical perspective on Transformerscited by 160
- 2024A Survey on LoRA of Large Language Modelscited by 67
- 2024On the Role of Attention Masks and LayerNorm in Transformerscited by 45
- 2023How Smooth Is Attention?cited by 44
- 2024Transformers are Universal In-context Learnerscited by 42
- 2024Continuum Attention for Neural Operatorscited by 39
- 2024Artificial Kuramoto Oscillatory Neuronscited by 37
- 2024Emergence of meta-stable clustering in mean-field transformer modelscited by 35
- 2024Clustering in Causal Attention Maskingcited by 31
- 2024Measure-to-measure interpolation using Transformerscited by 28
- 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
38 more
- 2025The Mean-Field Dynamics of Transformerscited by 24
- 2025Quantitative Clustering in Mean-Field Transformer Modelscited by 23
- 2024Provably learning a multi-head attention layercited by 21
- 2023Implicit regularization of deep residual networks towards neural ODEscited by 20
- 2024SINDER: Repairing the Singular Defects of DINOv2cited by 18
- 2025The Intrinsic Dimension of Prompts in Internal Representations of Large Language Modelscited by 17
- 2025Critical attention scaling in long-context transformerscited by 17
- 2025Attention Sinks: A 'Catch, Tag, Release' Mechanism for Embeddingscited by 16
- 2025Block-Recurrent Dynamics in Vision Transformerscited 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
- 2026The Newton-Muon Optimizercited by 14
- 2024The Asymptotic Behavior of Attention in Transformerscited by 12
- 2024Residual Connections Harm Generative Representation Learningcited by 10
- 2025Synchronization of mean-field models on the circlecited by 10
- 2024Transformer Block Coupling and its Correlation with Generalization in LLMscited by 9
- 2024Towards Understanding the Universality of Transformers for Next-Token Predictioncited by 9
- 2025Normalization in Attention Dynamicscited by 9
- 2026Truth as a Trajectory: What Internal Representations Reveal About Large Language Model Reasoningcited by 9
- 2025Optimal Control for Transformer Architectures: Enhancing Generalization, Robustness and Efficiencycited by 8
- 2024Understanding Catastrophic Forgetting In LoRA via Mean-Field Attention Dynamicscited by 7
- 2024Unveiling the Hidden Structure of Self-Attention via Kernel Principal Component Analysiscited by 7
- 2024Elliptical Attentioncited by 7
- 2025OT-Transformer: A Continuous-time Transformer Architecture with Optimal Transport Regularizationcited by 7
- 2025Solving Empirical Bayes via Transformerscited by 7
- 2025Only Large Weights (And Not Skip Connections) Can Prevent the Perils of Rank Collapsecited by 7
- 2026Perceptrons and localization of attention's mean-field landscapecited by 7
- 2025Quantum Doubly Stochastic Transformerscited by 6
- 2024Bridging Associative Memory and Probabilistic Modelingcited by 5
- 2024Iterated Schr"odinger bridge approximation to Wasserstein Gradient Flowscited by 5
- 2025Attention-Only Transformers via Unrolled Subspace Denoisingcited by 5
- 2025Linear Attention with Global Context: A Multipole Attention Mechanism for Vision and Physicscited by 5
- 2025Transformers through the lens of support-preserving maps between measurescited by 5
- 2025Optimal and Diffusion Transports in Machine Learningcited by 5
- 2026Clustering in Deep Stochastic Transformerscited by 5
- 2023Cluster-based classification with neural ODEs via controlcited by 4
- 2024An In-depth Investigation of Sparse Rate Reduction in Transformer-like Modelscited by 4
- 2024On the number of modes of Gaussian kernel density estimatorscited by 4
50 most cited of 133 All 133 (JSON)
- 2026Leaner Transformers Can Easily Learn to Cluster7 Oct 2026
- 2026Attention Kernels for Learning Maps Between Heavy-Tailed Measures30 Sep 2026
- 2026Pattern Formation in Transformers29 Sep 2026
- 2026Universal Approximation of Measure-to-Measure Operators by Pushforwards28 Sep 2026
- 2026Opinion Leader Dynamics: How Sparse Attention Shapes Token Clustering21 Sep 2026
- 2026The Attention Within: Consensus Dynamics in Selective State Space Models16 Sep 2026
- 2026Random Quadratic Form with random forcing: Metastable synchronization by noise17 Aug 2026
- 2026Intrinsic Structure: Spectral Identifiability for Mechanistic Interpretability10 Aug 2026
- 2026Clustered Attractor Manifolds and Dynamical Condensation in Self-Attention9 Aug 2026
- 2026Faster Query-Key Learning Sharpens Attention in Self-Attention Models7 Aug 2026
- 2026Reasoning Errors Have a Region and a Direction in the Residual-Stream Trajectory of LLMs6 Aug 2026
- 2026Feed-Forward Steering in Transformer Residual Dynamics3 Aug 2026
38 more
- 2026Generalization Bounds on Optimal Control for Transformer Training and Wasserstein Distributional Robustness30 Jul 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
- 2026Interior interpretability with attention rollout: contraction and propagation profiles in Transformers24 Jul 2026
- 2026Syntax vs. Semantics: How Transformers Learn Deep Dependencies26 Jun 2026
- 2026Attention as Frustrated Synchronization17 Jun 2026
- 2026When Does Depth Matter For In-Context Learning? Adaptive Inference in Deep Transformers15 Jun 2026
- 2026Kuramoto Attention: Synchronizing Self-Attention on the Torus10 Jun 2026
- 2026A Unifying View of Attention Sinks: From Mechanisms to Architectural Interventions6 Jun 2026
- 2026Phase transitions for the noisy transformer model in arbitrary dimension3 Jun 2026
- 2026Reachability and asymptotics of Gaussian Transformer dynamics29 May 2026
- 2026Anti Mode-Collapse in Mean-Field Transformer via Auxiliary Variables28 May 2026
- 2026Measure-to-measure Regression with Transformers27 May 2026
- 2026Analogies between Transformer Layers and Power Method25 May 2026
- 2026How Many Different Outputs Can a Transformer Generate?21 May 2026
- 2026Training Infinitely Deep and Wide Transformers17 May 2026
- 2026Propagation of Chaos in Contextual Flow Maps16 May 2026
- 2026Multi-Headed Transformer Architectures as Time-dependent Wasserstein Gradient Flows15 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
- 2026Kinetic theory for Transformers and the lost-in-the-middle phenomenon9 May 2026
- 2026Sink vs. diagonal patterns as mechanisms for attention switch and oversmoothing prevention8 May 2026
- 2026Training-Induced Escape from Token Clustering in a Mean-Field Formulation of Transformers8 May 2026
- 2026Self-Attention as Transport: Limits of Symmetric Spectral Diagnostics6 May 2026
- 2026Gradient Flow Structure and Quantitative Dynamics of Multi-Head Self-Attention5 May 2026
- 2026A Theory of Saddle Escape in Deep Nonlinear Networks2 May 2026
- 2026Diffusion Operator Geometry of Feedforward Representations1 May 2026
- 2026Transformer as an Euler Discretization of Score-based Variational Flow26 Apr 2026
- 2026Ordinary Least Squares is a Special Case of Transformer15 Apr 2026
- 2026Symmetry Reveals Layerwise Dynamics: How Transformers Perform In-Context Classification13 Apr 2026
- 2026The Newton-Muon Optimizer1 Apr 2026
- 2026SympFormer: Accelerated attention blocks via Inertial Dynamics on Density Manifolds17 Mar 2026
- 2026An Optimal Control Approach To Transformer Training10 Mar 2026
- 2026Random Quadratic Form on a Sphere: Synchronization by Common Noise6 Mar 2026
- 2026Truth as a Trajectory: What Internal Representations Reveal About Large Language Model Reasoning1 Mar 2026
- 2026Physics-based phenomenological characterization of cross-modal bias in multimodal models24 Feb 2026
- 2026Krause Synchronization Transformers12 Feb 2026
- 2026Low Rank Transformer for Multivariate Time Series Anomaly Detection and Localization9 Feb 2026
50 newest of 133 All 133 (JSON)
- 2026Truth as a Trajectory: What Internal Representations Reveal About Large Language Model Reasoningcited by 9
- 2026The Geometry of Thought: How Scale Restructures Reasoning In Large Language Modelscited by 0
- 2026Reasoning Errors Have a Region and a Direction in the Residual-Stream Trajectory of LLMscited by 0
- 2026Reasoning Errors Have a Region and a Direction in the Residual-Stream Trajectory of LLMs6 Aug 2026
- 2026Truth as a Trajectory: What Internal Representations Reveal About Large Language Model Reasoning1 Mar 2026
- 2026The Geometry of Thought: How Scale Restructures Reasoning In Large Language Models19 Jan 2026
- 2023A mathematical perspective on Transformerscited by 160
- 2024A Survey on LoRA of Large Language Modelscited by 67
- 2024On the Role of Attention Masks and LayerNorm in Transformerscited by 45
- 2023How Smooth Is Attention?cited by 44
- 2024Transformers are Universal In-context Learnerscited by 42
- 2024Continuum Attention for Neural Operatorscited by 39
- 2024Artificial Kuramoto Oscillatory Neuronscited by 37
- 2024Emergence of meta-stable clustering in mean-field transformer modelscited by 35
- 2024Clustering in Causal Attention Maskingcited by 31
- 2024Measure-to-measure interpolation using Transformerscited by 28
- 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
12 most cited of 124 All 124 (JSON)
- 2026Leaner Transformers Can Easily Learn to Cluster7 Oct 2026
- 2026Attention Kernels for Learning Maps Between Heavy-Tailed Measures30 Sep 2026
- 2026Pattern Formation in Transformers29 Sep 2026
- 2026Universal Approximation of Measure-to-Measure Operators by Pushforwards28 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
- 2026Intrinsic Structure: Spectral Identifiability for Mechanistic Interpretability10 Aug 2026
- 2026Clustered Attractor Manifolds and Dynamical Condensation in Self-Attention9 Aug 2026
- 2026Faster Query-Key Learning Sharpens Attention in Self-Attention Models7 Aug 2026
- 2026Feed-Forward Steering in Transformer Residual Dynamics3 Aug 2026
- 2026Generalization Bounds on Optimal Control for Transformer Training and Wasserstein Distributional Robustness30 Jul 2026
- 2026Many-body Tipping Dynamics of ChatGPT-like AIs28 Jul 2026
12 newest of 124 All 124 (JSON)