Training-Induced Escape from Token Clustering in a Mean-Field Formulation of Transformers
RIKEN Center for Advanced Intelligence Project(RIKEN先进人工智能研究中心);Imperial College London(帝国理工学院伦敦分校);The University of Tokyo(东京大学);Kyoto University(京都大学)
Transformers perform inference by iteratively transforming token representations across layers. This layerwise computation has been studied empirically, and recent mean-field theories of Transformer dynamics explain how attention can drive token distributions toward clustering. However, existing analyses treat model parameters as prescribed, leaving open how training reshapes this clustering picture. We study this question in a noisy mean-field Transformer in which only a parameter-linear FFN is trained under $L^2$ regularization. We identify a training-induced phase of the inference dynamics across layers: after clustering in the early layers, the token distribution can leave the clustered regime near the final layers. A single gradient-descent update already produces this escape, and minimizers of the training objective satisfy an exponential turnpike bound under which clustering persists through the interior layers. Our analysis is based on an entropy-regularized interaction energy that captures the clustering bias of attention, for which we establish a double-well landscape and a local Polyak-Łojasiewicz inequality. More broadly, our results point toward a training-aware mean-field theory in which training and inference dynamics of Transformers are treated together.
Quantitative Clustering in Mean-Field Transformer Models
Department of Mathematics, Massachusetts Institute of Technology(数学系,麻省理工学院);Department of Electrical Engineering and Computer Science, Massachusetts Institute of Technology(电气工程与计算机科学系,麻省理工学院)
A Hybrid Chimp Optimization Algorithm and Generalized Normal Distribution Algorithm with Opposition-Based Learning Strategy for Solving Data Clustering Problems
Bipartite Graph Attention-based Clustering for Large-scale scRNA-seq Data
Institute of Intelligent Information Processing, Shanxi University(山西大学智能信息处理研究院);Alliance Manchester Business School, The University of Manchester(曼彻斯特大学阿联酋商业学院)
Efficient Attention via Pre-Scoring: Prioritizing Informative Keys in Transformers
Carnegie Mellon University, Pittsburgh, USA;University of Southern California, Los Angeles, CA, USA;University of California, San Diego, Department of Mathematics, La Jolla, CA, USA;University of California, Davis, Applied Mathematics \& Statistics, Davis, CA, USA;Carnegie Mellon University, Pittsburgh, PA, USA