Reproduce “A Queueing-Theoretic Framework for Stability Analysis of LLM Inference with KV Cache Memory Constraints” on OpenResearch
Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.
Universal app for Apple silicon and Intel. Requires macOS 11 or later.
About this paper
Chengyi Nie, Nian Si, Zijie Zhou
A queueing-theoretic framework is introduced to analyze the stability of large language model inference systems, explicitly integrating both computational demand and dynamic GPU memory constraints from the Key-Value cache. The derived stability and instability conditions were empirically validated on real GPU hardware across various workloads, showing prediction errors typically within 10%.
Key insights
- System stability for LLM inference is governed by a critical processing rate, `mu`, which is directly proportional to memory capacity and inversely proportional to the expected lifetime cumulative memory usage per request and characteristic batch processing time.
- The dynamic memory overhead of the KV cache, which grows throughout both the prompt and decode phases, is a primary factor determining the effective service rate and system capacity.
- Accurate capacity planning and stability prediction require considering the full joint distribution of input prompt and output response lengths, as well as accounting for memory headroom for the largest single request.
Summary by alphaXiv.
Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.