mlsanityData to 14 Oct 2026

Distill-then-Replace: Efficient Task-Specific Hybrid Attention Model Construction

arXiv 2601.11667 ↗First posted 16 Jan 2026cs.LG cs.AIcited by 3

Not on the map. Why?

Abstract (arXiv)

Transformer architectures deliver state-of-the-art accuracy via dense full-attention, but their quadratic time and memory complexity with respect to sequence length limits practical deployment. Linear attention mechanisms offer linear or near-linear scaling yet often incur performance degradation. Hybrid models that integrate full and linear attention layers promise a balance between efficiency and expressiveness, but face two major challenges: training such hybrid models from scratch is computationally expensive, and manually designing the optimal placement of attention types is highly nontrivial. We propose DtR (Distill-then-Replace), which first transfers weights from the pretrained full-attention modules to its linear attention counterparts through blockwise local distillation, and then applies a greedy layer replacement strategy that iteratively substitutes full attention blocks with linear ones while monitoring validation performance on the target task. DtR yields a task-specific hybrid model in a single efficient pass, without costly re-training or neural architecture search, and can be applied to any pretrained full-attention backbone for diverse downstream tasks.

Key facts. Cited by 3 papers in the map (data through 14 Oct 2026). Builds on 45 of its 52 references that are in the map. First posted on arXiv 16 Jan 2026.

Builds on

45 of 52 references.

References · 45

  1. 2017Attention Is All You Needcited by 60,361
  2. 2024The Llama 3 Herd of Modelscited by 14,715
  3. 2015Distilling the Knowledge in a Neural Networkcited by 10,324
  4. 2021Training Verifiers to Solve Math Word Problemscited by 10,109
  5. 2021Evaluating Large Language Models Trained on Codecited by 8,320
  6. 2020Measuring Massive Multitask Language Understandingcited by 7,963
  7. 2018Think you have Solved Question Answering? Try ARC, the AI2 Reasoning Challengecited by 4,886
  8. 2023Mamba: Linear-Time Sequence Modeling with Selective State Spacescited by 4,718
  9. 2019HellaSwag: Can a Machine Really Finish Your Sentence?cited by 4,100
  10. 2021Program Synthesis with Large Language Modelscited by 3,637
  11. 2019PIQA: Reasoning about Physical Commonsense in Natural Languagecited by 2,883
  12. 2021Efficiently Modeling Long Sequences with Structured State Spacescited by 2,465
33 more
  1. 2019BoolQ: Exploring the Surprising Difficulty of Natural Yes/No Questionscited by 2,183
  2. 2018Can a Suit of Armor Conduct Electricity? A New Dataset for Open Book Question Answeringcited by 2,164
  3. 2024Qwen2 Technical Reportcited by 2,120
  4. 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 2,022
  5. 2018CommonsenseQA: A Question Answering Challenge Targeting Commonsense Knowledgecited by 1,822
  6. 2020Rethinking Attention with Performerscited by 1,601
  7. 2023LongBench: A Bilingual, Multitask Benchmark for Long Context Understandingcited by 1,417
  8. 2016Understanding intermediate layers using linear classifier probescited by 1,353
  9. 2024Transformers are SSMs: Generalized Models and Efficient Algorithms Through Structured State Space Dualitycited by 1,336
  10. 2019PubMedQA: A Dataset for Biomedical Research Question Answeringcited by 1,288
  11. 2023On-Policy Distillation of Language Models: Learning from Self-Generated Mistakescited by 939
  12. 2023RWKV: Reinventing RNNs for the Transformer Eracited by 827
  13. 2017Crowdsourcing Multiple Choice Science Questionscited by 765
  14. 2019MathQA: Towards Interpretable Math Word Problem Solving with Operation-Based Formalismscited by 662
  15. 2023Retentive Network: A Successor to Transformer for Large Language Modelscited by 613
  16. 2024Gated Delta Networks: Improving Mamba2 with Delta Rulecited by 532
  17. 2023Gated Linear Attention Transformers with Hardware-Efficient Trainingcited by 514
  18. 2024Griffin: Mixing Gated Linear Recurrences with Local Attention for Efficient Language Modelscited by 242
  19. 2024Simple linear attention language models balance the recall-throughput tradeoffcited by 208
  20. 2024An Empirical Study of Mamba-based Language Modelscited by 186
  21. 2024Samba: Simple Hybrid State Space Models for Efficient Unlimited Context Language Modelingcited by 174
  22. 2024Nemotron-CC: Transforming Common Crawl into a Refined Long-Horizon Pretraining Datasetcited by 160
  23. 2024Zamba: A Compact 7B SSM Hybrid Modelcited by 124
  24. 2024The Mamba in the Llama: Distilling and Accelerating Hybrid Modelscited by 122
  25. 2024A Survey on Transformer Compressioncited by 46
  26. 2025Jet-Nemotron: Efficient Language Model with Post Neural Architecture Searchcited by 41
  27. 2024A Survey of Mambacited by 39
  28. 2025A Systematic Analysis of Hybrid Linear Attentioncited by 39
  29. 2025RADLADS: Rapid Attention Distillation to Linear Attention Decoders at Scalecited by 24
  30. 2025Zebra-Llama: Towards Extremely Efficient Hybrid Modelscited by 18
  31. 2024Puzzle: Distillation-Based NAS for Inference-Optimized LLMscited by 17
  32. 2025A Survey on Transformer Context Extension: Approaches and Evaluationcited by 11
  33. 2024RedStone: Curating General, Code, Math, and QA Data for Large Language Modelscited by 6

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 3.

3 papers.