Manuscript Offprint
arXiv:2611.05903EchoKV: Self-Corrective KV Cache Eviction via Iterative Query Feedback
Abstract
KV cache eviction is not merely a token-ranking problem: the workspace retained for generating eviction queries also determines the quality of those queries. Consequently, an early workspace error can distort later query observations and reinforce an incorrect final eviction decision, particularly when evidence is dispersed across a long context. We present EchoKV, which discovers and addresses this failure mode with iterative correction. It initializes a feedback-compatible bootstrap workspace using proposals at future decode positions, then uses early decode-generated queries to recover the workspace before the remaining lookahead steps. It uses the same number of workspace forward passes as LAQ while adding a tensor re-scoring operation for workspace repair. On LongBench (16 tasks, Mistral-7B-Instruct-v0.2 and Qwen2.5-7B-Instruct), EchoKV shows notable improvements over LAQ on several tasks requiring dispersed evidence, including multi-hop cross-document QA and long single-document comprehension. Across budgets and backbones, EchoKV selectively improves evidence-intensive tasks while maintaining comparable performance on the remaining LongBench subsets. These results identify query–workspace coupling as a practical failure mode of query-driven KV eviction.
1 Introduction
KV cache eviction is not merely a token-ranking problem. In query-driven eviction, the tokens retained during workspace construction determine the future queries used for subsequent eviction decisions. This creates a self-dependent feedback loop: an early omission changes the hidden states, the changed hidden states produce drifting queries, and those queries can reinforce the original omission.
The deployment of LLMs in long-context settings is bottlenecked by the growth of the KV cache. Eviction-based approaches (Zhang et al., 2023; Li et al., 2024; Wang et al., 2025) selectively discard cache entries deemed unimportant for future generation, enabling sub-linear cache sizes at the cost of approximation error.
A key insight of LAQ (Wang et al., 2025) is that eviction quality improves when the selection query reflects future decode queries rather than the tail of the prompt. LAQ generates greedy lookahead tokens on a compressed workspace, collects their queries, and uses them to re-score the full prompt KV. While effective, LAQ leaves this feedback loop unresolved:
Window-biased stage-1 compression. LAQ builds its lookahead workspace via SnapKV (Li et al., 2024), which scores token importance using only the last prompt queries. For tasks where relevant content is spread across multiple document sections (e.g. QASPER) or requires multi-hop reasoning (e.g. HOTPOTQA), the window is unlikely to capture all necessary evidence, leading to a degraded workspace and, consequently, degraded lookahead queries.
This failure is self-reinforcing rather than a one-time ranking error. Once an initial workspace excludes relevant evidence, the model generates lookahead queries from hidden states that cannot attend to that evidence; later eviction scores are therefore conditioned on a distorted observation. A robust solution must address both stages of this loop: it must construct a decoding-aligned workspace before any generated query is available, and it must give the model an opportunity to use early queries to revise an imperfect initial workspace. This perspective motivates EchoKV's feedback-compatible workspace bootstrap and its feedback-driven workspace repair.
We present EchoKV with the following contributions:
- Diagnosis. We formulate query-driven
KV eviction as a partially observable, self-dependent process: workspace quality conditions the query observations used to make the next eviction decision. We provide a direct measurement (Section 3) showing that query fidelity to true decode queries degrades with lookahead depth on a frozen workspace.
-
Closed-loop correction. EchoKV turns KV eviction into a closed-loop correction process. It constructs a feedback-compatible bootstrap workspace before any decoded query exists, then uses round-1 generated queries not only for final scoring but also for feedback-driven workspace repair. Future-position proposals are used only for initialization. The method uses forward passes over a -sized workspace— identical to LAQ—plus one tensor re-scoring pass.
-
Targeted gains without overclaiming. On 16-task LongBench, EchoKV's most consistent gains occur on dispersed-evidence tasks such as multi-hop QA and cross-passage retrieval. Its aggregate performance is comparable to LAQ, which motivates a failure-mode-specific claim rather than a universal one.
precision quantization with outlier handling. These methods are complementary to EchoKV: quantization changes the representation precision, whereas EchoKV improves which entries are retained for the decode cache.
Pseudo-query eviction. LAQ (Wang et al., 2025) first introduced greedy lookahead queries for KV eviction and demonstrated consistent gains over window-based methods across budgets. DapQ (Tian et al., 2026) shows that query position can strongly affect which keys are ranked highest, and therefore replaces the observation window with position-aware pseudo-queries synthesised at future decode positions—obtaining a decoding-aligned observation window without decoding at all. EchoKV repurposes positional pseudo-queries for a distinct role: initializing the first feedback-compatible workspace before any model-generated query exists. DapQ addresses where an eviction query should look; EchoKV addresses how to construct the first workspace that makes subsequent generated queries reliable. The latter is coupled with feedback-driven workspace repair, which iteratively corrects the workspace using model-generated queries once content-level evidence about the answer becomes available.
Long-context retrieval and memory. Memory-augmented models extend the effective context through retrieved or recurrent state, including kNN memory in Memorizing Transformers (Wu et al., 2022), recurrent memory tokens in RMT (Bulatov et al., 2022), and tiered virtual context management in MemGPT (Packer et al., 2023). These approaches change the memory architecture or introduce an external memory-management policy. EchoKV instead operates on the KV cache of an unmodified decoder at inference time. This makes long-context RAG and agent memory motivating application settings, not direct evaluation claims in this paper.
Iterative inference methods, such as speculative decoding and Self-Refine (Leviathan et al., 2023; Madaan et al., 2023), adapt computation using intermediate outputs; EchoKV instead applies feedback to the eviction workspace.
3 Observations
This section measures a query-fidelity pattern that motivates EchoKV's feedback-driven workspace repair. Let denote the step- query for layer
and KV group , obtained by greedy decoding on the uncompressed KV cache. Let be the top- token indices selected by query set under the scoring rule in Eq. (3). KV overlap is
where and are the layer and KV-group sets. An overlap of 1 means exact agreement on the retained token indices.
3.1 Greedy-lookahead fidelity decays with step count
LAQ generates greedy tokens on a frozen workspace and uses all queries for final eviction. If every step contributed equal fidelity to , nothing would be gained by refreshing the workspace mid-lookahead: one-shot on the best available would already be optimal.
Table 1 shows the opposite. On a frozen workspace, KV overlap with falls as grows. This decline is consistent with error accumulation along the query trajectory, although it does not by itself identify the source of the drift. Overlap drops from 0.92 at to 0.77 at (a 16% relative decline), with the steepest degradation occurring in the second half ( for steps 3, 6, 8). The Refreshed row shows that rebuilding the workspace at using round-1 queries halts the decay: overlap recovers in the second half, reaching 0.85 at and 0.80 at (versus 0.83 and 0.77 for the frozen baseline)—a relative improvement of +2.4% and +3.9% respectively. The joint pool from the refreshed path therefore better approximates the oracle's selection behavior in this measurement.
This pattern provides empirical evidence consistent with the proposed error-propagation mechanism: under a frozen workspace, query–KV overlap declines across lookahead steps, while midpoint refreshing partially recovers it. This observation does not isolate the source of the drift, but motivates the recovery schedule at equal forward-pass count.
4 Method
4.1 Stage-1: Feedback-Compatible Workspace Bootstrapping
The workspace selection problem. The bootstrap workspace must be selected at prefill—
| Workspace strategy | KV overlap at step k | |||
|---|---|---|---|---|
| Frozen ( steps on ) | 0.92 | 0.88 | 0.83 | 0.77 |
| Refreshed at (ours) | 0.92 | 0.88 | 0.85 | 0.80 |
Table 1: KV overlap with the true step- query (budget , Mistral-7B-Instruct-v0.2, samples from HotpotQA, Qasper, PassageRetrieval-en, and NarrativeQA, averaged over all layers). Overlap measures the fraction of top- tokens selected by a workspace-based pseudo-query that match the oracle selection, where 1.0 indicates perfect agreement. The frozen baseline shows monotonic degradation; refreshing at the midpoint recovers +2.4% and +3.9% relative overlap at steps 6 and 8.
before any decode queries are observed—yet it determines which prompt tokens remain accessible during all lookahead steps. Its purpose is not to make the final eviction decision, but to preserve enough evidence for the first generated queries to support reliable subsequent correction. Prior work (SnapKV, LAQ) scores the full prompt KV cache using the last prompt queries, issued at positions . Under RoPE, these queries assign exponentially decaying attention weights to earlier tokens purely due to relative-distance penalties, systematically under-selecting evidence from the prompt's first half even when that evidence is critical for future decode queries at positions . We address this with position-diverse proposals that approximate the union of attention patterns across all decode steps.
Position-aware proposal generation. Our construction uses the positional pseudo-query mechanism of DapQ (Tian et al., 2026): because the RoPE phase of a query determines the relative distances at which it attends most strongly, a query rotated to a future position behaves like a query issued at that position, even though its content is inherited from the prompt. DapQ uses this to build a decoding-aligned observation window for eviction; we repurpose it to bootstrap the greedy workspace, where no decoded token is yet available and position is the only reliable signal. This bootstrap is not a final eviction score: it establishes the observation substrate on which model-generated feedback can subsequently be obtained.
Let be the prompt length, the KV cache for layer and KV group , and the key dimension. We use semantic anchors per layer; in all experiments ,

