Can KV Cache Be Reused Across Model Updates? A DeepSeek-V4-Flash Case Study
Zhikun Tao, Fangyong Jin, Junping Zhao
Abstract
Reusing key--value (KV) caches across language model updates could avoid repeated computation of shared context, but changes in model weights raise a fundamental question about what these caches preserve. We investigate direct cache reuse across four model updates, with a detailed study of DeepSeek-V4-Flash to Flash-0731. Our central finding is that caches can retain useful task information without faithfully reproducing the updated model's behavior. Retrieval accuracy varies substantially across updates, ranging from near-native performance to large losses. With source caches already available, reuse achieves median time-to-first-token speedups of 2.10--5.08× on three longer-prefix QA benchmarks. To characterize the behavioral differences behind these outcomes, we introduce Functional Cache Divergence, which compares next-token distributions under reused and native caches. Direct KV cache reuse better preserves native model behavior in natural-text continuation, whereas compatibility degrades with increasing prefix length in single-token retrieval tasks. Answer-margin analyses help explain how correct retrieval decisions survive substantial internal state changes. Yet even agreement on the first generated token does not ensure agreement in answer content or stopping behavior. These findings establish task utility and fidelity to native inference as distinct criteria for evaluating cross-version KV cache reuse.
Create a lesson
Related papers
DARIC: A Position-Independent KV Cache Reuse System with Distribution-Aware Recomputation
Shared title terminology · Weikang Wang, Haiyang Liu, Xin Zhou et al.
TideCache: Efficient Hybrid LLM Serving with Transparent Cache Management and Layer-Wise Streaming
Shared title terminology · Jinbin Luo, Xiaozhe Yao, Shang Yang et al.
Aggron: Aggressive Compression of Agentic KV Caches during Head-of-Line Stalls in the Request Queue
Shared title terminology · Rishabh Ravi, Tony Hong, Chen Wang et al.
TripleKV: Predict, Prefetch, Protect -- KV Cache Management for AI Agents
Shared title terminology · Shashwat Jaiswal, Chloe Alverti, Mengmei Ye et al.
Twindex: Index Cache Offloading with Coarse-to-Fine Selection for Long-Context Sparse-Attention Serving
Shared title terminology · Yuxuan Xia, Jiakun Fan, Han Meng et al.
TileCache: Serving Multi-Round Diffusion Image Editing with Compressed Activation Caches
Shared title terminology · Yuyang Tian, Desen Sun, Shuncheng Jie et al.