The Mean-Field Dynamics of Transformers

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteur principal: Rigollet, Philippe
Format: Preprint
Publié: 2025
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866914294462939136
author Rigollet, Philippe
author_facet Rigollet, Philippe
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2512_01868
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle The Mean-Field Dynamics of Transformers
Rigollet, Philippe
Machine Learning
Mathematical Physics
Dynamical Systems
Probability
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.
title The Mean-Field Dynamics of Transformers
topic Machine Learning
Mathematical Physics
Dynamical Systems
Probability
url https://arxiv.org/abs/2512.01868