arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2605.29351cs.LGmath.DSstat.ML
收藏

注意力作为上下文经验贝叶斯:通过粒子动力学的两阶段视角

Attention as In-Context Empirical Bayes: A Two-Stage View via Particle Dynamics

Lewis-Sigler Institute for Integrative Genomics(利斯-西格尔整合基因组研究所);Princeton University(普林斯顿大学);Department of Mathematics(数学系);Rutgers University(罗格斯大学);Department of Physics and Astronomy(物理与天文学系);Center for Computational Quantum Physics and Center for Computational Mathematics(计算量子物理中心和计算数学中心);Flatiron Institute(Flatiron研究所);Simons Foundation(西蒙斯基金会)

Matthew Smart, Soumya Ganguly, Nilava Metya, Alexandre V. Morozov, Anirvan M. Sengupta

AI总结:

本文通过粒子动力学将最小注意力仅变换器解释为两阶段经验贝叶斯过程,揭示了深度和注意力残差的统计角色,并证明无需显式噪声调度即可实现有效去噪。

摘要:

我们研究了在所有标记损坏情况下的最小注意力仅变换器,并表明它们具有两阶段经验贝叶斯解释。单个注意力步骤计算相对于由上下文定义的经验分布的核加权后验均值。深度通过粒子动力学(阶段1)细化该分布,而长程跳跃连接将噪声输入作为查询用于后验推断(阶段2),揭示了深度和注意力残差的独特统计角色。该框架隔离了一个最小设置,其中上下文本身诱导了一个控制上下文推断的深度依赖能量景观。我们表明,无需显式噪声调度即可出现有效去噪:固定的核带宽和有限的积分范围就足够了,从而产生了一个有原则的深度-噪声关系。我们进一步为一类表现良好的先验建立了后验均值恢复保证,其中经验估计器在渐近条件下收敛到贝叶斯最优预测器。将这些动力学与反向扩散极限联系起来,我们的结果为注意力作为通过基于样本的后验估计进行上下文推断提供了统计解释,无需显式密度建模。

英文摘要:

We study minimal attention-only transformers under all-token corruption and show they admit a two-stage empirical Bayes interpretation. A single attention step computes a kernel-weighted posterior mean with respect to the empirical distribution defined by the context. Depth refines this distribution through particle dynamics (Stage 1), while a long-range skip-connection carries the noisy input as a query for posterior inference (Stage 2), revealing distinct statistical roles for depth and attention residuals. The framework isolates a minimal setting in which the context itself induces a depth-dependent energy landscape governing in-context inference. We show that effective denoising can emerge without an explicit noise schedule: a fixed kernel bandwidth and finite integration horizon suffice, yielding a principled depth-noise relationship. We further establish a posterior-mean recovery guarantee for Gaussian priors, showing the empirical estimator converges to the Bayes-optimal predictor under sequential asymptotic conditions. Connecting these dynamics to reverse-diffusion limits, our results provide a statistical interpretation of attention as in-context inference via sample-based posterior estimation, without explicit density modeling.

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

↑