Inference Time Context Sparsity: Illusion or Opportunity?
Not on the map. Why?
Abstract (arXiv)
Sparsity has long been a central theme in LLM efficiency, but its role in context processing remains unresolved. As LLM workloads shift toward longer contexts and agentic interactions, the compute and memory bottlenecks of attention become increasingly critical, raising the question of whether these constraints are fundamental. Our position is that these constraints are artificial and unnecessary, and that the future of LLM inference lies in extreme but principled sparsity along the context dimension. This position is supported by several strands of empirical and theoretical evidence. First, we find the insistence on dense attention unreasonable, since in a long context a query effectively projects O(N) attention information into a hidden space of dimension d << N, making the process inherently lossy. Second, we perform an extensive study of sparsity in LLMs spanning 20 models across five model families, varying context lengths, and different sparsity levels. We empirically demonstrate a strong trend: current LLMs, despite not being trained for context sparsity, are remarkably robust to inference-time decode sparsity across tasks of varying complexity, including retrieval, multi-hop QA, mathematical reasoning, and agentic coding. Importantly, we also show that current hardware is already sufficient to realize substantial gains from this sparsity. For example, our sparse decode kernels accelerate large-context processing by up to 10x over FlashInfer at 50x sparsity levels on hardware such as the H100. Overall, these results position extreme context sparsity not as a heuristic, but as a principled foundation for LLM inference, training, and architecture design: one that is both feasible and beneficial, and a compelling direction for future systems.
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 48 of its 55 references that are in the map. First posted on arXiv 22 May 2026.
Builds on
48 of 55 references.
References · 48
- 2023GPT-4 Technical Reportcited by 18,396
- 2024The Llama 3 Herd of Modelscited by 14,715
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,132
- 2025Qwen3 Technical Reportcited by 8,820
- 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,695
- 2024Qwen2.5 Technical Reportcited by 4,942
- 2023Mamba: Linear-Time Sequence Modeling with Selective State Spacescited by 4,718
- 2023Toolformer: Language Models Can Teach Themselves to Use Toolscited by 4,182
- 2017Outrageously Large Neural Networks: The Sparsely-Gated Mixture-of-Experts Layercited by 3,509
- 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,373
- 2021Switch Transformers: Scaling to Trillion Parameter Models with Simple and Efficient Sparsitycited by 3,073
- 2020REALM: Retrieval-Augmented Language Model Pre-Trainingcited by 2,141
36 more
- 2023Code Llama: Open Foundation Models for Codecited by 2,139
- 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 2,022
- 2025Gemma 3 Technical Reportcited by 1,824
- 2022Competition-Level Code Generation with AlphaCodecited by 1,462
- 2025gpt-oss-120b & gpt-oss-20b Model Cardcited by 1,386
- 2023GQA: Training Generalized Multi-Query Transformer Models from Multi-Head Checkpointscited by 1,346
- 2024RULER: What's the Real Context Size of Your Long-Context Language Models?cited by 1,346
- 2020Leveraging Passage Retrieval with Generative Models for Open Domain Question Answeringcited by 1,210
- 2022Measuring and Narrowing the Compositionality Gap in Language Modelscited by 1,075
- 2025OpenAI GPT-5 System Cardcited by 989
- 2022Atlas: Few-shot Learning with Retrieval Augmented Language Modelscited by 952
- 2025DeepSeek-V3.2: Pushing the Frontier of Open Large Language Modelscited by 815
- 2026GLM-5: from Vibe Coding to Agentic Engineeringcited by 587
- 2024Quest: Query-Aware Sparsity for Efficient Long-Context LLM Inferencecited by 501
- 2023Scissorhands: Exploiting the Persistence of Importance Hypothesis for LLM KV Cache Compression at Test Timecited by 439
- 2023Large Language Models for Software Engineering: A Systematic Literature Reviewcited by 399
- 2021Random Feature Attentioncited by 354
- 2023Deja Vu: Contextual Sparsity for Efficient LLMs at Inference Timecited by 252
- 2025FlexPrefill: A Context-Aware Sparse Attention Mechanism for Efficient Long-Sequence Inferencecited by 123
- 2025SpargeAttention: Accurate and Training-free Sparse Attention Accelerating Any Model Inferencecited by 120
- 2024RetrievalAttention: Accelerating Long-Context LLM Inference via Vector Retrievalcited by 116
- 2024MagicPIG: LSH Sampling for Efficient LLM Generationcited by 111
- 2024PQCache: Product Quantization-based KVCache for Long Context LLM Inferencecited by 95
- 2026Mamba-3: Improved Sequence Modeling using State Space Principlescited by 89
- 2024Squeezed Attention: Accelerating Long Context Length LLM Inferencecited by 57
- 2024Can Long-Context Language Models Subsume Retrieval, RAG, SQL, and More?cited by 56
- 2019SLIDE : In Defense of Smart Algorithms over Hardware Acceleration for Large-Scale Deep Learning Systemscited by 46
- 2024Post-Training Sparse Attention with Double Sparsitycited by 45
- 2025LongMamba: Enhancing Mamba's Long Context Capabilities via Training-Free Receptive Field Enlargementcited by 42
- 2024Separations in the Representational Capabilities of Transformers and Recurrent Architecturescited by 29
- 2021Survey: Transformer based Video-Language Pre-trainingcited by 27
- 2024HashAttention: Semantic Sparsity for Faster Inferencecited by 24
- 2025Block-Biased Mamba for Long-Range Sequence Processingcited by 8
- 2025RACE Attention: A Strictly Linear-Time Attention Layer for Training on Outrageously Large Contextscited by 5
- 2026SOCKET: SOft Collision Kernel EsTimator for Sparse Attentioncited by 3
- 2025An Efficient Training Algorithm for Models with Block-wise Sparsitycited by 2
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2025Let's (not) just put things in Context: Test-Time Training for Long-Context LLMs
- 2025Long-Context Modeling with Dynamic Hierarchical Sparse Attention for Memory-Constrained LLM Inference
- 2026Decocted Experience Improves Test-Time Inference in LLM Agents
- 2025Polar Sparsity: High Throughput Batched LLM Inferencing with Scalable Contextual Sparsity
- 2024Scaling LLM Test-Time Compute Optimally can be More Effective than Scaling Model Parameters
- 2025Hidden in the Haystack: Smaller Needles are More Difficult for LLMs to Find
- 2026Mechanistic Insights into Functional Sparsity in Multimodal LLMs via CoRe Heads
- 2026CSAttention: Centroid-Scoring Attention for Accelerating LLM Inference