Long-Context Language Models Require Extreme Sparsity in Context Dimension
Prithvi Dixit ⋅ Sahil Joshi ⋅ Agniva Chowdhury ⋅ Anshumali Shrivastava ⋅ Joseph Gonzalez ⋅ Ion Stoica ⋅ Kumar Krishna Agrawal ⋅ Aditya Desai
Abstract
Sparsity has long been central to efficient LLMs, yet context processing remains dominated by dense attention. As workloads shift toward longer contexts and agentic interactions, this creates severe compute and memory bottlenecks. Our position is that this constraint is largely artificial, and the future of LLM inference should be built around extreme, principled sparsity along the context dimension. We support this position with complementary theoretical arguments and extensive empirical evidence. First, dense attention compresses $\mathcal{O}(N)$ contextual information into a hidden representation of dimension $d \ll N$, suggesting substantial redundancy in processing all context tokens uniformly. We advocate a fully context-sparse design that combines top-$k$ attention with linear attention or state-space models. To motivate this design, we derive complementary approximation guarantees showing that top-$k$ attention accurately approximates retrieval-like distributions with concentrated mass, while linear attention approximates diffuse regimes. Second, we conduct a broad empirical study showing that current LLMs, despite not being trained for context sparsity, are remarkably robust to inference-time decode sparsity across a variety of tasks. Qwen3.5-27B tolerates up to $100\times$ sparsity on RULER-HARD, and up to $50\times$ on LOFT, AIME 2025, and SWE-Bench with negligible quality loss. Finally, we demonstrate that these gains are realizable on current hardware, with sparse decode kernels achieving up to $10.5\times$ speedup over FlashInfer at $50\times$ sparsity on H100 GPUs. Even including index selection overhead, we achieve up to $3.9\times$ and $2.5\times$ speedups for MHA and GQA, respectively. Together, these results suggest that extreme context sparsity is not merely a heuristic, but a promising foundation for future LLM inference, training, architecture, and hardware design. We release our code at https://github.com/skylight-org/skylight-research.
Successful Page Load