arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2512.01868cs.LGmath-phmath.DSmath.MPmath.PR
收藏

Transformer 的均场动力学

The Mean-Field Dynamics of Transformers

Massachusetts Institute of Technology(麻省理工学院)

Philippe Rigollet

AI总结:

本文提出了一种将 Transformer 注意力建模为均场动力学的数学框架,揭示了注意力机制中聚类现象和长上下文注意力的相变特性。

摘要:

我们开发了一个数学框架,将 Transformer 注意力解释为一个相互作用粒子系统,并研究其连续(均场)极限。通过将注意力理想化为球面上的点,我们将 Transformer 动力学与 Wasserstein 渐近梯度流、同步模型(Kuramoto)和均移聚类联系起来。我们结果的核心是一种全局聚类现象,其中 tokens 在长时间的亚稳态后趋于聚类,形成多个聚类。我们进一步分析了一个可处理的等角约简,以获得精确的聚类速率,展示常用归一化方案如何改变收缩速度,并识别长上下文注意力的相变。结果突显了驱动表示崩溃的机制以及在深度注意力架构中保持表达性和多聚类结构的 regime。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