Mixture of Sparse Attention: Content-Based Learnable Sparse Attention via Expert-Choice Routing
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
- 2024MoH: Multi-Head Attention as Mixture-of-Head Attention15 Oct
- 2023SwitchHead: Accelerating Transformers with Mixture-of-Experts Attention13 Dec
- 2022Mixture of Attention Heads: Selecting Attention Heads Per Token11 Oct
- 2022Mixture-of-Experts with Expert Choice Routing18 Feb
- 2021Switch Transformers: Scaling to Trillion Parameter Models with Simple and Efficient Sparsity11 Jan
Other references · 60
- 2017Attention Is All You Needcited by 60,361
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,305
- 2024The Llama 3 Herd of Modelscited by 14,715
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,599
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,132
- 2025DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learningcited by 6,330
- 2018Think you have Solved Question Answering? Try ARC, the AI2 Reasoning Challengecited by 4,886
- 2023Mamba: Linear-Time Sequence Modeling with Selective State Spacescited by 4,718
- 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,703
- 2019HellaSwag: Can a Machine Really Finish Your Sentence?cited by 4,100
- 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,673
38 more
- 2017Outrageously Large Neural Networks: The Sparsely-Gated Mixture-of-Experts Layercited by 3,509
- 2020Longformer: The Long-Document Transformercited by 3,413
- 2024Gemini 1.5: Unlocking multimodal understanding across millions of tokens of contextcited by 3,224
- 2015Neural Machine Translation of Rare Words with Subword Unitscited by 2,918
- 2019PIQA: Reasoning about Physical Commonsense in Natural Languagecited by 2,883
- 2021Efficiently Modeling Long Sequences with Structured State Spacescited by 2,465
- 2023Efficient Streaming Language Models with Attention Sinkscited by 2,186
- 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 2,022
- 2018SentencePiece: A simple and language independent subword tokenizer and detokenizer for Neural Text Processingcited by 1,989
- 2024Mixtral of Expertscited by 1,823
- 2020Big Bird: Transformers for Longer Sequencescited by 1,684
- 2020Reformer: The Efficient Transformercited by 1,668
- 2020GShard: Scaling Giant Models with Conditional Computation and Automatic Shardingcited by 1,631
- 2020Rethinking Attention with Performerscited by 1,601
- 2019Generating Long Sequences with Sparse Transformerscited by 1,546
- 2023GQA: Training Generalized Multi-Query Transformer Models from Multi-Head Checkpointscited by 1,346
- 2016The LAMBADA dataset: Word prediction requiring a broad discourse contextcited by 992
- 2020On Layer Normalization in the Transformer Architecturecited by 922
- 2024SnapKV: LLM Knows What You are Looking for Before Generationcited by 880
- 2019Fast Transformer Decoding: One Write-Head is All You Needcited by 717
- 2020HiPPO: Recurrent Memory with Optimal Polynomial Projectionscited by 605
- 2019BLiMP: The Benchmark of Linguistic Minimal Pairs for Englishcited by 564
- 2024Gated Delta Networks: Improving Mamba2 with Delta Rulecited by 532
- 2021Linear Transformers Are Secretly Fast Weight Programmerscited by 502
- 2020Efficient Content-Based Sparse Attention with Routing Transformerscited by 471
- 2023Scissorhands: Exploiting the Persistence of Importance Hypothesis for LLM KV Cache Compression at Test Timecited by 439
- 2024PyramidKV: Dynamic KV Cache Compression based on Pyramidal Information Funnelingcited by 432
- 2025Native Sparse Attention: Hardware-Aligned and Natively Trainable Sparse Attentioncited by 407
- 2024Jamba: A Hybrid Transformer-Mamba Language Modelcited by 401
- 2022ST-MoE: Designing Stable and Transferable Sparse Expert Modelscited by 399
- 2021BASE Layers: Simplifying Training of Large, Sparse Modelscited by 320
- 2024Mixture-of-Depths: Dynamically allocating compute in transformer-based language modelscited by 258
- 2021Hash Layers For Large Sparse Modelscited by 237
- 2024Repeat After Me: Transformers are Better than State Space Models at Copyingcited by 216
- 2020Synthesizer: Rethinking Self-Attention in Transformer Modelscited by 205
- 2023Zoology: Measuring and Improving Recall in Efficient Language Modelscited by 204
- 2020Fast Transformers with Clustered Attentioncited by 123
- 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
Citing papers per year: 2025: 8; 2026: 6.
14 papers.
Sort:
By area:
- 2025Gated Attention for Large Language Models: Non-linearity, Sparsity, and Attention-Sink-Freecited by 283
- 2025Kimi Linear: An Expressive, Efficient Attention Architecturecited by 196
- 2025Direct3D-S2: Gigascale 3D Generation Made Easy with Spatial Sparse Attentioncited by 110
- 2025Route Experts by Sequence, not by Tokencited by 6
- 2025Pre-Attention Expert Prediction and Prefetching for Mixture-of-Experts Large Language Modelscited by 4
- 2025Alleviating Forgetfulness of Linear Attention by Hybrid Sparse Attention and Contextualized Learnable Token Evictioncited by 3
- 2026Neural Attention Search Linear: Towards Adaptive Token-Level Hybrid Attention Modelscited by 3
- 2026Routing Absorption in Sparse Attention: Why Random Gates Are Hard to Beatcited by 2
- 2026Compressed Sensing for Capability Localization in Large Language Modelscited by 2
- 2025ReSSFormer: A Recursive Sparse Structured Transformer for Scalable and Long-Context Reasoningcited by 0
- 2025HIMOSA: Efficient Remote Sensing Image Super-Resolution with Hierarchical Mixture of Sparse Attentioncited by 0
- 2026Dynamics of Stochastic Momentum with Sparse Updates in High Dimensionscited by 0
- 2026Scaling Parameter and Context in Attention: Native Sparse Attention from Mixture-of-Head30 Sep 2026
- 2026X-MoD: Practical Scaling Laws for Sparse-Depth Routing Beyond Mixture-of-Depths28 Sep 2026
- 2026Dynamics of Stochastic Momentum with Sparse Updates in High Dimensions27 May 2026
- 2026Compressed Sensing for Capability Localization in Large Language Models11 Feb 2026
- 2026Routing Absorption in Sparse Attention: Why Random Gates Are Hard to Beat11 Feb 2026
- 2026Neural Attention Search Linear: Towards Adaptive Token-Level Hybrid Attention Models3 Feb 2026
- 2025HIMOSA: Efficient Remote Sensing Image Super-Resolution with Hierarchical Mixture of Sparse Attention29 Nov 2025
- 2025Pre-Attention Expert Prediction and Prefetching for Mixture-of-Experts Large Language Models10 Nov 2025
- 2025Route Experts by Sequence, not by Token9 Nov 2025
- 2025Kimi Linear: An Expressive, Efficient Attention Architecture30 Oct 2025
- 2025Alleviating Forgetfulness of Linear Attention by Hybrid Sparse Attention and Contextualized Learnable Token Eviction23 Oct 2025
- 2025ReSSFormer: A Recursive Sparse Structured Transformer for Scalable and Long-Context Reasoning2 Oct 2025
- 2025Gated Attention for Large Language Models: Non-linearity, Sparsity, and Attention-Sink-Freecited by 283
- 2025Route Experts by Sequence, not by Tokencited by 6
- 2025Pre-Attention Expert Prediction and Prefetching for Mixture-of-Experts Large Language Modelscited by 4
- 2026X-MoD: Practical Scaling Laws for Sparse-Depth Routing Beyond Mixture-of-Depthscited by 0
- 2026X-MoD: Practical Scaling Laws for Sparse-Depth Routing Beyond Mixture-of-Depths28 Sep 2026
- 2025Pre-Attention Expert Prediction and Prefetching for Mixture-of-Experts Large Language Models10 Nov 2025
- 2025Route Experts by Sequence, not by Token9 Nov 2025
- 2025Gated Attention for Large Language Models: Non-linearity, Sparsity, and Attention-Sink-Free10 May 2025
- 2025Kimi Linear: An Expressive, Efficient Attention Architecturecited by 196
- 2025Kimi Linear: An Expressive, Efficient Attention Architecture30 Oct 2025
- 2025Direct3D-S2: Gigascale 3D Generation Made Easy with Spatial Sparse Attentioncited by 110
- 2026Neural Attention Search Linear: Towards Adaptive Token-Level Hybrid Attention Modelscited by 3
- 2026Routing Absorption in Sparse Attention: Why Random Gates Are Hard to Beatcited by 2
- 2025HIMOSA: Efficient Remote Sensing Image Super-Resolution with Hierarchical Mixture of Sparse Attentioncited by 0
- 2026Dynamics of Stochastic Momentum with Sparse Updates in High Dimensionscited by 0
- 2026Scaling Parameter and Context in Attention: Native Sparse Attention from Mixture-of-Headcited by 0
- 2026Scaling Parameter and Context in Attention: Native Sparse Attention from Mixture-of-Head30 Sep 2026
- 2026Dynamics of Stochastic Momentum with Sparse Updates in High Dimensions27 May 2026
- 2026Routing Absorption in Sparse Attention: Why Random Gates Are Hard to Beat11 Feb 2026
- 2026Neural Attention Search Linear: Towards Adaptive Token-Level Hybrid Attention Models3 Feb 2026
- 2025HIMOSA: Efficient Remote Sensing Image Super-Resolution with Hierarchical Mixture of Sparse Attention29 Nov 2025
- 2025Direct3D-S2: Gigascale 3D Generation Made Easy with Spatial Sparse Attention23 May 2025
Similar, not cited
Close in wording, no citation either way
- 2024SeerAttention: Learning Intrinsic Sparse Attention in Your LLMs
- 2026AB-Sparse: Sparse Attention with Adaptive Block Size for Accurate and Efficient Long-Context Inference
- 2023SEA: Sparse Linear Attention with Estimated Attention Mask
- 2026Scaling Attention via Feature Sparsity
- 2026SpargeAttention2: Trainable Sparse Attention via Hybrid Top-k+Top-p Masking and Distillation Fine-Tuning
- 2025Optimizing Native Sparse Attention with Latent Attention and Local Global Alternating Strategies
- 2026Full Attention Strikes Back: Transferring Full Attention into Sparse within Hundred Training Steps
- 2026COBS: Cumulant Order Block Sparse Attention