Towards Efficient Key-Value Cache Management for Prefix Prefilling in LLM Inference
Preprint
Abstract
The increasing adoption of large language models (LLMs) with extended context windows necessitates efficient Key-Value Cache (KVC) management to optimize inference performance. Inference workloads like Retrieval-Augmented Generation (RAG) and agents exhibit high cache reusability, making efficient caching critical to reducing redundancy and improving speed. We analyze real-world KVC access patterns using publicly available traces and evaluate commercial key-value stores like Redis and state-of-the-art RDMA-based systems (CHIME [1] and Sherman [2]) for KVC metadata management. Our work demonstrates the lack of tailored storage solution for KVC prefilling, underscores the need for an efficient distributed caching system with optimized metadata management for LLM workloads, and provides insights into designing improved KVC management systems for scalable, low-latency inference.Keywords
All Related Versions
This publication has 5 references indexed in Scilit:
- More Tokens, Lower Precision: Towards the Optimal Token-Precision Trade-off in KV Cache Compression2025
- CHIME: A Cache-Efficient and High-Performance Hybrid Index on Disaggregated Memory2024
- CacheGen: KV Cache Compression and Streaming for Fast Large Language Model Serving2024
- GQA: Training Generalized Multi-Query Transformer Models from Multi-Head Checkpoints2023
- Sherman: A Write-Optimized Distributed B+Tree Index on Disaggregated MemoryACM SIGMOD Record, 2022