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

Integral DeltaNet:改进的线性注意力与自适应记忆整合

Integral DeltaNet: Improved Linear Attention with Adaptive Memory Integration

Kim Jaechul Graduate School of AI, KAIST(KAIST金在哲人工智能研究生院);KRAFTON AI(KRAFTON人工智能);Department of Mathematics, University of Wisconsin–Madison(威斯康星大学麦迪逊分校数学系)

Junsoo Oh, Jihun Yun, Junhyuck Kim, Hanbaek Lyu

AI总结:

Integral DeltaNet通过双循环状态自适应整合,结合分块并行公式提升线性注意力性能,在多任务上优于基线模型。

摘要:

线性注意力用线性公式替代softmax注意力,通过固定大小的循环状态而非不断增长的键值缓存,实现了线性时间复杂度计算。这些计算与内存优势使线性注意力在长上下文语言建模中受到越来越多关注。然而,将过往信息压缩为固定大小状态会导致内存冲突,阻碍长上下文理解。尽管DeltaNet通过delta规则更新缓解了内存冲突,Gated DeltaNet则通过门控扩展了该方法,但这些机制也可能丢弃与未来预测相关的信息。为解决此局限,我们提出Integral DeltaNet,它维护两个互补的循环状态:快速更新的delta状态,用于捕获当前键值关联;积分状态,用于保留delta状态的加权历史。在读取时,模型自适应组合这些状态以访问不同时间尺度的信息。我们进一步推导了分块并行公式,实现硬件高效训练。我们使用3.4亿参数和13亿参数模型,分别在150亿和1000亿FineWeb-Edu token上从头训练,评估Integral DeltaNet。与强大的循环基线对比显示,其在语言建模、常识推理、真实与合成检索、长上下文理解及长度外推方面整体性能提升。我们还对比了训练吞吐量、激活内存,以及解码延迟与内存。

英文摘要:

Linear attention replaces softmax attention with a linear formulation, enabling linear-time computation with a fixed-size recurrent state instead of a growing key-value cache. These computational and memory advantages have attracted growing interest in linear attention for long-context language modeling. However, compressing past information into a fixed-size state causes memory collisions that hinder long-context understanding. Although DeltaNet mitigates memory collisions through delta-rule updates and Gated DeltaNet extends this approach with gating, these mechanisms may also discard information relevant to future predictions. To address this limitation, we introduce Integral DeltaNet, which maintains two complementary recurrent states: a fast-updating delta state that captures current key-value associations and an integral state that preserves a weighted history of the delta state. At readout, the model adaptively combines these states to access information across different timescales. We further derive a chunkwise parallel formulation that enables hardware-efficient training. We evaluate Integral DeltaNet using 340M and 1.3B parameter models trained from scratch on 15B and 100B FineWeb-Edu tokens, respectively. Comparisons with strong recurrent baselines show improved overall performance in language modeling, commonsense reasoning, real-world and synthetic retrieval, long-context understanding, and length extrapolation. We also compare training throughput and activation memory, as well as decoding latency and memory.

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

↑