用指数衰减记忆增强注意力提升查询感知的KV稀疏性
Augmenting Attention with Exponentially Decaying Memory Improves Query-Aware KV Sparsity
AI总结:
本文通过引入指数衰减记忆模块增强注意力机制,在稀疏注意力推理中显著提升查询感知方法的准确性,并在多个任务上验证了其有效性。
摘要:
高效推理对于长上下文语言模型至关重要,其中注意力计算和KV缓存访问主导了成本。最近的工作RAT+引入了一种递归增强的注意力骨干,使得在推理时能够进行灵活的扩张注意力。在本文中,我们研究了这种指数衰减记忆是否也能改进现有的查询感知稀疏推理方法。使用包括Quest、MoBA和SnapKV在内的代表性方法,我们展示了在八个“大海捞针”任务中,RAT+在不同稀疏预算下始终比标准注意力提高了准确性。我们既在RAT+论文发布的检查点上验证了这些增益,也在OLMo2-7B上进行了验证,后者我们使用添加的记忆模块继续预训练了100亿个token。最后,我们提出了两个假设来解释为什么这个记忆模块有利于查询感知的稀疏推理,并设计了有针对性的实验来支持它们。
英文摘要:
Efficient inference is critical for long-context language models, where attention computation and KV-cache access dominate the cost. Recent work RAT+, introduces a recurrence-augmented attention backbone that enables flexible dilated attention at inference time. In this paper, we investigate whether this exponentially decaying memory can also improve existing query-aware sparse inference methods. Using representative methods including Quest, MoBA, and SnapKV, we show that RAT+ consistently improves accuracy over standard attention across sparse budgets on eight needle-in-a-haystack tasks. We validate these gains both on the released checkpoints from the RAT+ paper and on OLMo2-7B, which we continue pretraining with the added memory module for 10B tokens. Finally, we propose two hypotheses explaining why this memory module benefits query-aware sparse inference and design targeted experiments to support them.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。