Efficient KV Cache Spillover Management on Memory-Constrained GPU for LLM Inference
- 31 October 2025
- journal article
- Published by Institute of Electrical and Electronics Engineers (IEEE) in IEEE Transactions on Parallel and Distributed Systems
- Vol. 37 (1) , 90-105
Abstract
The rapid growth of model parameters presents a significant challenge when deploying large generative models on GPU. Existing LLM runtime memory management solutions tend to maximize batch size to saturate GPU device utilization. Nevertheless, this practice leads to situations where the KV Cache of certain sequences cannot be accommodated on GPUs with limited memory capacity during the model inference, requiring temporary eviction from GPU memory (referred to as KV Cache spillover). However, without careful consideration of the LLM inference’s runtime pattern, current LLM inference memory management solutions face issues like one-size-fits-all spillover handling approach for different platforms, under-utilization of GPU in prefill stage, and suboptimal sequence selection due to direct employment of swap or recomputation. In this article, we introduce FuseSpill, a holistic KV Cache management solution designed to boost LLM inference on memory-constrained GPU by efficiently handling KV Cache spillover. Specifically, FuseSpill consists of a spillover cost model that analyzes the system cost of spillover handling techniques quantitatively, a KV cache swap orchestrator to further refine the basic swap technique to sophisticated disaggregate KV Cache across heterogeneous devices for decoding iterations, a multi-executor scheduler to effectively coordinate task executors across devices, and a response length predictor to exploit the length-aware sequence selection strategy when KV Cache spillover occurs. The experimental results demonstrate that our implementation outperforms existing solutions, delivering a 20% to 40% increase in throughput while simultaneously reducing inference latency of spillover sequences.Keywords
Funding Information
- Ministry of Education AcRF Tier 2 (MOE-T2EP20224-0020)
- Guangdong S&T Program (2024B0101040005)
- Beijing Normal University (28700-312200502503)
This publication has 18 references indexed in Scilit:
- Splitwise: Efficient Generative LLM Inference Using Phase Splitting2024
- Efficient Memory Management for Large Language Model Serving with PagedAttention2023
- Full-Stack Optimizing Transformer Inference on ARM Many-Core CPUIEEE Transactions on Parallel and Distributed Systems, 2023
- NIOT: A Novel Inference Optimization of Transformers on Modern CPUsIEEE Transactions on Parallel and Distributed Systems, 2023
- STR: Hybrid Tensor Re-Generation to Break Memory Wall for DNN TrainingIEEE Transactions on Parallel and Distributed Systems, 2023
- DeepSpeed- Inference: Enabling Efficient Inference of Transformer Models at Unprecedented Scale2022
- TSPLIT: Fine-grained GPU Memory Management for Efficient DNN Training via Tensor Splitting2022
- SwapAdvisor2020
- vDNN: Virtualized deep neural networks for scalable, memory-efficient neural network design2016
- RooflineCommunications of the ACM, 2009