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

Transformer的动力学理论与中间丢失现象

Kinetic theory for Transformers and the lost-in-the-middle phenomenon

Mitia Duerinckx, Borjan Geshkovski, Stefano Rossi

AI总结:

研究因果自注意力动力学,揭示Transformer解码器中中间丢失现象的数学机制,通过粒子系统模型证明均场极限及高阶相关性特征。

摘要:

我们研究因果自注意力动力学——解码器Transformer的玩具模型——将其解释为非交换性粒子系统。通过适应累积展开到模型的三角因果依赖结构,并利用非分层方法用Glauber算子估计相关性,我们证明了定量均场极限结果及高阶相关性特征。对于独立同分布的均匀分布token,极限相关性方程可闭合求解,从而严格解释经验观察到的中间丢失现象:token检索轮廓作为提示中源位置函数呈U形,具有优先性、近期性和在显式小性条件下的唯一内部极小值。

英文摘要:

We study causal self-attention dynamics -- a toy model for decoder Transformers -- which we interpret as a non-exchangeable interacting particle system. Adapting cumulant expansions to the triangular causal dependency structure of the model, and appealing to non-hierarchical methods to estimate correlations using Glauber calculus, we prove a quantitative mean-field limit result and a next-order characterization of correlations. For iid uniformly distributed tokens, the limiting correlation equation can be solved in closed form and we obtain a rigorous explanation of the empirically observed \emph{lost-in-the-middle} phenomenon: the token retrieval profile, as a function of the source position in the prompt, is $\mathsf{U}$-shaped, with primacy, recency, and a unique interior minimum under an explicit smallness condition.

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

↑