arXiv Machine Learning

CacheReforge: Bounded Recovery for Stale KV Caches under Evolving Adapters

CacheReforge is a method for recovering stale key‑value (KV) caches in large language models when lightweight adapters evolve. It represents stale caches as layer‑wise mixed‑version objects and uses adapter anchors, sensitivity calibration, drift accumulation, and restart boundaries to decide between direct reuse, bounded recomputation, or full suffix recovery. Experiments on Qwen2.5 models with continual LoRA updates show a 92.4% reduction in mean KL divergence while only recomputing 5.44% of layers and cutting cache‑maintenance time by 93.2% compared to full prefill.

arXiv AI
Nov 11

Can KV Cache Be Reused Across Model Updates? A DeepSeek-V4-Flash Case Study

The study examines whether key–value (KV) caches can be reused across updates of a language model, focusing on DeepSeek‑V4‑Flash to Flash‑0731. It finds that while caches can retain useful task information, they do not fully replicate the updated model’s behavior, with retrieval accuracy varying widely across updates. When source caches are available, reuse yields significant speedups (2.10–5.08×) on longer‑prefix QA benchmarks, but functional differences—captured by Functional Cache Divergence—highlight that preserved behavior differs between natural‑text continuation and single‑token retrieval tasks.

By Zhikun Tao, Fangyong Jin, Junping Zhao
arXiv Computation and Language
Nov 5

Where Should a KV-Cache Repair Budget Go? Distractor Structure and Contextual Compatibility in Non-Prefix Reuse

The paper investigates where to allocate a limited repair budget when reusing KV-caches in large language models. By varying the chunks surrounding the target answer across several models and datasets, it finds that repairing the target chunk yields the most benefit, as damage is distributed across other chunks. Recomputing the target against the reused cache outperforms inserting a full prefill KV in most settings, though question attention rarely selects the target and a retriever can improve results in certain QA and documentation tasks.

By Yuxing Peng, Zhiqing Tang, Weijia Jia
arXiv AI
Oct 9

RaReCache: Bridging the Gap in Cross-Model KV Cache Reuse via Rank disagreement-based Selective Recomputation

RaReCache is a framework that allows a large target language model to decode accurately from a KV cache prefilled by a much smaller source model by selectively recomputing only critical token positions. It identifies these positions using a rank disagreement metric that scores tokens based on the energy of their mapped KV in output directions weakly supported by calibration data. Across two model families and five benchmarks, RaReCache achieves up to a 3.04× prefill speedup and significantly reduces prefill latency while maintaining 95–99% of target accuracy with a 30–40% recompute budget.

By Sreetama Sarkar, Saptarshi Mitra, Sitao Huang, Souvik Kundu, Peter A. Beerel
arXiv AI
Oct 15

Budgeted KV-Cache Repair for Evolving Contexts

arXiv:2610.17338v1 Announce Type: new Abstract: Language-model agents revise their working context as information becomes obsolete, but deleting text does not erase its influence on cached computatio...

By Han Yu, Wenhui Zhu, Jincheng Cao, Rui Cai, Yuanda Xu, Zhengze Zhou, Xiwen Chen, Hao Wang, Xuanzhao Dong, Han Shi, Menglin Zhou, Shayan Mohajer Hamidi, Lin Su, Mina Razghandi, Sayan Ghosh, Qing Lan, Rohit Jain, Alborz Geramifard
arXiv Computation and Language
Oct 21

Cache Engineering for Agents

The paper introduces cache engineering for large language model agents, enabling direct control over the active key-value cache without altering the trajectory or triggering costly re-prefilling. It defines cache operations such as drop and repos, formalizes their effects, and addresses the challenge of history-dependent cache states. The authors co-design a stateless AKV serving engine that manages stateful cache reuse, eviction, and restoration, achieving significant performance and cost improvements over traditional summarization methods.

By Tianyu Fu, Ruoxi Wang, Zihan Min, Zhongqi Ren, Zhihao Li, Tengxuan Liu, Shengxu Mu, Hanling Zhang, Yu Wang