内存受限 LLM 推理服务中的服务性拥塞研究
Service-Induced Congestion in Memory-Constrained LLM Serving
AI 导读
一项针对内存受限 LLM 推理服务的研究建立了离散时间动力学模型,分析连续批处理下的请求准入、key-value cache 内存增长与驱逐机制。研究表明同质负载下无驱逐均衡不稳定,系统收敛到最坏极限环,吞吐量损失可高达 50%;而异质负载中互质的解码长度可稳定无驱逐均衡。论文据此推导了维持高吞吐的调度设计原则,v3 新增 GPU 基准实验附录。
正文 · 原文
Abstract:In large language model (LLM) serving, each request accumulates persistent graphics processing unit (GPU) memory during service as its key-value cache grows with every generated token. Under high concurrency, aggregate memory usage therefore increases endogenously over time: the service process itself creates future capacity pressure. When memory capacity is exceeded, systems evict active requests, discarding cached state and restarting them later, which wastes computation and reduces throughput. We develop a discrete-time dynamical model of memory-constrained LLM inference that captures admission, memory growth, and eviction under continuous batching. In the saturated-input regime, the system admits both eviction-free fixed points and limit cycles with evictions. For homogeneous workloads, we show that the eviction-free equilibrium is unstable and that, except for a Lebesgue-measure-zero exact-capture set, the system converges to a unique worst-case limit cycle that is asymptotically stable outside this exceptional set, with throughput losses as large as 50%. For heterogeneous workloads, we prove a stability criterion in the two-class common-input setting and explain how the survival-polynomial mechanism generalizes to multiple classes and heterogeneous-input lengths. Under an input-dominated scaling regime, coprime decoding lengths stabilize the eviction-free equilibrium, while non-coprime lengths create synchronized modes that drive instability. These results characterize when workload heterogeneity desynchronizes completions and helps stabilize memory-constrained serving. More broadly, we identify service-induced congestion as a structural instability mechanism and derive scheduling design principles for sustaining high throughput.
| Comments: | 100 pages. v2: adds GPU experiments with benchmark workloads (Appendix D.4) and revises the figures |
| Subjects: | Optimization and Control (math.OC); Artificial Intelligence (cs.AI); Machine Learning (cs.LG); Machine Learning (stat.ML) |
| Cite as: | arXiv:2606.15555 [math.OC] |
| (or arXiv:2606.15555v3 [math.OC] for this version) | |
| https://doi.org/10.48550/arXiv.2606.15555 arXiv-issued DOI via DataCite |
Submission history
From: Ruicheng Ao [view email]
[v1]
Sun, 14 Jun 2026 02:49:03 UTC (3,058 KB)
[v2]
Mon, 19 Oct 2026 03:59:06 UTC (1,354 KB)
[v3]
Tue, 20 Oct 2026 03:22:51 UTC (1,355 KB)
来源:arXiv cs.AI · arxiv.org