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

平均场Transformer模型中亚稳态聚类的涌现

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

University of Bern(伯尔尼大学);University of California, San Diego(加利福尼亚大学圣迭戈分校);University of Pisa(比萨大学)

Giuseppe Bruno, Federico Pasqualotto, Andrea Agazzi

AI总结:

基于平均场相互作用粒子系统框架,将Transformer层内token演化建模为单位球面连续流,通过分析对应PDE的长期行为,揭示亚稳态聚类涌现机制并明确其与逆温度参数的关系。

摘要:

我们基于(Geshkovski等人,2023)提出的框架,将深度Transformer层堆叠内的token演化建模为单位球面上的连续时间流,由平均场相互作用粒子系统控制。本文研究对应的平均场偏微分方程(PDE)——可解释为Wasserstein梯度流,对该系统的长期行为进行数学分析,特别关注亚稳态相位和聚类现象的涌现与持续,这些是下token预测等应用的关键要素。更具体地,我们对独立同分布(iid)均匀初始化附近的平均场PDE进行微扰分析,证明在token数量很大的极限下,模型保持接近具有特定结构(如周期性)的解的亚稳态流形。此外,表征亚稳态流形的结构作为模型逆温度参数的函数,由最大化Gegenbauer多项式某一重标度的指数明确识别。

英文摘要:

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.

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

↑