A multiscale analysis of mean-field transformers in the moderate interaction regime
Abstract
In this paper, we study the evolution of tokens through the depth of encoder-only transformer models at inference time by modeling them as a system of particles interacting in a mean-field way and studying the corresponding dynamics. More specifically, we consider this problem in the moderate interaction regime, where the number of tokens is large and the inverse temperature parameter of the model scales together with . In this regime, the dynamics of the system displays a multiscale behavior: a fast phase, where the token empirical measure collapses on a low-dimensional space, an intermediate phase, where the measure further collapses into clusters, and a slow one, where such clusters sequentially merge into a single one. We provide a rigorous characterization of the limiting dynamics in each of these phases and prove convergence in the above mentioned limit, exemplifying our results with some simulations.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
5 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- Critical attention scaling in long-context transformers cites The emergence of clusters in self-attention dynamics
- Critical attention scaling in long-context transformers cites YaRN: Efficient Context Window Extension of Large Language Models
- Critical attention scaling in long-context transformers cites Normalization in Attention Dynamics
- Critical attention scaling in long-context transformers cites Clustering in Causal Attention Masking
- Understanding Catastrophic Forgetting In LoRA via Mean-Field Attention Dynamics cites Critical attention scaling in long-context transformers
- Understanding Catastrophic Forgetting In LoRA via Mean-Field Attention Dynamics cites The emergence of clusters in self-attention dynamics
- Understanding Catastrophic Forgetting In LoRA via Mean-Field Attention Dynamics cites Signal Propagation in Transformers: Theoretical Perspectives and the Role of Rank Collapse
- Understanding Catastrophic Forgetting In LoRA via Mean-Field Attention Dynamics cites Normalization in Attention Dynamics
- Understanding Catastrophic Forgetting In LoRA via Mean-Field Attention Dynamics cites Clustering in Causal Attention Masking
- Perceptrons and Localization of Attention’s Mean-Field Landscape cites Critical attention scaling in long-context transformers
- Perceptrons and Localization of Attention’s Mean-Field Landscape cites The emergence of clusters in self-attention dynamics
- Perceptrons and Localization of Attention’s Mean-Field Landscape cites Clustering in Causal Attention Masking
- Krause Synchronization Transformers cites The emergence of clusters in self-attention dynamics
- Krause Synchronization Transformers cites Reformer: The Efficient Transformer
- Normalization in Attention Dynamics cites The emergence of clusters in self-attention dynamics
- Normalization in Attention Dynamics cites Signal Propagation in Transformers: Theoretical Perspectives and the Role of Rank Collapse
- Normalization in Attention Dynamics cites Clustering in Causal Attention Masking
- Clustering in Causal Attention Masking cites The emergence of clusters in self-attention dynamics
Cited by top-tier papers5
- Critical attention scaling in long-context transformersShi Chen, Zhengjiang Lin, Yury Polyanskiy, Philippe RigolletICLR 2026 · 22 citations
- Normalization in Attention DynamicsNikita Karagodin, Shu Ge, Yury Polyanskiy, Philippe RigolletNeurIPS 2025 · 10 citations
- Understanding Catastrophic Forgetting In LoRA via Mean-Field Attention DynamicsHugo Koubbi, Louis Hernandez, Matthieu BoussardICML 2026 · 7 citations
- Perceptrons and Localization of Attention’s Mean-Field LandscapeAntonio Álvarez López, Borjan Geshkovski, Domènec Ruiz-BaletICML 2026 · 7 citations
- Krause Synchronization TransformersJingkun Liu, Yisong Yue, Max Welling, Yue SongICML 2026 · 1 citation
Builds on11
- Reformer: The Efficient TransformerNikita Kitaev, Lukasz Kaiser, Anselm LevskayaICLR 2020 · 2,878 citations
- YaRN: Efficient Context Window Extension of Large Language ModelsBowen Peng, Jeffrey Quesnelle, Honglu Fan, Enrico ShippoleICLR 2024 · 508 citations
- The emergence of clusters in self-attention dynamicsBorjan Geshkovski, Cyril Letrouit, Yury Polyanskiy, Philippe RigolletNeurIPS 2023 · 163 citations
- Signal Propagation in Transformers: Theoretical Perspectives and the Role of Rank CollapseLorenzo Noci, Sotiris Anagnostidis, Luca Biggio, Antonio Orvieto et al.NeurIPS 2022 · 161 citations
- Clustering in Causal Attention MaskingNikita Karagodin, Yury Polyanskiy, Philippe RigolletNeurIPS 2024 · 40 citations
Related papers
- Emergence of meta-stable clustering in mean-field transformer modelsGiuseppe Bruno, Federico Pasqualotto, Andrea AgazziICLR 2025 · 2 citations
- Clustering in Deep Stochastic TransformersLev Fedorov, Michael Sander, Romuald Elie, Pierre Marion et al.ICML 2026 · 7 citations
- Consensus Is All You Get: The Role of Attention in TransformersÁlvaro Rodríguez Abella, João Pedro Silvestre, Paulo TabuadaICML 2025
- Dynamical Properties of Tokens in Self-Attention and Effects of Positional EncodingDuy-Tung Pham, An Nguyen The, Viet-Hoang Tran, Nhan-Phu Chung et al.NeurIPS 2025 · 2 citations
- Universal Approximation of Mean-Field Models via TransformersShiba Biswal, Karthik Elamvazhuthi, Rishi SonthaliaICML 2025
