arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2603.16535cs.LGmath.OCstat.ML
收藏

SympFormer:通过密度流形上的惯性动力学加速注意力块

SympFormer: Accelerated attention blocks via Inertial Dynamics on Density Manifolds

Department of Mathematics, University of South Carolina(南卡罗来纳大学数学系);Institute of Mathematics, Technische Universität Berlin(柏林技术大学数学研究所)

Viktor Stein, Wuchen Li, Gabriele Steidl

AI总结:

SympFormer通过在密度流形上引入惯性Nesterov动力学,提出加速注意力块架构,利用哈密顿动量注意力块提升效率,保留Oracle调用次数的同时加快收敛速度。

摘要:

Transformer在自然语言处理中的成功很大程度归功于自注意力块。最近的观点将注意力块解释为相互作用粒子系统,其均值场极限对应于在概率密度空间上配备Wasserstein-2型度量的交互能量函数的梯度流。我们通过引入源自密度空间上的惯性Nesterov型动力学的加速注意力块扩展这一观点。在所提出的架构中,token携带空间(特征)和速度变量。时间离散化和加速密度动力学的近似产生哈密顿动量注意力块,构成所提出的加速注意力架构。特别是,对于线性自注意力,我们展示注意力块使用双线性核近似潜在能量的Stein变分梯度流。在此设置中,我们证明椭圆轮廓概率分布由加速注意力块保持。我们提出了可实现的粒子基算法,并证明所提出的加速注意力块比经典注意力块收敛更快,同时保持Oracle调用次数。

英文摘要:

Transformers owe much of their empirical success in natural language processing to the self-attention blocks. Recent perspectives interpret attention blocks as interacting particle systems, whose mean-field limits correspond to gradient flows of interaction energy functionals on probability density spaces equipped with Wasserstein-$2$-type metrics. We extend this viewpoint by introducing accelerated attention blocks derived from inertial Nesterov-type dynamics on density spaces. In our proposed architecture, tokens carry both spatial (feature) and velocity variables. The time discretization and the approximation of accelerated density dynamics yield Hamiltonian momentum attention blocks, which constitute the proposed accelerated attention architectures. In particular, for linear self-attention, we show that the attention blocks approximate a Stein variational gradient flow, using a bilinear kernel, of a potential energy. In this setting, we prove that elliptically contoured probability distributions are preserved by the accelerated attention blocks. We present implementable particle-based algorithms and demonstrate that the proposed accelerated attention blocks converge faster than the classical attention blocks while preserving the number of oracle calls.

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

↑