Robust KV Cache Management for LLM Serving under Output Token Length Uncertainty
Abstract
KV cache memory is a primary bottleneck in modern LLM serving systems deployed on GPU clusters. A fundamental challenge is that the KV cache must be reserved upon request arrival, while the output token length remains unknown until generation completes. Under-reservation triggers preemption -- forcing termination and recomputation of requests and incurring significant overhead -- whereas over-reservation wastes memory and reduces throughput. This creates a central trade-off between memory efficiency and preemption risk. We present a robust KV cache management framework for LLM serving that jointly optimizes GPU parallelism configuration, KV cache reservation per request class, request routing across heterogeneous serving groups, and prefix caching for shared prompts. The framework incorporates latency SLO constraints and captures the interaction between memory allocation, throughput, and queueing delay. To address output token length uncertainty and workload distribution shift, we develop a Wasserstein distributionally robust optimization (DRO) formulation together with a scalable block coordinate descent algorithm for the resulting mixed-integer problem. Our analysis reveals a critical fractile structure that automatically adapts reservation quantiles to different preemption and memory cost regimes without manual tuning. Trace-driven evaluation on production LLM workloads, including BurstGPT, Azure, and ShareGPT traces, demonstrates up to 56\% lower cost than fixed-quantile reservation baselines while maintaining competitive P99 latency, goodput, and SLO violation rates across diverse operating regimes.
Create a lesson
Metadata
- Comments
- 10 figures, 10 pages
Related papers
Stress2Twin: Profile-Driven Network Digital Twins for Guarded Edge Computing Resource Management
Shared title terminologycs.NIJulian Jimenez-Agudelo, Paola Soto, Ayat Zaki-Hindi et al.
Cooperative UAV and Ground Station for Robust MEC of Dynamic Aquatic IoT: A Generative AI-Enhanced Approach
Shared title terminologycs.NIJiahao You, Ziye Jia, Chao Dong et al.
PUMA-Former: Uncertainty-Aware Agentic Computation Offloading in MEO-LEO Satellite Networks With Incomplete Information
Shared title terminologycs.NIYi Jing, Chunxiao Jiang, Jiawei Wang et al.
Resource Management and Trajectory Optimization for UAV-IRS Assisted Maritime Edge Computing Networks
Shared title terminologycs.NIChaoyue Zhang, Bin Lin, Xu Hu et al.
Mobile Edge Deployment and Resource Management for Maritime Wireless Networks
Shared title terminologycs.NIChaoyue Zhang, Bin Lin, Ziru Chen et al.
Topology-Aware Handover Management for Service Continuity in LEO Satellite Networks
Shared title terminologycs.NIJui-Che Han, Nasir Khan, Siva Satya Sri Ganesh Seeram et al.