mlsanityData to 14 Oct 2026

Mixture of Sparse Attention: Content-Based Learnable Sparse Attention via Expert-Choice Routing

arXiv 2505.00315 ↗First posted 1 May 2025cs.LG cs.CLcited by 14

On the map: Mixture-of-experts → Expert routing strategies

Abstract (arXiv)

Recent advances in large language models highlighted the excessive quadratic cost of self-attention. Despite the significant research efforts, subquadratic attention methods still suffer from inferior performance in practice. We hypothesize that dynamic, learned content-based sparsity can lead to more efficient attention mechanisms. We present Mixture of Sparse Attention (MoSA), a novel approach inspired by Mixture of Experts (MoE) with expert choice routing. MoSA dynamically selects tokens for each attention head, allowing arbitrary sparse attention patterns. By selecting k tokens from a sequence of length T, MoSA reduces the computational complexity of each attention head from O(T2) to O(k2 + T). This enables using more heads within the same computational budget, allowing higher specialization. We show that among the tested sparse attention variants, MoSA is the only one that can outperform the dense baseline, sometimes with up to 27% better perplexity for an identical compute budget. MoSA can also reduce the resource usage compared to dense self-attention. Despite using torch implementation without an optimized kernel, perplexity-matched MoSA models are simultaneously faster in wall-clock time, require less memory for training, and drastically reduce the size of the KV-cache compared to the dense transformer baselines.

Key facts. Cited by 14 papers in the map (data through 14 Oct 2026). Placed in Expert routing strategies, one of 12 directions in Mixture-of-experts. Builds on 65 of its 70 references that are in the map. First posted on arXiv 1 May 2025.

Builds on

65 of 70 references.

Closest ancestors · 5

Same direction, newest first

  1. 2024MoH: Multi-Head Attention as Mixture-of-Head Attention15 Oct
  2. 2023SwitchHead: Accelerating Transformers with Mixture-of-Experts Attention13 Dec
  3. 2022Mixture of Attention Heads: Selecting Attention Heads Per Token11 Oct
  4. 2022Mixture-of-Experts with Expert Choice Routing18 Feb
  5. 2021Switch Transformers: Scaling to Trillion Parameter Models with Simple and Efficient Sparsity11 Jan

Other references · 60

  1. 2017Attention Is All You Needcited by 60,361
  2. 2020Language Models are Few-Shot Learnerscited by 32,419
  3. 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,305
  4. 2024The Llama 3 Herd of Modelscited by 14,715
  5. 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,599
  6. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,132
  7. 2025DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learningcited by 6,330
  8. 2018Think you have Solved Question Answering? Try ARC, the AI2 Reasoning Challengecited by 4,886
  9. 2023Mamba: Linear-Time Sequence Modeling with Selective State Spacescited by 4,718
  10. 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,703
  11. 2019HellaSwag: Can a Machine Really Finish Your Sentence?cited by 4,100
  12. 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,673
38 more
  1. 2017Outrageously Large Neural Networks: The Sparsely-Gated Mixture-of-Experts Layercited by 3,509
  2. 2020Longformer: The Long-Document Transformercited by 3,413
  3. 2024Gemini 1.5: Unlocking multimodal understanding across millions of tokens of contextcited by 3,224
  4. 2015Neural Machine Translation of Rare Words with Subword Unitscited by 2,918
  5. 2019PIQA: Reasoning about Physical Commonsense in Natural Languagecited by 2,883
  6. 2021Efficiently Modeling Long Sequences with Structured State Spacescited by 2,465
  7. 2023Efficient Streaming Language Models with Attention Sinkscited by 2,186
  8. 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 2,022
  9. 2018SentencePiece: A simple and language independent subword tokenizer and detokenizer for Neural Text Processingcited by 1,989
  10. 2024Mixtral of Expertscited by 1,823
  11. 2020Big Bird: Transformers for Longer Sequencescited by 1,684
  12. 2020Reformer: The Efficient Transformercited by 1,668
  13. 2020GShard: Scaling Giant Models with Conditional Computation and Automatic Shardingcited by 1,631
  14. 2020Rethinking Attention with Performerscited by 1,601
  15. 2019Generating Long Sequences with Sparse Transformerscited by 1,546
  16. 2023GQA: Training Generalized Multi-Query Transformer Models from Multi-Head Checkpointscited by 1,346
  17. 2016The LAMBADA dataset: Word prediction requiring a broad discourse contextcited by 992
  18. 2020On Layer Normalization in the Transformer Architecturecited by 922
  19. 2024SnapKV: LLM Knows What You are Looking for Before Generationcited by 880
  20. 2019Fast Transformer Decoding: One Write-Head is All You Needcited by 717
  21. 2020HiPPO: Recurrent Memory with Optimal Polynomial Projectionscited by 605
  22. 2019BLiMP: The Benchmark of Linguistic Minimal Pairs for Englishcited by 564
  23. 2024Gated Delta Networks: Improving Mamba2 with Delta Rulecited by 532
  24. 2021Linear Transformers Are Secretly Fast Weight Programmerscited by 502
  25. 2020Efficient Content-Based Sparse Attention with Routing Transformerscited by 471
  26. 2023Scissorhands: Exploiting the Persistence of Importance Hypothesis for LLM KV Cache Compression at Test Timecited by 439
  27. 2024PyramidKV: Dynamic KV Cache Compression based on Pyramidal Information Funnelingcited by 432
  28. 2025Native Sparse Attention: Hardware-Aligned and Natively Trainable Sparse Attentioncited by 407
  29. 2024Jamba: A Hybrid Transformer-Mamba Language Modelcited by 401
  30. 2022ST-MoE: Designing Stable and Transferable Sparse Expert Modelscited by 399
  31. 2021BASE Layers: Simplifying Training of Large, Sparse Modelscited by 320
  32. 2024Mixture-of-Depths: Dynamically allocating compute in transformer-based language modelscited by 258
  33. 2021Hash Layers For Large Sparse Modelscited by 237
  34. 2024Repeat After Me: Transformers are Better than State Space Models at Copyingcited by 216
  35. 2020Synthesizer: Rethinking Self-Attention in Transformer Modelscited by 205
  36. 2023Zoology: Measuring and Improving Recall in Efficient Language Modelscited by 204
  37. 2020Fast Transformers with Clustered Attentioncited by 123
  38. 2024Can Mamba Learn How to Learn? A Comparative Study on In-Context Learning Taskscited by 105

50 most cited of 60 All 60 (JSON)

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 8; 2026: 6.

14 papers.

Sort:

By area:

Similar, not cited

Close in wording, no citation either way

  1. 2024SeerAttention: Learning Intrinsic Sparse Attention in Your LLMs
  2. 2026AB-Sparse: Sparse Attention with Adaptive Block Size for Accurate and Efficient Long-Context Inference
  3. 2023SEA: Sparse Linear Attention with Estimated Attention Mask
  4. 2026Scaling Attention via Feature Sparsity
  5. 2026SpargeAttention2: Trainable Sparse Attention via Hybrid Top-k+Top-p Masking and Distillation Fine-Tuning
  6. 2025Optimizing Native Sparse Attention with Latent Attention and Local Global Alternating Strategies
  7. 2026Full Attention Strikes Back: Transferring Full Attention into Sparse within Hundred Training Steps
  8. 2026COBS: Cumulant Order Block Sparse Attention