KVBoost: Chunk-Level Key-Value Cache Reuse with Deviation-Guided Recomputation for Efficient Large Language Model Inference

Unnikrishnan, Srihari

–arXiv.org Artificial Intelligence 

Transformer-based large language models (LLMs) incur significant prefill latency when processing long or repeatedly-shared prompt prefixes, because key-value (KV) tensors must be recomputed in full for each request. Existing prefix-caching systems mitigate this cost but require prompts to share a leading contiguous prefix, limiting cache hit rates in realistic deployments where shared text appears at arbitrary positions. We present KVBoost, a chunk-level KV cache reuse system for HuggingFace-compatible decoder models that achieves high cache hit rates regardless of where shared content appears within a prompt. KVBoost introduces a dual-hash keying scheme that separates positional identity (prefix hash) from content identity (content hash), enabling both exact and approximate cache matches. To correct the attention boundary errors that arise when independently-cached chunks are stitched together, KVBoost implements two recomputation strategies: SelectiveRecompute, which re-encodes a fixed window of tokens around each chunk seam, and CacheBlendRecompute, which measures per-token cosine deviation after an initial forward pass and recomputes only the most-deviated tokens ( 15% of the prompt). The system is further augmented with asymmetric KIVI-style KV quantization (int8/int4), an optional disk-tier overflow cache, adaptive chunk boundary splitting, overlap and attention-sink token injection, and importance-weighted LRU eviction. Evaluated on Qwen/Qwen2.5-3B across 1,000 samples from a bug-localization benchmark, KVBoost achieves a 4.49 mean speedup in time-to-first-token (TTFT) versus full recomputation (142.4 ms vs. 639.1 ms) and is 16% faster than vLLM prefix caching (165.5 ms), with no output-quality regression (99.2% vs. 99.1% exact-match accuracy). Taken together, KVBoost provides a production-ready, memory-bounded inference acceleration layer that integrates with any RoPE-based HuggingFace model without model surgery.