数学 > 偏微分方程分析
[提交于 2026年5月9日 (v1),最后修订于 2026年10月20日 (此版本, v2)]
标题:Kinetic theory for Transformers and the lost-in-the-middle phenomenon
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要: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.
提交历史
来自:Borjan Geshkovski[v1] 2026年5月9日 星期六 23:16:19 UTC (1,518 KB)
[v2] 2026年10月20日 星期二 18:24:38 UTC (364 KB)