Large language models (LLMs) have revolutionized natural language processing, but their deployment remains challenging due to high computational and memory demands. A new survey paper, Towards Efficient Large Language Model Serving: A Survey on System-Aware KV Cache Optimization, provides a systematic analysis of techniques to optimize the key-value (KV) cache—a critical bottleneck in LLM inference.
The KV cache stores intermediate attention states to avoid redundant computation, but its memory footprint grows linearly with sequence length and batch size, often becoming the primary constraint on throughput and latency. The survey categorizes optimization approaches into four main areas:
- Memory management: Techniques like PagedAttention and vLLM reduce fragmentation and enable dynamic memory allocation.
- Cache compression: Methods such as quantization, pruning, and low-rank approximation shrink KV cache size with minimal accuracy loss.
- Scheduling and caching strategies: Algorithms that prioritize cache reuse across requests, including prefix caching and speculative decoding.
- Hardware-aware designs: Optimizations leveraging GPU memory hierarchies, such as tensor parallelism and flash attention variants.
The authors also discuss open challenges, including handling long-context scenarios, multi-turn dialogues, and integration with emerging hardware like CXL-attached memory. This survey serves as a practical guide for system designers aiming to reduce serving costs and improve user experience in LLM applications.