potentialpaper

PatchKV: Weight Space Compensation of KV Cache

Chanryeol Lee, Chanhyuk Lee, Yeonwoo Choi, Donggyun Kim, Seunghoon Hong

NeurIPS 2026

Edit this page

Or clone it with git

Run in a terminal:

Needs Git LFS. To push, use an API key from your profile as the password.

Or let your agent set it up

It checks and sets up everything: signing in, git, the clone, credentials and an SSH key.

TL;DR. a complementary approach for KV cache compression via weight patching

Abstract. Long-context inference with Large Language Models (LLMs) is bottlenecked by the linearly growing memory of the key-value (KV) cache. Existing compression methods reduce the cache through token eviction or approximation, but degrade sharply at aggressive compression budgets. We propose PatchKV, a training-free framework that compensates KV cache compression methods by carrying part of the context in the model's weights. PatchKV pairs an off-the-shelf compressed KV cache with a context-specific weight patch, which is computed once at context-loading time and served for downstream queries for the context. The weight patch is derived in closed form via ridge regression, by aligning the block-wise activations of context-derived reference query tokens under the full cache and the compressed cache. Once merged into the model, the patch leaves the forward graph and per-query inference cost unchanged in the single-context, multi-query setting. Across long-context QA (SCBench with up to 170k tokens, SQuAD, NIAH) and math (GSM8K) benchmarks on three model architectures, PatchKV consistently improves cache compression methods, suggesting an alternative direction to compensate them at aggressive budgets.

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 paper
How does this paper connect to your work? Write how you built on it, compared with it or reproduced it, or add a summary, a critique or errata.
Or make it interactive:
Start writing

edit · history

DateVersionSubmitted toPDFEvidence
3 May 2026NeurIPS 2026submittedNeurIPS 2026Accept (poster)forumreviews ↓[1]PDF[1]
Missing a version?

NeurIPS 2026

Accept (poster) · 3 reviews · OpenReview

Updated 25 Nov 2026, 03:47 UTC.

Program Chairs · DecisionOpenReview ↗
Decision
Accept (poster)
Read decision
Meta-review

The paper proposes PatchKV, which compensates for KV-cache compression using context-specific MLP weight patches. Reviewers consistently found the idea novel and empirically promising.

Reviewers consistently questioned PatchKV’s practical applicability since the the evaluation setting assumes a narrow that is quite different from real-world deployment. the main point that can strengthen the paper is that if the authors could address this concerns. additionally, I suggest clarifying those clarity concerns raised by R2.

Final justification

The rebuttal (1) clarifies that the main experiments use independent layer-wise construction, (2)compares this with sequential fitting, and (3) adds Retrieve.MultiHop and HotpotQA results supporting transfer from proxy reference queries. The authors also add an online AIME experiment and a gradient-based adaptation comparison. All three reviewers retained positive ratings and stated that the response addressed all or most of their concerns.

Area Chair aRLr · Meta-reviewOpenReview ↗
Read meta-review
Meta-review

The paper proposes PatchKV, which compensates for KV-cache compression using context-specific MLP weight patches. Reviewers consistently found the idea novel and empirically promising.

Reviewers consistently questioned PatchKV’s practical applicability since the the evaluation setting assumes a narrow that is quite different from real-world deployment. the main point that can strengthen the paper is that if the authors could address this concerns. additionally, I suggest clarifying those clarity concerns raised by R2.

Final justification

The rebuttal (1) clarifies that the main experiments use independent layer-wise construction, (2)compares this with sequential fitting, and (3) adds Retrieve.MultiHop and HotpotQA results supporting transfer from proxy reference queries. The authors also add an online AIME experiment and a gradient-based adaptation comparison. All three reviewers retained positive ratings and stated that the response addressed all or most of their concerns.

1 comment
Authors · CommentOpenReview ↗

Dear Area Chair,

