KVCache Cache in the Wild: Characterizing and Optimizing KVCache Cache at a Large Cloud Provider
Jiahao Wang, Han, Jinbo, Xingda Wei, Sijie Shen, Zhang, Dingyan, Fang, Chenguang et al. · 2025 · 87 citationsRead the paper
Serving large language models (LLMs) is important for cloud providers, and caching intermediate results (KV\$) after processing each request substantially improves serving throughput and latency. However, there is limited understanding of how LLM serving benefits from KV\$ caching, where system design decisions like cache eviction policies are highly workload-dependent. In this paper, we present the first systematic characterization of the KV\$ workload patterns from one of the leading LLM service providers. We draw observations that were not covered by previous studies focusing on synthetic workloads, including: KV\$ reuses are skewed across requests, where reuses between single-turn requests are equally important as multi-turn requests; the reuse time and probability are diverse considering all requests, but for a specific request category, the pattern tends to be predictable; and the overall cache size required for an ideal cache hit ratio is moderate. Based on the characterization, we further propose a workload-aware cache eviction policy that improves the serving performance under real-world traces, especially with limited cache capacity.
What the full text shows
Working prototype- The proposed workload-aware (WA) cache eviction policy reduces queued Time To First Token (QTTFT). — 28.3–41.9% reduction (Evaluated on Qwen2-7B, Llama2-13B, and Llama3-70B using real-world production traces)
- The WA policy increases the KV$ cache hit rate compared to standard baselines (LRU, FIFO, LFU, S3-FIFO). — 8.1–23.9% higher hit rate (Evaluated on real-world production traces)
- The WA policy provides a marginal improvement over the best performing baseline hit rate. — 1.5–3.9% higher hit rate (Evaluated on real-world production traces)
- KV$ reuses are skewed across requests, with single-turn request reuses being as important as multi-turn request reuses. (Production serving workloads from a large cloud provider)
- The effectiveness of the WA policy decreases as cache capacity increases. (Normalized CPU cache capacity relative to GPU HBM size)
- Setup
- Evaluated on Qwen2-7B (1 GPU), Llama2-13B (1 GPU), and Llama3-70B (4 GPUs) using two production traces (Trace A and Trace B).
- How
- The researchers characterized production KV$ workload patterns from a cloud provider and developed a workload-aware (WA) cache eviction policy using a fitted exponential distribution and a life regulator. They evaluated the policy by constructing synthetic inputs that reproduce the cache hit patterns of anonymous production traces.
- Limitations
- The WA policy is less effective on workloads with very few multi-turn requests (e.g., Trace B where >99% are 1-turn). · Susceptible to fairness issues where malicious clients can monopolize the prefix cache with long identical prefixes. · Evaluation used scaled traces to fit testbed processing capabilities rather than full-scale production deployment.
Summarized by Gemma 4 from the open-access full text · 22 Nov 2026. Read it