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

挖掘线性注意力的回忆能力

Eliciting the Recall Capacity of Linear Attention

ELLIS Institute Tübingen(埃利斯研究所蒂宾根分校);MPI-IS(马克斯·普朗克智能系统研究所);Tübingen AI Center(蒂宾根人工智能中心);KTH Royal Institute of Technology(皇家理工学院(KTH))

Johan Lindqvist, Antonio Orvieto

AI总结:

该研究针对线性注意力模型在关联回忆任务中弱于softmax注意力的问题,通过合成任务与训练干预,发现增强回忆监督可缩小差距,挖掘出线性注意力未充分利用的检索能力。

摘要:

线性注意力模型在语言建模的关联回忆(AR)任务中,相较于softmax注意力存在不成比例的缺陷。我们通过自然语言评估、合成回忆任务和针对性训练干预来研究这一差距。在合成场景下,我们量化了状态大小对可从记忆中回忆的项目数量的作用,发现所测试的线性注意力架构存在相似的经验缩放规律。测试该关系后发现,即使是单个大规模层也能学习检索远距离的数千个关联。然而,标准语言模型训练并不可靠地教会线性模型从上下文复制,而可比的softmax模型则能做到。考虑到这一点,我们通过上下文句子重复和上下文敏感的损失重加权来增强训练中的回忆监督。这两种方法都能提升回忆密集型基准的性能,且在不改变架构、token预算或优化步骤数量的情况下,将远距离AR差距缩小到softmax基线,仅对通用语言建模有轻微影响。因此,这些对训练的针对性调整可挖掘线性注意力模型中大量但未充分利用的检索能力。这些发现表明,尽管线性注意力架构具有强大的回忆能力,但其归纳偏置和语言模型训练的需求使得没有专门激励就难以发展这种能力。

英文摘要:

Linear attention models exhibit a disproportionate deficit relative to softmax attention in associative recall (AR) in language modeling. We investigate this gap through natural language evaluations, synthetic recall tasks, and targeted training interventions. Using a synthetic setting, we quantify the role of state-size in how many items can be recalled from memory and find a similar empirical scaling across the tested linear-attention architectures. Testing this relationship reveals that even a single layer at scale can learn to retrieve thousands of associations across long distances. Yet, standard language model training does not reliably teach a linear model to copy from context, whereas a comparable softmax model learns to do so. Considering this, we strengthen recall supervision during training through in-context sentence repetition and context-sensitive loss reweighting. Both methods improve recall-intensive benchmark performance and narrow the long-distance AR gap to the softmax baseline without changing the architecture, token budget, or number of optimization steps, at a slight cost to general language modeling. These targeted changes to training can thus elicit substantial but underutilized retrieval capacity in linear-attention models. These findings suggest that, although linear-attention architectures have substantial capacity for recall, their inductive biases and the demands of language model training make it difficult to develop this capability without dedicated incentives.

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

↑