We appreciate the reviewers’ thoughtful feedback and would like to briefly summarize the main concerns and the additional analyses provided thus far.

  • Practical Applicability and Deployment (zEsN W1/W4; u1EL W4; tjfr W1): Reviewers questioned whether PatchKV’s single-context, multi-query setting and construction overhead limit its practical use. We clarified the intended setting, reduced patch construction overhead through implementation optimization, and discussed multi-context concurrent serving through context-specific low-rank patches.

  • Robustness of Reference Queries (zEsN W2; u1EL W1; tjfr W2): Reviewers questioned whether patches fitted on proxy reference queries generalize to unknown downstream queries. We clarified that PatchKV requires no access to downstream questions or answers, but instead uses context-derived references to proxy unknown future queries, following prior query-agnostic compression methods. Existing evaluations demonstrate that patches constructed from these references transfer across diverse downstream tasks and task structures.

  • Comparison and Methodological Clarifications (zEsN W3; u1EL W2/W3; tjfr Q2): Reviewers requested stronger baselines and clarification of several implementation and evaluation choices. We added gradient-based adaptation and multi-hop comparisons, clarified the sequential versus independent layer-wise construction, and explained the evaluation setting. These additional results support PatchKV’s accuracy-efficiency trade-off and resolve the main ambiguities.

  • Applicability Beyond Static Context Reuse (tjfr Q1): The reviewer asked whether PatchKV can extend to long reasoning, where the context continuously grows. We added an online AIME 2025 experiment that repeatedly applies KV compaction and PatchKV during generation, providing initial evidence that PatchKV can extend to long-reasoning settings.

We hope these additional results and clarifications address the key concerns raised by the reviewers.

Reviewer tjfrOpenReview ↗
Rating
4/6
Confidence
4/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 proposes PatchKV, a framework for compensating KV cache compression through context-specific weight patches. Instead of storing all context information only in a compressed KV cache, PatchKV transfers part of the information lost during compression into temporary updates to the MLP output projections. The patch is computed once when loading a context by matching full-cache and compressed-cache activations on reference queries derived from the context. The method uses a closed-form ridge regression and does not require gradient-based training. The patch is then merged into the model weights, so downstream queries use the same forward graph and incur no additional per-query computation.

Strengths and weaknesses

Strength

  • I like the idea of compensating KV cache compression errors in weight space. After a proxy-query-based method constructs a compressed cache and evicts part of the original context, it is natural to ask whether the missing information can be partially encoded into a context-specific weight update. PatchKV provides a clear formulation of this idea and treats the weight patch as complementary to, rather than a replacement for, the compressed KV cache.
  • The mathematical formulation is clean and easy to follow. The paper derives the patch through block-wise activation matching and closed-form ridge regression, avoiding gradient-based optimization. The use of sufficient statistics for chunked computation is also a sensible design for long reference sequences.

Weakness

  • The practical setting is restrictive. PatchKV assumes that a single long context is reused across many downstream queries, so that the cost of constructing the context-specific patch can be amortized. It is less clear how useful the method would be in settings with only one or a few queries per context, or in production systems that serve many different contexts concurrently.
  • The patch is optimized to match activations on proxy reference queries, while the actual downstream query distribution remains unknown. Although the paper shows that the patch can generalize beyond the reference set, it does not fully establish how robust this generalization is under larger distribution shift. The method may be sensitive to whether the chosen repeat-context or self-study references adequately represent future user queries.
Questions
  • I am curious whether the proposed weight-space compensation can be extended to long reasoning scenarios. For example, during long decoding, could the model periodically merge information from every (T) generated tokens into an updated weight patch, while compressing or evicting the corresponding generated KV states? This would help evaluate whether PatchKV can support long reasoning trajectories in addition to the current single-context, multi-query setting.
  • How would the method compare with directly fine-tuning using the same context, even if this requires more context-loading time? Such a comparison would help clarify whether the closed-form ridge-regression patch provides the best accuracy-efficiency trade-off, or whether a more expensive context-specific adaptation method could recover substantially more of the full-KV performance.
Limitations

See weakness and quesitons.

Formatting concerns

No

4 comments
Authors · RebuttalOpenReview ↗
Rebuttal

We appreciate the reviewer for detailed and constructive feedback. We address the raised concerns as follows.

W1. The practical setting is restrictive.

We appreciate the reviewer for highlighting the deployment consideration. We clarify below the intended deployment setting of PatchKV, together with its applicability to concurrent serving and the lifecycle management of context-specific patches.

PatchKV is primarily designed for and best suited to the single-context, multi-query setting, where a static context or prefix is prefilled once and reused across many subsequent queries (e.g. KVzip [1], Attention Matching [2]). This includes real-world scenarios such as personalized conversational agents retaining permanent information[3] or enterprise systems utilizing precomputed document KV caches for retrieval [4].

PatchKV is not necessarily beneficial when a context is used for only one or a few short queries. In such cases, the one-time cost of PatchKV may exceed the decoding time savings obtained from the smaller cache. However, amortization also depends on the number of decoding steps per query. Thus, even with only one or a few queries, long generated outputs such as multi-step reasoning or code generation can make KV compression useful because the reduced KV cache lowers memory and computation throughout many decoding steps.

