Transformers to SSMs: Distilling Quadratic Knowledge to Subquadratic Models
On the map: State-space sequence models (S4, Mamba) → Core SSM architectures for language
Abstract (arXiv)
Transformer architectures have become a dominant paradigm for domains like language modeling but suffer in many inference settings due to their quadratic-time self-attention. Recently proposed subquadratic architectures, such as Mamba, have shown promise, but have been pretrained with substantially less computational resources than the strongest Transformer models. In this work, we present a method that is able to distill a pretrained Transformer architecture into alternative architectures such as state space models (SSMs). The key idea to our approach is that we can view both Transformers and SSMs as applying different forms of mixing matrices over the token sequences. We can thus progressively distill the Transformer architecture by matching different degrees of granularity in the SSM: first matching the mixing matrices themselves, then the hidden units at each block, and finally the end-to-end predictions. Our method, called MOHAWK, is able to distill a Mamba-2 variant based on the Phi-1.5 architecture (Phi-Mamba) using only 3B tokens and a hybrid version (Hybrid Phi-Mamba) using 5B tokens. Despite using less than 1% of the training data typically used to train models from scratch, Phi-Mamba boasts substantially stronger performance compared to all past open-source non-Transformer models. MOHAWK allows models like SSMs to leverage computational resources invested in training Transformer-based architectures, highlighting a new avenue for building such models.
Key facts. Cited by 66 papers in the map (data through 7 Oct 2026). Placed in Core SSM architectures for language, one of 10 directions in State-space sequence models (S4, Mamba). Builds on 42 of its 55 references that are in the map. First posted on arXiv 19 Aug 2024.
Builds on
42 of 55 references.
Closest ancestors · 7
Same direction, newest first
- 2024Hydra: Bidirectional State Space Models Through Generalized Matrix Mixers13 Jul
- 2024Samba: Simple Hybrid State Space Models for Efficient Unlimited Context Language Modeling11 Jun
- 2024Transformers are SSMs: Generalized Models and Efficient Algorithms Through Structured State Space Duality31 May
- 2024Jamba: A Hybrid Transformer-Mamba Language Model28 Mar
- 2023Gated Linear Attention Transformers with Hardware-Efficient Training11 Dec
- 2023Mamba: Linear-Time Sequence Modeling with Selective State Spaces1 Dec
- 2021Efficiently Modeling Long Sequences with Structured State Spaces31 Oct
Other references · 35
- 2017Attention Is All You Needcited by 59,932
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
- 2015Distilling the Knowledge in a Neural Networkcited by 10,076
- 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
- 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 1,979
- 2020MiniLM: Deep Self-Attention Distillation for Task-Agnostic Compression of Pre-Trained Transformerscited by 1,414
- 2016The LAMBADA dataset: Word prediction requiring a broad discourse contextcited by 960
23 more
- 2023RWKV: Reinventing RNNs for the Transformer Eracited by 814
- 2023Retentive Network: A Successor to Transformer for Large Language Modelscited by 594
- 2022Hungry Hungry Hippos: Towards Language Modeling with State Space Modelscited by 495
- 2023Ring Attention with Blockwise Transformers for Near-Infinite Contextcited by 448
- 2023Sheared LLaMA: Accelerating Language Model Pre-training via Structured Pruningcited by 408
- 2024xLSTM: Extended Long Short-Term Memorycited by 320
- 2022Long Range Language Modeling via Gated State Spacescited by 265
- 2024MambaVision: A Hybrid Mamba-Transformer Vision Backbonecited by 222
- 2024HGRN2: Gated Linear RNNs with State Expansioncited by 122
- 2019Understanding Knowledge Distillation in Non-autoregressive Machine Translationcited by 121
- 2024The Hedgehog & the Porcupine: Expressive Linear Attentions with Softmax Mimicrycited by 119
- 2023Selective Structured State-Spaces for Long-Form Video Understandingcited by 105
- 2019Multilingual Neural Machine Translation with Knowledge Distillationcited by 95
- 2021Finetuning Pretrained Transformers into RNNscited by 94
- 2019Self-Knowledge Distillation in Natural Language Processingcited by 60
- 2024Linearizing Large Language Modelscited by 51
- 2024What does the Knowledge Neuron Thesis Have to do with Knowledge?cited by 49
- 2019Model Compression with Two-stage Multi-teacher Knowledge Distillation for Web Question Answering Systemcited by 43
- 2023Toeplitz Neural Network for Sequence Modelingcited by 43
- 2024PoinTramba: A Hybrid Transformer-Mamba Framework for Point Cloud Analysiscited by 26
- 2023HomoDistil: Homotopic Task-Agnostic Distillation of Pre-trained Transformerscited by 25
- 2018Attention-Guided Answer Distillation for Machine Reading Comprehensioncited by 18
- 2019TextKD-GAN: Text Generation using KnowledgeDistillation and Generative Adversarial Networkscited by 14
Built on by
Citing papers per year: 2024: 6; 2025: 39; 2026: 21.
66 papers.
Sort:
By area:
- 2025MoBA: Mixture of Block Attention for Long-Context LLMscited by 188
- 2025A Survey of Efficient Reasoning for Large Reasoning Models: Language, Multimodality, and Beyondcited by 131
- 2024The Mamba in the Llama: Distilling and Accelerating Hybrid Modelscited by 120
- 2024Gated Slot Attention for Efficient Linear-Time Sequence Modelingcited by 73
- 2025Dynamic Chunking for End-to-End Hierarchical Sequence Modelingcited by 65
- 2025End-to-End Test-Time Training for Long Contextcited by 53
- 2025Jet-Nemotron: Efficient Language Model with Post Neural Architecture Searchcited by 39
- 2025Llamba: Scaling Distilled Recurrent Models for Efficient Language Processingcited by 35
- 2025Liger: Linearizing Large Language Models to Gated Recurrent Structurescited by 32
- 2025RADLADS: Rapid Attention Distillation to Linear Attention Decoders at Scalecited by 24
- 2025Thinking Slow, Fast: Scaling Inference Compute with Distilled Reasonerscited by 22
- 2025M1: Towards Scalable Test-Time Compute with Mamba Reasoning Modelscited by 21
38 more
- 2025R-Sparse: Rank-Aware Activation Sparsity for Efficient LLM Inferencecited by 18
- 2025Zebra-Llama: Towards Extremely Efficient Hybrid Modelscited by 18
- 2026Hybrid Linear Attention Done Right: Efficient Distillation and Effective Architectures for Extremely Long Contextscited by 16
- 2025Understanding the Skill Gap in Recurrent Language Models: The Role of the Gather-and-Aggregate Mechanismcited by 15
- 2025Hybrid Architectures for Language Models: Systematic Analysis and Design Insightscited by 13
- 2025Comba: Improving Bilinear RNNs with Closed-loop Controlcited by 12
- 2025Exploring Diffusion Transformer Designs via Graftingcited by 12
- 2024LightTransfer: Your Long-Context LLM is Secretly a Hybrid Model with Effortless Adaptationcited by 11
- 2025Multimodal Mamba: Decoder-only Multimodal State Space Model via Quadratic to Linear Distillationcited by 11
- 2025LoLA: Low-Rank Linear Attention With Sparse Cachingcited by 10
- 2025Advancing Intelligent Sequence Modeling: Evolution, Trade-offs, and Applications of State-Space Architectures from S4 to Mambacited by 9
- 2024Autocorrelation Matters: Understanding the Role of Initialization Schemes for State Space Modelscited by 8
- 2025RAD: Redundancy-Aware Distillation for Hybrid Models via Self-Speculative Decodingcited by 8
- 2025Bolmo: Byteifying the Next Generation of Language Modelscited by 8
- 2025TransMamba: Fast Universal Architecture Adaption from Transformers to Mambacited by 6
- 2025On Pruning State-Space LLMscited by 6
- 2025MaTVLM: Hybrid Mamba-Transformer for Efficient Vision-Language Modelingcited by 6
- 2025ViT-Linearizer: Distilling Quadratic Knowledge into Linear-Time Vision Modelscited by 5
- 2026Retrieval-Aware Distillation for Transformer-SSM Hybridscited by 5
- 2025X-EcoMLA: Upcycling Pre-Trained Attention into MLA for Efficient and Extreme KV Compressioncited by 4
- 2025Data Efficient Any Transformer-to-Mamba Distillation via Attention Bridgecited by 4
- 2026Raven: High-Recall Sequence Modeling with Sparse Memory Routingcited by 4
- 2024OSMamba: Omnidirectional Spectral Mamba with Dual-Domain Prior Generator for Exposure Correctioncited by 3
- 2025LaTIM: Measuring Latent Token-to-Token Interactions in Mamba Modelscited by 3
- 2025On-the-Fly Adaptive Distillation of Transformer to Dual-State Linear Attentioncited by 3
- 2026Effective Distillation to Hybrid xLSTM Architecturescited by 3
- 2026Attention to Mamba: A Recipe for Cross-Architecture Distillationcited by 3
- 2025Technologies on Effectiveness and Efficiency: A Survey of State Spaces Modelscited by 2
- 2025Degrees of Freedom for Linear Attention: Distilling Softmax Attention with Optimal Feature Efficiencycited by 2
- 2026Linearizing Vision Transformer with Test-Time Trainingcited by 2
- 2026Morphing into Hybrid Attention Modelscited by 2
- 2026Solar Open 2 Technical Reportcited by 2
- 2026Sliding-window beats linear attentioncited by 2
- 2024Joint Fine-tuning and Conversion of Pretrained Speech and Language Models towards Linear Complexitycited by 1
- 2025What Matters in Linearizing Language Models? A Comparative Study of Architecture, Scale, and Task Adaptationcited by 1
- 2025FlashEVA: Accelerating LLM inference via Efficient Attentioncited by 1
- 2025Sample-Efficient Language Modeling with Linear Attention and Lightweight Enhancementscited by 1
- 2026MamTra: A Hybrid Mamba-Transformer Backbone for Speech Synthesiscited by 1
50 most cited of 66 All 66 (JSON)
- 2026Bridging KV-Cache Quantization and Linear Attention: From Theory to Pretrained Weight Migration8 Oct 2026
- 2026Switching Linear Attention30 Sep 2026
- 2026On-Policy Attention Linearization25 Sep 2026
- 2026GTR: Gated Token Recurrence for Efficient Dense Prediction22 Sep 2026
- 2026Sliding-window beats linear attention28 Aug 2026
- 2026Raven: High-Recall Sequence Modeling with Sparse Memory Routing28 Jul 2026
- 2026Solar Open 2 Technical Report22 Jul 2026
- 2026Morphing into Hybrid Attention Models29 Jun 2026
- 2026Compressing History into Memory: Distilling Transformers into Recurrent Transformers19 Jun 2026
- 2026PSCT-Net: Geometry-Aware Pediatric Skull CT Reconstruction via Differentiable Back-Projection and Attention-Guided Refinement18 Jun 2026
- 2026On Subquadratic Architectures: From Applications to Principles10 Jun 2026
- 2026Do Language Models Need Sleep? Offline Recurrence for Improved Online Inference25 May 2026
38 more
- 2026HEED: Density-Weighted Residual Alignment for Hybrid Vision-Language Model Distillation16 May 2026
- 2026Linearizing Vision Transformer with Test-Time Training4 May 2026
- 2026Long-Context Aware Upcycling: A New Frontier for Hybrid LLM Scaling27 Apr 2026
- 2026Attention to Mamba: A Recipe for Cross-Architecture Distillation1 Apr 2026
- 2026When Perplexity Lies: Generation-Focused Distillation of Hybrid Sequence Models27 Mar 2026
- 2026Effective Distillation to Hybrid xLSTM Architectures16 Mar 2026
- 2026MamTra: A Hybrid Mamba-Transformer Backbone for Speech Synthesis12 Mar 2026
- 2026Retrieval-Aware Distillation for Transformer-SSM Hybrids11 Feb 2026
- 2026Hybrid Linear Attention Done Right: Efficient Distillation and Effective Architectures for Extremely Long Contexts29 Jan 2026
- 2025End-to-End Test-Time Training for Long Context29 Dec 2025
- 2025Bolmo: Byteifying the Next Generation of Language Models17 Dec 2025
- 2025Resting Neurons, Active Insights: Robustifying Activation Sparsity in LLMs via Spontaneity14 Dec 2025
- 2025Network of Theseus (like the ship)3 Dec 2025
- 2025Sample-Efficient Language Modeling with Linear Attention and Lightweight Enhancements4 Nov 2025
- 2025FlashEVA: Accelerating LLM inference via Efficient Attention1 Nov 2025
- 2025Data Efficient Any Transformer-to-Mamba Distillation via Attention Bridge22 Oct 2025
- 2025Hybrid Architectures for Language Models: Systematic Analysis and Design Insights6 Oct 2025
- 2025ChunkLLM: A Lightweight Pluggable Framework for Accelerating LLMs Inference28 Sep 2025
- 2025Jet-Nemotron: Efficient Language Model with Post Neural Architecture Search21 Aug 2025
- 2025Dynamic Chunking for End-to-End Hierarchical Sequence Modeling10 Jul 2025
- 2025Degrees of Freedom for Linear Attention: Distilling Softmax Attention with Optimal Feature Efficiency4 Jul 2025
- 2025Maximally-Informative Retrieval for State Space Model Generation13 Jun 2025
- 2025On-the-Fly Adaptive Distillation of Transformer to Dual-State Linear Attention11 Jun 2025
- 2025Exploring Diffusion Transformer Designs via Grafting5 Jun 2025
- 2025Comba: Improving Bilinear RNNs with Closed-loop Control3 Jun 2025
- 2025LoLA: Low-Rank Linear Attention With Sparse Caching29 May 2025
- 2025RAD: Redundancy-Aware Distillation for Hybrid Models via Self-Speculative Decoding28 May 2025
- 2025Zebra-Llama: Towards Extremely Efficient Hybrid Models22 May 2025
- 2025RADLADS: Rapid Attention Distillation to Linear Attention Decoders at Scale5 May 2025
- 2025R-Sparse: Rank-Aware Activation Sparsity for Efficient LLM Inference28 Apr 2025
- 2025Understanding the Skill Gap in Recurrent Language Models: The Role of the Gather-and-Aggregate Mechanism22 Apr 2025
- 2025What Matters in Linearizing Language Models? A Comparative Study of Architecture, Scale, and Task Adaptation19 Apr 2025
- 2025M1: Towards Scalable Test-Time Compute with Mamba Reasoning Models14 Apr 2025
- 2025ViT-Linearizer: Distilling Quadratic Knowledge into Linear-Time Vision Models30 Mar 2025
- 2025A Survey of Efficient Reasoning for Large Reasoning Models: Language, Multimodality, and Beyond27 Mar 2025
- 2025Distil-xLSTM: Learning Attention Mechanisms through Recurrent Structures24 Mar 2025
- 2025Advancing Intelligent Sequence Modeling: Evolution, Trade-offs, and Applications of State-Space Architectures from S4 to Mamba22 Mar 2025
- 2025MaTVLM: Hybrid Mamba-Transformer for Efficient Vision-Language Modeling17 Mar 2025
50 newest of 66 All 66 (JSON)
- 2024The Mamba in the Llama: Distilling and Accelerating Hybrid Modelscited by 120
- 2025Llamba: Scaling Distilled Recurrent Models for Efficient Language Processingcited by 35
- 2025Hybrid Architectures for Language Models: Systematic Analysis and Design Insightscited by 13
- 2025Advancing Intelligent Sequence Modeling: Evolution, Trade-offs, and Applications of State-Space Architectures from S4 to Mambacited by 9
- 2025TransMamba: Fast Universal Architecture Adaption from Transformers to Mambacited by 6
- 2025Data Efficient Any Transformer-to-Mamba Distillation via Attention Bridgecited by 4
- 2025LaTIM: Measuring Latent Token-to-Token Interactions in Mamba Modelscited by 3
- 2026Attention to Mamba: A Recipe for Cross-Architecture Distillationcited by 3
- 2024Joint Fine-tuning and Conversion of Pretrained Speech and Language Models towards Linear Complexitycited by 1
- 2026MamTra: A Hybrid Mamba-Transformer Backbone for Speech Synthesiscited by 1
- 2026Attention to Mamba: A Recipe for Cross-Architecture Distillation1 Apr 2026
- 2026MamTra: A Hybrid Mamba-Transformer Backbone for Speech Synthesis12 Mar 2026
- 2025Data Efficient Any Transformer-to-Mamba Distillation via Attention Bridge22 Oct 2025
- 2025Hybrid Architectures for Language Models: Systematic Analysis and Design Insights6 Oct 2025
- 2025Advancing Intelligent Sequence Modeling: Evolution, Trade-offs, and Applications of State-Space Architectures from S4 to Mamba22 Mar 2025
- 2025LaTIM: Measuring Latent Token-to-Token Interactions in Mamba Models21 Feb 2025
- 2025TransMamba: Fast Universal Architecture Adaption from Transformers to Mamba21 Feb 2025
- 2025Llamba: Scaling Distilled Recurrent Models for Efficient Language Processing20 Feb 2025
- 2024Joint Fine-tuning and Conversion of Pretrained Speech and Language Models towards Linear Complexity9 Oct 2024
- 2024The Mamba in the Llama: Distilling and Accelerating Hybrid Models27 Aug 2024
- 2025R-Sparse: Rank-Aware Activation Sparsity for Efficient LLM Inferencecited by 18
- 2025Zebra-Llama: Towards Extremely Efficient Hybrid Modelscited by 18
- 2025RAD: Redundancy-Aware Distillation for Hybrid Models via Self-Speculative Decodingcited by 8
- 2025X-EcoMLA: Upcycling Pre-Trained Attention into MLA for Efficient and Extreme KV Compressioncited by 4
- 2026Sliding-window beats linear attentioncited by 2
- 2026Sliding-window beats linear attention28 Aug 2026
- 2025RAD: Redundancy-Aware Distillation for Hybrid Models via Self-Speculative Decoding28 May 2025
- 2025Zebra-Llama: Towards Extremely Efficient Hybrid Models22 May 2025
- 2025R-Sparse: Rank-Aware Activation Sparsity for Efficient LLM Inference28 Apr 2025
- 2025X-EcoMLA: Upcycling Pre-Trained Attention into MLA for Efficient and Extreme KV Compression14 Mar 2025
- 2025A Survey of Efficient Reasoning for Large Reasoning Models: Language, Multimodality, and Beyondcited by 131
- 2025Thinking Slow, Fast: Scaling Inference Compute with Distilled Reasonerscited by 22
- 2025M1: Towards Scalable Test-Time Compute with Mamba Reasoning Modelscited by 21
- 2024LightTransfer: Your Long-Context LLM is Secretly a Hybrid Model with Effortless Adaptationcited by 11
- 2026On-Policy Attention Linearizationcited by 0
- 2026On-Policy Attention Linearization25 Sep 2026
- 2025M1: Towards Scalable Test-Time Compute with Mamba Reasoning Models14 Apr 2025
- 2025A Survey of Efficient Reasoning for Large Reasoning Models: Language, Multimodality, and Beyond27 Mar 2025
- 2025Thinking Slow, Fast: Scaling Inference Compute with Distilled Reasoners27 Feb 2025
- 2024LightTransfer: Your Long-Context LLM is Secretly a Hybrid Model with Effortless Adaptation17 Oct 2024
- 2026Solar Open 2 Technical Reportcited by 2
- 2026Solar Open 2 Technical Report22 Jul 2026
- 2025MoBA: Mixture of Block Attention for Long-Context LLMscited by 188
- 2025MoBA: Mixture of Block Attention for Long-Context LLMs18 Feb 2025
- 2024Gated Slot Attention for Efficient Linear-Time Sequence Modelingcited by 73
- 2025Dynamic Chunking for End-to-End Hierarchical Sequence Modelingcited by 65
- 2025End-to-End Test-Time Training for Long Contextcited by 53
- 2025Jet-Nemotron: Efficient Language Model with Post Neural Architecture Searchcited by 39
- 2025Liger: Linearizing Large Language Models to Gated Recurrent Structurescited by 32
- 2025RADLADS: Rapid Attention Distillation to Linear Attention Decoders at Scalecited by 24
- 2026Hybrid Linear Attention Done Right: Efficient Distillation and Effective Architectures for Extremely Long Contextscited by 16
- 2025Understanding the Skill Gap in Recurrent Language Models: The Role of the Gather-and-Aggregate Mechanismcited by 15
- 2025Comba: Improving Bilinear RNNs with Closed-loop Controlcited by 12
- 2025LoLA: Low-Rank Linear Attention With Sparse Cachingcited by 10
- 2024Autocorrelation Matters: Understanding the Role of Initialization Schemes for State Space Modelscited by 8
- 2025Bolmo: Byteifying the Next Generation of Language Modelscited by 8
12 most cited of 39 All 39 (JSON)
- 2026Bridging KV-Cache Quantization and Linear Attention: From Theory to Pretrained Weight Migration8 Oct 2026
- 2026Switching Linear Attention30 Sep 2026
- 2026GTR: Gated Token Recurrence for Efficient Dense Prediction22 Sep 2026
- 2026Raven: High-Recall Sequence Modeling with Sparse Memory Routing28 Jul 2026
- 2026Morphing into Hybrid Attention Models29 Jun 2026
- 2026Compressing History into Memory: Distilling Transformers into Recurrent Transformers19 Jun 2026
- 2026PSCT-Net: Geometry-Aware Pediatric Skull CT Reconstruction via Differentiable Back-Projection and Attention-Guided Refinement18 Jun 2026
- 2026On Subquadratic Architectures: From Applications to Principles10 Jun 2026
- 2026Do Language Models Need Sleep? Offline Recurrence for Improved Online Inference25 May 2026
- 2026Linearizing Vision Transformer with Test-Time Training4 May 2026
- 2026Long-Context Aware Upcycling: A New Frontier for Hybrid LLM Scaling27 Apr 2026
- 2026When Perplexity Lies: Generation-Focused Distillation of Hybrid Sequence Models27 Mar 2026
12 newest of 39 All 39 (JSON)
Similar, not cited
Close in wording, no citation either way
- 2024An Empirical Study of Mamba-based Language Models
- 2024MoE-Mamba: Efficient Selective State Space Models with Mixture of Experts
- 2025TransMamba: A Sequence-Level Hybrid Transformer-Mamba Language Model
- 2025Pimba: A Processing-in-Memory Acceleration for Post-Transformer Large Language Model Serving
- 2025Mamba-Shedder: Post-Transformer Compression for Efficient Selective Structured State Space Models
- 2024MatMamba: A Matryoshka State Space Model
- 2024A Survey of Mamba
- 2026Global Divergence, Local Convergence: Representation Geometry in SSMs and Transformers