跳到正文
arXiv (AI + Vision + Imaging)· Albert Alcalde, Leon Bungert, Konstantin Riedl, Tim Roith·· 8 天前AI 评分15

平均场Transformer低温区集中现象的量化解构

Quantifying Concentration Phenomena of Mean-Field Transformers in the Low-Temperature Regime

AI 导读

研究证明,在token数量极大的极限下,仅编码器Transformer的推理演化可由平均场连续性方程描述,token分布会快速集中到由key、query、value矩阵诱导的投影映射下初始分布的前推分布上,并在中等时间内保持亚稳态。

正文 · 原文

arXiv:2605.10931v3 Announce Type: replace-cross Abstract: Transformers with self-attention modules as their core components have become an integral architecture in modern large language and foundation models. In this paper, we study the evolution of tokens in deep encoder-only transformers at inference time which is described in the large-token limit by a mean-field continuity equation. Leveraging ideas from the convergence analysis of interacting multi-particle systems, with particles corresponding to tokens, we prove that the token distribution rapidly concentrates onto the push-forward of the initial distribution under a projection map induced by the key, query, and value matrices, and remains metastable for moderate times. Specifically, we show that the Wasserstein distance of the two distributions scales like $\sqrt{{\log(\beta+1)}/{\beta}}\exp(Ct)+\exp(-ct)$ in terms of the temperature parameter $\beta^{-1}\to 0$ and inference time $t\geq 0$. For the proof, we establish Lyapunov-type estimates for the zero-temperature equation, identify its limit as $t\to\infty$, and employ a stability estimate in Wasserstein space together with a quantitative Laplace principle to couple the two equations. Our result implies that for time scales of order $\log\beta$, which correspond to the early-phase behavior most relevant for practical finite-depth models, the token distribution concentrates at the identified limiting distribution. Numerical experiments confirm this and, beyond that, complement our theory by showing that for finite $\beta$ and large $t$ the dynamics enter a different terminal phase, dominated by the spectrum of the value matrix.

来源:arXiv (AI + Vision + Imaging) · arxiv.org