arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2606.02332cs.AIcs.CLcs.LG
收藏

忘记注意力:重要性感知注意力即你所需

Forget Attention: Importance-Aware Attention Is All You Need

Department of Computer Engineering(计算机工程系)

Suhyeong Shin, Yeongwook Yang

AI总结:

提出SISA方法,通过将状态空间模型的重要性信号直接融入注意力分数计算,实现分数级融合,在语言建模中兼顾全局检索与重要性排序。

摘要:

将注意力的全局检索与状态空间模型(SSM)的顺序重要性信号相结合是混合语言建模的开放挑战。Transformer能看见所有位置但无法区分优先级;SSM知道什么重要但无法重新访问。现有混合模型——Jamba(块级)和Hymba(头级)——将两者置于独立模块,因此在注意力计算过程中彼此无法相互影响。我们提出SISA(SSM引导的Softmax注意力),该方法在注意力分数内部直接添加SSM导出的重要性项,并通过在增强的查询/键向量上执行单个SDPA调用来实现完整操作——无需循环状态,无需自定义内核。在152M/5B token上,SISA在LAMBADA-greedy上达到17.3%(对比Transformer的13.9和Mamba-3的15.5),并从第1K步起实现NIAH 100%,比Transformer的检索收敛速度快7倍;在369M规模下,Mamba-3在LAMBADA上领先,而SISA保持完美的NIAH和标准SDPA执行。因此,SISA为SSM-注意力混合模型定义了第三个设计轴——分数级融合——超越了此前主导该领域的块级和头级范式。

英文摘要:

Attention retrieves content precisely, but its scores depend only on query--key products, leaving order and recency to positional encodings. Conversely, state-space models (SSMs) such as Mamba-3 track order and recency through input-dependent state transitions that decay and rotate, yet compressing context into a fixed-size state hampers precise retrieval. Hybrids like Samba and Hymba exploit this complementarity only across layers or heads, so SSM transitions never shape attention scores directly. The closest prior work, the Forgetting Transformer (FoX), adds an input-dependent forget gate to the scores but reweights attention by recency alone. We propose SSM-Informed Softmax Attention (SISA), which builds Mamba-3-style state transitions, rotation included, directly into the scores alongside FoX's gate. Each logit receives the weight such an SSM would give that token pair: a decayed match between rotated SSM projections. This rotation already encodes relative position, so SISA drops RoPE; restoring it raises loss. SISA outperforms parameter-matched Transformer and FoX in language modeling and length extrapolation. Among the attention models we compare, hybrids included, only SISA benefits from context beyond the training window. Building SSM transitions into the scores yields stronger attention, and our kernels make it faster and leaner than baselines on their official or standard kernels.

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

↑