AgentKVShift: Efficient KV Cache Reuse for Agentic Memory Systems
Nilesh Prasad Pandey, Jason Kong, Lanxiang Hu, Quanling Zhao, Yujie Zhao, Onat Gungor, Hao Zhang, Tajana Rosing
NeurIPS 2026
TL;DR. AgentKVShift accelerates long-horizon LLM agents by reusing and correcting KV caches from retrieved memories, achieving near-full recomputation accuracy with lower inference latency.
Abstract. Memory-augmented LLM agents have gained substantial attention recently for their ability to maintain context across hundreds of interactions through agentic memory systems that actively curate retrieved content with LLM-generated metadata such as summaries, keywords, and tags. However, from an inference cost standpoint, every retrieval triggers a full re-encoding of these structured memory units into Key-Value (KV) states, which dominates prefill latency. Existing training-free KV reuse methods mitigate this by selectively recomputing a small fraction of tokens, but were designed for RAG-style raw passages and degrade substantially on structured agentic memories. In this work, we present AgentKVShift, a training-free, probe-guided KV residual correction method that operates per retrieved memory unit. One of the crucial insights we demonstrate is that the per-memory KV reuse residual decomposes into a shared memory-level offset plus small token-wise fluctuations. Estimating this offset from a small probe set allows us to correct every reused token in the memory unit by a single weighted correction. Unlike prior reuse methods which decide which tokens to recompute and leave the rest of the cache stale, AgentKVShift also corrects the tokens it does not recompute, turning the refresh budget into useful signal across the entire chunk. Through extensive experiments across four open source LLMs spanning 3B to 32B parameters and two long-horizon agentic memory benchmarks covering long-term dialogue and agentic applications, we show that AgentKVShift achieves near full recompute performance while refreshing only 10-30% of the cache, outperforming existing baselines at the same recompute ratio. AgentKVShift requires up to 5x lower recompute to reach this near-full performance, which prior reuse methods only attain at 45-55% refresh. By operating in this lower recompute regime, AgentKVShift delivers prefill speedups of 2-3.5x over no-KV-reuse on a single A100 GPU. Lastly, AgentKVShift orthogonally composes with KV cache quantization, retaining over 2x the F1 of prior reuse methods under aggressive 2- and 4-bit settings, making it a simple, yet effective choice for serving long-horizon agentic memory workloads.
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:42 UTC.
- Decision
- Accept (poster)
Read decision
Meta-review
In this work, the authors find that existing KV cache reuse baselines designed for standard RAG fail to generalize to agentic memory systems, where retrieved units are structured objects (summaries, tags, keywords, timestamps, graph relations). In order to address this problem, they observe that the per-memory KV reuse residual decomposes into a shared memory-level offset plus small token-wise fluctuations, and propose AgentKVShift, a training-free method that recomputes a small probe set, estimates the offset, and applies a single weighted correction to all remaining reused tokens. Experiments span four models (3B–32B), two long-horizon agentic memory benchmarks, multiple recompute ratios, and KV quantization. AgentKVShift achieves near base performance using only 10-30% of the cache, outperforming existing baselines at the same recompute ratio.
Strengths:
- All reviewers agree the problem is important and timely due to the differences between agentic memory and standard RAG systems.
- The discovery of empirical limitations for previous baselines in agentic memory tasks is a strong contribution.
- The method is simple and the core insight is viewed as genuinely interesting.
- Strong performance across a wide range of experiments with multiple model sizes, model families, memory systems, benchmarks, recomputation ratios, latency settings, and KV quantization.
Main Weaknesses to Address in Rebuttal:
- All three reviewers agree that more ablations are needed to isolate the contribution of the proposed mean-shift correction from the probe token gains. Addressing these concerns thoroughly is necessary to validate this approach and merit consideration for acceptance.
- Reviewers aB66 and jCuB independently flag that the theoretical analysis does not cover the deployed method. Please address this mismatch.
- Reviewer jCuB identifies KVCOMM, which "already studies cross-context KV-cache reuse and estimates KV-cache offsets under different contexts," and asks for both a conceptual distinction and an empirical comparison. Given this directly targets novelty, a clear response is important.
- Reviewers 54me and aB66 have concerns about the method's statistical rigor.
- These are the most common/important concerns; please address all remaining reviewer points as well.
Final justification
The reviewers did not engage or raise their scores after rebuttal. However, after reading the rebuttal carefully, I believe all of the concerns raised have been appropriately addressed and this work should be considered for acceptance.
Read meta-review
Meta-review
In this work, the authors find that existing KV cache reuse baselines designed for standard RAG fail to generalize to agentic memory systems, where retrieved units are structured objects (summaries, tags, keywords, timestamps, graph relations). In order to address this problem, they observe that the per-memory KV reuse residual decomposes into a shared memory-level offset plus small token-wise fluctuations, and propose AgentKVShift, a training-free method that recomputes a small probe set, estimates the offset, and applies a single weighted correction to all remaining reused tokens. Experiments span four models (3B–32B), two long-horizon agentic memory benchmarks, multiple recompute ratios, and KV quantization. AgentKVShift achieves near base performance using only 10-30% of the cache, outperforming existing baselines at the same recompute ratio.
Strengths:
- All reviewers agree the problem is important and timely due to the differences between agentic memory and standard RAG systems.
- The discovery of empirical limitations for previous baselines in agentic memory tasks is a strong contribution.
- The method is simple and the core insight is viewed as genuinely interesting.
- Strong performance across a wide range of experiments with multiple model sizes, model families, memory systems, benchmarks, recomputation ratios, latency settings, and KV quantization.
Main Weaknesses to Address in Rebuttal:
- All three reviewers agree that more ablations are needed to isolate the contribution of the proposed mean-shift correction from the probe token gains. Addressing these concerns thoroughly is necessary to validate this approach and merit consideration for acceptance.
- Reviewers aB66 and jCuB independently flag that the theoretical analysis does not cover the deployed method. Please address this mismatch.
- Reviewer jCuB identifies KVCOMM, which "already studies cross-context KV-cache reuse and estimates KV-cache offsets under different contexts," and asks for both a conceptual distinction and an empirical comparison. Given this directly targets novelty, a clear response is important.
- Reviewers 54me and aB66 have concerns about the method's statistical rigor.
- These are the most common/important concerns; please address all remaining reviewer points as well.
Final justification
The reviewers did not engage or raise their scores after rebuttal. However, after reading the rebuttal carefully, I believe all of the concerns raised have been appropriately addressed and this work should be considered for acceptance.
1 comment
- Rating
- 3/6
- Confidence
- 3/5
- Quality
- 2/4
- Clarity
- 2/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
This paper proposes AgentKVShift, a training-free KV-cache reuse method for agentic memory-augmented LLM systems. The key motivation is that existing KV reuse techniques degrade significantly when applied to structured agentic memories. The authors attribute this failure to a structured KV divergence pattern and observe that reuse errors can be decomposed into a shared chunk-level offset plus small token-wise variations. Based on this insight, they introduce a probe-guided correction mechanism that estimates the offset from a small subset of tokens and applies a weighted correction to the entire retrieved memory unit, enabling KV reuse without full recomputation. Experiments show that AgentKVShift achieves near-full recomputation performance while only recomputing 10–30% of KV states.
Strengths and weaknesses
Strengths
-
The paper addresses an important and emerging bottleneck in LLM agents.
-
The paper provides an interesting observation.
Weaknesses
-
The core idea of decomposing KV reuse error into a global memory-level offset plus small token-wise fluctuations is interesting but potentially overly strong. It is unclear why such a structure should consistently emerge across diverse memory types, prompts, and model architectures.
-
The weighting design is heuristic and insufficiently justified. The fixed threshold of 1 appears to be a magic number, and the divergence is the L2 norm of the KV residual, whose scale varies with the model, layer depth, and normalization scheme.
-
The evaluation does not isolate the contribution of the proposed mean-shift correction. Since the method combines probe recomputation with residual correction, it remains unclear how much of the gain is attributable to the correction itself.
-
The reproducibility checklist answers "Yes" to the question regarding statistical significance. However, the paper does not report statistical uncertainty measures such as standard deviations or confidence intervals.
Questions
Refer to weaknesses above.
Limitations
yes
Final justification
The rebuttal addressed most of my main concerns. However, other reviewers also raised several important limitations regarding the theoretical justification, the novelty, and the completeness of the ablations. Overall, I maintain my borderline score.
Formatting concerns
no
4 comments
Rebuttal
Q1. We thank the reviewer for this thoughtful question and are happy to see the reviewer finds our observation interesting. Our hypothesis is that the shared-offset structure arises from a common mechanism across these settings. During reuse, the memory tokens remain fixed, while the preceding query, instruction, and dialogue context changes. Tokens within the same memory unit attend to this shared contextual change, producing a correlated perturbation in their hidden states. Because K and V are linear projections of these hidden states, this common component is preserved in their residuals, while differences in token-level attention appear as the fluctuations .
Agentic memories further reinforce this structure. Unlike raw passages, they are semantically coherent, LLM-curated units such as notes, summaries, tags, and graph nodes. Their tokens represent a common memory concept and are conditioned jointly on the same surrounding context, encouraging a dominant unit-level shift.
We validate this hypothesis empirically. Section 3.2 shows that mean subtraction substantially suppresses the dominant singular mode of K/V residuals. Appendix C.1 shows that mean correction explains -- of residual energy (-- with our practical estimator) and reduces the leading singular value to -- of its original magnitude; Appendix C.2 confirms that probe-mean estimation error decreases consistently with probe budget. Finally, Sections 4.1--4.2 demonstrate consistent recovery across note-based A-MEM and graph-based LiCoMemory, LoCoMo and AMA-Bench, and four models from two families spanning 3B--32B parameters.
Q2. We thank the reviewer for this question, which allows us to clarify the role of the weighting term. The weight determines the proportion of the shared memory-level offset that each token receives: tokens with small check-layer divergence are assigned a proportionally attenuated share of the estimated shift, whereas tokens whose divergence reaches the threshold receive one full shift. Clipping at 1 therefore ensures that no token is displaced beyond the shared offset that has actually been estimated.
Empirically, the proportional weighting contributes F1 ( weighted versus unweighted; Reviewer aB66, Q1). In the revision, we will restate the weight in terms of an explicit divergence scale and report a sensitivity analysis over it.
Q3. We thank the reviewer for raising this important question. We would like to clarify that the contribution of the mean-shift correction is already isolated, because CacheBlend serves as a matched recomputation-only control. CacheBlend selects the top- tokens with the highest KV divergence and recomputes them, but applies no correction: every token outside that set keeps its stale cached KV. AgentKVShift additionally corrects the tokens that are not recomputed. The comparison between the two therefore varies only whether the unrefreshed states are corrected.
Table 1 shows that AgentKVShift improves over this recomputation-only control by -- F1 across all six model--memory configurations, with an average improvement of F1 ( relative). Table 2 similarly shows improvements of F1 () and judge accuracy (). Figure 3 makes the separation sharpest: AgentKVShift at matches the F1 that recomputation-only reaches at --. Recomputing -- as many tokens is what it costs to match what the correction achieves at a tenth of the cache, so the recovery is driven by correcting the reused states rather than by refreshing a larger fraction of them. We will clarify this control and the mechanism isolation more explicitly in the revised paper.
Q4. We thank the reviewer for providing us the opportunity to clarify. The main paper uses a fixed, evaluation protocol. For each memory type, we use its prescribed deterministic seed to construct the memory once, and keep the resulting memory, retrieved units, questions, decoding configuration, and evaluation protocol identical across Full Recompute, CacheBlend, ProphetKV, and AgentKVShift. This ensures a controlled comparison, although the original submission did not report repeated-run uncertainty for every setting.
To additionally evaluate seed-wise robustness, we conduct two paired multi-seed experiments. First, we evaluate Qwen3-32B at on all six subsets of AMA-Bench-Recall using 4 seeds. Second, we evaluate Qwen2.5-3B-Instruct at on the complete LoCoMo dataset using 10 seeds, and report mean and standard deviation for both.
AMA-Bench-Recall, Qwen3-32B, . GPT-4o judge accuracy. Parentheses report performance relative to Full Recompute.
| Domain | Full | CB | PKV | AgentKVShift |
|---|---|---|---|---|
| Embodied AI | (81.8%) | (93.2%) | (79.5%) | |
| Game | (86.7%) | (84.0%) | (99.4%) | |
| OpenWorld QA | (64.8%) | (65.6%) | (95.2%) | |
| Software | (120.2%) | (117.5%) | (125.4%) | |
| Text2SQL | (73.6%) | (71.8%) | (90.4%) | |
| Web | (80.4%) | (84.2%) | (89.9%) | |
| Wtd. Avg. | (82.0%) | (81.8%) | (96.3%) |
Complete LoCoMo, Qwen2.5-3B-Instruct, .
| Method | Seeds | F1 | ROUGE-1 | BLEU-1 |
|---|---|---|---|---|
| Full Recompute | 10 | |||
| CacheBlend | 10 | |||
| ProphetKV | 5 | |||
| AgentKVShift | 10 |
The observed gains are therefore substantially larger than seed variability. For judge-seed stability and human verification, please refer to Reviewer aB66, Q5. We will report these runs in the revision, and update the checklist describing the current methodology used.
We hope these additional experiments, ablations, and clarifications address the reviewer's concerns and strengthen the paper. We would be grateful if the reviewer could reconsider their assessment in light of this additional evidence, and we would be happy to answer any further questions.
minor typo correction in Q4 2nd table
We kindly wanted to correct a minor typo in the "Complete LoCoMo, Qwen2.5-3B-Instruct" table: the "Seeds" column for ProphetKV should read 10, not 5. All methods in that table were evaluated with 10 seeds as mentioned.
Dear Reviewer 54me,
We thank you for taking the time to review our paper and for your constructive feedbacks. As the discussion period draws to a close, we would like to kindly follow up and ask whether any concerns remain that we could address. We would be very happy to use the remaining time to provide further clarifications or engage in additional discussion.
Best,
Authors
Dear Reviewer 54me,
We hope our rebuttal including the mechanism isolation control, ablations, and multi-seed statistical validation addresses your concerns. We would be happy to answer any remaining questions before the discussion period ends today.
Best,
Authors
- Rating
- 3/6
- Confidence
- 3/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 2/4
- Originality
- 2/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
This paper presents AgentKVShift, a training-free, probe-guided KV residual correction method that operates on each retrieved memory unit. The key observation of this paper is that the KV reuse residual within a memory unit can be decomposed into a shared memory-level offset plus small token-wise fluctuations. By estimating this offset from a small set of probe tokens, AgentKVShift applies a single weighted correction to all reused tokens in the memory unit. Extensive experiments show that AgentKVShift achieves strong performance while refreshing only 10-30% of the cache.
Strengths and weaknesses
Strengths
- This paper studies an important and timely problem in efficient KV cache reuse for long-horizon memory-augmented LLM agents.
- The proposed method is simple, intuitive, and easy to follow.
- The experiments show strong performance across different datasets and model scales.
Weaknesses
- There is closely related prior work that should be discussed. In particular, KVCOMM [1] already studies cross-context KV-cache reuse and estimates KV-cache offsets under different contexts. The paper should better clarify the core difference from such work and compare the performance
- The paper states that fresh KV states for probe tokens are recomputed at each layer, but it does not clearly explain how this is done. In transformers, the fresh KV states in later layers depend on the hidden states and KV values from previous layers, so the paper should clarify whether these probe KV states are exactly the same as in full recomputation or only approximate.
- The method also relies on heuristic design choices. For example, the actual algorithm selects the top-b high-divergence tokens as probes, while the theoretical analysis assumes uniformly sampled probes. This mismatch should be discussed.
- Several important ablations are missing. For example, it would be helpful to see K-only and V-only correction, since the empirical support for the shared residual structure seems stronger for K than for V. It would also be useful to evaluate probe selection from different layers, rather than only using the first layer.
- Also, no code is provided.
[1] Ye, Hancheng, et al. "Kvcomm: Online cross-context kv-cache communication for efficient llm-based multi-agent systems." Advances in Neural Information Processing Systems 38 (2026): 17882-17928.
Questions
See weaknesses.
Limitations
See weaknesses.
Formatting concerns
N/A
3 comments
Rebuttal
Q1. We thank the reviewer for raising KVCOMM and for the opportunity to clarify its relationship to our work. KVCOMM is relevant to the broader problem of context-dependent KV reuse, but it addresses a different use case and estimates the correction through a fundamentally different mechanism. KVCOMM targets cross-agent communication of overlapping placeholders, whereas AgentKVShift targets repeated retrieval of long-term agentic memories under changing query contexts.
Precisely, KVCOMM maintains an online anchor pool containing previously observed token-wise KV deviations under different prefix contexts. For a new placeholder, it retrieves embedding-similar anchors and interpolates their stored deviations to predict the current offset. If no suitable reusable deviation is available, it falls back to dense prefill and may add the resulting offset as a new anchor.
AgentKVShift does not transfer offsets from other memories, requests, or historical anchors. Given the stored cache of the exact retrieved memory, it selectively recomputes a small probe subset of that same memory under the current context. The paired differences between the recomputed and stored probe states directly measure the current context shift, which is then used to correct the non-probe KV states at each layer. Thus, KVCOMM predicts the correction by transferring deviations from embedding-similar historical examples, while AgentKVShift directly estimates a query-conditioned correction for each reuse of the retrieved memory.
For a direct empirical comparison, we implemented KVCOMM under the same model, memory, dataset, and evaluation configuration used for AgentKVShift in Table 1. We evaluate both methods using Qwen2.5-3B-Instruct on the complete LoCoMo dataset () with the same A-MEM memory and evaluation pipeline:
| Method | F1 | ROUGE-1 | BLEU-1 |
|---|---|---|---|
| KVCOMM | 0.262 | 0.282 | 0.233 |
| AgentKVShift (Table 1) | 0.319 | 0.330 | 0.277 |
AgentKVShift improves F1, ROUGE-1, and BLEU-1 over KVCOMM by , , and , respectively. These results demonstrate the benefit of directly estimating the current shift from the exact retrieved memory in the agentic-memory KV-reuse setting. We will add this conceptual distinction, empirical comparison, and discussion of KVCOMM in the revision.
Q2. We thank the reviewer for this important question and would like to clarify that later-layer probe states are approximate, not identical to dense full-prefill states. AgentKVShift proceeds layer by layer. At each layer, it recomputes K/V and attention only for the selected probe tokens. Each probe attends over the complete context formed by the recomputed probe K/V and the corrected cached K/V of all non-probe tokens. The resulting probe hidden states are propagated to the next layer, where the same procedure is repeated.
Thus, later-layer probes are computed from selectively updated hidden states from the previous layer. This is the standard partial-recomputation flow used by CacheBlend and is what makes computation scale with the probe ratio rather than the full context length. AgentKVShift differs by correcting the reused non-probe cache before it participates in probe attention. We will make this execution flow and approximation explicit in the revision.
Q3. Thank you for the opportunity to clarify the mismatch. We agree that the existing analysis used a simplified and idealized version of the algorithm. We have therefore revised the analysis to directly model the implemented AgentKVShift algorithm, including top- token selection, freshly recomputed KV states for selected tokens, and token-dependent weighted correction.
Updated Proposition 1 (Attention error before correction). Under the residual decomposition , direct KV reuse satisfies
Thus, direct KV reuse error consists of a shared chunk-level bias and smaller token-wise fluctuations.
Updated Proposition 2 (Attention error after AgentKVShift correction). Let and be arbitrary, potentially data-dependent probe sets, including the top- sets used by AgentKVShift. Then
Here, the selected tokens retain their freshly recomputed KV states, while the remaining tokens receive the actual token-dependent weighted corrections. The terms and capture the realized mismatch introduced by probe estimation and weighting. The bound therefore applies to the top-divergence selection used by AgentKVShift without assuming uniformly sampled probes.
Updated Proposition 3 (Sufficient condition for improvement). Let . AgentKVShift provides a tighter bound than direct reuse when
Compared with the original proposition, this condition depends on the realized mismatch of the actual weighted top- correction rather than a random-probe estimation error.
Proof sketch. For probe tokens, the corrected residual is zero because their KV states are freshly recomputed. For each non-probe token, the remaining residual is . Applying the deterministic attention-perturbation lemma and a union bound over the token-wise fluctuations gives Propositions 1--2, and directly comparing their upper bounds gives Proposition 3.
The revised analysis therefore applies to arbitrary probe sets and the implemented weighted correction. The purpose and interpretation of Propositions 1--3 remain unchanged: they characterize the error introduced by direct KV reuse, the error remaining after correction, and the condition under which AgentKVShift provides a tighter error bound.
Q4. We thank the reviewer for suggesting these important ablations. We evaluated K-only/V-only correction and probe selection at different layers using Qwen2.5-3B-Instruct on the complete LoCoMo dataset (), under the same configuration as Table 1.
(a) Correction-component ablation
| Correction configuration | F1 | ROUGE-1 | BLEU-1 |
|---|---|---|---|
| K and V correction (Table 1 -- AgentKVShift) | 0.3190 | 0.3300 | 0.2770 |
| K-only correction | 0.2260 | 0.2355 | 0.1819 |
| V-only correction | 0.1921 | 0.2033 | 0.1590 |
Here, both K and V states are recomputed for the selected probes at in all configurations, only the correction applied to the non-probe component is varied. Both single-component variants provide partial recovery, with K-only correction performing better than V-only correction, consistent with the stronger shared residual structure observed for K. However, neither is sufficient individually. These results show that the two corrections are complementary: K correction improves the attention distribution, while V correction improves the content aggregated under that distribution.
(b) Probe-selection-layer ablation
| Probe-selection layer | F1 | ROUGE-1 | BLEU-1 |
|---|---|---|---|
| Layer 1 (Table 1 -- AgentKVShift) | 0.3190 | 0.3300 | 0.2770 |
| Layer 5 | 0.2852 | 0.2960 | 0.2453 |
| Layer 10 | 0.2856 | 0.2987 | 0.2460 |
| Layer 15 | 0.3037 | 0.3136 | 0.2680 |
| Layer 20 | 0.3029 | 0.3123 | 0.2656 |
| Layer 25 | 0.3009 | 0.3104 | 0.2663 |
Here, both K and V are corrected in all configurations; only the layer used to select the probe indices is varied. Selecting probes at layers 15 and 25 provides comparable but slightly lower quality than layer-1 selection. Importantly, later-layer selection requires propagating a larger candidate token set through all preceding layers before probes can be identified, increasing projection and attention computation. Layer-1 selection identifies probes immediately, and our experiments across the models and tasks reported in the paper further show that first-layer probe indices generalize reliably, supporting their strong quality--selection efficiency trade-off.
Q5. We thank the reviewer for raising this. The agentic memory systems, benchmarks, model checkpoints, and the exact LLM-as-a-Judge prompt are already documented in Appendices A.1 and A.4, so the evaluation setup is fully specified independently of the code. To encourage reproducibility and further research, we will publish our implementation and evaluation setup upon conference publication. Our implementation builds on CacheBlend's LMCache implementation. We will also expand the pseudocode and execution-flow description in the revision.
We hope these additional experiments, ablations, and clarifications address the reviewer's concerns and strengthen the paper. We would be grateful if the reviewer could reconsider their assessment in light of this additional evidence, and we would be happy to answer any further questions.
Dear Reviewer jCuB,
We thank you for your time and for the constructive feedback on our paper. As the discussion period draws to a close, we would like to kindly follow up and ask whether our responses have addressed your concerns, or whether any remain that we could clarify. We would be very happy to use the remaining time to provide further clarifications or engage in additional discussion.
Best,
Authors
Dear Reviewer jCuB,
We hope our rebuttal including the KVCOMM comparison, revised propositions covering the deployed algorithm, and K/V component and layer ablations addresses your concerns. We would be happy to answer any remaining questions before the discussion period ends today.
Best, Authors
- Rating
- 4/6
- Confidence
- 3/5
- Quality
- 3/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
This paper studies KV cache reuse for long-term memory agents. Unlike standard RAG, agentic memory systems store structured memory units with summaries, tags, keywords, timestamps, or graph relations. The paper shows that existing KV reuse methods designed for RAG, such as CacheBlend and ProphetKV, degrade on this setting.
The main observation is that the KV residual between fresh and reused cache states contains a shared memory-level offset. Based on this, the authors propose AgentKVShift, a training-free method that recomputes a small set of probe tokens, estimates the average K/V residual for each memory unit, and uses this residual to correct the remaining reused tokens. Experiments on multiple model families, model sizes, memory systems, and benchmarks show that AgentKVShift can approach full recomputation quality while refreshing only a small fraction of the KV cache.
Strengths and weaknesses
This paper studies a concrete and practically useful problem: how to reuse KV cache in long-term agentic memory systems. The motivation is convincing because agentic memory differs from standard RAG: the retrieved units are often structured with summaries, tags, timestamps, or graph relations, rather than being raw text passages. The paper shows that existing KV reuse methods such as CacheBlend and ProphetKV degrade in this setting across several models and memory systems, which makes the problem worth studying.
The proposed method is simple and intuitive. AgentKVShift does not only refresh a small set of selected tokens; it also uses the residuals from these probe tokens to estimate a memory-level K/V offset and correct the remaining reused tokens. This turns a small recomputation budget into a correction signal for the whole memory unit. The spectral analysis supports the key observation that KV reuse errors contain a shared offset component. The experiments are also fairly broad, covering multiple model sizes, model families, memory systems, benchmarks, recomputation ratios, latency settings, and KV quantization.
My main concerns are about mechanism isolation and system-level completeness. The paper would be stronger with more task-level ablations, such as random probe vs. top-divergence probe, weighted vs. unweighted correction, K-only vs. V-only correction, global vs. per-memory offset, and different check layers. The theory explains the basic idea of removing a shared offset, but it applies to a simplified random-probe, unweighted version rather than the full algorithm. In addition, the latency evaluation mainly reports prefill speedup, while real agent deployment also includes retrieval, cache loading, probe selection, correction overhead, decoding, and cache maintenance. More details on break-even points, cache storage cost, invalidation, and positional encoding handling would make the practical claims clearer.
Questions
1.Can the authors provide task-level ablations for the main design choices? In particular, please compare random probes vs. top-divergence probes, weighted vs. unweighted correction, K-only vs. V-only correction, global vs. per-memory offset, shared vs. separate K/V probes, and different check layers under the same recomputation budget. Please report final F1 / accuracy as well as latency.
2.Can the authors clarify and correct the theoretical analysis? The current proof seems to apply to a simplified random-probe, unweighted mean-shift method, not the full top-K weighted AgentKVShift algorithm. I also ask the authors to recheck the softmax Lipschitz constant used in the cross-norm setting.
3.What exactly is included in the latency measurement? Does it include cache loading, CPU-GPU transfer, first-layer divergence computation, probe selection, positional adjustment, and the correction kernel? It would be helpful to provide a few end-to-end memory-agent latency results and identify the break-even points across model size, context length, and batch size.
4.How is the KV cache stored and maintained in a long-running agent? Please report the storage cost per memory token, the cost of initially building the cache, the invalidation mechanism when memory units are modified or deleted, and how RoPE or other positional encodings are handled when the same memory unit appears in different retrieval orders.
5.Are the gains stable under randomness and judge noise? Please provide confidence intervals or repeated runs, and consider a small human verification subset for AMA-Bench results judged by GPT-4o.
Limitations
yes
Formatting concerns
No major formatting or anonymity concerns noticed.
3 comments
Rebuttal
We thank the AC and reviewers for recognizing the importance and timeliness of this problem, the interest of our core insight, and the breadth of our evaluation.
Q1. For these ablations, all variants use Qwen2.5-3B-Instruct on the complete LoCoMo dataset with recomputation ratio and the same evaluation pipeline as paper's Table 1.
Probe selection, weighting, and offset scope.
| Design choice | Configuration | F1 |
|---|---|---|
| Probe selection | Top-divergence | .3190 |
| Random (5 seeds) | ||
| Correction weighting | Weighted | .3190 |
| Unweighted | .2790 | |
| Offset scope | Per-memory | .3190 |
| Global | .0200 |
The results show that high-divergence probes provide a more reliable estimate than random probes, weighting reduces the influence of weakly shifted tokens, and estimating an offset separately for each memory is critical.
Corrected component and probe-selection layer. See Reviewer jCuB, Q4
Separate K/V probes. Probe indices are selected with component-specific scores rather than a single joint score, because K and V behave differently under reuse. Appendix C.2 shows the centered fluctuations for K align closely with the light-tailed concentration model at every layer examined, whereas V departs from it in shallow layers and approaches it only with depth. The tokens that best estimate therefore need not be those that best estimate , and each offset is estimated from its own selected tokens.
Latency. Please refer to Q3 for inference-side TTFT and its component-level decomposition.
We will add these ablations and clarifications to the revision.
Q2. Thank you for raising this issue. We agree that the original analysis characterized a simplified random-probe, unweighted estimator rather than the implemented top-, weighted AgentKVShift algorithm. The revised analysis allows arbitrary, potentially data-dependent probe sets, freshly recomputed probe states, and token-dependent weighted correction. Its bound depends on the realized correction mismatch rather than a random-probe estimation bound. Because this concern overlaps with Reviewer jCuB, Q3, we provide the complete propositions and proof sketch there.
We also corrected the cross-norm Lipschitz property to
This follows by integrating the softmax Jacobian, whose corresponding cross-norm operator bound is at most one, along the segment between and .
Q3. We thank the reviewer for requesting this clarification. Paper Table 3 and paper Figure 4 report complete inference-side TTFT, measured from the start of cache reuse/prefill through the first sampled token. They include cache loading, CPU--GPU metadata transfer, first-layer divergence computation, probe selection, positional adjustment, correction, and the remaining model computation.
All measurements in the paper use HBM-resident caches, which is practical at these scales (for Qwen2.5-3B-Instruct on an A100-40GB the BF16 weights occupy GB and the largest profiled KV working set GiB). To make the analysis more exhaustive, we additionally evaluate CPU-resident caching by measuring synchronous PCIe transfer of the exact KV-cache bytes during inference. Rebuttal Table R1 reports both configurations.
Rebuttal Table R1. AgentKVShift TTFT decomposition (Qwen2.5-3B-Instruct, A100-PCIe-40GB, ). Entries are TTFT shares and sum to 100%; speedup is relative to full recomputation.
All component columns report their percentage of AgentKVShift TTFT
| Cache residency | Context (tokens) | Batch size | TTFT speedup | Cache load / KV transfer | CPU--GPU metadata | Divergence calculation | Probe selection | Position adjustment | Correction kernel | Model compute |
|---|---|---|---|---|---|---|---|---|---|---|
| HBM | 4096 | 1 | 1.88× | 2.64 | 1.76 | .15 | .16 | 12.60 | 23.52 | 59.18 |
| HBM | 4096 | 4 | 3.06× | 2.29 | 2.84 | .18 | .14 | 5.50 | 8.62 | 80.43 |
| HBM | 4096 | 16 | 3.33× | 2.46 | 2.93 | .20 | .06 | 5.48 | 7.96 | 80.91 |
| HBM | 8192 | 1 | 2.47× | 1.98 | 2.46 | .14 | .13 | 4.83 | 8.48 | 81.97 |
| HBM | 8192 | 4 | 2.84× | 2.02 | 2.36 | .16 | .05 | 4.68 | 6.75 | 83.97 |
| HBM | 8192 | 16 | 2.89× | 1.86 | 2.69 | .15 | .02 | 4.23 | 5.84 | 85.20 |
| CPU | 4096 | 1 | 1.79× | 7.04 | 1.68 | .14 | .15 | 12.03 | 22.45 | 56.50 |
| CPU | 4096 | 4 | 2.75× | 12.34 | 2.55 | .16 | .12 | 4.93 | 7.74 | 72.16 |
| CPU | 4096 | 16 | 2.97× | 13.07 | 2.61 | .18 | .05 | 4.89 | 7.09 | 72.11 |
| CPU | 8192 | 1 | 2.29× | 8.95 | 2.29 | .13 | .12 | 4.48 | 7.88 | 76.15 |
| CPU | 8192 | 4 | 2.60× | 10.45 | 2.16 | .15 | .04 | 4.28 | 6.17 | 76.75 |
| CPU | 8192 | 16 | 2.64× | 10.33 | 2.46 | .14 | .02 | 3.86 | 5.34 | 77.85 |
For HBM residency, cache loading is an intra-HBM gather/scatter, CPU--GPU transfer carries only request metadata and no KV tensors, and the speedups are those reported in paper Table 3. For CPU residency, we measure synchronous transfer of the same KV bytes over PCIe Gen4 , all remaining component times are unaffected.
Each row sums to 100% of AgentKVShift TTFT. Divergence computation and probe selection together contribute at most 0.31%. The correction kernel, the only component unique to AgentKVShift, contributes 5.84--23.52% of HBM-resident TTFT. With CPU residency, cache loading increases from 1.86--2.64% to 7.04--13.08%, while AgentKVShift retains 1.79--2.97× speedup.
Finally, paper Table 3 identifies the break-even regimes. For Qwen2.5-3B at , break-even lies between 2048 and 4096 tokens (0.94× versus 1.88×); for , AgentKVShift is already beneficial at 2048 tokens. For Qwen3-32B, it is beneficial in every measured configuration, ranging from 1.53× to 4.13×. We will clarify the measurement boundary and add this decomposition to the revision.
Q4. We thank the reviewer for this question and will add a deployment subsection covering these four points.
Storage cost. The per-token cost is fixed by the model's KV geometry, elements. For eg, for Qwen2.5-3B-Instruct (, , , BF16) this is 36 KiB/token, i.e., 144 MiB for a 4096-token retrieval context.
Build cost. Constructing the cache costs exactly one prefill of the memory unit, paid once at ingestion. It is independent of the reuse method and separate from the inference-side TTFT reported in Q3.
Invalidation. The cache is keyed per memory unit by unit ID and content hash. When a unit is evolved by the memory system, its hash changes and only that unit is invalidated and re-encoded. Because AgentKVShift estimates a correction independently for each retrieved unit, invalidating one unit never invalidates another and never invalidates a suffix, unlike prefix caching, where editing any unit invalidates every cached state after it.
Positional encoding. Because the same unit appears at different offsets under different retrieval orders, we store position-independent cache states and apply the rotation for the actual retrieved offset at reuse time. This is exact for RoPE, so re-indexing is a single rotation of the cached keys, values need no adjustment. RoPE is used by essentially all current open-weight LLM families, including every model we evaluate. However, positional adjustment alone is not sufficient, as it corrects the positional difference but not the change in surrounding context, which is exactly the residual our correction removes.
Q5. Five-run judge stability. To demonstrate stability, we re-evaluate the paper's AMA-Bench-Recall results using five different runs of the GPT-4o judge, holding the generated answers and the evaluation configuration fixed, so that the reported spread reflects judge noise alone.
AMA-Bench-Recall judge accuracy (Qwen3-32B, ). Mean ± standard deviation over 5 independent judge runs.
| Domain | Full Rec. | CB | PKV | AgentKVShift |
|---|---|---|---|---|
| Embodied AI | .184±.014 | .141±.009 (76.8%) | .154±.009 (83.9%) | .151±.007 (82.1%) |
| Game | .375±.006 | .328±.005 (87.6%) | .328±.013 (87.6%) | .390±.015 (104.0%) |
| OpenWorld QA | .359±.005 | .216±.005 (60.2%) | .247±.005 (68.7%) | .337±.010 (93.7%) |
| Software | .137±.006 | .155±.008 (113.1%) | .159±.010 (116.6%) | .168±.007 (122.8%) |
| Text2SQL | .377±.011 | .285±.010 (75.7%) | .266±.008 (70.7%) | .337±.010 (89.5%) |
| Web | .309±.011 | .262±.010 (85.0%) | .274±.014 (88.6%) | .288±.008 (93.3%) |
| Wtd. Avg. | .290±.004 | .236±.006 (81.6%) | .239±.004 (82.5%) | .281±.005 (97.0%) |
This stability is expected as AMA-Bench grades each trajectory with a binary judgment against a reference answer rather than a graded score, so the judge has no continuous scale on which to drift. Generation-seed repeats are reported in Reviewer 54me, Q4.
Human verification. AMA-Bench paper independently validates its binary LLM-as-a-Judge protocol in Appendix C.2. On 300 human-annotated instances, its Qwen3-32B judge achieves 92.67% agreement with the human labels. This provides evidence that the benchmark's binary evaluation protocol is well aligned with human judgment.
To additionally verify our GPT-4o evaluation, within the rebuttal period we randomly sampled 50 AMA-Bench examples from our evaluated outputs and independently assigned human correctness labels using the question, reference answer, and predicted answer. GPT-4o agrees with these human labels on 84% of the sampled examples. Together with the low variance across five independent judge runs, this provides additional evidence that our reported conclusions are stable to judge noise and broadly aligned with human evaluation.
We hope these additional experiments, ablations, and clarifications fully address the reviewer's concerns and further strengthen the paper. We would be grateful if the reviewer could reconsider their assessment in light of this additional evidence, and we would be happy to answer any further questions.
Dear Reviewer aB66,
We thank you for taking the time to review our paper and for your constructive feedbacks. As the discussion period draws to a close, we wanted to kindly follow up and ask whether you have any remaining concerns that we could address. We would be very happy to use the remaining time to provide further clarifications or engage in additional discussion.
Best, Authors
Dear Reviewer aB66,
We hope our rebuttal, including the design-choice ablations, latency decomposition, revised theory, and multi-seed stability results addresses your concerns. We would be happy to answer any remaining questions before the discussion period ends today.
Best, Authors
From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.
Loading the discussion…
Rebuttal overview
We thank the AC for the detailed meta-review and all reviewers for recognizing the importance and timeliness of this problem, the interest of our core insight, and the breadth of our evaluation. Below, we summarize the new experiments and address common concerns:
Ablations isolating correction vs. probe gains: Please refer to Reviewer 54me Q3, Reviewer aB66 Q1, and Reviewer jCuB Q4.
Theory–algorithm mismatch: We provide revised propositions covering the deployed top-K weighted algorithm in Reviewer jCuB Q3 and Reviewer aB66 Q2.
KVCOMM: Conceptual distinction and empirical comparison in Reviewer jCuB Q1.
Statistical rigor: Multi-seed runs and human verification in Reviewer 54me Q4 and Reviewer aB66 Q5.
All remaining reviewer questions are addressed in their respective rebuttals. We thank everyone for their constructive feedbacks, incorporating these suggestions has significantly improved the quality of our work. We are happy to answer any further questions.