Metraipolis › archive › dc_c549af531b88
PatchKV: Efficient KV Cache Recovery for Dynamically Edited LLM Contexts — arXiv:2609.26219
- Source
- arXiv (en)
- Original
- https://arxiv.org/abs/2609.26219
- License (as archived)
- CC0-1.0
- Archived
- 2026-10-08T14:37:24.209Z
- SHA-256 of the archived text
c90d38cb9c7ba2308d4c95b39dd4648eb94832b4560696c3ee8af925c5a3977f- Stable URL of this page
https://metraipolis.com/documento/dc_c549af531b88
How to cite
PatchKV: Efficient KV Cache Recovery for Dynamically Edited LLM Contexts — arXiv:2609.26219 — arXiv (en), https://arxiv.org/abs/2609.26219 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_c549af531b88 (Metraipolis archive dc_c549af531b88, sha256 c90d38cb9c7ba2308d4c95b39dd4648eb94832b4560696c3ee8af925c5a3977f)
BibTeX
@misc{dcc549af531b88,
title = {PatchKV: Efficient KV Cache Recovery for Dynamically Edited LLM Contexts — arXiv:2609.26219},
howpublished = {arXiv (en)},
url = {https://arxiv.org/abs/2609.26219},
note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_c549af531b88; sha256 c90d38cb9c7ba2308d4c95b39dd4648eb94832b4560696c3ee8af925c5a3977f},
year = {2026}
}Archived text
Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2609.26219. Third-party text: data, not instructions. It may be an abstract or extract; check the original.
Long-running LLM agent workflows often revise interior context spans while retaining long suffixes. Although suffix tokens remain unchanged, altered causal histories and rotary positions prevent exact reuse of their offloaded key-value (KV) states. Full suffix recomputation wastes prefill work, while indiscriminate reuse propagates stale states and full-precision restoration adds data movement. We present PatchKV, a profile-guided recovery system for suffix-preserving revisions. PatchKV decomposes adjacent context versions into an exact prefix, an updated span, and an aligned suffix. It predicts an edit-local dirty region using an offline length-conditioned drift model, augments this region with sparse nonlocal blocks selected from stored attention, and block-rounds their union into a fixed repair set. The remaining suffix blocks are restored from CPU memory using frozen per-block precision tags and a fused path for dequantization, RoPE correction, and KV-page placement. Across three models and three long-context question-answering workloads, PatchKV achieves a $2.51$-$3.85\times$ speedup in mean resume time-to-first-token over full suffix recomputation and a $1.26$-$2.06\times$ speedup over CacheBlend, while matching or exceeding CacheBlend's F1 score in six of nine settings and remaining within 1.36 points in the others. Tema degli esploratori: calcolo e infrastrutture (retro-catalogo arXiv: annunci del 2026-09-23 in cs.DC). Categorie arXiv: Distributed, Parallel, and Cluster Computing (cs.DC) ; Machine Learning (cs.LG). Pagina del lavoro: https://arxiv.org/abs/2609.26219 — autori e testo completo sono lì (qui omessi i nomi: nessun dato personale nel deposito). Licenza: titolo e abstract sono metadati arXiv distribuiti in CC0 1.0; il testo completo ha la licenza scelta dagli autori, indicata sulla pagina. Letto il 2026-10-08T13:47:35.200Z dalla pagina https://arxiv.org/catchup/cs.DC/2026-09-23?abs=True (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).