线性注意力模型的召回能力为何被低估:训练干预缩小与softmax注意力差距
Eliciting the Recall Capacity of Linear Attention
线性注意力模型在联想召回(AR)上相对softmax注意力存在明显不足,合成实验显示状态规模决定可召回条目数,且单层在足够规模下即可跨长距离检索数千条关联。通过在训练中加入上下文句子重复与上下文敏感损失重加权,可在不改架构、token预算和优化步数的情况下缩小长距离AR差距,但通用语言建模能力略有下降。
arXiv:2611.32969v1 Announce Type: new Abstract: 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.
来源:arXiv (AI + Vision + Imaging) · arxiv.org