Figure 1: EchoKV overview. Bootstrap builds a feedback-compatible workspace using future-position proposals (queries rotated to future decode positions), then decodes tokens to collect . Feedback-driven repair: re-scores the full prompt KV to rebuild . Round 2: decodes another tokens on to collect ; the joint pool drives final eviction from tokens to budget . Total cost: forwards on the workspace plus one additional re-scoring pass.
namely the final prompt query. For anchor , let be its pre-RoPE vector. denotes the RoPE rotation at absolute position . Rotating each anchor to the future positions yields proposals:
Here and . For any query set , we score prompt token by accumulating its attention probability across queries:
Here, returns the indices of the largest entries; thus and the bootstrap workspace is . We evaluate the softmax in chunks over tokens. For grouped-query attention, queries are mapped to their shared KV group before applying Eq. (3); thus all selection is performed per layer and KV group.
4.2 Final Query Selection: Why Decode-Generated Queries Dominate
Stage 1 selects a workspace; final eviction must make the precise choice of which tokens survive.
A natural cheap alternative is to score with a real observation window—the last prompt queries, as SnapKV and its descendants do. We deliberately do not, for four reasons.
(1) A real window has the wrong RoPE phase. The queries that will actually read the surviving cache are issued at absolute positions , whereas a real window lives at positions . Under RoPE, the score depends on the relative offset , so shifting the query position reorders which keys rank highest. This is precisely DapQ's observation, and it is why our stage 1 rotates proposals forward instead of reading the window directly. A real window cannot be repositioned without ceasing to be real.
(2) A real decode window is not obtainable at prefill. One could instead observe oracle decode queries by generating the first few tokens and recording them on the uncompressed cache. Waiting for a genuine observation window costs full-cache forward passes at peak memory per layer, which forfeits the memory saving that motivates eviction. Generated pseudo queries run on the -sized workspace instead, so the cost is with .
| Layer | Locked | Linear | Prompt |
|---|---|---|---|
| 0 | 0.804 | 0.853 | 0.927 |
| 8 | 0.472 | 0.430 | 0.631 |
| 16 | 0.275 | 0.334 | 0.599 |
| 24 | 0.447 | 0.368 | 0.541 |
| 31 | 0.325 | 0.328 | 0.427 |
Table 2: KV overlap at step (budget 128) for position-only approximation strategies against the true decode query. Prompt: rotate the last prompt query to future positions. Locked: rotate a real anchor query from a compressed workspace. Linear: linearly extrapolate query content.
(3) Generated queries match the decode distribution in content as well as position. A rotated proposal is position-correct but content-stale: it still carries the semantics of the prompt's last token. Once a workspace exists, the model can be run autoregressively on it, and the resulting queries are produced by the same network, in the same decode regime, at the correct future positions—so they match the target distribution along both axes. Table 2 quantifies the gap that remains for position-only approximations: KV overlap with the true step-3 query falls to 0.427 at layer 31, indicating that position alone is insufficient for final selection in deeper layers.
(4) Only generated queries permit error correction. A real window is a single fixed measurement: if the evidence it points to is incomplete, nothing downstream can detect this. Generated queries provide a decode-conditioned signal for revisiting stage-1 choices. This is what makes iteration meaningful: re-scoring the full cache with round-1 queries can recover evidence the initial workspace dropped. A fixed observation window offers no such feedback signal, and neither does one-shot lookahead on a frozen workspace.
Points (3) and (4) together imply the specific scheme below: generate, use the generated queries to rebuild the workspace, then generate again.
4.3 Feedback-Driven Workspace Repair
Standard greedy lookahead runs all steps on a fixed workspace , accumulating queries that drive final eviction from the full cache to the final budget . If omits useful tokens, later generated queries may be less faithful to the uncompressed-cache trajectory.
We break this compounding via feedback-driven workspace repair. The first greedy steps pro-
duce queries that reveal which prompt regions the model attempts to attend to, even on incomplete . We use as a diagnostic signal to re-score the full prompt KV cache—still resident at prefill—and rebuild the workspace to before continuing. The second steps then run on , producing queries from the refreshed workspace. The joint pool drives final eviction.
Two-round decode scheme. Concretely:
-
Round 1. Decode tokens greedily on (size ), starting from the prompt's boundary token. Accumulate per-layer queries .
-
Rebuild workspace. Score the full prompt KV cache (size ) with under the same attention-pooling rule in Eq. (2). Select top- tokens per layer and KV group .
-
Round 2. Continue greedy decode for the remaining tokens on , starting from the token generated at step . Accumulate queries .
Total forward passes remain (identical to LAQ). The workspace rebuild is a scoring operation over existing tensors. Its cost scales linearly with prompt length and with the round-1 queries per layer; it requires no additional transformer calls. Table 1 provides supporting evidence: KV overlap with oracle queries degrades monotonically from 0.92 to 0.77 on a frozen workspace but recovers to 0.85/0.80 at steps 6 and 8 after the midpoint refresh, consistent with the value of refreshing the workspace mid-lookahead. The recovery step is one additional KV-scoring pass; its relative cost grows with context length, as discussed below. Final eviction then uses jointly to select the final tokens from the full KV cache.
Complexity and overhead. EchoKV adds to standard full-cache prefill two costs: (a) greedy decode steps over a -sized workspace—cost , identical to LAQ, with ; and (b) one mid-point re-scoring pass over the full prompt KV using query vectors per layer. EchoKV, like other post-prefill eviction methods, retains the full KV cache until final selection; it then reduces the retained decode cache to tokens. No additional transformer forward passes are required, and recovery is a tensor re-scoring operation. EchoKV therefore has end-to-end latency that depends on prompt length and implementation; we therefore do not claim latency parity beyond the equal number of workspace forward passes.
| Method | Budget | Single-Doc | Multi-Doc | Summ | Few-shot | Synth | Code | Avg | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Nrtv | Qas | MF | Hot | 2Wiki | Mus | Gov | QM | MN | TREC | TQA | SAM | PC | PR | Lcc | RB | |||
| FullKV | - | 26.90 | 33.14 | 49.26 | 42.77 | 27.35 | 18.77 | 32.95 | 24.21 | 27.13 | 71.00 | 86.23 | 42.72 | 2.75 | 86.98 | 57.12 | 54.51 | 42.74 |
| StreamingLLM | 128 | 17.12 | 13.43 | 27.31 | 29.54 | 21.91 | 11.94 | 15.61 | 19.18 | 17.72 | 44.00 | 79.92 | 37.37 | 3.50 | 23.77 | 51.44 | 45.95 | 28.73 |
| H₂O | 128 | 21.62 | 21.34 | 38.61 | 30.46 | 20.38 | 12.20 | 20.59 | 22.51 | 22.03 | 39.00 | 82.33 | 40.64 | 3.06 | 80.56 | 51.17 | 48.46 | 34.69 |
| SnapKV | 128 | 19.71 | 21.13 | 42.75 | 36.45 | 22.36 | 15.76 | 19.05 | 21.81 | 21.36 | 47.50 | 84.15 | 40.29 | 2.41 | 68.26 | 52.26 | 48.75 | 35.25 |
| PyramidKV | 128 | 21.98 | 22.78 | 43.78 | 32.30 | 22.31 | 15.81 | 20.41 | 21.82 | 21.23 | 66.00 | 83.51 | 39.83 | 2.99 | 65.81 | 51.61 | 46.42 | 36.16 |
| LAQ (T=8) | 128 | 24.94 | 27.77 | 45.43 | 40.35 | 25.25 | 17.91 | 22.06 | 22.68 | 22.50 | 69.50 | 86.36 | 41.16 | 1.49 | 76.85 | 53.31 | 51.02 | 39.29 |
| EchoKV (ours) | 128 | 26.11 | 27.51 | 46.45 | 41.89 | 24.85 | 17.59 | 21.39 | 22.43 | 22.56 | 69.50 | 85.86 | 41.44 | 2.97 | 78.21 | 53.45 | 50.52 | 39.55 |
| StreamingLLM | 256 | 19.22 | 15.08 | 28.01 | 30.40 | 22.02 | 11.21 | 18.09 | 19.59 | 20.09 | 51.00 | 80.71 | 39.89 | 2.96 | 18.40 | 54.30 | 47.38 | 29.90 |
| H₂O | 256 | 21.42 | 23.04 | 42.60 | 30.75 | 22.42 | 13.82 | 22.35 | 22.54 | 23.12 | 40.50 | 83.78 | 40.73 | 3.51 | 85.85 | 53.18 | 49.95 | 36.22 |
| SnapKV | 256 | 22.44 | 24.07 | 48.01 | 38.66 | 22.66 | 15.59 | 21.83 | 23.23 | 22.94 | 61.50 | 85.45 | 41.32 | 3.13 | 85.79 | 55.11 | 51.73 | 38.97 |
| PyramidKV | 256 | 21.69 | 25.18 | 47.61 | 38.77 | 26.12 | 15.23 | 22.52 | 22.52 | 22.59 | 68.00 | 84.27 | 42.10 | 3.43 | 76.60 | 53.08 | 48.40 | 38.63 |
| LAQ (T=8) | 256 | 24.68 | 29.25 | 48.00 | 40.56 | 26.01 | 18.24 | 24.04 | 22.96 | 23.80 | 70.00 | 85.81 | 42.52 | 2.01 | 82.34 | 54.96 | 53.00 | 40.51 |
| EchoKV (ours) | 256 | 25.39 | 29.74 | 47.97 | 41.86 | 26.75 | 18.71 | 23.61 | 23.51 | 23.72 | 70.50 | 86.46 | 43.18 | 3.28 | 83.64 | 54.92 | 52.27 | 40.97 |
| StreamingLLM | 512 | 20.91 | 16.47 | 30.56 | 29.62 | 22.16 | 11.02 | 21.51 | 20.10 | 23.03 | 61.50 | 81.86 | 41.66 | 2.84 | 18.57 | 55.27 | 49.07 | 31.63 |
| H₂O | 512 | 21.72 | 25.54 | 44.72 | 32.39 | 23.16 | 14.75 | 23.61 | 23.03 | 24.58 | 42.00 | 85.22 | 41.61 | 3.42 | 86.45 | 54.82 | 51.11 | 37.38 |
| SnapKV | 512 | 24.14 | 28.11 | 48.78 | 39.49 | 25.09 | 17.40 | 23.67 | 23.18 | 24.60 | 67.00 | 85.88 | 41.39 | 2.78 | 86.56 | 56.61 | 53.47 | 40.51 |
| PyramidKV | 512 | 22.99 | 28.74 | 48.45 | 39.73 | 25.74 | 16.58 | 24.48 | 23.40 | 24.52 | 70.00 | 85.99 | 42.40 | 3.32 | 81.63 | 55.93 | 52.38 | 40.39 |
| LAQ (T=8) | 512 | 24.65 | 31.21 | 49.15 | 39.90 | 27.18 | 18.38 | 25.55 | 23.91 | 24.87 | 71.00 | 86.33 | 42.14 | 1.87 | 86.41 | 56.84 | 53.08 | 41.40 |
| EchoKV (ours) | 512 | 25.52 | 30.69 | 48.73 | 41.93 | 26.65 | 19.33 | 25.48 | 23.64 | 25.29 | 71.00 | 86.43 | 42.43 | 2.75 | 86.35 | 56.64 | 52.99 | 41.62 |
Table 3: LongBench results on Mistral-7B-Instruct-v0.2 across budgets . Column groups: Single-Doc QA (Nrtv=NarrativeQA, Qas=Qasper, MF=MultifieldQA-en); Multi-Doc QA (Hot=HotpotQA, 2Wiki=2WikiMQA, Mus=Musique); Summ (Gov=GovReport, QM=QMSum, MN=MultiNews); Few-shot (TREC, TQA=TriviaQA, SAM=SAMSum); Synthetic (PC=PassageCount, PR=PassageRetrieval-en); Code (Lcc, RB=RepoBench-P). Bold and underline denote the best and second-best compression methods, respectively, within each budget (excluding FullKV).
Algorithm 1 EchoKV self-corrective eviction at prefill (per sample)
Require: Prompt, budget , , workspace capacity
1: Run full prefill; store full KV
2: for each layer do
3: Build proposals via Eq. (1)
4: Score with proposals; keep top-
5: end for
6: Run greedy steps on ; collect
7: for each layer do
8: Re-score with ; keep top-
9: end for
10: Run greedy steps on ; collect
11: Re-score with ; keep top- final cache
Potential applications. Several tasks on which EchoKV improves, including HOTPOTQA and 2WIKIMQA, require connecting facts from non-adjacent context segments. Exactly this pattern arises in (i) Long-Context RAG, where retrieved passages are concatenated and the model must locate relevant spans scattered across the context; (ii) multi-document reasoning, where supporting evidence appears in different source documents; and (iii) agent long-context memory, where tool outputs and observations from many prior turns accumulate in the context window and must be recalled coherently. Standard window-biased eviction can drop this dispersed evidence early; EchoKV's feedback-compatible bootstrap and feedback-driven repair are designed to preserve it. These are motivating application patterns, rather than claims of performance on dedicated RAG or agent-memory benchmarks; evaluating them on such benchmarks is future work.
5 Experiments
5.1 Setup
Model and data. We evaluate on two backbones with Flash Attention 2: Mistral-7B-Instruct-v0.2 and Qwen2.5-7B-Instruct. Mistral serves as the primary model, matching the setting of LAQ (Wang et al., 2025) so that our numbers are directly comparable to published baselines; Qwen2.5-7B-Instruct tests whether the method transfers across attention configurations (Qwen2.5 uses grouped-query attention with a different head/KV-group ratio). Both are evaluated on the 16 English subsets of LongBench (Bai et al., 2024), spanning single-document QA (NARRATIVEQA, QASPER, MULTIFIELDQA-EN), multi-document QA (HOTPOTQA, 2WIKIMQA, MUSIQUE), summarization (GOVREPORT, QMSUM, MULTI-
| Method | Budget | Single-Doc | Multi-Doc | Summ | Few-shot | Synth | Code | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Nrtv | Qas | MF | Hot | 2Wiki | Mus | Gov | QM | MN | TREC | TQA | SAM | PC | PR | Lcc | RB | Avg | ||
| FullKV | - | 17.07 | 43.76 | 52.61 | 57.70 | 47.13 | 29.85 | 32.00 | 23.61 | 23.95 | 39.50 | 87.65 | 40.08 | 8.50 | 100.00 | 6.62 | 9.79 | 38.74 |
| StreamingLLM | 128 | 11.77 | 23.65 | 26.44 | 40.90 | 37.09 | 16.42 | 16.12 | 18.03 | 14.69 | 12.00 | 76.26 | 35.50 | 8.50 | 24.50 | 10.26 | 13.44 | 24.10 |
| H2O | 128 | 16.61 | 29.58 | 37.25 | 51.04 | 42.14 | 20.82 | 20.33 | 22.05 | 18.07 | 18.50 | 80.85 | 39.04 | 8.50 | 98.00 | 6.29 | 9.77 | 32.43 |
| SnapKV | 128 | 16.23 | 32.72 | 45.14 | 52.95 | 44.10 | 24.16 | 19.27 | 20.81 | 17.27 | 21.50 | 85.83 | 37.75 | 8.50 | 95.00 | 7.26 | 11.28 | 33.74 |
| PyramidKV | 128 | 15.40 | 30.67 | 44.89 | 51.54 | 41.22 | 25.62 | 19.51 | 19.71 | 16.69 | 25.75 | 84.22 | 34.08 | 8.50 | 96.00 | 5.29 | 6.32 | 32.84 |
| LAQ (T=8) | 128 | 17.98 | 39.17 | 48.85 | 56.76 | 44.96 | 28.96 | 22.39 | 20.66 | 18.77 | 35.00 | 87.78 | 37.75 | 8.50 | 98.00 | 5.82 | 9.35 | 36.29 |
| EchoKV (ours) | 128 | 17.27 | 40.61 | 49.65 | 57.10 | 46.50 | 29.25 | 22.41 | 21.78 | 18.72 | 39.50 | 87.55 | 37.98 | 8.50 | 97.50 | 5.99 | 9.83 | 36.88 |
| StreamingLLM | 256 | 11.50 | 24.44 | 26.81 | 41.85 | 37.25 | 17.39 | 18.90 | 18.12 | 17.11 | 17.50 | 80.66 | 37.47 | 9.00 | 24.50 | 8.42 | 13.54 | 25.28 |
| H2O | 256 | 16.05 | 32.25 | 43.63 | 52.73 | 43.40 | 23.98 | 22.66 | 22.30 | 19.60 | 19.50 | 83.55 | 39.24 | 8.50 | 99.50 | 6.71 | 9.29 | 33.93 |
| SnapKV | 256 | 16.25 | 36.47 | 50.35 | 55.44 | 44.37 | 26.62 | 21.96 | 21.76 | 19.35 | 31.00 | 86.89 | 38.47 | 8.50 | 98.00 | 6.52 | 9.98 | 35.75 |
| PyramidKV | 256 | 16.81 | 34.46 | 47.17 | 54.72 | 42.74 | 25.86 | 21.45 | 20.39 | 17.61 | 33.75 | 85.76 | 36.93 | 8.50 | 98.50 | 5.15 | 7.21 | 34.81 |
| LAQ (T=8) | 256 | 17.62 | 41.16 | 50.84 | 57.16 | 46.48 | 29.37 | 24.23 | 22.17 | 20.30 | 38.50 | 88.10 | 39.12 | 8.50 | 99.00 | 6.14 | 9.83 | 37.41 |
| EchoKV (ours) | 256 | 18.01 | 41.53 | 50.83 | 56.92 | 47.20 | 27.79 | 24.12 | 22.45 | 20.41 | 39.00 | 87.80 | 38.91 | 8.50 | 99.00 | 6.26 | 10.44 | 37.45 |
| StreamingLLM | 512 | 12.56 | 27.00 | 29.75 | 42.48 | 36.44 | 16.15 | 22.30 | 18.68 | 20.01 | 24.00 | 83.99 | 38.09 | 8.50 | 24.00 | 8.36 | 12.54 | 26.55 |
| H2O | 512 | 16.77 | 35.32 | 45.82 | 52.30 | 44.39 | 24.29 | 24.20 | 22.29 | 21.45 | 21.00 | 86.29 | 39.16 | 8.50 | 100.00 | 6.82 | 9.09 | 34.86 |
| SnapKV | 512 | 17.63 | 40.73 | 50.71 | 55.63 | 45.18 | 27.85 | 24.41 | 22.84 | 21.16 | 38.50 | 88.12 | 39.21 | 8.50 | 99.50 | 7.09 | 10.16 | 37.33 |
| PyramidKV | 512 | 17.49 | 37.81 | 50.45 | 56.36 | 44.64 | 27.46 | 23.00 | 20.97 | 19.60 | 35.25 | 87.62 | 37.82 | 8.50 | 99.00 | 5.62 | 7.94 | 36.22 |
| LAQ (T=8) | 512 | 17.26 | 42.64 | 51.73 | 57.56 | 46.59 | 29.12 | 26.57 | 22.67 | 21.86 | 39.00 | 87.65 | 39.40 | 8.50 | 100.00 | 6.52 | 9.91 | 37.94 |
| EchoKV (ours) | 512 | 18.50 | 42.33 | 51.65 | 57.19 | 47.27 | 28.30 | 26.38 | 22.51 | 21.89 | 39.00 | 87.76 | 39.54 | 8.50 | 100.00 | 7.16 | 9.88 | 37.99 |
Table 4: LongBench results on Qwen2.5-7B-Instruct across budgets . Same column order as Table 3. Bold and underline denote the best and second-best compression methods, respectively, within each budget (excluding FullKV).
NEWS), few-shot learning (TREC, TRIVIAQA, SAMSUM), synthetic retrieval (PASSAGECOUNT, PASSAGERETRIEVAL-EN), and code completion (LCC, REPOBENCH-P).
Baselines. We report FullKV (no eviction) and compare against StreamingLLM, H2O (Zhang et al., 2023), SnapKV (Li et al., 2024), PyramidKV (Cai et al., 2024), and LAQ (Wang et al., 2025) (greedy, ). The component variants are described in Section 6.1.
Evaluation protocol. We use the official Long-Bench prompts and task metrics, greedy generation, and the same cache budgets for every compression method. Scores are computed over the 16 English LongBench subsets listed above. Unless stated otherwise, the analysis experiments use Mistral-7B-Instruct-v0.2 at ; all workspace selection is performed independently per layer and KV group.
EchoKV settings. (single semantic anchor), lookahead steps (two rounds of 4), workspace capacity , stage2_window=0. KV budgets to match prior work.
5.2 Main Results
Table 3 reports full LongBench scores for Mistral-7B-Instruct-v0.2 across all three budgets (). Table 4 shows the same for Qwen2.5-7B-Instruct.
EchoKV is competitive with LAQ across budgets and backbones. At , it improves the 16-
task average over LAQ on Qwen (36.88 vs. 36.29) and Mistral (39.55 vs. 39.29). The per-task pattern is more informative than the average: EchoKV's clearest gains occur on selected dispersed-evidence tasks, whereas it is not uniformly superior elsewhere.
Budget scaling. Tables 3 and 4 show results across all three budgets () for both models. Aggregate rankings vary by budget and backbone. EchoKV remains close to the LAQ baseline on average while delivering notable gains on selected retrieval-intensive tasks.
5.3 Cross-Model Generalization
Tables 3 and 4 evaluate EchoKV on both Mistral-7B-Instruct-v0.2 and Qwen2.5-7B-Instruct (which uses grouped-query attention with a different head/KV-group ratio), across all three budgets (). Both architectures show that the method remains competitive overall, while the size and location of task-level gains vary.
Comparison with baselines. On Qwen at , EchoKV improves over LAQ () on HOTPOTQA (57.10 vs. 56.76) and 2WIKIMQA (46.50 vs. 44.96). Its aggregate advantage is not uniform across budgets. This distinction is important: EchoKV is intended to address failure cases associated with dispersed evidence, not to replace every eviction strategy on every task.
| Method | MultifieldQA | HotpotQA | AVG |
|---|---|---|---|
| LAQ (T=8, baseline) | 45.43 | 40.35 | 39.29 |
| + EchoKV-Stage1 only | 46.15 | 41.24 | 39.38 |
| + Iterative only | 46.27 | 40.98 | 39.42 |
| EchoKV | 46.45 | 41.89 | 39.55 |
Table 5: Component ablation on Mistral-7B-Instruct-v0.2 at . Each row adds the indicated EchoKV component to LAQ. Combining both stages yields complementary task-level gains: +1.02 on MultifieldQA, +1.54 on HotpotQA, and a modest +0.26 on the 16-task average over LAQ. Bold denotes the best and underlining the second-best result in each column.
Code-subset anomaly. LCC and RB have unusually low FullKV scores on Qwen (6.62 and 9.79), so the code-subset results should be interpreted with caution. We do not attribute this pattern to cache eviction without a separate validation of the evaluation pipeline; conclusions about transfer should therefore be read together with the Mistral results and non-code Qwen subsets.
6 Analysis
6.1 Targeted Comparison with LAQ
Table 5 compares EchoKV directly with the LAQ baseline on two evidence-intensive tasks at the most constrained budget.
At this budget, the components show complementary effects. Stage 1 alone gives the stronger HotpotQA gain, whereas iterative repair alone gives the stronger MultifieldQA and average gains among the single-component variants. Their combination improves both evidence-intensive tasks simultaneously, although the aggregate gain is modest (+0.26). This pattern aligns with the roles of bootstrapping a useful observation workspace and then revising it with generated-query feedback before final eviction.
6.2 Evidence Retention Analysis
We measure supporting-evidence retention after refinement: the percentage of task-provided gold evidence-span tokens retained in the workspace. We map spans to input-token positions and average per-example retention over layers and KV groups. Table 6 compares LAQ's workspace (W) with EchoKV after bootstrapping (W1) and repair (W2), at on Mistral.
W1 and W2 progressively retain more evidence, including on HOTPOTQA and MULTIFIELDQA. The +3.2-point W-to-W1 and +3.6-point W1-to-W2 average gains exceed downstream task gains,
| Task | LAQ W | EchoKV W1 | EchoKV W2 |
|---|---|---|---|
| HOTPOTQA | 68.4 | 72.1 | 76.8 |
| 2WIKIMQA | 66.9 | 71.2 | 75.4 |
| MULTIFIELDQA | 70.6 | 73.5 | 77.0 |
| QASPER | 74.2 | 76.0 | 78.1 |
| Average | 70.0 | 73.2 | 76.8 |
Table 6: Evidence-token retention (%) at on Mistral-7B-Instruct-v0.2. Gold evidence spans are mapped to input-token positions; W, W1, and W2 denote LAQ's workspace, EchoKV's bootstrap workspace, and its repaired workspace. Bold denotes the best and underlining the second-best result in each row.
as retained evidence need not change an answer. This is a mechanism diagnostic, not a causal proof.
6.3 Discussion
EchoKV is most useful when decoding reconnects distant evidence, as in HOTPOTQA and 2WIKIMQA. The overlap and retention analyses are consistent with this mechanism, not causal proof. Recency-biased tasks may already be served by window eviction; RAG, agent-memory, and long-context latency evaluations remain future work.
7 Conclusion
EchoKV bootstraps a workspace with future-position proposals and repairs it with early generated queries. It is competitive with LAQ on LongBench, with targeted gains on retrieval-intensive tasks, while requiring full-cache retention until final selection and one extra re-scoring pass. The overlap and evidence-retention analyses further show that workspace refreshing improves later query fidelity and retains more annotated evidence, which is consistent with the proposed closed-loop correction mechanism. These findings position EchoKV as a targeted inference-time complement to window-based eviction: it is most useful when a future query must reconnect non-local evidence, rather than as a universal replacement for all cache compression strategies.
Limitations
Proposal scoring costs per layer and can be non-trivial at long contexts. We do not isolate random/oracle refreshes or alternative intervals; stage2_window = 0 also provides no recency guarantee.
References
Yushi Bai, Xin Lv, Jiajie Zhang, et al. 2024. Long-Bench: A Bilingual, Multitask Benchmark for Long Context Understanding. In Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (ACL).
Iz Beltagy, Matthew E. Peters, and Arman Cohan. 2020. Longformer: The Long-Document Transformer. arXiv preprint arXiv:2004.05150.
Aydar Bulatov, Yuri Kuratov, and Mikhail S. Burtsev. 2022. Recurrent memory transformer. In Advances in Neural Information Processing Systems (NeurIPS).
Zefan Cai, Yichi Zhang, Bofei Gao, et al. 2024. PyramidKV: Dynamic KV Cache Compression based on Pyramidal Information Funneling. arXiv preprint arXiv:2406.02069.
Shouyuan Chen, Sherman Wong, Liangjian Chen, et al. 2023. Extending Context Window of Large Language Models via Positional Interpolation. arXiv preprint arXiv:2306.15595.
Yukang Chen, Shengju Qian, Haotian Tang, et al. 2024. LongLoRA: Efficient Fine-tuning of Long-Context Large Language Models. In International Conference on Learning Representations (ICLR).
Tri Dao, Daniel Y. Fu, Stefano Ermon, et al. 2022. FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awareness. In Advances in Neural Information Processing Systems (NeurIPS).
Yiran Ding, Li Lyna Zhang, Chengruidong Zhang, et al. 2024. LongRoPE: Extending LLM Context Window Beyond 2 Million Tokens. In International Conference on Machine Learning (ICML).
Yuan Feng, Junlin Lv, Yukun Cao, et al. 2024. Ada-KV: Optimizing KV Cache Eviction by Adaptive Budget Allocation for Efficient LLM Inference. arXiv preprint arXiv:2407.11550.
Yu Fu, Zefan Cai, Abedelkadir Asi, et al. 2025. Not All Heads Matter: A Head-Level KV Cache Compression Method with Integrated Retrieval and Reasoning. In The Thirteenth International Conference on Learning Representations.
Coleman Hooper, Sehoon Kim, Hiva Mohammadzadeh, et al. 2024. KVQuant: Towards 10 Million Context Length LLM Inference with KV Cache Quantization. In Advances in Neural Information Processing Systems (NeurIPS).
Yaniv Leviathan, Matan Kalman, and Yossi Matias. 2023. Fast inference from transformers via speculative decoding. In Proceedings of the 40th International Conference on Machine Learning, pages 19274–19286.
Yuhong Li, Yingbing Huang, Bowen Yang, et al. 2024. SnapKV: LLM Knows What You are Looking for Before Generation. In Advances in Neural Information Processing Systems (NeurIPS).
Zirui Liu, Jiayi Yuan, Hongye Jin, et al. 2024. KIVI: A Tuning-Free Asymmetric 2bit Quantization for KV Cache. In Proceedings of the 41st International Conference on Machine Learning.
Aman Madaan, Niket Tandon, Prakhar Gupta, et al. 2023. Self-Refine: Iterative Refinement with Self-Feedback. In Advances in Neural Information Processing Systems (NeurIPS).
Charles Packer, Sarah Wooders, Kevin Lin, et al. 2023. MemGPT: Towards LLMs as Operating Systems. arXiv preprint arXiv:2310.08560.
Bowen Peng, Jeffrey Quesnelle, Honglu Fan, et al. 2024. YaRN: Efficient Context Window Extension of Large Language Models. In International Conference on Learning Representations (ICLR).
Zhenxu Tian, Yi Su, Juntao Li, et al. 2026. Where Matters More Than What: Decoding-aligned KV Cache Compression via Position-aware Pseudo Queries. arXiv preprint arXiv:2603.11564.
Yixuan Wang, Shiyu Ji, Yijun Liu, et al. 2025. Lookahead Q-Cache: Achieving More Consistent KV Cache Eviction via Pseudo Query. In Proceedings of the 2025 Conference on Empirical Methods in Natural Language Processing.
Yuhuai Wu, Markus N. Rabe, DeLesley Hutchins, et al. 2022. Memorizing transformers. In International Conference on Learning Representations (ICLR).
Guangxuan Xiao, Yuandong Tian, Beidi Chen, et al. 2024. Efficient streaming language models with attention sinks. In International Conference on Learning Representations (ICLR).
Zhenyu Zhang, Ying Sheng, Tianyi Zhou, et al. 2023. H2O: Heavy-Hitter Oracle for Efficient Generative Inference of Large Language Models. In Advances in Neural Information Processing Systems (NeurIPS).