QASparse: Query-Adaptive Sparse Attention with Tailored Budgets and Tokens
Not on the map. Why?
Abstract (arXiv)
Long-sequence inference in large language models is constrained by the high cost of prefilling, where dense attention scales quadratically with context length. Exploiting similarity across attention heads offers a way to reduce redundant computation. Prior approaches in this direction have relied on localized query observations to determine head-level computation reuse or budget allocation. However, inter-head similarity does not imply uniform query requirements, leaving adaptation to varying budget needs and selection preferences across query regions a key challenge. We introduce QASparse, a Query-Adaptive Sparse attention mechanism with hardware-efficient execution. QASparse preserves the efficiency of shared cross-head importance estimation while adapting computational budgets and token selections to query requirements, and it executes these dynamic sparse decisions through dedicated kernels. Its query adaptivity stems from two complementary innovations: Local Budget Regression models local variations in computational demand along query positions to estimate budgets for different query regions and attention heads; Boundary Voting lets queries within each head vote over candidates near the selection cutoff using actual query/key scores, refining the retained set while preserving the initial selection size. To reduce the execution overhead of dynamic budgets, we further design length-specialized selection kernels that efficiently support query-adaptive sparse patterns across context lengths. Together, these designs efficiently combine shared estimation with local decisions while adapting both how much attention is computed and which interactions are retained. Experimental results demonstrate improved benchmark scores and faster prefill attention computation compared with existing sparse attention baselines.
Key facts. No citing papers in the map yet (data through 24 Nov 2026). Builds on 52 of its 59 references that are in the map. Submitted 22 Nov 2026, announced 24 Nov 2026.
Builds on
52 of 59 references.
References · 52
- 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,787
- 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,893
- 2020Longformer: The Long-Document Transformercited by 3,606
- 2023FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioningcited by 2,787
- 2023A Survey of Large Language Modelscited by 2,758
- 2023Efficient Streaming Language Models with Attention Sinkscited by 2,444
- 2020Big Bird: Transformers for Longer Sequencescited by 1,729
- 2024RULER: What's the Real Context Size of Your Long-Context Language Models?cited by 1,559
- 2024ChatGLM: A Family of Large Language Models from GLM-130B to GLM-4 All Toolscited by 1,191
- 2024SnapKV: LLM Knows What You are Looking for Before Generationcited by 1,003
- 2023H2O: Heavy-Hitter Oracle for Efficient Generative Inference of Large Language Modelscited by 892
- 2023YaRN: Efficient Context Window Extension of Large Language Modelscited by 672
38 more
- 2024Quest: Query-Aware Sparsity for Efficient Long-Context LLM Inferencecited by 581
- 2023LongLLMLingua: Accelerating and Enhancing LLMs in Long Context Scenarios via Prompt Compressioncited by 500
- 2024MInference 1.0: Accelerating Pre-filling for Long-Context LLMs via Dynamic Sparse Attentioncited by 431
- 2024∞Bench: Extending Long Context Evaluation Beyond 100K Tokenscited by 392
- 2024LongRoPE: Extending LLM Context Window Beyond 2 Million Tokenscited by 346
- 2025FlashInfer: Efficient and Customizable Attention Engine for LLM Inference Servingcited by 330
- 2024DuoAttention: Efficient Long-Context LLM Inference with Retrieval and Streaming Headscited by 328
- 2023Effective Long-Context Scaling of Foundation Modelscited by 324
- 2023LongLoRA: Efficient Fine-tuning of Long-Context Large Language Modelscited by 274
- 2023Landmark Attention: Random-Access Infinite Context Length for Transformerscited by 230
- 2024Leave No Context Behind: Efficient Infinite Context Transformers with Infini-attentioncited by 223
- 2024Data Engineering for Scaling Language Models to 128K Contextcited by 199
- 2025Qwen2.5-1M Technical Reportcited by 178
- 2025SpargeAttention: Accurate and Training-free Sparse Attention Accelerating Any Model Inferencecited by 156
- 2025FlexPrefill: A Context-Aware Sparse Attention Mechanism for Efficient Long-Sequence Inferencecited by 143
- 2023Focused Transformer: Contrastive Training for Context Scalingcited by 139
- 2025A Comprehensive Survey on Long Context Language Modelingcited by 130
- 2023Retrieval meets Long Context Large Language Modelscited by 122
- 2024Found in the Middle: How Language Models Use Long Contexts Better via Plug-and-Play Positional Encodingcited by 80
- 2024Challenges in Deploying Long-Context Transformers: A Theoretical Peak Performance Analysiscited by 49
- 2025InfLLM-V2: Dense-Sparse Switchable Attention for Seamless Short-to-Long Adaptationcited by 40
- 2025Tactic: Adaptive Sparse Attention with Clustering and Distribution Fitting for Long-Context LLMscited by 34
- 2025LongRoPE2: Near-Lossless LLM Context Window Scalingcited by 27
- 2024A Training-free Sub-quadratic Cost Transformer Model Serving Framework With Hierarchically Pruned Attentioncited by 15
- 2026FlashPrefill: Instantaneous Pattern Discovery and Thresholding for Ultra-Fast Long-Context Prefillingcited by 13
- 2025ProxyAttn: Guided Sparse Attention via Representative Headscited by 11
- 2025Delta Attention: Fast and Accurate Sparse Attention Inference by Delta Correctioncited by 9
- 2025Sparser Block-Sparse Attention via Token Permutationcited by 6
- 2026RepoShapley: Shapley-Enhanced Context Filtering for Repository-Level Code Completioncited by 6
- 2026QUOKA: Query-Oriented KV Selection For Efficient LLM Prefillcited by 6
- 2025Accelerating Prefilling for Long-Context LLMs via Sparse Pattern Sharingcited by 5
- 2025Scaling Context, Not Parameters: Training a Compact 7B Language Model for Efficient Long-Context Processingcited by 4
- 2026FlashPrefill V2: Block-Sparse Prefill Attention for Long-Context LLM Servingcited by 4
- 2025A Unified Sparse Attention via Multi-Granularity Compressioncited by 3
- 2026Token Sparse Attention: Efficient Long-Context Inference with Interleaved Token Selectioncited by 3
- 2026S2O: Early Stopping for Sparse Attention via Online Permutationcited by 3
- 2025Flashlight: PyTorch Compiler Extensions to Accelerate Attention Variantscited by 2
- 2026VSPrefill: Vertical-Slash Sparse Attention with Lightweight Indexing for Long-Context Prefillingcited by 2
50 most cited of 52 All 52 (JSON)
Built on by
Not cited yet.