先擦除后增量注意力:在Delta规则线性注意力中解耦擦除与写入地址
Erase-then-Delta Attention: Decoupling Erase and Write Addresses in Delta-Rule Linear Attention
AI总结:
提出Erase-then-Delta Attention (EDA),通过解耦擦除和写入地址,在Delta规则基础上增加选择性擦除步骤,提升循环记忆模型的记忆管理能力,在2.5B密集和MoE 25B-A2.8B模型上取得最优性能。
摘要:
Delta规则线性注意力通过在新内容写入前修正当前写入地址已存储的内容来改进循环记忆更新。然而,主动修正仍锚定于同一写入地址。因此,存储在不同地址的过时信息无法在新内容写入其他位置前被主动移除。我们提出Erase-then-Delta Attention (EDA),一种解耦擦除位置与写入位置的记忆更新规则。关键见解是循环记忆模型不仅应修正当前写入,还应独立选择地址选择性抑制过时记忆。具体地,我们的方法首先沿学习到的擦除方向应用目标擦除步骤,然后沿当前写入方向执行标准Delta式修正写入。这保留了Delta规则更新的修正行为,同时扩展了其记忆管理能力。在密集2.5B和MoE 25B-A2.8B模型系列上的语言模型预训练实验表明,EDA在两种设置下均表现最佳。在MoE模型经过80B token长上下文中期训练后,增益持续存在,且在4k至128k上下文的长上下文评估中EDA也表现最佳。紧凑更新分析和记忆状态探针揭示了原因:EDA保持Delta规则修正写入不变,同时在被动衰减较弱时最强地分配额外清理路径。这些结果表明循环记忆模型不仅应决定写入什么,还应决定擦除哪些过时信息以及在哪里擦除。
英文摘要:
Delta-rule linear attention improves recurrent memory updates by correcting what is already stored at the current write address before writing new content. However, the active correction is still anchored to that same write address. As a result, stale information stored at a different address cannot be actively removed before new content is written elsewhere. We propose Erase-then-Delta Attention (EDA), a memory update rule that decouples where to erase from where to write. The key insight is that recurrent memory models should not only correct the current write, but also selectively suppress outdated memory at an independently chosen address. Concretely, our method first applies a targeted erase step along a learned erase direction, and then performs the standard delta-style corrective write along the current write direction. This preserves the corrective behavior of delta-rule updates while expanding their memory-management capacity. Language-model pretraining experiments across dense 2.5B and MoE 25B-A2.8B model families show that EDA performs best in both settings. The gain persists after 80B-token long-context midtraining of the MoE models, where EDA also performs best in long-context evaluations from 4k to 128k contexts. A compact update analysis and memory-state probes suggest why: EDA keeps the delta-rule corrective write intact while allocating an additional cleanup path most strongly when passive decay is weak. These results suggest that recurrent memory models should decide not only what to write, but also what stale information to erase and where.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。