mlsanityData to 7 Oct 2026

Mixture of Attention Spans: Optimizing LLM Inference Efficiency with Heterogeneous Sliding-Window Lengths

arXiv 2406.14909 ↗First posted 21 Jun 2024cs.LG cs.AI cs.CLcited by 44

Not on the map. Why?

Abstract (arXiv)

Sliding-window attention offers a hardware-efficient solution to the memory and throughput challenges of Large Language Models (LLMs) in long-context scenarios. Existing methods typically employ a single window length across all attention heads and input sizes. However, this uniform approach fails to capture the heterogeneous attention patterns inherent in LLMs, ignoring their distinct accuracy-latency trade-offs. To address this challenge, we propose *Mixture of Attention Spans* (MoA), which automatically tailors distinct sliding-window length configurations to different heads and layers. MoA constructs and navigates a search space of various window lengths and their scaling rules relative to input sizes. It profiles the model, evaluates potential configurations, and pinpoints the optimal length configurations for each head. MoA adapts to varying input sizes, revealing that some attention heads expand their focus to accommodate longer inputs, while other heads consistently concentrate on fixed-length local contexts. Experiments show that MoA increases the effective context length by 3.9x with the same average sliding-window length, boosting retrieval accuracy by 1.5-7.1x over the uniform-window baseline across Vicuna-{7B, 13B} and Llama3-{8B, 70B} models. Moreover, MoA narrows the performance gap with full attention, reducing the maximum relative performance drop from 9%-36% to within 5% across three long-context understanding benchmarks. MoA achieves a 1.2-1.4x GPU memory reduction, boosting decode throughput by 6.6-8.2x and 1.7-1.9x over FlashAttention2 and vLLM, with minimal performance impact. Our code is available at: https://github.com/thu-nics/MoA

Key facts. Cited by 44 papers in the map (data through 7 Oct 2026). Builds on 48 of its 68 references that are in the map. First posted on arXiv 21 Jun 2024.

Builds on

48 of 68 references.

References · 48

  1. 2017Attention Is All You Needcited by 59,932
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  3. 2020Language Models are Few-Shot Learnerscited by 32,199
  4. 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,160
  5. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
  6. 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 5,767
  7. 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,611
  8. 2022OPT: Open Pre-trained Transformer Language Modelscited by 3,464
  9. 2020Longformer: The Long-Document Transformercited by 3,362
  10. 2023FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioningcited by 2,551
  11. 2023Efficient Streaming Language Models with Attention Sinkscited by 2,115
  12. 2020Big Bird: Transformers for Longer Sequencescited by 1,673
36 more
  1. 2020Reformer: The Efficient Transformercited by 1,658
  2. 2019Generating Long Sequences with Sparse Transformerscited by 1,523
  3. 2022SmoothQuant: Accurate and Efficient Post-Training Quantization for Large Language Modelscited by 1,338
  4. 2024Length-Controlled AlpacaEval: A Simple Way to Debias Automatic Evaluatorscited by 865
  5. 2024SnapKV: LLM Knows What You are Looking for Before Generationcited by 848
  6. 2023H2O: Heavy-Hitter Oracle for Efficient Generative Inference of Large Language Modelscited by 805
  7. 2020Efficient Transformers: A Surveycited by 784
  8. 2023Extending Context Window of Large Language Models via Positional Interpolationcited by 721
  9. 2023FlexGen: High-Throughput Generative Inference of Large Language Models with a Single GPUcited by 567
  10. 2024Quest: Query-Aware Sparsity for Efficient Long-Context LLM Inferencecited by 487
  11. 2021A Dataset of Information-Seeking Questions and Answers Anchored in Research Paperscited by 475
  12. 2020Efficient Content-Based Sparse Attention with Routing Transformerscited by 469
  13. 2023Model Tells You What to Discard: Adaptive KV Cache Compression for LLMscited by 466
  14. 2019Multi-News: a Large-Scale Multi-Document Summarization Dataset and Abstractive Hierarchical Modelcited by 431
  15. 2023Scissorhands: Exploiting the Persistence of Importance Hypothesis for LLM KV Cache Compression at Test Timecited by 428
  16. 2024PyramidKV: Dynamic KV Cache Compression based on Pyramidal Information Funnelingcited by 420
  17. 2022DeepSpeed Inference: Enabling Efficient Inference of Transformer Models at Unprecedented Scalecited by 403
  18. 2024ShortGPT: Layers in Large Language Models are More Redundant Than You Expectcited by 369
  19. 2023SqueezeLLM: Dense-and-Sparse Quantizationcited by 285
  20. 2020SpAtten: Efficient Sparse Attention Architecture with Cascade Token and Head Pruningcited by 228
  21. 2024Retrieval Head Mechanistically Explains Long-Context Factualitycited by 219
  22. 2024A Survey on Efficient Inference for Large Language Modelscited by 197
  23. 2023Efficient Large Language Models: A Surveycited by 183
  24. 2023ASVD: Activation-aware Singular Value Decomposition for Compressing Large Language Modelscited by 156
  25. 2023Focused Transformer: Contrastive Training for Context Scalingcited by 133
  26. 2023The geometry of hidden representations of large transformer modelscited by 108
  27. 2018A Flexible Framework for Multi-Objective Bayesian Optimization using Random Scalarizationscited by 98
  28. 2020A3: Accelerating Attention Mechanisms in Neural Networks with Approximationcited by 97
  29. 2024LV-Eval: A Balanced Long-Context Benchmark with 5 Length Levels Up to 256Kcited by 80
  30. 2024Evaluating Quantized Large Language Modelscited by 75
  31. 2023Dynamic Context Pruning for Efficient and Interpretable Autoregressive Transformerscited by 67
  32. 2021SparseBERT: Rethinking the Importance Analysis in Self-attentioncited by 46
  33. 2024CATS: Contextually-Aware Thresholding for Sparsity in Large Language Modelscited by 41
  34. 2023Beyond Size: How Gradients Shape Pruning Decisions in Large Language Modelscited by 30
  35. 2023Faster Causal Attention Over Large Sequences Through Sparse Flash Attentioncited by 24
  36. 2022Diffuser: Efficient Transformers with Multi-hop Attention Diffusion for Long Sequencescited by 12

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 8; 2025: 27; 2026: 9.

