Make Each Token Count: Towards Improving Long-Context Performance with KV Cache Eviction
Update NeurIPS 2026 submission VBVa8FIJRl: 7 notes
@openreview[bot] · 2026-11-24 15:51 UTC · 170d9e66e7ea ·
reviews/openreview/vbva8fijrl/notes/1sm4csyoxm.json added
+++ b/reviews/openreview/vbva8fijrl/notes/1sm4csyoxm.json@@ -0,0 +1,16 @@+{+ "schema": "review/1",+ "id": "1sm4csyoXM",+ "replyTo": "nFBLvtSSM4",+ "kind": "comment",+ "invitation": "Official_Comment",+ "signature": "Authors",+ "content": {+ "title": "Thank you!",+ "comment": "We thank the reviewer for updating the score, and for this suggestion. We followed it and implemented\nthe fix, and re-measured the breakdown.\n\n**Diagnosis.** We agree the dominant term in the 4.7 ms/token gap is the batch-1 launch/dispatch\nbubble, which is an eager-mode, single-sequence artifact, not algorithmic cost. The reason CUDA\ngraphs were not already in place is that our decode cache grows the KV tensors with\n`torch.cat` (a dynamic allocation) and the ragged path issues a per-step host sync, both of which\nmake the decode step uncapturable.\n\n**Fix.** We replaced the cache with a **preallocated, in-place variant** (no `torch.cat`, no host\nsync) and used the eager retention-gated attention kernel, which at the TrimKV/DBTrimKV budget\n(M=256, i.e. attention over 256 keys) is as cheap as flash yet is CUDA-graph-capturable. This lets us\ncapture the actual TrimKV and DBTrimKV decode step (with eager attention) and replay it as a single graph.\n\n**Re-measured decode latency** (Qwen3-4B, 1×H200, bf16, batch 1, M=256):\n\n| | eager (before) | **+ CUDA graph (after)** | speed-up |\n|---|---:|---:|:--:|\n| **TrimKV** | 30.0 ms/tok (33.3 tok/s) | **8.8 ms/tok (113.5 tok/s)** | **3.4×** |\n| **DBTrimKV** | 30.7 ms/tok (32.6 tok/s) | **9.0 ms/tok (110.8 tok/s)** | **3.4×** |\n\nThe graphed latency *is* the GPU-compute floor (a single fused replay), so the ~21 ms/token removed\nwas pure launch/dispatch bubble. As a sanity check, our eager TrimKV number (30.0) reproduces the\n30.5 ms/token in the breakdown table above, confirming the two harnesses agree.\n\n**Two findings:**\n\n1. **CUDA graphs give ~3.4× on both methods** and eliminate the bubble exactly as the reviewer\n anticipated.\n2. **The TrimKV <-> DBTrimKV gap collapses from 4.7 ms (1.15×) to 0.21 ms (1.02×)** once graphed. This\n confirms that gap was launch/dispatch + host-sync overhead, not compute: the extra GPU work\n DBTrimKV does is negligible (8.8 vs 9.0 ms/token). So under CUDA graphs DBTrimKV decodes at essentially\n TrimKV's speed.\n\n**Scope**. The prototype above uses a preallocated cache to make the step capturable; the one remaining engineering item to ship this on the production **paged** DBTrimKV path is to move the paged cache's block management device-side (which removes the same host sync and enables capture). We will fold the device-side paged cache + CUDA graphs into the revised version; the measurements here establish that the batch-1 bubble is real and fully removable for both TrimKV and DBTrimKV, and that doing so closes the DBTrimKV overhead almost entirely.\n\nWe thank the reviewer again for the detailed and constructive feedback."+ },+ "createdAt": "2026-08-02T16:08:44.984Z",+ "modifiedAt": "2026-11-19T17:01:01.505Z",+ "url": "https://openreview.net/forum?id=VBVa8FIJRl¬eId=1sm4csyoXM",+ "license": "CC-BY-4.0"+}
reviews/openreview/vbva8fijrl/notes/4af6te9hal.json added
+++ b/reviews/openreview/vbva8fijrl/notes/4af6te9hal.json@@ -0,0 +1,16 @@+{+ "schema": "review/1",+ "id": "4Af6Te9HAL",+ "replyTo": "Yf9CgMB8W3",+ "kind": "comment",+ "invitation": "Official_Comment",+ "signature": "Authors",+ "content": {+ "title": "Response to Reviewer uKJ5 Comment (2/2)",+ "comment": "**On evaluating the math-trained gate on MMDU.** The long-reasoning experiments (Table 1) use Qwen3-VL-8B-Thinking, whereas the multi-turn experiments (Table 2) use Qwen3-VL-4B-Instruct, so a direct cross-evaluation is not feasible. Even with the same model, we would not expect a gate trained on math-reasoning data to beat full-cache inference on multi-turn dialogue, because the two data distributions are too different.\n\n*If the reviewer's question is about DBTrimKV's performance compared to full-cache without the MMDU training data:* we are training a variant on M4-Images and Academic Video and will evaluate it on MMDU to measure how well it transfers; we will report the results as soon as they are available. That said, because MMDU differs in distribution from these two datasets (MMDU requires multi-turn recall), we would not expect it to outperform full cache or to show a large margin over other baselines — DBTrimKV is a learnable method and ultimately relies on supervision from in-domain training data.\n\nWe also agree that KV eviction removes tokens and is therefore, in principle, lossy: one can always construct queries for which DBTrimKV, or KV eviction in general, underperforms full-cache inference. However, some queries are unlikely in practice, so removing unused KV tokens can reduce the dilution effect and sharpens attention for other in-domain queries (as shown in our Figure 2a). Our goal is to identify these unlikely to be used KV tokens to remove. That's why budget allocation question is as important as importance scoring question since each attention head has a different attention pattern (thus different redundancy) as shown in our Figure 2b.\n\nFor those reasons, we view the gains from in-domain training data as the natural operating regime, and would not claim or expect that a gate trained on an out-of-distribution dataset would beat full-cache inference in practice. Instead, we would expect that, if the computational budget allows, DBTrimKV trained on more general data or even in pre-training stage would better generalize to unseen domains. This is generalization question as proposed by Reviewer UeJL. We provide a small investigation of this out-of-distribution generalization as follows.\n\n*If the reviewer's concern is about DBTrimKV's generalization to out-of-distribution domains:* we include the following experiment (also given in our response to Reviewer UeJL, reproduced here in case it helps). We train Qwen3-4B on **general QA data** (Synth-32K, BookSum, Buddhi — the general datasets from the TrimKV paper, with *no* math or reasoning-mode supervision) and then test on **AIME24**, a math-reasoning benchmark the gate never saw:\n\n| Method \\ KV budget | 512 | 1024 | 2048 | 4096 |\n|---|--:|--:|--:|--:|\n| SnapKV | 1.2 | 15.7 | 41.1 | 62.4 |\n| R-KV | 1.9 | 18.5 | 42.7 | 63.6 |\n| SeerAttention-R (trained on OpenR1-Math) | 47.0 | 66.6 | 71.4 | 71.0 |\n| DBTrimKV (trained on OpenR1-Math) | 67.9 | 73.8 | 72.9 | 74.2 |\n| DBTrimKV (trained on general QA) | 36.7 | 56.2 | 63.3 | 68.8 |\n\nEven when trained on this general, off-task mixture, DBTrimKV outperforms all heuristic methods by a wide margin, and at larger budgets it approaches SeerAttention-R — despite SeerAttention-R being trained specifically on mathematical-reasoning data. This is notable because SeerAttention-R is a retrieval-based method that performs no eviction and is trained in-domain; it offloads the KV cache to CPU memory, paying CPU-to-GPU transfer costs and offering no inference speed-up.\n\nWe thank the reviewer again for the prompt response and appreciate actionable feedback to strengthen our paper. We will revise our paper thoroughly to make it clear and avoid confusion and over-interpreting our results. Please let us know if we can address any remaining concerns the reviewer might have."+ },+ "createdAt": "2026-08-01T18:23:49.993Z",+ "modifiedAt": "2026-11-19T17:01:01.556Z",+ "url": "https://openreview.net/forum?id=VBVa8FIJRl¬eId=4Af6Te9HAL",+ "license": "CC-BY-4.0"+}
reviews/openreview/vbva8fijrl/notes/cpau0jmmoz.json added
+++ b/reviews/openreview/vbva8fijrl/notes/cpau0jmmoz.json@@ -0,0 +1,15 @@+{+ "schema": "review/1",+ "id": "cpAu0jMMoz",+ "replyTo": "nFBLvtSSM4",+ "kind": "comment",+ "invitation": "Official_Comment",+ "signature": "Reviewer UeJL",+ "content": {+ "comment": "Thank you for the response, I've updated my score.\nRegarding the runtime breakdown, majority of the delta seems to come from the batch-1 bubble. I'd highly recommend diving deeper and understanding it further. One potential direction could be to try using CUDA graphs (for both TrimKV and DBTrimKV) and see if it reduces the overhead."+ },+ "createdAt": "2026-08-02T00:15:20.615Z",+ "modifiedAt": "2026-11-19T17:01:01.643Z",+ "url": "https://openreview.net/forum?id=VBVa8FIJRl¬eId=cpAu0jMMoz",+ "license": "CC-BY-4.0"+}
reviews/openreview/vbva8fijrl/notes/olwxarygei.json modified
+++ b/reviews/openreview/vbva8fijrl/notes/olwxarygei.json@@ -5,11 +5,12 @@"kind": "meta_review","invitation": "Meta_Review","signature": "Area Chair KiLZ","content": {- "metareview": "Overall, the paper is well presented and offers both theoretical and empirical contributions to an important problem. The work could be further strengthened by addressing the following issues:\n\n(1) Detailed breakdown of the efficiency comparison.\nFigure 6 shows that DBTrimKV underperforms TrimKV in efficiency, but the current explanation is too brief to clarify the source of this gap. A more detailed breakdown of the computational and memory overhead is needed to identify which components of DBTrimKV account for the performance lag and under what settings the additional cost becomes significant.\n\n(2) Comparison with a broader range of baselines.\nAs suggested by Reviewer UeJL, the empirical evaluation would benefit from including additional relevant baselines, such as CAKE and HeadKV. These comparisons would help position DBTrimKV more clearly relative to closely related methods.\n\n(3) Connection between the theoretical analysis and practical implementation.\nAlthough the theoretical results are potentially valuable, their relationship to the proposed implementation should be explained more explicitly. Establishing a clearer theory-to-practice connection would improve the coherence and significance of the paper. For example, it is currently unclear how Propositions 3.1 and 3.2 motivate or inform the design of DBTrimKV. The authors should clarify whether these propositions directly lead to specific algorithmic components, design choices, or empirical predictions.\n\nOne reviewer also raised concerns about novelty. Although the paper studies a relatively established problem, its novelty could be better substantiated by articulating the unique contributions more clearly. In particular, the authors could emphasize how the theoretical analysis informs the practical method, what new insights are revealed by the empirical results, and how DBTrimKV differs fundamentally from existing approaches."+ "metareview": "Overall, the paper is well presented and offers both theoretical and empirical contributions to an important problem. The work could be further strengthened by addressing the following issues:\n\n(1) Detailed breakdown of the efficiency comparison.\nFigure 6 shows that DBTrimKV underperforms TrimKV in efficiency, but the current explanation is too brief to clarify the source of this gap. A more detailed breakdown of the computational and memory overhead is needed to identify which components of DBTrimKV account for the performance lag and under what settings the additional cost becomes significant.\n\n(2) Comparison with a broader range of baselines.\nAs suggested by Reviewer UeJL, the empirical evaluation would benefit from including additional relevant baselines, such as CAKE and HeadKV. These comparisons would help position DBTrimKV more clearly relative to closely related methods.\n\n(3) Connection between the theoretical analysis and practical implementation.\nAlthough the theoretical results are potentially valuable, their relationship to the proposed implementation should be explained more explicitly. Establishing a clearer theory-to-practice connection would improve the coherence and significance of the paper. For example, it is currently unclear how Propositions 3.1 and 3.2 motivate or inform the design of DBTrimKV. The authors should clarify whether these propositions directly lead to specific algorithmic components, design choices, or empirical predictions.\n\nOne reviewer also raised concerns about novelty. Although the paper studies a relatively established problem, its novelty could be better substantiated by articulating the unique contributions more clearly. In particular, the authors could emphasize how the theoretical analysis informs the practical method, what new insights are revealed by the empirical results, and how DBTrimKV differs fundamentally from existing approaches.",+ "final_justification": "As the initial reviews are positive, I keep my original recommendation."},"createdAt": "2026-07-19T02:33:14.587Z",- "modifiedAt": "2026-11-18T15:24:59.641Z",+ "modifiedAt": "2026-11-19T05:03:09.374Z","url": "https://openreview.net/forum?id=VBVa8FIJRl¬eId=olWXaRyGEi","license": "CC-BY-4.0"}
reviews/openreview/vbva8fijrl/notes/qbejykldcl.json added
+++ b/reviews/openreview/vbva8fijrl/notes/qbejykldcl.json@@ -0,0 +1,15 @@+{+ "schema": "review/1",+ "id": "qBEJYkldCl",+ "replyTo": "4Af6Te9HAL",+ "kind": "comment",+ "invitation": "Official_Comment",+ "signature": "Reviewer uKJ5",+ "content": {+ "comment": "I am holding at 4. My earlier reason, that significance was declined rather than supplied, is no longer accurate and I withdraw it. You supplied it. \n\nThe reason now is what it showed: the surpass framing in the submitted manuscript is not supported by these numbers, and no revision is permitted this cycle. The cross-domain gate result is a useful addition and I accept the constructive obstacle to the MMDU evaluation I asked for.\n\nThe fixed-budget compression result is untouched by any of this and remains the paper's strongest contribution."+ },+ "createdAt": "2026-08-03T11:48:58.904Z",+ "modifiedAt": "2026-11-19T17:01:01.510Z",+ "url": "https://openreview.net/forum?id=VBVa8FIJRl¬eId=qBEJYkldCl",+ "license": "CC-BY-4.0"+}
reviews/openreview/vbva8fijrl/notes/t7zy0jcjpu.json added
+++ b/reviews/openreview/vbva8fijrl/notes/t7zy0jcjpu.json@@ -0,0 +1,16 @@+{+ "schema": "review/1",+ "id": "T7zY0jCjPU",+ "replyTo": "Yf9CgMB8W3",+ "kind": "comment",+ "invitation": "Official_Comment",+ "signature": "Authors",+ "content": {+ "title": "Response to Reviewer uKJ5 Comment (1/2)",+ "comment": "We thank the reviewer for the prompt and actionable feedback, and we apologize for the delayed response. We had to re-run Vanilla (full-cache) inference for MathVision, MMStar, and MMMU-Pro, as the original per-item predictions were no longer available. These reasoning evaluations generate up to 32K-token trajectories and are therefore expensive to reproduce. The re-run Vanilla numbers differ slightly from those reported in the paper (e.g., MathVision 48.68 → 49.01, MMStar 71.52 → 71.98) because `lmms-eval` is not deterministic across batch sizes (due to their padding mechanism): to accelerate the re-run we used a smaller batch size (4) on more GPUs, whereas the original experiments used a batch size of 32.\n\n**Paired significance tests.** We ran the requested tests on all 17 (benchmark × budget) cells the paper marks as exceeding full cache — exact McNemar and an item-level bootstrap (10,000 resamples, 95% CI) on the saved per-item predictions:\n\n| Task | M | Vanilla | DBTrimKV | Δ | p (McNemar) | p (bootstrap) | verdict |\n|---|--:|--:|--:|--:|--:|--:|:--|\n| MMStar | 512 | 71.98 | 71.85 | −0.13 | 0.771 | 0.721 | tie \\* |\n| MathVision-mini | 1024 | 49.01 | 52.63 | +3.62 | 0.193 | 0.162 | tie |\n| MathVision-mini | 512 | 49.01 | 51.97 | +2.96 | 0.343 | 0.312 | tie |\n| MathVision-mini | 256 | 49.01 | 51.64 | +2.63 | 0.382 | 0.348 | tie |\n| MMMU-Pro-vision | 1024 | 40.98 | 41.21 | +0.23 | 0.871 | 0.848 | tie |\n| **MMMU-Pro-vision** | **512** | 40.98 | 43.99 | +3.01 | **0.007** | **0.003** | **significant** |\n| MMMU-Pro-vision | 256 | 40.98 | 41.91 | +0.92 | 0.451 | 0.420 | tie |\n| VideoMME | 1024 | 54.22 | 54.93 | +0.71 | 0.290 | 0.269 | tie |\n| VideoMME | 512 | 54.22 | 54.41 | +0.19 | 0.817 | 0.774 | tie |\n| VideoMME | 128 | 54.22 | 54.85 | +0.63 | 0.424 | 0.403 | tie |\n| VideoMMMU-adapt | 1024 | 35.67 | 37.00 | +1.33 | 0.720 | 0.665 | tie |\n| VideoMMMU-adapt | 256 | 35.67 | 39.00 | +3.33 | 0.282 | 0.247 | tie |\n| VideoMMMU-comp | 1024 | 55.00 | 59.33 | +4.33 | 0.182 | 0.160 | tie |\n| **VideoMMMU-comp** | **512** | 55.00 | 61.33 | +6.33 | **0.053** | **0.043** | *borderline* |\n| VideoMMMU-comp | 256 | 55.00 | 57.00 | +2.00 | 0.581 | 0.544 | tie |\n| VideoMMMU-comp | 128 | 55.00 | 57.00 | +2.00 | 0.621 | 0.581 | tie |\n| VideoMathQA | 1024 | 36.19 | 36.43 | +0.24 | 1.000 | 0.965 | tie |\n\n\\* MMStar@512: Table-1 reports 71.52 → 71.85 (a claimed surpass); our faithful full-cache re-run scores 71.98, turning it into a tie (the +0.46 vs Table-1 is full-cache re-run variance).\n\n**Result.** Across the 17 cells, one — MMMU-Pro@512 (+3.01, McNemar p=0.007, bootstrap p=0.003) — exceeds full cache with statistical significance; VideoMMMU-comp@512 (+6.33) is borderline (McNemar p=0.053, bootstrap p=0.043); the remaining cells are statistical ties. MMStar and VideoMME are simpler tasks so that LLMs can answer with short reasoning, we do not see differences among KV evictions on these tasks. DBTrimKV will be more helpful on more challenging tasks that require long-reasoning. We thank the reviewer for prompting this analysis and will report it in the revision.\n\n**On claims and framing.** Our aim is to highlight the potential of KV eviction to mitigate attention dilution, and to argue for a change of perspective — eviction need not be viewed merely as an efficiency technique that always degrades performance. We hope these encouraging results motivate further work in this direction, where performance and efficiency can improve together rather than always trade off. That said, we agree that some wording and claims should be tightened to avoid over-interpreting our results, and we will revise the paper thoroughly."+ },+ "createdAt": "2026-08-01T18:17:42.214Z",+ "modifiedAt": "2026-11-19T17:01:01.575Z",+ "url": "https://openreview.net/forum?id=VBVa8FIJRl¬eId=T7zY0jCjPU",+ "license": "CC-BY-4.0"+}
reviews/openreview/vbva8fijrl/notes/zlgx7hvqki.json added
+++ b/reviews/openreview/vbva8fijrl/notes/zlgx7hvqki.json@@ -0,0 +1,15 @@+{+ "schema": "review/1",+ "id": "zlGX7HvqkI",+ "replyTo": "Yf9CgMB8W3",+ "kind": "comment",+ "invitation": "Official_Comment",+ "signature": "Reviewer uKJ5",+ "content": {+ "comment": "Thanks for your response.\n\nI am holding at 4 rather than raising for one reason: significance was declined rather than supplied. \nOne request that needs no retraining, run paired McNemar or an item-level bootstrap on your already-saved per-item predictions for the cells you claim surpass Vanilla (counting from Table 1, 17 of 35 exceed, but 6 of those by under 1 point). \n\nSeparately, if you already hold both checkpoints, evaluating the math-trained gate on MMDU would settle whether the effect is a general dilution effect or in-domain-learned selection; either result would further strengthen this work."+ },+ "createdAt": "2026-07-31T13:20:37.384Z",+ "modifiedAt": "2026-11-19T17:01:01.597Z",+ "url": "https://openreview.net/forum?id=VBVa8FIJRl¬eId=zlGX7HvqkI",+ "license": "CC-BY-4.0"+}