Multi-context batching and concurrent serving are not the primary targets of PatchKV, as each context induces its own context-specific patch. However, PatchKV can be extended to this setting by retaining each patch as a context-specific adapter instead of merging it into the base model, as described in the low-rank patch variant in Appendix C. This follows the multi-LoRA serving paradigm used by systems such as Punica [5] and S-LoRA[6]. In this serving system, requests share a common base model and batch its shared computation, while adapter-specific low-rank update is separately applied according to the adapter associated with each request.

W2. The patch is optimized to match activations on proxy reference queries, while the actual downstream query distribution remains unknown. Although the paper shows that the patch can generalize beyond the reference set, it does not fully establish how robust this generalization is under larger distribution shift.

Thank you for raising this point. Reference selection is an important factor in query-agnostic cache compression, where the reference queries serve as proxies for unknown future queries. Following prior query-agnostic cache compressors[1,2], PatchKV therefore uses standard context-derived references, including repeat-context and self-study, rather than actual downstream queries. These references have been shown to serve as effective proxies for unseen queries, and PatchKV uses them to derive a closed-form, context-specific weight update that compensates for cache-compression error.

The reference queries are initially designed to broadly cover context information and downstream query, and the robustness under larger distribution shifts can only be assessed empirically. In experiments, patches constructed from these references improve performance across retrieval, QA, mathematical reasoning, code, and summarization, showing that these references generalize well across diverse downstream tasks and task structures. Table 1 further shows reduced perplexity on downstream answer tokens not used for patch construction, while Figure 4 demonstrates transfer across different task structures. We agree that reference-query mismatch remains a limitation, as reflected by the differences among reference strategies. Better proxy construction is therefore a promising complementary direction, while our weight-space compensation framework remains applicable to different reference strategies and cache compressors.

Q1. I am curious whether the proposed weight-space compensation can be extended to long reasoning scenarios.

We implemented an online variant and evaluated it on AIME 2025 with Qwen3-4B, following the online evaluation setting used by Attention Matching (AM) [2].

During decoding, we trigger a fold whenever the physical KV cache, including the prompt, reaches P=2048 entries. At each fold, we protect the most recent 20 KV entries and apply AM to compact the remaining prefix. We then apply PatchKV over AM, and add the update to the model before resuming autoregressive decoding. Thus, KV compaction and weight-space compensation are repeatedly applied throughout a single reasoning trajectory.

We evaluate logical generation caps of 4096 and 8192 tokens, while keeping the physical KV limit fixed at 2048 and varying the retention rate of the compactable prefix. The reported retention rate excludes the protected 20 tokens. Lower retention leaves a smaller cache after each fold and therefore allows more tokens to be generated before the next fold.

Table A shows that the benefit of PatchKV is most pronounced under aggressive compression. At 10% retention, AM+Patch outperforms AM under both logical caps. With an 8K cap and 25% retention, AM+Patch solves two additional problems and reaches 13/30, close to the 14/30 Full-KV baseline. Even at 5% retention, PatchKV improves AM from 2/30 to 5/30, although both methods degrade substantially under this extremely small KV budget.

The 8K results also illustrate the latency benefit of more aggressive compression. Reducing retention rate from 50% to 25% decreases the mean fold count from 5.47 to 3.73 and maintains a shorter physical cache, both of which reduce inference cost as shown in the result. Note that the resulting latency also depends on the generated trajectory length, which may change under different compression levels.

Overall, these results provide initial evidence that PatchKV can be repeatedly updated during long reasoning while generated KV states are periodically compressed, extending its applicability beyond the static single-context, multi-query setting.

Table A. Comparison of online PatchKV on the AIME 2025 over 4K and 8K logical cap.

Retention rate Method 4K Acc. 4K Latency 4K Folds 8K Acc. 8K Latency 8K Folds
Full KV Full 9/30 84.2 0 14/30 179.9 0
50% AM 9/30 96.3 1.97 13/30 249.9 5.47
AM+Patch 9/30 95.2 1.97 12/30 261.9 5.33
25% AM 9/30 82.9 1.93 11/30 169.8 3.73
AM+Patch 8/30 88.4 1.97 13/30 193.4 3.67
10% AM 2/30 80.6 2.00 4/30 180.4 4.00
AM+Patch 8/30 81.6 1.93 8/30 184.9 3.57
5% AM 2/30 85.1 2.00 2/30 165.0 4.00
AM+Patch 6/30 87.5 1.93 5/30 162.9 3.57

Q2. How would the method compare with directly fine-tuning using the same context, even if this requires more context-loading time?

We added a paired experiment on all 88 SCBench RepoQA contexts using Qwen2.5-7B at 0.05 KV cache ratio.

