Retrieval-Aware Distillation for Transformer-SSM Hybrids
Not on the map. Why?
Abstract (arXiv)
State-space models (SSMs) offer efficient sequence modeling but lag behind Transformers on benchmarks that require in-context retrieval. Prior work links this gap to a small set of attention heads, termed Gather-and-Aggregate (G&A), which SSMs struggle to reproduce. We propose *retrieval-aware distillation*, which converts a pretrained Transformer into a hybrid student by preserving only these retrieval-critical heads and distilling the rest into recurrent heads. We identify the essential heads via ablation on a synthetic retrieval task, producing a hybrid with sparse, non-uniform attention placement. We show that preserving **just 2% of attention heads recovers over 95% of teacher performance on retrieval-heavy tasks** (10 heads in a 1B model), requiring far fewer heads than hybrids that retain at least 25%. We further find that large recurrent states often compensate for missing retrieval: once retrieval is handled by these heads, the SSM backbone can be simplified with limited loss, even with an 8× reduction in state dimension. By reducing both the attention cache and the SSM state, the resulting hybrid is 5--6× more memory-efficient than comparable hybrids, closing the Transformer--SSM gap at a fraction of the memory cost.
Key facts. Cited by 5 papers in the map (data through 7 Oct 2026). Builds on 25 of its 27 references that are in the map. First posted on arXiv 11 Feb 2026.
Builds on
25 of 27 references.
References · 25
- 2017Attention Is All You Needcited by 59,932
- 2021Training Verifiers to Solve Math Word Problemscited by 9,743
- 2020Measuring Massive Multitask Language Understandingcited by 7,768
- 2018Think you have Solved Question Answering? Try ARC, the AI2 Reasoning Challengecited by 4,710
- 2019HellaSwag: Can a Machine Really Finish Your Sentence?cited by 4,018
- 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,611
- 2019PIQA: Reasoning about Physical Commonsense in Natural Languagecited by 2,818
- 2018Can a Suit of Armor Conduct Electricity? A New Dataset for Open Book Question Answeringcited by 2,114
- 2024Transformers are SSMs: Generalized Models and Efficient Algorithms Through Structured State Space Dualitycited by 1,283
- 2016The LAMBADA dataset: Word prediction requiring a broad discourse contextcited by 960
- 2024MiniCPM: Unveiling the Potential of Small Language Models with Scalable Training Strategiescited by 694
- 2024Gated Delta Networks: Improving Mamba2 with Delta Rulecited by 483
13 more
- 2024Repeat After Me: Transformers are Better than State Space Models at Copyingcited by 208
- 2024Simple linear attention language models balance the recall-throughput tradeoffcited by 197
- 2023Zoology: Measuring and Improving Recall in Efficient Language Modelscited by 188
- 2024The Mamba in the Llama: Distilling and Accelerating Hybrid Modelscited by 120
- 2024Zamba: A Compact 7B SSM Hybrid Modelcited by 118
- 2020Data Movement Is All You Need: A Case Study on Optimizing Transformerscited by 108
- 2024Can Mamba Learn How to Learn? A Comparative Study on In-Context Learning Taskscited by 104
- 2024Transformers to SSMs: Distilling Quadratic Knowledge to Subquadratic Modelscited by 66
- 2024RNNs are not Transformers (Yet): The Key Bottleneck on In-context Retrievalcited by 62
- 2025Llamba: Scaling Distilled Recurrent Models for Efficient Language Processingcited by 35
- 2025Thinking Slow, Fast: Scaling Inference Compute with Distilled Reasonerscited by 22
- 2025M1: Towards Scalable Test-Time Compute with Mamba Reasoning Modelscited by 21
- 2025Understanding the Skill Gap in Recurrent Language Models: The Role of the Gather-and-Aggregate Mechanismcited by 15
Built on by
Citing papers per year: 2026: 5.
5 papers.
- 2026Raven: High-Recall Sequence Modeling with Sparse Memory Routingcited by 4
- 2026Morphing into Hybrid Attention Modelscited by 2
- 2026Taylor-Calibrate: Principled Initialization for Hybrid Linear Attention Distillationcited by 1
- 2026Long-Context Aware Upcycling: A New Frontier for Hybrid LLM Scalingcited by 0
- 2026On-Policy Attention Linearizationcited by 0
- 2026On-Policy Attention Linearization25 Sep 2026
- 2026Raven: High-Recall Sequence Modeling with Sparse Memory Routing28 Jul 2026
- 2026Morphing into Hybrid Attention Models29 Jun 2026
- 2026Taylor-Calibrate: Principled Initialization for Hybrid Linear Attention Distillation15 Jun 2026
- 2026Long-Context Aware Upcycling: A New Frontier for Hybrid LLM Scaling27 Apr 2026
Similar, not cited
Close in wording, no citation either way
- 2025Some Attention is All You Need for Retrieval
- 2025Understanding and Enhancing Mamba-Transformer Hybrids for Memory Recall and Language Modeling
- 2026Retrievit: In-context Retrieval Capabilities of Transformers, State Space Models, and Hybrid Architectures
- 2026Expressivity-Efficiency Tradeoffs for Hybrid Sequence Models
- 2025Mechanistic evaluation of Transformers and state space models
- 2026Forget Attention: Importance-Aware Attention Is All You Need
- 2024Expansion Span: Combining Fading Memory and Retrieval in Hybrid State Space Models
- 2026Long-Context Modeling via GSS-Transformer Hybrid Architecture with Learnable Mixing