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

Dual DeltaNet:用于线性注意力的值侧记忆重组

Dual DeltaNet: Value-Side Memory Reorganization for Linear Attention

College of Control Science and Engineering, Zhejiang University(浙江大学控制科学与工程学院);Polytechnic Institute, Zhejiang University(浙江大学理工学院);National University of Singapore(新加坡国立大学);School of Science, Huzhou Normal University(湖州师范学院理学院)

Yixiao Qian, Yaxin Zhang, Song Chen, Jiaxu Liu, Shengze Cai, Chao Xu

AI总结:

该研究提出Dual DeltaNet(DDN),通过两侧delta规则扩展Kimi Delta Attention,在语言建模等任务上性能优于KDA、GDN-2和Mamba-3,且开销适中。

摘要:

线性注意力和状态空间模型(SSMs)通过维护固定大小的循环状态,为softmax注意力提供了高效的替代方案,但这种设计需要仔细管理以保留有用的历史关联并限制干扰。delta规则通过校正与每个键关联的值来帮助减少干扰,但它未明确考虑相关值特征在状态中的分布方式。我们观察到状态$\boldsymbol{S}\in\boldsymbol{R}^{d_k\times d_v}$可视为存储$d_v$维值的$d_k$个地址的集合。键侧读取$\boldsymbol{S}^\top\boldsymbol{k}$会检索与$\boldsymbol{k}$关联的值,而值侧读取$\boldsymbol{S}\boldsymbol{e}$会聚合存储值特征与选择器$\boldsymbol{e}$匹配的地址。基于此观察,我们提出Dual DeltaNet(DDN),它通过两侧delta规则扩展了Kimi Delta Attention(KDA):键侧delta规则利用当前键读取以校正其关联值,互补的值侧delta规则利用当前值的选定特征读取以重组其占用的地址。我们推导了分块并行训练算法和秩2循环,这会在推理期间提高算术强度。与KDA、GDN-2和Mamba-3相比,DDN在语言建模、零样本下游任务和检索方面实现了最强的整体性能,同时相对于KDA产生的训练和推理开销适中。代码:this https URL

英文摘要:

Linear attention and state space models (SSMs) offer efficient alternatives to softmax attention by maintaining a fixed-size recurrent state, but this design requires careful management to preserve useful historical associations and limit interference. The delta rule helps reduce interference through correction of the value associated with each key, but it does not explicitly account for how related value features are distributed across the state. We observe that a state $\boldsymbol{S}\in\mathbb{R}^{d_k\times d_v}$ can be viewed as a bank of $d_k$ addresses storing $d_v$-dimensional values. While a key-side read $\boldsymbol{S}^\top\boldsymbol{k}$ retrieves the value associated with $\boldsymbol{k}$, a value-side read $\boldsymbol{S}\boldsymbol{e}$ aggregates addresses whose stored value features match the selector $\boldsymbol{e}$. Based on this observation, we propose Dual DeltaNet (DDN), which extends Kimi Delta Attention (KDA) with a two-sided delta rule. The key-side delta rule reads with the current key to correct its associated value, while the complementary value-side delta rule reads with selected features of the current value to reorganize the addresses it occupies. We derive a chunkwise parallel training algorithm and a rank-2 recurrence that increases arithmetic intensity during inference. Compared with KDA, GDN-2, and Mamba-3, DDN achieves the strongest overall performance across language modeling, zero-shot downstream tasks, and retrieval, while incurring modest training and inference overhead relative to KDA. Code: https://github.com/ReichtumQian/DualDeltaNet

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

↑