DAMI:用于增强门控线性注意力中长上下文检索的双轴记忆初始化
DAMI: Dual-Axis Memory Initialization for Enhanced Long-Context Retrieval in Gated Linear Attention
AI总结:
针对门控线性注意力长上下文检索受有限状态记忆限制的问题,提出双轴记忆初始化(DAMI),无需新增可训练参数,可将GDN等模型的平均RULER式检索准确率提升5.29至16.71个百分点,且其他任务性能与基线相当。
摘要:
线性注意力随序列长度呈线性扩展,但其有限状态记忆会限制长上下文检索。在门控线性循环中,记忆保留取决于状态衰减,该衰减由门参数A_log和dt_bias以及输入激活共同决定。在受控门控DeltaNet(GDN)实验中,训练后这些参数仍与其初始值高度相关,凸显了初始化的重要性。因此,我们提出双轴记忆初始化(DAMI),在训练前共同配置这些参数:为各注意力头分配几何时间尺度以适配不同检索距离,为各层分配低-高-低的输入敏感度分布。通过少量激活样本校准GDN系列实现,以匹配行为目标且不增加可训练参数。在GDN、KDA、GDN2、Mamba-2和RWKV-7上,DAMI相比对应随机初始化基线,将平均RULER式检索准确率提升了5.29至16.71个百分点;在语言建模、常识推理及2K真实世界检索任务上,其性能与基线大致相当。我们的代码可在该https URL获取。
英文摘要:
Linear attention scales linearly with sequence length, but its finite-state memory can limit long-context retrieval. In gated linear recurrences, memory retention depends on state decay, which is shaped jointly by gate parameters A_log and dt_bias and by input activations. In controlled Gated DeltaNet (GDN) experiments, both parameters remain highly correlated with their initial values after training, highlighting the importance of initialization. Therefore, we introduce Dual-Axis Memory Initialization (DAMI), which jointly configures these parameters before training. DAMI assigns geometric timescales across heads for varied retrieval distances and a low-high-low input-sensitivity profile across layers. A small activation sample calibrates the GDN-family implementation to match both behavioral targets without adding trainable parameters. Across GDN, KDA, GDN2, Mamba-2, and RWKV-7, DAMI improves average RULER-style retrieval accuracy by 5.29 to 16.71 percentage points over the corresponding random-initialization baselines. Performance on language modeling, commonsense reasoning, and 2K real-world retrieval remains broadly comparable to those baselines. Our code is available at https://speedai.com/research/dami.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。