Sparse Attention as a Range Searching Problem: Towards an Inference-Efficient Index for KV Cache
Mohsen Dehghankar, Abolfazl Asudeh
NeurIPS 2026
TL;DR. We reformulate sparse attention as range searching and introduce Louver, a zero-false-negative index that is faster and more accurate than prior methods.
Abstract. Sparse attention improves LLM inference efficiency by selecting a subset of key–value (KV) entries, but at the cost of potential accuracy degradation. In particular, omitting critical KV entries can induce substantial errors in model outputs. Existing methods typically operate under fixed or adaptive token budgets and provide empirical robustness or partial theoretical guarantees, yet they do not ensure zero false negatives across decoding steps, particularly since the set of relevant tokens is both query- and step-dependent. Our empirical observations confirm that missing even one critical key can lead to sharp error spikes, especially in long-output reasoning tasks where the set of important tokens varies throughout decoding. This observation motivates the need for indexing methods that dynamically adapt to these variations across decoding steps while guaranteeing a full recall of the relevant keys above a certain threshold. We address this challenge by reformulating sparse attention as the computational geometry problem of halfspace range searching. However, existing range searching data structures are not suitable for modern LLM inference due to their computational and implementation overheads. To overcome this, we introduce Louver, a novel index structure tailored for efficient KV cache retrieval. Louver (i) guarantees zero false negatives with respect to a specified threshold in both theory and practice, (ii) is lightweight to integrate into existing LLM inference pipelines, and (iii) incorporates hardware-aware optimizations for both CPU and GPU executions. Our experiments demonstrate that Louver outperforms prior sparse attention methods in both accuracy and runtime, and is faster than highly optimized dense implementations such as FlashAttention. These results highlight that recall guarantees are a critical and overlooked dimension of sparse attention, and open a new direction for building theoretically grounded, efficient KV cache indices.
Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.
Claim this paperedit · history
NeurIPS 2026
Accept (poster) · 3 reviews · OpenReview
Updated 25 Nov 2026, 03:47 UTC.
- Decision
- Accept (poster)
Read decision
Meta-review
Overview: The paper studies the following data structure problem, in the context of KV caching in transformers: maintain a set K of vectors in dimension d such that given a query vector q, the data structure quickly reports the set of vectors k in K such that k*q>= tau. Equivalently, this task corresponds to the half-space dynamic range query problem. The paper proposes a clustering-based data structure, and uses it to perform attention calculations, where only the keys with high dot product are used in the sum. The data structure partitions the keys into clusters by covering them with balls, ideally with small radii, and prunes those balls that do not intersect with the target half space. The paper presents an experimental evaluation of their method, comparing it to other fast attention computation algorithms, demonstrating significant speedups without sacrificing accuracy.
Review summary: Reviewers expressed a range of opinions, with evaluations Borderline Reject, Borderline Accept, and Accept. They all appreciated the zero-false-negatives design, and well-engineered systems work with strong/broad experimental analysis. At the same time, they raised many questions and requests, mostly related to various aspects of implementation and experimental analysis.
Evaluation: Like the reviewers, I appreciate the breadth of the experimental analysis, as well as the efficiency improvements. At the same time, I find the theoretical contributions to be somewhat limited:
-
the equivalence of formulations in Problem 1 and Problem 2 is immediate, no reduction is needed.
-
the specific ideas behind the data structure, such as splitting data into clusters, and pruning those clusters that do not contain relevant points, have appeared in the literature. See e.g., Abuzaid, Firas, et al. "To index or not to index: Optimizing exact maximum inner product search." 2019 IEEE 35th International Conference on Data Engineering (ICDE). IEEE, 2019.
There are some differences between the algorithms in those papers and in the submission; I am not aware of any prior work which contains this specific permutation of these ideas. Still, the theoretical/algorithmic novelty of the approach seems somewhat limited to me.
At the same time, attention computation is a major problem, and I do not view the limited novelty as disqualifying. The empirical contribution can carry the paper, provided the empirical concerns raised by the reviewers are resolved. If the reviewers are satisfied that the experiments are sufficient to conclude that the experimental results are significant and replicable, then I believe the paper should be accepted.
Final justification
The rebuttal resolves several important questions raised by the reviewers, leading to one increased score. At this point, there is a consensus that the paper should be accepted. The final revision should incorporate the main points and experiments from the rebuttal. In addition, the authors should discuss related work that uses similar clustering/pruning ideas, including the reference listed above, and position their method appropriately with respect to it.
Read meta-review
Meta-review
Overview: The paper studies the following data structure problem, in the context of KV caching in transformers: maintain a set K of vectors in dimension d such that given a query vector q, the data structure quickly reports the set of vectors k in K such that k*q>= tau. Equivalently, this task corresponds to the half-space dynamic range query problem. The paper proposes a clustering-based data structure, and uses it to perform attention calculations, where only the keys with high dot product are used in the sum. The data structure partitions the keys into clusters by covering them with balls, ideally with small radii, and prunes those balls that do not intersect with the target half space. The paper presents an experimental evaluation of their method, comparing it to other fast attention computation algorithms, demonstrating significant speedups without sacrificing accuracy.
Review summary: Reviewers expressed a range of opinions, with evaluations Borderline Reject, Borderline Accept, and Accept. They all appreciated the zero-false-negatives design, and well-engineered systems work with strong/broad experimental analysis. At the same time, they raised many questions and requests, mostly related to various aspects of implementation and experimental analysis.
Evaluation: Like the reviewers, I appreciate the breadth of the experimental analysis, as well as the efficiency improvements. At the same time, I find the theoretical contributions to be somewhat limited:
-
the equivalence of formulations in Problem 1 and Problem 2 is immediate, no reduction is needed.
-
the specific ideas behind the data structure, such as splitting data into clusters, and pruning those clusters that do not contain relevant points, have appeared in the literature. See e.g., Abuzaid, Firas, et al. "To index or not to index: Optimizing exact maximum inner product search." 2019 IEEE 35th International Conference on Data Engineering (ICDE). IEEE, 2019.
There are some differences between the algorithms in those papers and in the submission; I am not aware of any prior work which contains this specific permutation of these ideas. Still, the theoretical/algorithmic novelty of the approach seems somewhat limited to me.
At the same time, attention computation is a major problem, and I do not view the limited novelty as disqualifying. The empirical contribution can carry the paper, provided the empirical concerns raised by the reviewers are resolved. If the reviewers are satisfied that the experiments are sufficient to conclude that the experimental results are significant and replicable, then I believe the paper should be accepted.
Final justification
The rebuttal resolves several important questions raised by the reviewers, leading to one increased score. At this point, there is a consensus that the paper should be accepted. The final revision should incorporate the main points and experiments from the rebuttal. In addition, the authors should discuss related work that uses similar clustering/pruning ideas, including the reference listed above, and position their method appropriately with respect to it.
- Rating
- 5/6
- Confidence
- 3/5
- Quality
- 4/4
- Clarity
- 3/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
Authors introduce an inference time indexing framework,LOUVER designed to improve the efficiency of Large Language Model (LLM) inference(decoding phase) by optimizing the KV cache retrieval. They reformulate sparse attention as a halfspace range searching problem, allowing the system to dynamically retrieve all relevant keys above a specific threshold. Method consistently achieves higher accuracy and lower latency than existing methods, while matching or exceeding dense-attention accuracy and achieving up to 15.3× GPU and 10.3× CPU speedups at 40k context length.
Strengths and weaknesses
Strength: novel application of PCA trees to retrieval optimization of KV cache impressive efficiency improvement exact method for sparse KV cache retrieval well written paper with strong experimental support and efficient implementation
Weaknesses: GPU Memory Overhead Threshold based approach could be suboptimal
Questions
'missing one critical key' does it apply to all layers of transformer?
Could you please clarify, on line 173. Why only positive half space i.e (q_t, p) >= tau considered? Why not absolute value? Which PCA algorithm is used for PCA trees building? Is it online PCA? Is it exact? Could you please clarify how you get runtime complexity of ot? Could you please clarify role of S parameter. Would not be S=1 optimal according to your runtime complexity? Please clarify role of threshold. Would it work if attention is disperse? Seems MATH 500 got very nice improvement. Do you have intuition why this dataset specifically? Do you have comparison to DeepSeek DSA?
Limitations
yes
Formatting concerns
n/a
1 comment
- Rating
- 4/6
- Confidence
- 4/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 3/4
- Originality
- 4/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
The paper reformulates sparse attention over the KV cache as a halfspace range-searching problem and proposes LOUVER, an index designed to retrieve all keys whose dot product with the current query exceeds a threshold. LOUVER partitions the key space into subspaces, groups keys into fixed-size clusters using PCA-style grouping, encloses clusters with balls, filters clusters with no-false-negative geometric tests, and performs an exact dot-product check on surviving candidates. The system includes dynamic updates, threshold-oracle variants, CPU/GPU kernels, offloading support, and evaluations on LongBench, RULER, reasoning benchmarks, recall, and latency.
Strengths and weaknesses
This is a strong and interesting systems paper. The reduction from sparse attention to halfspace range searching is clean and gives a useful way to reason about false negatives in KV retrieval. The paper correctly emphasizes that top-k or ANN-style retrieval can fail when the number of relevant keys is query-dependent, especially in long-output reasoning. The zero-false-negative guarantee with respect to a specified threshold is an important design point and distinguishes the work from many approximate retrieval approaches.
The system design is substantial. LOUVER includes a concrete index layout, subspace decomposition, cluster bounding geometry, exact post-filtering, dynamic updates, GPU and CPU implementations, and offloading support. The evaluation is also broader than many papers in this area: LongBench, RULER, AIME/MATH, recall, per-step latency, offloading, threshold-oracle analysis, and pruning ablations are all included. The baselines cover eviction, retrieval, adaptive-budget, offloading, and dense attention. Hardware details are reported clearly, including A100 and RTX 5090 settings.
The accuracy results are generally convincing for the stated objective. At 10% KV retention, LOUVER matches or slightly exceeds dense attention on LongBench and improves over sparse baselines. On RULER it is below dense FlashAttention in the reported average but outperforms other sparse baselines. The offloading result is particularly interesting: LOUVER improves average F1 and reduces search latency relative to HNSW/IVF/LSH-style methods, at the cost of additional GPU-resident index metadata.
The main weakness is that the guarantee is only with respect to the chosen threshold. It does not by itself guarantee preservation of full softmax semantics, task quality, or value-aware importance. The threshold oracle is therefore central to the method, but its reliability is only partially evaluated. If the oracle chooses a poor threshold, the range-search guarantee may faithfully retrieve the wrong set. The paper should state this limitation more prominently and separate "no false negatives above tau" from "no missed task-critical information."
The systems evaluation is strong but still not fully end-to-end serving evidence. The headline speedups are mostly per-step attention latency and are compared against Torch Eager/SDPA or FlashAttention-2 in specific settings. The paper does not report TTFT, ITL distributions, throughput under batching/continuous batching, scheduler interactions, HBM bandwidth, MFU/HFU, or integration with vLLM/SGLang/TensorRT-LLM. Latency experiments use smaller models than the main accuracy experiments, and there is no multi-GPU or 70B-scale evaluation. The index also introduces nontrivial metadata memory, e.g. 28% of KV in the offloading setup, and index build/update costs should be characterized more fully.
Some claims would benefit from tightening. The paper sometimes equates exact range retrieval with attention correctness, but real attention uses softmax weights and value vectors, not just thresholded key dot products. Table 8 also reports recall around 99.95%-99.97% in an ablation, which should be reconciled with the claimed exact no-false-negative property. Finally, statistical uncertainty is limited for benchmark scores; reporting dataset averages is useful but not the same as confidence intervals for the main comparisons.
Questions
- How sensitive are accuracy and latency to threshold-oracle mistakes? Can the authors show failure cases where tau is too high or too low, and how the system detects or mitigates them?
- Can the authors report end-to-end serving metrics such as TTFT, ITL/p95, throughput under batching, HBM bandwidth, GPU utilization, and MFU/HFU?
- How does LOUVER integrate with vLLM/SGLang/TensorRT-LLM-style paged KV allocation and continuous batching in practice?
- How should reviewers interpret the zero-false-negative guarantee in relation to Table 8's 99.95%-99.97% recall values?
- What are the index build/update costs and memory overheads at longer contexts, larger batches, and larger models such as 70B or multi-GPU tensor-parallel inference?
Limitations
YES. The paper includes a limitations discussion, mainly about extra GPU-resident index memory. This is useful but incomplete. The authors should also discuss threshold-oracle dependence, the distinction between threshold recall and full attention correctness, lack of full serving-stack evaluation, missing TTFT/ITL/throughput metrics, and scalability to larger models and multi-GPU deployment.
Final justification
The rebuttal addresses several important concerns convincingly:
- The threshold-perturbation experiment and the proposed guard provide useful evidence that LOUVER is robust over a broad threshold range and can mitigate overly aggressive thresholds.
- The authors identify the previously reported 99.95%-99.97% recall as an arithmetic inconsistency between CPU and GPU evaluation. The corrected single-kernel evaluation reaches 100% empirical recall and reconciles the result with the no-false-negative design.
- The new sweep on Qwen2.5-14B up to 128K context substantially improves the characterization of index build time, update cost, and metadata overhead.
My remaining concern is end-to-end systems validation. The Q2 latency and throughput values appear to correspond to the attention backend rather than complete Llama-3.2-3B inference: for example, 0.0256 ms maps directly to approximately 39K attention operations per second, and the reported 0.21 ms baseline TTFT does not appear to include full-model prefill. I therefore interpret these as strong attention-level measurements rather than full-model ITL, TTFT, and serving throughput.
The index-construction cost is also important. At batch size 1, the reported additional construction cost and per-step attention saving imply a break-even point of roughly 4.3K decoding steps, while the experiment uses 37,991 steps. The benefit for more typical generation lengths and the aggregation of per-layer build costs remain unclear. The proposed integration with vLLM/SGLang, continuous batching, prefix sharing, and tensor parallelism is technically plausible but has not yet been implemented and evaluated end to end.
Overall, LOUVER is a technically strong and well-engineered system with an interesting range-search formulation and broad evaluation. The rebuttal resolves the threshold robustness, recall discrepancy, and cost-characterization questions sufficiently to support a borderline-accept assessment. The remaining full-system validation gap prevents me from assigning a more confident accept score. I therefore maintain my score of 4.
Formatting concerns
No formatting concerns
2 comments
Rebuttal
We thank the reviewer for the careful review, important notes mentioned and we are going to answer per question.
Q1
This is an important point, and we ran a dedicated experiment to explore the sensitivity/robustness of the output to the choice of threshold. Starting from the produced by our sampling oracle (Appendix A.3), we perturbed it by multiples of the score std (, and ran full generation for different on LongBench with Llama-3.1-8B-Instruct.
| setting | () | Acc (guard off) | Acc (guard on) |
|---|---|---|---|
| far too low | / / | 44.85 / 44.85 / 44.85 | --- |
| too low | / | 44.83 / 44.35 | --- |
| oracle | 43.47 | --- | |
| slightly high | / | 43.95 / 43.96 | --- |
| too high | 41.30 | 44.43 | |
| far too high | / | 28.74 / 18.47 | 44.34 |
The formulation is robust to the choice of over a wide interval: accuracy varies by less than F1 across a window of thresholds, and degrades only when is pushed high enough to cut into the high-scoring cluster itself.
The reason for this robustness is that attention scores exhibit a clear gap between the high-scoring tokens and the rest, consistent with the concentration reported in Appendix A.3 and with prior observations in the literature; any landing inside that gap retrieves the same set. Identifying a usable threshold is therefore not the hard part of our formulation, the hard part, and our contribution, is an index that can answer such queries efficiently once a threshold is given.
The two failure directions: Too low is harmless to accuracy: Louver simply returns a superset of the relevant keys, so no false negatives are introduced and the cost is latency, not quality. That cost is bounded, even at , Louver remains faster than FlashAttn-2 (Figure 6). However, too high is the risk: above the threshold excludes part of the high-scoring set, and accuracy degrades sharply, exactly the error-spike behavior of Figure 1 of the paper.
We therefore added a lightweight guard that extends this robustness to adversarially poor thresholds (high regime) supplied by any black-box oracle. Reusing the reservoir already maintained for the sampling oracle, we check the fraction of sampled keys passing the supplied ; if it falls below , the threshold is with high probability too aggressive, and we fall back to the sampled . The guard costs per step and restores accuracy to the flat region (see last column of the table).
We agree this dependence is important and will add this analysis to the paper.
Q2
We agree these are the right metrics for a systems claim and report the full set below. Setting: Llama-3.2-3B, RTX 5090, prefill 2,009 tokens then decode steps to =40k. Latencies are means over the whole decoding; the endpoint values reported in our response to Reviewer FhDg (Q2).
| Method | ITL mean | p50 | p95 | tok/s | HBM GB/s | % peak BW | MFU | HFU | GPU util | TTFT (ms) | |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | FlashAttn-2 | 0.0615 | 0.0453 | 0.1141 | 16,272 | 1400 | 78.1% | 2.0% | 2.0% | 93% | 0.21 |
| 1 | Louver | 0.0256 | 0.0253 | 0.0304 | 39,092 | 210 | 11.7% | 0.0% | 0.3% | 88% | 156.09 |
| 4 | FlashAttn-2 | 0.2224 | 0.2263 | 0.3935 | 17,990 | 1548 | 86.4% | 2.2% | 2.2% | 95% | 0.62 |
| 4 | Louver | 0.0416 | 0.0403 | 0.0539 | 96,222 | 548 | 30.6% | 0.1% | 0.7% | 95% | 162.84 |
From batch size =1 to =4, FlashAttn-2's per-step latency grows almost proportionally with batch because it is already bandwidth-saturated (78.1% 86.4%), so its throughput barely improves; Louver's latency grows only , with headroom remaining. The speedup therefore widens with batch size, from at =1 to at =4: our advantage does not depend on the batch-1 regime.
Louver's TTFT is dominated by index construction at prefill (156 ms vs. 0.21 ms). It is, however, a one-time cost: amortized over the 37,991 decode steps of this run it is ms/step, against a per-step saving of ms. Total inference cost is substantially lower for Louver in the long-output setting that the paper targets (the longer the generation, the larger the margin).
Q3
We are actively working on offering Louver as a KV-cache backend for vLLM, and we appreciate the reviewer pushing on this. The analysis below describes the integration path.
The key architectural point is that Louver is a layout and metadata change inside the KV cache, not a new cache manager. It does not own allocation, does not span requests, and does not touch scheduling, so it is orthogonal to paged allocation and continuous batching in all three engines. Per layer and KV head it adds only: (i) the keys permuted so that the keys of a group occupy adjacent slots, (ii) the values under the identical permutation, and (iii) one center and one radius per group. There is no auxiliary token store and no duplicated KV. Attention is permutation-invariant over the key axis and RoPE is applied before keys enter the cache, so the permutation is semantically free.
Louver integrates with paged KV allocation and continuous batching without modifying the allocator or scheduler. In vLLM and TensorRT-LLM, its groups map to contiguous regions within existing KV pages, while descriptors are stored in a parallel low-rate pool with the same per-sequence lifecycle. In SGLang, setting page_size makes each Louver group correspond directly to one page. Because all state and filtering are per sequence and head, continuous batching, preemption, block reuse, and prefix sharing remain unchanged. Louver can be added as an attention backend in vLLM/SGLang, whereas TensorRT-LLM requires custom compiled plugins.
Q4
We thank the reviewer for catching it. We tracked the discrepancy down: the residual is not a failure of the pruning rule, but an artifact of our evaluation harness, and it is now fixed.
The guarantee is a statement about exact arithmetic. A group is pruned only when , which upper-bounds every key in that ball, and every surviving key then passes an exact dot-product re-check against . That chain is sound provided the bound and the score it is compared against are evaluated in the same arithmetic. In the published harness they were not: ground-truth key sets were produced on CPU with NumPy fp32 (OpenBLAS sgemm), while the index computed bounds and scores on GPU with fp32 Triton kernels ( tiled dot, warp-level tree reduction). Neither is wrong, but the two reduction orders disagree at $\sim$1e-6 relative magnitude. A key whose score lies within that of is then classified differently by the reference and by the index and counted as a miss, even though the pruning rule never rejected it.
The fix is to make the inequality chain self-consistent: bound computation and exact re-check now run in the same kernel at the same precision.
| Clustering | Enclosing | Scan (%) | Recall (as published) | Recall (single kernel*) |
|---|---|---|---|---|
| k-center | Ball | 92.4 | 100.0 | |
| k-center | AABB | 60.8 | 100.0 | |
| k-center | Span-ball | 93.6 | 100.0 | |
| k-means | Ball | 91.3 | 100.0 | |
| k-means | AABB | 64.6 | 100.0 | |
| k-means | Span-ball | 92.3 | 100.0 | |
| PQ-sub | Ball (centroid) | 95.7 | 100.0 | |
| PQ-sub | AABB | 65.7 | 100.0 | |
| PQ-sub | Span-ball | 89.3 | 100.0 |
We will update Table 8 with the corrected harness and add this discussion to the paper.
Q5
We have run a dedicated sweep over context length, measuring the three costs separately: one-time build, amortized per-decode-step update, and index memory against the KV cache it indexes. Given our limited GPU budget we scaled the context rather than the model, which is the axis this method targets (generally sparse attention methods): the full keys can be offloaded to slower memory tiers (Section 4.1, Table 4), an option dense attention does not have.
Setting. A100, Qwen2.5-14B-Instruct. Figures are per layer; build is one-time per sequence, update is the amortized per-decode-step insert cost.
| build (ms) | update (ms/step) | index meta (MB/layer) | KV fp16 (MB/layer) | index vs. KV | |
|---|---|---|---|---|---|
| 8192 | 22.67 | 0.00033 | 7.98 | 32.0 | 24.9% |
| 32768 | 38.22 | 0.00039 | 26.31 | 128.0 | 20.6% |
| 65536 | 66.91 | 0.00031 | 46.56 | 256.0 | 18.2% |
| 131072 | 132.53 | 0.00031 | 95.56 | 512.0 | 18.7% |
Memory overhead shrinks with context: The ratio falls from 24.9% at 8k to 18.7% at 128k, as the fixed per-sequence cost of the index amortizes over a growing cache.
Update cost is constant in ---0.00032--0.00039 ms/step over a range, matching the -per-step design: a round touches only the buffered keys, regardless of how many keys are already indexed, and fires once every steps rather than per step.
Measured wall-clock build time grew by 5.8× over a 16× context increase. End-to-end, it appears as a one-time addition to TTFT, quantified and amortized in Q2.
Larger models and multi-GPU: The index is built per (layer, KV head) with no interaction across heads, layers, or sequences, so a 70B model multiplies layer and head counts while leaving the overhead ratio invariant. Tensor parallelism is orthogonal for the same reason paged allocation is (Q3), and Louver's index lives inside each head's cache, so every rank indexes exactly the heads it already owns, no collective, cross-rank exchange, or new synchronization point.
Thank you for your rebuttal. I will keep my score unchanged.
- Rating
- 4/6
- Confidence
- 3/5
- Quality
- 2/4
- Clarity
- 3/4
- Significance
- 2/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
This paper tackles the cost of decoding-time attention over a growing KV cache. Its key claim is that the set of relevant tokens changes with each query and decoding step, so fixed top-k or fixed-budget sparse attention can drop important tokens. To address this, the authors reformulate sparse attention as a halfspace range searching problem and propose LOUVER, an index that groups keys into bounding balls and prunes those that cannot exceed a relevance threshold, guaranteeing zero false negatives for a given threshold. Experiments report that LOUVER matches or exceeds dense-attention accuracy while achieving large GPU and CPU speedups at long context lengths.
Strengths and weaknesses
Strengths
-
Well-motivated problem framing: The set of relevant tokens depends on the query and the decoding step, so any fixed top-k or fixed-budget policy is either insufficient or wasteful. The false-negative sensitivity experiment and the per-step coverage analysis support this well, showing that dropping one relevant token sharply raises error and that the number of relevant tokens varies a lot across steps. This is a clean argument for moving beyond fixed budgets.
-
Clean formulation as halfspace range searching: The paper formulates sparse attention as thresholded retrieval, K* = {k in K : <q, k> >= tau}, rather than as approximate top-k or ANN-style search. This matches the goal of retrieving all keys above a relevance threshold instead of fixing the retrieval count, and gives a clear way to reason about recall and false negatives.
-
Safe pruning mechanism: The LOUVER index groups keys into fixed-size clusters, encloses each with a bounding ball, and uses a cheap upper bound to drop groups that cannot exceed the threshold, with an exact check on the survivors. It thus acts as a safe filter for a given tau: it may admit false positives, but it does not miss any key with <q, k> >= tau. The correctness argument is easy to follow.
-
Practical, system-oriented design: The fixed group size, compact metadata, GPU/CPU kernels, and buffer-based update are all motivated by real autoregressive decoding constraints. In particular, the buffer-and-append strategy lets new keys be attended densely before they enter the index, avoiding a per-step rebuild and fitting long-output reasoning and KV-cache offloading.
Weaknesses
-
LongBench results are given only at 10% KV retention, where LOUVER, Quest, Twilight, and dense FlashAttention-2 all perform within noise of one another. At this budget the setting does not separate LOUVER from strong sparse baselines, likely because 10% retention is already close to dense. This is in tension with the paper's own motivation, which argues that avoiding false negatives matters most under aggressive sparsification. A sparsity sweep across lower budgets would test whether LOUVER degrades more gracefully than the baselines and would turn the zero-false-negative guarantee into a demonstrated advantage rather than a near-tie.
-
Quest is a key baseline in the accuracy tables, but the latency comparison in Figure 6 is restricted to dense implementations and Twilight. Since Twilight computes full QK scores before pruning, it is expected to be slow, which makes it a weak point of comparison for runtime. A more informative evaluation would include Quest under the same model, sequence length, KV budget, and hardware, ideally with a breakdown of filter time, exact-check time, sparse-attention time, and index-update overhead rather than per-step latency alone.
-
Table 3 omits Quest, even though it is a central baseline in Tables 1 and 2 and this is the long-output reasoning setting the paper argues matters most. Several other cells are also empty (e.g., the eviction row and H2O on AIME) with no note on whether these methods failed, diverged, or were not tested. This makes it hard to judge LOUVER's advantage in the regime that motivates the paper.
Questions
Questions
-
Under more aggressive sparsity (e.g., 1%, 2%, 5% KV retention), does LOUVER retain higher accuracy than Quest and Twilight?
-
How does LOUVER compare to Quest in latency?
-
Could you add Quest to Table 3 and explain the empty cells? Including Quest in the reasoning comparison would clarify whether LOUVER's advantage holds against a strong query-aware baseline, not only against dense, H2O, and Twilight.
Limitations
Yes
Final justification
Thank you for the detailed rebuttal. My questions have been adequately answered. I'll raise my score.
Formatting concerns
No formatting issues.
2 comments
Rebuttal
We thank the reviewer for identifying concrete gaps in our evaluation. All three requests: a sweep to more aggressive sparsity, a budget-matched latency comparison against Quest, and the missing cells in Table 3, have been addressed with new experiments below.
Q1
We agree that this is precisely the regime where a recall guarantee should matter, and running the sweep has made the argument considerably sharper than the 10% setting alone. We swept the KV budget over {1%, 2%, 5%, 10%} on LongBench (Llama-3.1-8B-Instruct, avg. F1) and additionally report a fixed k=64 column, in which every method retains exactly 64 tokens per step regardless of context length (an even more aggressive setting, since the budget does not grow with the context).
| Method | 1% | 2% | 5% | 10% | fixed |
|---|---|---|---|---|---|
| Louver | 40.77 | 41.73 | 41.74 | 41.80 | 40.18 |
| Quest | 35.81 | 39.24 | 41.10 | 41.12 | 36.65 |
| Twilight | 39.12 | 39.93 | 40.81 | 41.62 | 38.41 |
| H2O | 38.98 | 39.94 | 40.26 | 40.61 | 38.42 |
| StreamingLLM | 27.70 | 27.96 | 28.37 | 29.60 | 27.05 |
The overall trend is that Louver's advantage becomes substantially larger under aggressive sparsity. Its gap to the strongest baseline increases from 0.18 F1 at 10% to 1.65 F1 at 1%. At 1% retention Louver still recovers 97.8% of dense accuracy, while Quest loses roughly 14%. This is consistent with the zero-false-negative property: under a tight budget, baselines must discard keys and inevitably drop some of the highest-scoring ones, whereas Louver retrieves every key above the threshold. The same effect appears in the fixed column.
We note that Twilight is the closest competitor in accuracy. However, another distinction is the accuracy–latency trade-off: Twilight computes the full product before pruning, so it obtains its accuracy at a per-step cost that is orders of magnitude higher than Louver's (Figure 6 in the paper; see also the latency breakdown in our response to Q2). Louver attains comparable or better accuracy at a small fraction of the decoding cost, which is the regime that matters for long-output decoding.
We will add this sweep to the paper as a new table in Section 5 and reference it from the motivation in Section 2.1.
Q2
We thank the reviewer for pointing this out. We have included Quest latency under the same settings. Per-step decoding latency (ms) is reported below for both models.
GPU — Qwen2.5-7B (, )
| Method | =8k | =16k | =32k | =40k |
|---|---|---|---|---|
| Torch eager (dense) | 0.0718 | 0.0947 | 0.1661 | 0.2208 |
| SDPA / FlashAttn-2 (fp16, dense) | 0.0335 | 0.0346 | 0.0477 | 0.0499 |
| Twilight | 0.3512 | 0.5816 | 1.1875 | 1.5452 |
| Quest | 0.2103 | 0.2095 | 0.2082 | 0.2090 |
| Louver (filter + sparse attn) | 0.0275 | 0.0295 | 0.0296 | 0.0335 |
GPU — Llama-3.2-3B (, )
| Method | =8k | =16k | =32k | =40k |
|---|---|---|---|---|
| Torch eager (dense) | 0.0943 | 0.1008 | 0.2660 | 0.3154 |
| SDPA / FlashAttn-2 (fp16, dense) | 0.0342 | 0.0435 | 0.0979 | 0.1194 |
| Twilight | 0.3594 | 0.7047 | 1.3546 | 1.6377 |
| Quest | 0.2131 | 0.2112 | 0.2110 | 0.2126 |
| Louver (filter + sparse attn) | 0.0237 | 0.0253 | 0.0253 | 0.0278 |
Two points stand out. First, Louver is (Qwen) and (Llama) faster than Quest at 40k. Quest becomes faster than Torch eager only at sufficiently long contexts—at 40k for Qwen and from 32k for Llama—but it remains slower than FlashAttention-2 throughout. Second, and more importantly for the reviewer's concern, Louver is the only sparse method here that is faster than FlashAttn-2. We attribute this to the kernel-level work described in Appendix K rather than to the pruning ratio alone: a sparse method that prunes well but dispatches several unfused kernels per step will not beat a highly optimized dense kernel at these sequence lengths.
As requested, we also break Louver's per-step cost into its two fused stages: the filter (ball pruning followed by the exact dot-product re-check on survivors) and the sparse attention over the surviving keys and values.
| Model | filter (ball prune + exact re-check) | sparse attention | total (fused) | |
|---|---|---|---|---|
| Qwen2.5-7B | 8k | 0.0154 | 0.0121 | 0.0275 |
| Qwen2.5-7B | 40k | 0.0210 | 0.0125 | 0.0335 |
| Llama-3.2-3B | 8k | 0.0153 | 0.0084 | 0.0237 |
| Llama-3.2-3B | 40k | 0.0193 | 0.0085 | 0.0278 |
Over the tested 8k–40k range, filter latency grows only modestly, although its worst-case work remains linear in N with a reduced constant of approximately 1/r. The component timings are independently profiled and therefore do not sum exactly to the end-to-end fused measurement above. We note that the totals above are the complete per-step attention cost: the index update does not appear in them because on GPU it is issued on a side stream and runs concurrently (Appendix J.1). Update costs are also reported in our response to Reviewer QWhg (Q5).
We will replace Figure 6 in the with both tables above in Section 5.
Q3
Reviewer is right that empty cells in the setting we argue matters most are hard to interpret. To be transparent: the gaps were due to compute and time constraints during submission, not to any method failing or diverging. We have since run all missing configurations in Tables 1--3.
Table 1 (LongBench) is completed in our response to Q1 above. Table 2 (RULER, 32k, accuracy ) is completed below, additionally swept over budget ratios:
| Method | 1% | 2% | 5% | 10% |
|---|---|---|---|---|
| Louver (sampled ) | 90.33 | 90.67 | 90.67 | 90.73 |
| Quest | 82.89 | 83.56 | 83.78 | 85.30 |
| Twilight | 83.33 | 86.33 | 86.67 | 87.33 |
| H2O | 81.78 | 81.67 | 81.67 | 82.71 |
| StreamingLLM | 0.67 | 1.33 | 1.56 | 3.11 |
Table 3 (reasoning, DeepSeek-R1-Distill-Llama-8B), now with Quest and all previously empty cells filled; len is the mean generation length in tokens:
| Method | AIME-2024 acc | len | MATH-500 acc | len |
|---|---|---|---|---|
| Louver | 30.0 | 20593 | 62.0 | 7631 |
| Quest (=512) | 15.0 | 20900 | 64.0 | 7576 |
| Twilight (=0.85) | 25.0 | 23659 | 44.0 | 7266 |
| H2O (=512) | 5.0 | 24159 | 55.0 | 8791 |
| StreamingLLM (=512) | 0.0 | 19376 | 44.0 | 6352 |
Adding Quest sharpens rather than weakens the picture. On AIME-2024, Louver doubles Quest's accuracy (30.0 vs. 15.0) and is the only method matching dense attention (30.0). On MATH-500, Quest is 2 points ahead of Louver (64.0 vs. 62.0), a gap of one problem in 50 samples, so they are comparable there, with both exceeding dense (58.0). The contrast between the two benchmarks is itself informative: AIME requires much longer chains of thought (mean $\approx$20.6k tokens vs. $\approx$7.6k), so the KV cache grows far more during decoding and the set of relevant tokens shifts more across steps. This is exactly the regime our Figure 1 analysis predicts false negatives will be most damaging.
Quest is a strong query-aware baseline, but its page-level proxy provides no guarantee against dropping a key above the threshold, in theory or in practice (Figure 7).
Thank you for the detailed rebuttal. My questions have been adequately answered. I'll raise my score.
From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.
Loading the discussion…
Rebuttal
We thank the reviewer for the careful assessment and address the questions one by one below.
Does "missing one critical key" apply to all layers of the transformer?
Thank you for mentioning this. It was not measured in the paper, so we ran a new experiment to address it. The Observation 1 setup (Appendix C) drops a key from every layer at once, which matches how eviction works in practice but does not isolate where the damage originates. We repeated the experiment by masking the dropped key at a single layer (Llama-3.1-8B-Instruct, (P(answer changed vs. dense))):
The effect holds at each of the three tested depths: dropping a relevant key always hurts more than dropping an irrelevant one. However, the effect is not identical across all layers. The difference is much larger in the middle layers, meaning that dropping relevant keys there is more harmful than in the early or late layers.
This depth dependence is consistent with prior observations that sparsity tolerance varies across layers, motivating per-layer budget allocation in PyramidInfer [48], PyramidKV [7], and Ada-KV [17].
Why ⟨qt,p⟩≥τ rather than ∣⟨qt,p⟩∣≥τ?
Attention depends on the signed score si=⟨qt,ki⟩/d through softmax(si). Since the exponential function is strictly increasing, a larger signed score always produces a larger attention weight when the other scores are fixed. In particular, scores a and −a have the same absolute value but very different effects: their unnormalized softmax weights are ea and e−a, whose ratio is e2a. Thus, a strongly negative dot product is not “highly relevant” in the attention computation; it is exponentially downweighted relative to a strongly positive dot product.
Using ∣⟨qt,p⟩∣ would therefore conflate strongly aligned and strongly anti-aligned keys, unnecessarily retrieving keys from the negative tail of the score distribution. The appropriate condition is the one-sided threshold ⟨qt,p⟩≥τ, which selects exactly the keys whose actual attention scores exceed the cutoff. The threshold τ may itself be negative, so “positive halfspace” refers only to the selected side of the hyperplane {p:⟨qt,p⟩=τ}, not to requiring the retrieved dot products to be positive.
Which PCA algorithm is used for building the PCA trees? Is it online PCA? Is it exact?
We use a restricted form of PCA: rather than computing eigenvectors of the key covariance, we select the split direction from the standard basis, taking the single coordinate of maximum variance (Algorithm 2). Points are then sorted along that coordinate and split at the median. It is exact and deterministic, and the max-variance coordinate serves as a cheap surrogate for the leading principal direction, which keeps the build to a few sorts per level.
The construction is not online: the tree is built once over the prefilled keys, and during decoding buffered keys are grouped and appended at each flush without revising existing groups (the update process). We note that none of these choices affects correctness, only pruning efficiency: the ball test plus exact re-check hold for any grouping, so a looser grouping yields more survivors but never a missed key.
On the runtime complexity of ot
We want to ensure that we address this question properly rather than answer a different question from the one intended. Could the reviewer clarify which runtime the question concerns? If it refers to the per-step cost of computing the attention output ot under Louver: The per-step cost is: Filter. Each of the S subspaces holds n/r balls, and each ball test costs O(d/S), giving S⋅(n/r)⋅(d/S)=O(nd/r). Note that S cancels. Exact re-check. O(fscan⋅nd), where fscan is the fraction of keys surviving the filter (Appendix G). Sparse attention. O((∣K∗∣+B)d) over the retrieved keys and the dense buffer. Total: O((1/r+fscan)nd)+O((∣K∗∣+B)d), against O(nd) for dense attention.
Could you clarify the role of S? Would S=1 not be optimal according to your runtime complexity?
The O(S⋅nlog(n/r)) expression in the paper is the one-time build cost. In the ball-filtering arithmetic S cancels: there are n/r balls per subspace and each filter is over d/S dimensions, so the filter work is S⋅(n/r)⋅(d/S)=nd/r, independent of S. In the cost model of Appendix G, per-query cost is g/r+fscan; S does not enter the gate cost g, and acts on fscan, the fraction of keys surviving to the exact dot-product stage (relevant to the pruning power of the index).
S improves fscan because of the curse of dimensionality: in high dimensions a bounding ball is loose relative to the query halfspace, so nearly every ball intersects it and little is pruned. Smaller subspaces give tighter balls and better pruning power. The ablation in Appendix G shows the effect:
At S=2 roughly 90% of keys are still scanned, and S=1 is the degenerate end of this trend. Very large S is not free either, more center arrays to stream and more per-subspace sorts add kernel and parallelization overhead, so S trades pruning power against implementation cost, and we select it empirically.
Could you clarify the role of the threshold?
τ defines the exact target set K∗={k:⟨qt,k⟩≥τ}, which is what turns sparse attention into a well-posed retrieval problem. Unlike a fixed budget k, this set size adapts per decoding step, which matters because the number of genuinely relevant keys oscillates considerably across steps (Observation 2, Figure 1c).
Given τ, retrieval is exact. τ is a monotone latency dial: raising it retrieves fewer keys and runs faster; lowering it retrieves a superset and costs time but cannot lose keys. We report a sensitivity sweep and a fallback guard in our response to Reviewer QWhg (Q1).
Would it work if attention is dispersed?
Yes---correctness is unaffected, since the pruning rule is geometric and assumes nothing about the score distribution. Dispersion is also where a threshold helps most relative to fixed-budget methods: when many keys carry real softmax mass, a fixed k drops some of them, while Louver returns everything above τ.
MATH-500 shows a very nice improvement---any intuition why this dataset specifically?
We think it comes down to the output-length and difficulty of the benchmark. MATH-500 is solved with comparatively short chains of thought ($\approx$7.6k generated tokens on average in our runs) whereas AIME forces very long generations ($\approx$20.6k). On AIME the cache is dominated by generated tokens and grows continuously, which is the regime where KV retrieval matters most for latency, that is why our long-output latency figure uses AIME. MATH-500 keeps the cache moderate and therefore reads more directly as an accuracy test.
Do you have a comparison to DeepSeek DSA?
This is a good pointer, and we will add a discussion of DSA and natively-trainable sparse attention to the related work. DSA belongs to a different category: it introduces a learned indexer and the model is trained to work with the resulting selection, so the sparsity pattern is learned as part of the architecture. Louver is training-free and operates on frozen weights at inference time, which is also why our baselines are Quest, H2O, StreamingLLM, and Twilight, the inference-time methods that form the like-for-like comparison class.