Eliciting the Recall Capacity of Linear Attention
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.
Create a lesson
Metadata
- Comments
- 32 pages, 10 figures
Related papers
AVQ-Attention-2: Adaptive Vector-Quantized Attention with Exact Local Blocks and Linear-Cost Training
Shared title terminologycs.LGWinfried van den Dool, Patrick Forré, Amir Habibian et al.
Integral DeltaNet: Improved Linear Attention with Adaptive Memory Integration
Shared title terminologycs.LGJunsoo Oh, Jihun Yun, Junhyuck Kim et al.
When High Capacity Becomes Undeployable: Pore-Filling Constraints for Multi-Objective Optimization of Direct Air Capture Sorbents
Shared title terminologycs.LGYujie Liu, Xuehua Shen, Zuotai Zhang
State Space Attention: Learning Context-Dependent Memory Retention
Shared title terminologycs.LGEge Çakar, Cengiz Pehlevan
Differentially Private Policy Optimization in Linear MDPs with Adversarial Rewards
Shared title terminologycs.LGYi He
One Token, Many Lessons: Sliding-Window Attention within Gated Delta Networks
Shared title terminologycs.LGYuchen Song, Yangbin Chen