Since directly fine-tuning all MLP ‘down_proj’ layers will be expensive, we freeze the base model and train rank-32 LoRA updates on all 28 MLP ‘down_proj’ layers. We consider two objectives. FT-Act minimizes the MSE between full- and compressed-KV transformer block outputs, LAct(ϕ)=1L∑l=1LMSE(HlC(ϕ),HlF)\mathcal L_{\mathrm{Act}}(\phi) = \frac{1}{L} \sum_{l=1}^L\mathrm{MSE}(H^C_l(\phi), H_l^F), while FT-KD minimizes the KL divergence between next-token distributions, LKD(ϕ)=T2N∑t=1NDKL(softmax⁡(ztF/T)∣∣softmax⁡(ztC(ϕ)/T))\mathcal L_{\mathrm{KD}}(\phi) = \frac{T^2}{N}\sum_{t=1}^{N}D_{\mathrm{KL}}(\operatorname{softmax}(z_t^{F}/T) || \operatorname{softmax}(z_t^{C}(\phi)/T)) . Here, ϕ\phi denotes the LoRA parameters, and neither objective uses downstream questions or answers.

We compare PatchKV with a repeat-context reference query over KVzip with FT-Act and FT-FD in Table B. At matched adaptation time, closed-form ridge provides the strongest accuracy–efficiency trade-off (28.2%). With substantially longer optimization, FT-Act exceeds PatchKV by only 1.1 points while requiring over 16× more adaptation time, whereas FT-KD remains below PatchKV. Both remain far below full-KV accuracy.

We therefore find that, under this controlled setting, closed-form ridge provides a substantially better measured accuracy–efficiency trade-off, while more expensive context-specific gradient adaptation yields only limited additional recovery. We do not interpret these results as an upper bound on gradient-based adaptation, since exhaustive hyperparameter optimization across context-specific adapters was computationally infeasible. More extensive optimization may yield further gains, but would incur substantially greater adaptation and search cost. We leave this trade-off to future work.

Table B. Comparison between PatchKV and fine-tuning variants.

Method Pass@1 (%) Mean Latency (s) Peak Memory (GB)
Full KV 59.1 — —
KVzip 3.9 — —
PatchKV 28.2 25.98 75.06
FT-Act, 2 epochs 20.7 27.09 68.50
FT-KD, 2 epochs 17.5 28.16 80.72
FT-Act, 32 epochs 29.3 431.08 68.50
FT-KD, 32 epochs 24.3 449.64 80.72

[1] Kim et al., KVzip: Query-Agnostic KV Cache Compression with Context Reconstruction. NeurIPS 2025

[2] Zwieger et al., Fast KV Compaction via Attention Matching. ICML 2026

[3] Li et al., Personal LLM Agents: Insights and Survey about the Capability, Efficiency and Security. arXiv preprint 2024

[4] Chan et al., Don’t Do RAG: When Cache-Augmented Generation is All You Need forKnowledge Tasks. WWW 2025

[5] Chen et al., Punica: Multi-Tenant LoRA Serving. MLSys 2024

[6] Sheng et al., S-LoRA: Serving Thousands of Concurrent LoRA Adapters. MLSys 2024

Authors · CommentOpenReview ↗

Dear reviewer tjfr,

Thank you again for your time and for the detailed review. As the discussion period is closing in less than three days, we would greatly appreciate it if we could know whether our rebuttal has properly addressed your concerns. If any concern remains, we would be happy to provide further clarification.

Reviewer tjfr · CommentOpenReview ↗

Thank you for the rebuttal; it addressed most of my concern. I'll keep my score as positive.

Authors · CommentOpenReview ↗

We sincerely thank the reviewer for acknowledging the rebuttal and for the continued support of the paper. We are glad that the reviewer’s concerns are resolved, and will make sure to incorporate all of its content into the final version. Thank you again for your valuable feedback.

Reviewer u1ELOpenReview ↗
Rating
4/6
Confidence
4/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

PatchKV tries to recover information loss during kv-cache compression by modifying the weight of MLP layers to encode part of compression information into them. So PatchKV additionally modifies each MLP output projection to imitate some of the behavior that the full cache would have produced to complement the kv-cache compression. The actual distribution for future-query is unknown when the context is compressed, so they need some proxy queries as reference to imitate their kv-cache, so they create reference queries with repeating the context, self-study such as aggregate key context and both of them. The MLP activation produced under the compressed cache is treated as the regression input, and the target correction is the difference between the full cache and the compressed one. The resulting input–target pairs are aggregated across reference tokens, and a ridge-regression problem is solved in closed form to obtain a single linear weight patch for each transformer block. Once computed, the patch is merged into the model weights, introducing no additional forward operations during downstream generation.