44 papers.

Sort:

By area:

  1. 2025Kimi Linear: An Expressive, Efficient Attention Architecturecited by 169
  2. 2024SeerAttention: Learning Intrinsic Sparse Attention in Your LLMscited by 121
  3. 2025FlexPrefill: A Context-Aware Sparse Attention Mechanism for Efficient Long-Sequence Inferencecited by 121
  4. 2025SpargeAttention: Accurate and Training-free Sparse Attention Accelerating Any Model Inferencecited by 113
  5. 2024Attention Heads of Large Language Models: A Surveycited by 65
  6. 2024Accelerating Auto-regressive Text-to-Image Generation with Training-free Speculative Jacobi Decodingcited by 65
  7. 2025Training-free and Adaptive Sparse Attention for Efficient Long Video Generationcited by 65
  8. 2025SageAttention3: Microscaling FP4 Attention for Inference and An Exploration of 8-Bit Trainingcited by 63
  9. 2024Why Does the Effective Context Length of LLMs Fall Short?cited by 60
  10. 2024SCBench: A KV Cache-Centric Analysis of Long-Context Methodscited by 59
  11. 2025SLA: Beyond Sparsity in Diffusion Transformers via Fine-Tunable Sparse-Linear Attentioncited by 55
  12. 2024FrameFusion: Combining Similarity and Importance for Video Token Reduction on Large Vision Language Modelscited by 52
32 more
  1. 2024MBQ: Modality-Balanced Quantization for Large Vision-Language Modelscited by 45
  2. 2025Cognitive Memory in Large Language Modelscited by 28
  3. 2025R2R: Efficiently Navigating Divergent Reasoning Paths with Small-Large Model Token Routingcited by 28
  4. 2025SeerAttention-R: Sparse Attention Adaptation for Long Reasoningcited by 28
  5. 2025PM-KVQ: Progressive Mixed-precision KV Cache Quantization for Long-CoT LLMscited by 19
  6. 2025PAROAttention: Pattern-Aware ReOrdering for Efficient Sparse and Quantized Attention in Visual Generation Modelscited by 17
  7. 2025Think-at-Hard: Dynamic Looped Transformers for Improved Reasoningcited by 12
  8. 2025VTCBench: Can Vision-Language Models Understand Long Context with Vision-Text Compression?cited by 11
  9. 2025Distributed LLMs and Multimodal Large Language Models: A Survey on Advances, Challenges, and Future Directionscited by 10
  10. 2025Cache Me If You Can: How Many KVs Do You Need for Effective Long-Context LMs?cited by 10
  11. 2025ProxyAttn: Guided Sparse Attention via Representative Headscited by 9
  12. 2026From LLMs to LRMs: Rethinking Pruning for Reasoning-Centric Modelscited by 9
  13. 2025GRAPHMOE: Amplifying Cognitive Depth of Mixture-of-Experts Network via Introducing Self-Rethinking Mechanismcited by 7
  14. 2025Long Context Scaling: Divide and Conquer via Multi-Agent Question-driven Collaborationcited by 7
  15. 2025Adaptive Computation Pruning for the Forgetting Transformercited by 6
  16. 2025XSpecMesh: Quality-Preserving Auto-Regressive Mesh Generation Acceleration via Multi-Head Speculative Decodingcited by 5
  17. 2025Compact Attention: Exploiting Structured Spatio-Temporal Sparsity for Fast Video Generationcited by 5
  18. 2024Fibottention: Inceptive Visual Representation Learning with Diverse Attention Across Headscited by 3
  19. 2025SALE : Low-bit Estimation for Efficient Sparse Attention in Long-context LLM Prefillingcited by 3
  20. 2025Towards Generalized Routing: Model and Agent Orchestration for Adaptive and Efficient Inferencecited by 3
  21. 2025FlashOmni: A Unified Sparse Attention Engine for Diffusion Transformerscited by 2
  22. 2026Prefix Sliding for efficient test-time scalingcited by 2
  23. 2025Neural Attention Searchcited by 1
  24. 2025CCF: A Context Compression Framework for Efficient Long-Sequence Language Modelingcited by 1
  25. 2025Learning When Not to Attend Globallycited by 1
  26. 2026Veda: Scalable Video Diffusion via Distilled Sparse Attentioncited by 1
  27. 2026LoGo: Token-Level Dynamic Local-Global Attentioncited by 1
  28. 2026Long-Context Reasoning Through Proxy-Based Chain-of-Thought Tuningcited by 0
  29. 2026Characterize Then Distill: Mechanistic Reasoning in Large Output Spacescited by 0
  30. 2026Blast Radiuscited by 0
  31. 2026CRISP: Cliff-awaRe Input-adaptive Sparse Prefilling with Structural-Mass-Motivated Routingcited by 0
  32. 2026WakeKV: Reactive, Reversible KV Residency for Heads That Change Their Mindscited by 0