Budgeted Cache Repair for Cross-Context KV-Cache Reuse
Abstract
Cross-context KV-cache reuse predicts a shared segment's keys and values under a new prefix instead of recomputing them, and has been reported to do so without quality loss. We find otherwise, and identify two problems. (1) A hidden cost: on MMLU and GSM8K, reuse costs substantial accuracy. (2) A decision at the wrong unit: no rule for deciding whether to reuse a cache removes that cost. What does help is choosing which parts of the cache to recompute, and the value of choosing well falls as the unit of choice grows: informed selection removes 49.5% of the cache error beyond chance at single rows (one token's keys and values), 10.6% at 64-token chunks, and nothing at the level of whole calls. Budgeted Cache Repair (BCR) acts at the unit where selection still pays. It drafts two tokens from the assembled cache, ranks cache rows by the attention those tokens pay them, and recomputes a fixed budget of rows exactly, in one of three layouts. The cost is paid rather than predicted away, and the draft that fails as a gate succeeds as a selector. BCR restores GSM8K to dense-prefill accuracy while still serving most calls from cache, and its best layout outperforms every reuse baseline's mean in the reference grid. The draft also beats a coin-flip selector at the same budget - a control prior evaluations lack.
Create a lesson
Metadata
- Categories
- cs.AR, cs.CL, cs.LG
Related papers
Gossamer: A Utility-Driven Architecture for Constant-Budget KV Cache Compression in Reasoning LLMs
Shared title terminologycs.ARFeng Cheng, Cong Guo, Junyao Zhang et al.
Interface-Aware KV Cache Quantization for Dense On-Chip NVM in Long-Context LLM Decoding
Shared title terminologycs.ARJiahao Zheng, Yifan Qin, Xiaobo Sharon Hu et al.
PACER: Accelerating Mixture-of-Experts LLM Inference on High Bandwidth Flash Memory via Resource-Aware Expert Prefetching and Caching
Shared title terminologycs.ARGeraldo F. Oliveira, Ahmet Caner Yüzügüler, Renzo Andri et al.
CAMPA: A Cross-Algorithm Multithreaded PQC Accelerator with Dynamic Scheduling
Shared title terminologycs.ARZhengpeng Zhao, Wenbo Xu, Jiayi Li et al.
MergeASR: Efficient Automatic Speech Recognition with Lightweight Cache-Based Token Merging
Shared title terminologycs.ARWenhui Ou, Qiawei Zheng, Pingcheng Dong et al.
Scaling Engram Inference with Tiered CXL Memory and Cross-Block Execution
Shared title terminologycs.ARHaojia Zhang, Hanzhi Xun, Yang Ou et al.