Strengths and weaknesses

Strengths:

The problem is well-motivated. The corrected kv-cache is query agnostic and does not need to be recomputed for each query again, but the quality of the cache is dependent on reference sequences the model has been trained on (see weakness 1). The patch is obtained through ridge regression rather than gradient-based fine-tuning. It is compatible with any cache compression method.

Weaknesses:

The patch quality is heavily dependent on feature directions from the reference sequences (repeat-context, self-study, and joint). From the main paper and the pseudocode in Algorithm 1, what I understand is that a sequential layer-wise approach has been applied, and I wanted to mention that it requires a lot of forward passes, as learning a patch for one block changes the activations seen by every later block. But in Appendix B1, it seems they did it independently layer-wise, which Figure 6 shows to have very similar relative accuracy, so it's confusing which one they are doing. The Retrieve.MultiHop from the SCBench benchmark is completely aligned with the paper’s single-context, multi-query setting, as it uses the same shared context for multiple variable-tracing queries. However, this task is not included among the SCBench tasks reported in the main experiments(figure 2). Since multi-hop tracing requires preserving compositional dependencies across different parts of the context, I am wondering whether these dependencies are well captured by the repeat-context or self-study reference sequences. Could the authors clarify why Retrieve.MultiHop was omitted and report results on this task? PatchKV still needs to construct the full KV cache first and use it as the teacher to learn the patch. For extremely long contexts where the full KV cache cannot fit in memory even temporarily, the method would not be applicable in its current form. So although PatchKV reduces the memory needed for later queries, it does not solve the peak-memory issue during prefill and patch construction. Minor issue: Please add references to the abstract.

Questions

Please see weaknesses. Can you clarify the main experiments are with independent layer-wise patch or sequential? Is there any specific criteria for not including Retrieve.MultiHop from the SCBench? Please see weakness 3)

Limitations

There is no limitation section due to the limited space (based on what they say in the checklist), please add the limitation section to the appendix. But they do discuss limitations in different parts of the text.

Final justification

The author has addressed my concerns. I will keep my positive score.

Formatting concerns

N/A

2 comments
Authors · RebuttalOpenReview ↗
Rebuttal

We appreciate the reviewer for detailed and constructive feedback. We address the raised concerns as follows.

W1. The patch quality is heavily dependent on feature directions from the reference sequences (repeat-context, self-study, and joint).

Thank you for raising this point. Reference selection is an important factor in query-agnostic cache compression, where the reference queries serve as proxies for unknown future queries. Following prior query-agnostic cache compressors[1,2], PatchKV therefore uses standard context-derived references, including repeat-context and self-study, rather than actual downstream queries. These references have been shown to serve as effective proxies for unseen queries, and PatchKV uses them to derive a closed-form, context-specific weight update that compensates for cache-compression error.

Empirically, patches constructed from these references improve performance across retrieval, QA, mathematical reasoning, code, and summarization. Table 1 further shows reduced perplexity on downstream answer tokens not used for patch construction, while Figure 4 demonstrates transfer across different task structures. We agree that reference-query mismatch remains a limitation, as reflected by the differences among reference strategies. Better proxy construction is therefore a promising complementary direction, while our weight-space compensation framework remains applicable to different reference strategies and cache compressors.

W2, Q1. From the main paper and the pseudocode in Algorithm 1, what I understand is that a sequential layer-wise approach has been applied [...] as learning a patch for one block changes the activations seen by every later block. But in Appendix B1, it seems they did it independently layer-wise, which Figure 6 shows to have very similar relative accuracy, so it's confusing which one they are doing.

We apologize for the confusion. Our exact algorithm (Algorithm 1) formulates a sequential block-wise construction, in which each fitted patch is applied before fitting the next block. This formulation explicitly accounts for the changes in later layer conditioning states induced by the patches in earlier layers, while requiring forward passes quadratically scales to the network depth. Therefore, we also considered an efficient layer-wise approximation that fits every block independently at its corresponding full KV teacher state. The independent method removes the cross-layer fitting dependency and permits layer-parallel construction, considered to be almost 2 times faster compared to sequential method as seen in Table A.

Table A. Comparison of evaluation time and memory between independent layer-wise and sequential construction.

Indep. Seq.
Time (s) 140.32 254.48
Peak Memory (GB) 82.03 45.49

Both approaches optimize the same per-block ridge objective toward the same teacher output, and differ only in the conditioning states used for later blocks. In the optimal case, they coincide when every local residual is zero. Furthermore, we found that their downstream performance remains almost identical in practice, as shown in Figure 6 (Appendix B1). Therefore, the results in the main experiments were obtained using the approximated independent construction to reduce computational cost while preserving the desired behavior. We will revise the paper to clarify this implementation choice and present the comparison more prominently.

