Lune

ICLR2025Top-tier venue

Emergence of meta-stable clustering in mean-field transformer models

Giuseppe Bruno, Federico Pasqualotto, Andrea Agazzi

Abstract

We model the evolution of tokens within a deep stack of Transformer layers as a continuous-time flow on the unit sphere, governed by a mean-field interacting particle system, building on the framework introduced in (Geshkovski et al., 2023) . Studying the corresponding mean-field Partial Differential Equation (PDE), which can be interpreted as a Wasserstein gradient flow, in this paper we provide a mathematical investigation of the long-term behavior of this system, with a particular focus on the emergence and persistence of meta-stable phases and clustering phenomena, key elements in applications like next-token prediction. More specifically, we perform a perturbative analysis of the mean-field PDE around the iid uniform initialization and prove that, in the limit of large number of tokens, the model remains close to a meta-stable manifold of solutions with a given structure (e.g., periodicity). Further, the structure characterizing the meta-stable manifold is explicitly identified, as a function of the inverse temperature parameter of the model, by the index maximizing a certain rescaling of Gegenbauer polynomials.

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.

16 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Critical attention scaling in long-context transformers cites Two failure modes of deep transformers and how to avoid them: a unified theory of signal propagation at initialisation
  • Critical attention scaling in long-context transformers cites A multiscale analysis of mean-field transformers in the moderate interaction regime
  • A multiscale analysis of mean-field transformers in the moderate interaction regime cites Critical attention scaling in long-context transformers
  • 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
  • A multiscale analysis of mean-field transformers in the moderate interaction regime cites Global optimality of softmax policy gradient with single hidden layer neural networks in the mean-field regime
  • A multiscale analysis of mean-field transformers in the moderate interaction regime cites Quantitative Propagation of Chaos for SGD in Wide Neural Networks
  • A multiscale analysis of mean-field transformers in the moderate interaction regime cites Two failure modes of deep transformers and how to avoid them: a unified theory of signal propagation at initialisation
  • A multiscale analysis of mean-field transformers in the moderate interaction regime cites Clustering in Causal Attention Masking
  • Normalization in Attention Dynamics cites A multiscale analysis of mean-field transformers in the moderate interaction regime
  • Normalization in Attention Dynamics cites Clustering in Causal Attention Masking
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers16

  1. Clustering in Causal Attention MaskingNikita Karagodin, Yury Polyanskiy, Philippe RigolletNeurIPS 2024 · 40 citations
  2. A multiscale analysis of mean-field transformers in the moderate interaction regimeGiuseppe Bruno, Federico Pasqualotto, Andrea AgazziNeurIPS 2025 · 29 citations
  3. Critical attention scaling in long-context transformersShi Chen, Zhengjiang Lin, Yury Polyanskiy, Philippe RigolletICLR 2026 · 22 citations
  4. Two failure modes of deep transformers and how to avoid them: a unified theory of signal propagation at initialisationAlessio Giorlandino, Sebastian GoldtICLR 2026 · 15 citations
  5. Normalization in Attention DynamicsNikita Karagodin, Shu Ge, Yury Polyanskiy, Philippe RigolletNeurIPS 2025 · 10 citations

Builds on2

  1. Quantitative Propagation of Chaos for SGD in Wide Neural NetworksValentin De Bortoli, Alain Durmus, Xavier Fontaine, Umut SimsekliNeurIPS 2020 · 36 citations
  2. Global optimality of softmax policy gradient with single hidden layer neural networks in the mean-field regimeAndrea Agazzi, Jianfeng LuICLR 2021 · 3 citations

Related papers

  1. Perceptrons and Localization of Attention’s Mean-Field LandscapeAntonio Álvarez López, Borjan Geshkovski, Domènec Ruiz-BaletICML 2026 · 7 citations
  2. Clustering in Deep Stochastic TransformersLev Fedorov, Michael Sander, Romuald Elie, Pierre Marion et al.ICML 2026 · 7 citations
  3. Global Convergence in Training Large-Scale TransformersCheng Gao, Yuan Cao, Zihao Li, Yihan He et al.NeurIPS 2024 · 10 citations
  4. The emergence of clusters in self-attention dynamicsBorjan Geshkovski, Cyril Letrouit, Yury Polyanskiy, Philippe RigolletNeurIPS 2023 · 163 citations
  5. Universal Approximation of Mean-Field Models via TransformersShiba Biswal, Karthik Elamvazhuthi, Rishi SonthaliaICML 2025
Dusk over the sea between two cliffs drawn in fine vertical lines