arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2602.05230cs.LGcs.AIstat.ML
收藏

ZeroS:用于高效Transformer的零和线性注意力

ZeroS: Zero-Sum Linear Attention for Efficient Transformers

Georgia Institute of Technology(佐治亚理工学院);Amazon Web Services(亚马逊网络服务)

Jiecheng Lu, Xu Han, Yan Sun, Viresh Pati, Yubin Kim, Siddhartha Somani, Shihao Yang

AI总结:

ZeroS通过去除零阶项并重新加权残差,改进了线性注意力机制,实现了更稳定的权重和对比操作,从而在保持O(N)复杂度的同时提升了序列建模性能。

摘要:

线性注意力方法为Transformer提供了O(N)的复杂度,但通常在标准softmax注意力下表现不佳。我们发现这两种方法存在两个根本性的限制:限制于凸组合,仅允许加法信息融合,以及均匀积累权重偏差,稀释了长上下文中的注意力。我们提出了零和线性注意力(ZeroS),通过去除常数零阶项1/t并重新加权剩余的零和softmax残差来解决这些限制。这种修改创建了数学上稳定的权重,使权重能够同时为正负值,并允许单个注意力层执行对比操作。尽管保持O(N)的复杂度,ZeroS理论上扩展了可表示函数的集合,相比凸组合有所扩展。在各种序列建模基准中,实验证明其与标准softmax注意力匹配或优于其表现。

英文摘要:

Linear attention methods offer Transformers $O(N)$ complexity but typically underperform standard softmax attention. We identify two fundamental limitations affecting these approaches: the restriction to convex combinations that only permits additive information blending, and uniform accumulated weight bias that dilutes attention in long contexts. We propose Zero-Sum Linear Attention (ZeroS), which addresses these limitations by removing the constant zero-order term $1/t$ and reweighting the remaining zero-sum softmax residuals. This modification creates mathematically stable weights, enabling both positive and negative values and allowing a single attention layer to perform contrastive operations. While maintaining $O(N)$ complexity, ZeroS theoretically expands the set of representable functions compared to convex combinations. Empirically, it matches or exceeds standard softmax attention across various sequence modeling benchmarks.

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

↑