W3, Q2. The Retrieve.MultiHop from the SCBench benchmark is completely aligned [...] for multiple variable-tracing queries. However, this task is not included among the SCBench tasks reported in the main experiments(figure 2). [...] Could the authors clarify why Retrieve.MultiHop was omitted and report results on this task?

Thank you for raising this point, and we report the results in Table B below.

As illustrated in Table 3 of SCBench [3], Retrieve.MultiHop contains an extremely large amount of distractors (99.57% in the first example). This makes the task behave differently from other tasks in Figure 2, removing more contexts can itself improve performance by removing distractors. This behavior is actually observed in the original KVzip results shown in Table B, where Retrieve.MultiHop can perform better under more aggressive compression.

We therefore omitted Retrieve.MultiHop because the task setup that benefits from more removal of context tokens is not the intended scenario of PatchKV. Nevertheless, Table B shows that PatchKV further improves over KVzip on Retrieve.MultiHop with repeat-context or joint reference queries. This suggests that PatchKV can remain effective on multi-hop variable tracing.

To further verify that this result is not specific to the highly redundant synthetic structure of Retrieve.MultiHop, we additionally evaluate PatchKV on HotpotQA[4], a more natural multi-hop QA benchmark. The evaluation results are shown in Table C. PatchKV consistently improves over KVzip across all evaluated KV cache ratios from 0.2 to 0.01, within all variants. These results further support that PatchKV can preserve information required for multi-hop reasoning. We will report these results and clarify the reason for the original omission in the revision.

Table B. Accuracy(%) of KVzip and PatchKV on the SCBench Retrieve.MultiHop task across compression ratios.

Ratio KVzip Ours(repeat) Ours(self-study) Ours(joint)
1.00 41.38 41.38 41.38 41.38
0.20 40.31 42.62 41.31 41.60
0.10 44.18 45.42 41.60 44.00
0.05 45.02 46.76 43.07 46.58
0.02 45.24 49.33 42.18 47.38
0.01 43.33 49.38 41.38 47.16
0.00 0.00 0.00 1.82 0.00

Table C. Evaluation results of KVzip and PatchKV on the HotpotQA benchmark across compression ratios.

Ratio KVzip Ours(repeat) Ours(self-study) Ours(joint)
1.00 60.16 60.16 60.16 60.16
0.20 54.46 58.76 60.68 59.68
0.10 54.05 58.40 56.85 55.75
0.05 41.20 44.71 50.83 47.41
0.02 33.18 37.90 40.51 42.83
0.01 34.57 38.01 34.84 37.45
0.00 33.96 32.33 34.86 37.10

W4. PatchKV still needs to construct the full KV cache first and use it as the teacher to learn the patch. For extremely long contexts where the full KV cache cannot fit in memory even temporarily, the method would not be applicable in its current form. So although PatchKV reduces the memory needed for later queries, it does not solve the peak-memory issue during prefill and patch construction.

We agree that PatchKV does not address peak memory during context construction. PatchKV targets the single-context, multi-query setting, where the context is loaded once and reused across many downstream queries. Accordingly, our memory reduction concerns the KV cache retained for subsequent queries. The current construction still requires the full KV cache to be prefilled, similar to the query-agnostic compression methods(e.g. KVzip [1], Attention Matching [2]) on which PatchKV builds.

However, constructing PatchKV does not fundamentally require the entire full KV cache to reside on the GPU at once. The full KV cache could instead be stored in CPU memory or secondary storage and accessed block by block during the teacher forward pass, such that only a working subset is resident on GPU at any time. Systems such as FlexGen[5] demonstrate this general approach by distributing KV caches across GPU, CPU, and disk, while more recent systems such as LMCache [6] similarly support tiered KV storage across GPU, CPU, and secondary storage. Applying such an offloaded full KV forward in PatchKV construction could reduce GPU memory at the cost of data transfer and storage usage. Once the patch is constructed, only the compressed KV cache needs to remain on the GPU for subsequent decoding.

KV quantization is complementary to this approach. As shown in Appendix C, PatchKV remains effective with INT4/INT8 KV caches, suggesting that low-precision KV storage can further reduce the cache memory footprint. Our current experiments use a full KV cache on the GPU during construction, while integrating offloaded teacher execution is a natural systems extension that we leave for future work.

W5. Minor issue: Please add references to the abstract.

Thanks for the suggestions. We will add citations to the relevant prior work mentioned in the abstract in the revision.


