arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2512.11784cs.LGstat.ML
收藏

大提示词机制下的Softmax作为线性注意力:基于测度的视角

Softmax as Linear Attention in the Large-Prompt Regime: a Measure-based Perspective

Université Paris-Saclay, CNRS, Inria, Laboratoire de mathématiques d'Orsay(巴黎萨克雷大学、国家科学研究中心、法国国家信息与自动化研究所、奥赛数学实验室)

Etienne Boursier, Claire Boyer

AI总结:

提出基于测度的框架,证明在无限提示词极限下softmax注意力收敛到线性算子,并给出有限提示词下的非渐近浓度界,从而将线性注意力的优化分析迁移到大提示词下的softmax注意力。

摘要:

Softmax注意力是Transformer架构的核心组成部分,但其非线性结构给理论分析带来了重大挑战。我们开发了一个统一的、基于测度的框架,用于研究有限和无限提示词下的单层softmax注意力。对于独立同分布的高斯输入,我们利用softmax算子在大提示词极限下收敛到作用于底层输入标记测度的线性算子这一事实。基于这一见解,我们建立了softmax注意力输出和梯度的非渐近浓度界,量化了有限提示词模型接近其无限提示词对应模型的速度,并证明了在具有次高斯标记的一般上下文学习设置中,这种浓度在整个训练轨迹上保持稳定。在线性回归的上下文学习中,我们利用易处理的无限提示词动力学来分析有限提示词长度下的训练。我们的结果表明,当提示词足够长时,为线性注意力开发的优化分析可以直接迁移到softmax注意力上,表明大提示词下的softmax注意力继承了其线性对应物的分析结构。这反过来为研究大提示词机制下softmax注意力层的训练动力学和统计行为提供了一个有原则且广泛适用的工具包。

英文摘要:

Softmax attention is a central component of transformer architectures, yet its nonlinear structure poses significant challenges for theoretical analysis. We develop a unified, measure-based framework for studying single-layer softmax attention under both finite and infinite prompts. For i.i.d. Gaussian inputs, we lean on the fact that the softmax operator converges in the infinite-prompt limit to a linear operator acting on the underlying input-token measure. Building on this insight, we establish non-asymptotic concentration bounds for the output and gradient of softmax attention, quantifying how rapidly the finite-prompt model approaches its infinite-prompt counterpart, and prove that this concentration remains stable along the entire training trajectory in general in-context learning settings with sub-Gaussian tokens. In the case of in-context linear regression, we use the tractable infinite-prompt dynamics to analyze training at finite prompt length. Our results allow optimization analyses developed for linear attention to transfer directly to softmax attention when prompts are sufficiently long, showing that large-prompt softmax attention inherits the analytical structure of its linear counterpart. This, in turn, provides a principled and broadly applicable toolkit for studying the training dynamics and statistical behavior of softmax attention layers in large prompt regimes.

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

↑