阈值差分注意力:用于无汇、超稀疏和非分散语言建模
Threshold Differential Attention for Sink-Free, Ultra-Sparse, and Non-Dispersive Language Modeling
AI总结:
本文提出阈值差分注意力机制,解决长上下文下的注意力汇问题,实现超稀疏和鲁棒性提升,无需投影方法或标准注意力的噪声积累。
摘要:
Softmax attention在处理长上下文时面临结构限制:严格的求和到一约束迫使注意力汇到无关标记,且概率质量随着序列长度增加而分散。我们通过阈值差分注意力(TDA)解决这些问题,这是一种无汇注意力机制,能够在不增加投影方法计算开销或标准修正注意力噪声积累性能下降的情况下,实现超稀疏性和更长序列长度的鲁棒性提升。TDA通过行内极值阈值化与长度相关的门控保留超出值。受微分变压器启发,TDA还通过减去抑制视图来增强表达性。理论上,我们证明TDA能将每行虚假幸存者的期望数量控制在O(1)内,并且独立视图间的一致虚假匹配随着上下文增长而消失。实验表明,TDA能产生超过99%的精确零值,消除注意力汇,同时在标准和长上下文基准上保持竞争力。
英文摘要:
Softmax attention struggles with long contexts due to structural limitations: the strict sum-to-one constraint forces attention sinks on irrelevant tokens, and probability mass disperses as sequence lengths increase. We tackle these problems with Threshold Differential Attention (TDA), a sink-free attention mechanism that achieves ultra-sparsity and improved robustness at longer sequence lengths without the computational overhead of projection methods or the performance degradation caused by noise accumulation of standard rectified attention. TDA applies row-wise extreme-value thresholding with a length-dependent gate, retaining only exceedances. Inspired by the differential transformer, TDA also subtracts an inhibitory view to enhance expressivity. Theoretically, we prove that TDA controls the expected number of spurious survivors per row to $O(1)$ and that consensus spurious matches across independent views vanish as context grows. Empirically, TDA produces $>99\%$ exact zeros and eliminates attention sinks while maintaining competitive performance on standard and long-context benchmarks.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。