[1] Kim et al., KVzip: Query-Agnostic KV Cache Compression with Context Reconstruction. NeurIPS 2025

[2] Zwieger et al., Fast KV Compaction via Attention Matching. ICML 2026

[3] Li et al., SCBench: A KV Cache-Centric Analysis of Long-Context Methods. ICLR 2025

[4] Yang et al., HotpotQA: A Dataset for Diverse, Explainable Multi-hop Question Answering. EMNLP 2018

[5] Sheng et al., FlexGen: high-throughput generative inference of large language models with a single GPU. ICML 2023

[6] Liu et al., LMCache: An Efficient KV Cache Layer for Enterprise-Scale LLM Inference. arXiv preprint 2025

Authors · CommentOpenReview ↗

Dear reviewer u1EL,

Thank you again for your time and for the detailed review. As the discussion period is closing in less than three days, we would greatly appreciate it if we could know whether our rebuttal has properly addressed your concerns. If any concern remains, we would be happy to provide further clarification.

Reviewer zEsNOpenReview ↗
Rating
4/6
Confidence
4/5
Quality
3/4
Clarity
3/4
Significance
3/4
Originality
4/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

This paper proposes PatchKV: it first compresses a long context into a smaller KV cache, then uses context-derived reference queries to compare the activation differences between the full cache and the compressed cache, and solves these errors in closed form as layer-wise MLP weight patches. In this way, PatchKV recovers part of the information lost during compression in a single-context, multi-query setting. On SQuAD, GSM8K, NIAH, and SCBench, PatchKV consistently improves over both KVzip and Attention Matching, with especially clear gains under very low cache budgets.

Strengths and weaknesses

Strengths:

  1. The idea is novel, and the paper is well written.
  2. The performance is good as a training-free method

Weakness

  1. High construction cost: constructing PatchKV for a 169,035-token context takes about 197s.
  2. PatchKV is not purely context-only. It needs queries to construct the patch, but the true downstream query distribution is unknown for the server.
  3. Attention Matching is reported to be unstable on full SCBench retrieval tasks, so the authors use tiny variants instead, which weakens the fairness of the comparison.
  4. Deployment setting is under-discussed: The method mainly targets the single-context, multi-query setting, but does not seriously discuss multi-batch inference, concurrent serving, or the lifecycle management of context-specific patches.
Questions

See weakness

Limitations

This paper does not discuss the limitations due to space constraints; they write this in checklist.

Formatting concerns

No

4 comments
Authors · RebuttalOpenReview ↗
Rebuttal

We appreciate the reviewer for detailed and constructive feedback. We address the raised concerns as follows.

W1. High construction cost: constructing PatchKV for a 169,035-token context takes about 197s.

Thank you for highlighting the construction cost. As commented by the reviewer, PatchKV introduces an additional one-time construction cost beyond prefill and KV-cache compression. However, PatchKV is primarily intended for the single-context, multi-query setting, where a long context is read once and reused across subsequent queries, so querying cost rather than construction cost is the major practical bottleneck. This is the same setting considered by query-agnostic KV cache compression methods such as KVzip [1] and Attention Matching [2].

We clarify that the reported 197.07s measures the entire preprocessing pipeline, including 63.53s for the underlying KV-cache compression, which is also required by the cache-only baseline. We also found that the remaining patch construction cost can be substantially reduced through implementation-level optimization. For instance, in a matched measurement on the same 169,035-token context, enabling TF32 Tensor Cores for the matrix multiplication reduced the wall-clock time from 135.34s to 76.15s (adding 12% overhead to KVzip), while preserving downstream accuracy, as shown in Tables A and B.

Nevertheless, we agree that this optimization does not eliminate the construction overhead. PatchKV is most suitable when the same context is queried sufficiently many times to amortize its one-time cost. We will make this point more clearly in the revised manuscript.

Table A. Comparison of average accuracy over PatchKV+KVzip with repeat-context.

KV cache ratio FP32 TF32
1.00 63.17 63.17
0.20 56.48 56.69
0.10 52.13 52.07
0.05 34.80 34.65
0.02 16.89 14.76
0.01 11.74 11.52
0.00 11.83 11.58

Table B. Comparison of wall-clock time for PatchKV construction.

Stage BF32 TF32
Cache compression 67.70s 67.82s
Patch construction 135.34s 76.15s
Total 203.04s 143.96s

W2. PatchKV is not purely context-only. It needs queries to construct the patch, but the true downstream query distribution is unknown for the server.

