Certified Sparse Attention via Perturbed Retrieval
On the map: Efficient LLM inference and serving → KV cache optimization
Abstract (arXiv)
Sparse attention speeds up long-context decoding by reading few keys of the KV cache, but existing methods do not control the error of a query, and on real KV caches their errors have heavy tails. We show that perturbing the score of every key with an independent Exp(1) variable turns threshold retrieval into sampling keys with probability proportional to their attention weights. Lowering the threshold along a geometric grid gives nested samples, a Horvitz--Thompson estimate of the output at every level, and confidence bounds that hold simultaneously over all levels, so each head stops at the first level whose certificate meets the target error varepsilon. With fresh perturbations at every decoding step, each certificate fails with probability at most δ during generation. At a suitable threshold, the estimator reads O(varepsilon-2log(1/δ)) values regardless of the context length, and no adaptive method reads fewer, up to constants. A 4-bit scan with deterministic bounds, shared across a grouped-query-attention group, generates the candidates exactly but reads every key. On three LLMs and ten settings at 16K--128K tokens, no certificate is violated, and at equal keys read our 90th-percentile error is 4.6--7.9× lower than that of the best of 15 baseline families. At equal bytes, the best baselines have 0.6--1.6 times our 90th-percentile error and at least 4.9 times our largest. End to end, our method stays within one point of dense attention on tasks and within 0.1% in PG-19 perplexity, and the strongest baselines at equal bytes score as well. On CPU, decoding steps at 32K--128K tokens run 1.1--1.4× faster than dense attention on the same 16-bit cache.
Key facts. No citing papers in the map yet (data through 24 Nov 2026). Placed in KV cache optimization, one of 12 directions in Efficient LLM inference and serving. Builds on 42 of its 67 references that are in the map. Submitted 18 Oct 2026.
Builds on
42 of 67 references.
Closest ancestors · 10
Same direction, newest first
- 2026Towards Tight Bounds for Streaming Attention5 Jun
- 2026Stochastic Sparse Attention for Memory-Bound Inference3 May
- 2025Compression Barriers for Autoregressive Transformers21 Feb
- 2024ShadowKV: KV Cache in Shadows for High-Throughput Long-Context LLM Inference28 Oct
- 2024DuoAttention: Efficient Long-Context LLM Inference with Retrieval and Streaming Heads14 Oct
- 2024Quest: Query-Aware Sparsity for Efficient Long-Context LLM Inference16 Jun
- 2024SnapKV: LLM Knows What You are Looking for Before Generation22 Apr
- 2024SubGen: Token Generation in Sublinear Time and Memory8 Feb
- 2023SparQ Attention: Bandwidth-Efficient LLM Inference8 Dec
- 2023H2O: Heavy-Hitter Oracle for Efficient Generative Inference of Large Language Models24 Jun
Other references · 32
- 2024The Llama 3 Herd of Modelscited by 16,113
- 2025Qwen3 Technical Reportcited by 9,994
- 2024Qwen2.5 Technical Reportcited by 5,525
- 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,893
- 2023Efficient Streaming Language Models with Attention Sinkscited by 2,444
- 2020Reformer: The Efficient Transformercited by 1,718
- 2020Rethinking Attention with Performerscited by 1,669
- 2024RULER: What's the Real Context Size of Your Long-Context Language Models?cited by 1,559
- 2019Compressive Transformers for Long-Range Sequence Modellingcited by 798
- 2024KIVI: A Tuning-Free Asymmetric 2bit Quantization for KV Cachecited by 747
- 2025MoBA: Mixture of Block Attention for Long-Context LLMscited by 232
- 2024InfLLM: Training-Free Long-Context Extrapolation for LLMs with an Efficient Context Memorycited by 220
20 more
- 2019Stochastic Beams and Where to Find Them: The Gumbel-Top-k Trick for Sampling Sequences Without Replacementcited by 213
- 2014A* Samplingcited by 165
- 2021Scatterbrain: Unifying Sparse and Low-rank Attention Approximationcited by 135
- 2024MagicPIG: LSH Sampling for Efficient LLM Generationcited by 133
- 2023Fast Attention Requires Bounded Entriescited by 105
- 2023HyperAttention: Long-context Attention in Near-Linear Timecited by 93
- 2023KDEformer: Accelerating Transformers via Kernel Density Estimationcited by 63
- 2024Post-Training Sparse Attention with Double Sparsitycited by 54
- 2024HashAttention: Semantic Sparsity for Faster Inferencecited by 32
- 2017A New Unbiased and Efficient Class of LSH-Based Samplers and Estimators for Partition Function Computation in Log-Linear Modelscited by 18
- 2025Streaming Attention Approximation via Discrepancy Theorycited by 14
- 2024IceFormer: Accelerated Inference with Long-Sequence Transformers on CPUscited by 11
- 2025vAttention: Verified Sparse Attentioncited by 11
- 2017Fast Amortized Inference and Learning in Log-linear Models with Randomly Perturbed Nearest Neighbor Searchcited by 9
- 2021DEANN: Speeding up Kernel-Density Estimation using Approximate Nearest Neighbor Searchcited by 9
- 2023One Pass Streaming Algorithm for Super Long Token Attention Approximation in Sublinear Spacecited by 9
- 2026SOCKET: SOft Collision Kernel EsTimator for Sparse Attentioncited by 6
- 2025A Mathematical Theory of Top-k Sparse Attention via Total Variation Distancecited by 5
- 2026Sum Estimation via Vector Similarity Searchcited by 2
- 2026SANTA++: Sampling Attention through Representative Keyscited by 1
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2026Sparse Attention as a Range Searching Problem: Towards an Inference-Efficient Index for KV Cache
- 2026Coverage-Verified Sparse Attention: Closed-Loop Quality Control for Long-Context LLM Decoding
- 2026Stratified Sparse Attention: Reducing the Sparse-to-Dense Gap at Extreme Sparsity
- 2026Elastic Threshold Attention: Learned Contextual Sparsity for Long-Context Decoding
- 2025Tactic: Adaptive Sparse Attention with Clustering and Distribution Fitting for Long-Context LLMs
- 2026Scaling Attention via Feature Sparsity
- 2026RefineKV: Query-Adaptive KV Cache Compression via Attention-Error Bounds
- 2026EntmaxKV: Support-Aware Decoding for Entmax Attention