TL;DR
This paper provides a comprehensive survey of system-aware key-value (KV) cache optimization techniques for efficient Large Language Model (LLM) serving, a domain the authors term sKis. By organizing recent literature into a unified taxonomy of temporal, spatial, and structural system behaviors, the survey highlights how modern infrastructure can mitigate memory and interconnect bottlenecks to achieve high-throughput, low-latency inference without retraining the underlying models.
What Problem Does This Paper Address?
Deploying Large Language Models (LLMs) in production is notoriously expensive and memory-intensive. Because LLMs generate text autoregressively (token by token), computing attention requires looking back at all previously generated tokens. To avoid redundant computations, serving systems employ a Key-Value (KV) cache to store intermediate tensors.
As prompt lengths and generation targets scale into millions of tokens, the KV cache expands drastically, creating massive memory bottlenecks. This process is split into two distinct phases: the compute-bound prefill phase (processing the initial prompt) and the memory-bound decode phase (generating subsequent tokens), as illustrated below:
While a massive body of literature has emerged to optimize the KV cache, existing works are scattered across different layers of the hardware and software stack. This paper addresses the lack of a unified, system-level framework to categorize, compare, and co-design these rapidly evolving optimizations.
Methods
The authors introduce a system-behavior-oriented taxonomy that classifies system-aware KV infrastructure (sKis) into three fundamental axes:
- Execution and Scheduling (Temporal Behavior - WHEN): Focuses on the runtime control of KV data. This includes KV-centric scheduling (prioritizing requests based on cache reuse potential), pipelining and overlapping (hiding I/O and transfer latencies behind compute), and hardware-aware execution (such as disaggregating prefill and decode tasks onto specialized hardware pools).
- Placement and Migration (Spatial Behavior - WHERE): Manages where KV data resides and how it moves. This includes memory hierarchy orchestration (moving KV entries dynamically between GPU HBM, CPU DRAM, SSDs, or CXL-based shared memory pools) and compute device orchestration (transferring caches across distributed nodes).
- Representation and Retention (Structural Behavior - HOW): Governs how KV data is compressed and maintained. This covers KV cache compression (value-level quantization, low-rank approximation, and structural pruning/merging) alongside retention management (virtualized allocation frameworks like PagedAttention, and dynamic eviction policies).
Datasets
As a survey paper, this work does not introduce new datasets or train new models. Instead, it reviews evaluation practices across the literature. The surveyed papers primarily evaluate their systems using mainstream open-source LLM families (such as LLaMA and OPT) across standard system benchmarking tools and suites, including LLMPerf, GenAI-Perf, and MLPerf Inference.
Key Insights and Ideas
- The System-Behavior Lens: By decoupling the taxonomy from specific model architectures or kernel details, the authors provide a stable framework that remains robust even as underlying Transformer variants evolve.
- Structural Dominance vs. Spatial Realities: Structural methods (like quantization and eviction) are heavily studied because they directly shrink the memory footprint. However, the authors note that memory reduction alone does not guarantee wall-clock speedups unless it is tightly integrated with temporal and spatial mechanisms that hide transfer overhead.
- The Isolation of Compression: Despite the popularity of KV cache compression (KVCC), it is frequently developed in algorithmic isolation. There is a significant missed opportunity to co-design compression with runtime scheduling and tiered migration.
- Universal Quality Risks: Aggressive structural optimizations introduce a "trustworthiness gap." For example, dropping tokens with low accumulated attention scores might inadvertently delete rare but critical context (e.g., a specific clause in a legal contract or a crucial financial threshold), leading to catastrophic tail-end errors that average accuracy metrics fail to catch.
Key Results
The survey synthesizes qualitative and quantitative trends across more than a hundred recent papers:
- Extreme Quantization: Recent vector quantization (VQ) techniques successfully compress KV caches down to 1–2 bits per channel with modest quality loss, provided that activation outliers are isolated and stored in higher precision.
- Prefill-Decode Disaggregation: The combination of Hardware-Aware Execution (HAE) and Compute Device Orchestration (CDO)—specifically separating compute-heavy prefill tasks from memory-heavy decode tasks across different GPU clusters—has emerged as the most powerful co-design pattern for maximizing hardware utilization.
- Latency Hiding: Pipelining and overlapping (OVLP) strategies effectively eliminate runtime stalls by asynchronously prefetching upcoming KV blocks into L2 cache during collective communication phases.
An overview of how these various spatial behaviors map across memory tiers and devices is visualized here:
Limitations and Future Work
The authors identify several critical gaps in current sKis research:
- The Tail Latency Blindspot: Most papers optimize for mean latency or throughput, ignoring Service-Level Objectives (SLOs) tied to tail latency (P99), which dominate actual user experience during traffic bursts.
- Energy Neglect: Despite the massive power footprint of modern data centers, energy efficiency is rarely profiled or optimized in serving-time KV cache literature.
- Lack of Standardized Benchmarks: Inconsistent metric definitions across client-side tools prevent reliable "apples-to-apples" comparisons. The authors advocate for unified benchmarks that report accuracy-vs-memory curves under graduated context lengths and heterogeneous, multi-tenant workloads.
Summary updated