Thank you for raising this point. We clarify that PatchKV is not query-free, but downstream-query-agnostic, as are prior works on query-agnostic cache compressors [1,2]. Since future downstream queries are unavailable at prefill time, PatchKV uses standard context-derived reference queries from these prior works, including repeat-context and self-study, rather than actual downstream queries. These references have been shown to serve as effective proxies for unseen queries, and PatchKV uses them to derive a closed-form, context-specific weight update that compensates for cache-compression error.

Empirically, patches constructed from these references improve performance across retrieval, QA, mathematical reasoning, code, and summarization. Table 1 further shows reduced perplexity on downstream answer tokens not used for patch construction, while Figure 4 demonstrates transfer across different task structures. We agree that reference-query mismatch remains a limitation, as reflected by the differences among reference strategies. Better proxy construction is therefore a promising complementary direction, while our weight-space compensation framework remains applicable to different reference strategies and cache compressors.

W3. Attention Matching is reported to be unstable on full SCBench retrieval tasks, so the authors use tiny variants instead, which weakens the fairness of the comparison.

Thank you for raising this concern. Our experiments focus on evaluating whether PatchKV can compensate for information lost during KV compression. On the full SCBench retrieval tasks, both Attention Matching (AM) and AM + PatchKV achieve zero accuracy under the evaluated cache ratios, making it harder to evaluate how PatchKV compensates over AM.

Thus we reported results on the tiny variants to precisely evaluate PatchKV over AM, however, the evaluation is performed in a completely fair manner. The only difference of tiny variants from full retrieval tasks is the shortened context length. For each tiny variant, the AM baseline and all PatchKV variants are evaluated on exactly the same examples, with identical cache ratios and evaluation settings. Under these matched conditions, AM achieves non-zero accuracy on low cache ratios and PatchKV improves over the AM baseline in this region. We will clearly distinguish the full-task and tiny-variant results and label the task variants in the figure and caption, and add the full-task results in the revision.

W4. Deployment setting is under-discussed: The method mainly targets the single-context, multi-query setting, but does not seriously discuss multi-batch inference, concurrent serving, or the lifecycle management of context-specific patches.

We appreciate the reviewer for highlighting the deployment consideration. We clarify below the intended deployment setting of PatchKV, together with its applicability to concurrent serving and the lifecycle management of context-specific patches.

PatchKV is primarily designed for and best suited to the single-context, multi-query setting, where a static context or prefix is prefilled once and reused across many subsequent queries (e.g. KVzip [1], Attention Matching [2]). This includes real-world scenarios such as personalized conversational agents retaining permanent information [3] or enterprise systems utilizing precomputed document KV caches for retrieval [4]. Within this setting, the patch can be stored and managed together with its compressed KV cache as a reusable context state, and reused as long as the underlying context remains unchanged during the lifecycle.

Multi-context batching and concurrent serving are not the primary targets of PatchKV, as each context induces its own context-specific patch. However, PatchKV can be extended to this setting by retaining each patch as a context-specific adapter instead of merging it into the base model, as described in the low-rank patch variant in Appendix C. This follows the multi-LoRA serving paradigm used by systems such as Punica [5] and S-LoRA [6]. In this serving system, requests share a common base model and batch its shared computation, while adapter-specific low-rank update is separately applied according to the adapter associated with each request. During the lifecycle, each context-specific low-rank patch can be managed independently using the same loading, switching, and offloading mechanisms as low-rank adapters in multi-LoRA serving systems aligned with associated context.


[1] Kim et al., KVzip: Query-Agnostic KV Cache Compression with Context Reconstruction, NeurIPS 2025

[2] Zwieger et al., Fast KV Compaction via Attention Matching, ICML 2026

[3] Li et al., Personal LLM Agents: Insights and Survey about the Capability, Efficiency and Security, arXiv preprint 2024

[4] Chan et al., Don’t Do RAG: When Cache-Augmented Generation is All You Need forKnowledge Tasks, WWW 2025

[5] Chen et al., Punica: Multi-Tenant LoRA Serving, MLSys 2024

[6] Sheng et al., S-LoRA: Serving Thousands of Concurrent LoRA Adapters, MLSys 2024

Authors · CommentOpenReview ↗

Dear reviewer zEsN,

Thank you again for your time and for the detailed review. As the discussion period is closing in less than three days, we would greatly appreciate it if we could know whether our rebuttal has properly addressed your concerns. If any concern remains, we would be happy to provide further clarification.

Reviewer zEsN · CommentOpenReview ↗

Thank you to the authors for their response. I will maintain my current score.

Authors · CommentOpenReview ↗

We appreciate the reviewer for positive feedback and support. Thank you for all the time and effort in reviewing this paper.

From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.

Missing a submission?

Loading the discussion…