arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2602.02987cs.DCmath.OC
收藏

大规模LLM推理与异构工作负载:Prefill-Decode竞争及渐进最优控制

Large-Scale LLM Inference with Heterogeneous Workloads: Prefill-Decode Contention and Asymptotically Optimal Control

The Hong Kong University of Science and Technology(香港科技大学)

Ruihan Lin, Zezhen Ding, Zean Han, Jiheng Zhang

AI总结:

本文研究了大规模LLM推理中异构工作负载下的Prefill-Decode竞争问题,提出了一种随机控制框架,通过多类多服务器队列网络模型,实现了渐进最优的资源分配与调度策略。

摘要:

大规模语言模型(LLMs)正迅速成为企业应用的关键基础设施,推动了对基于GPU的推理服务前所未有的需求。LLM推理具有两阶段性质:计算密集的prefill阶段处理用户输入,随后是内存受限的decode阶段生成输出token。当这两个阶段共享GPU资源时,prefill任务会限制同时decode的处理速度,产生状态依赖的竞争。这种竞争进一步复杂化于工作负载异质性,因为不同应用表现出截然不同的输入和输出长度。我们开发了一个随机控制框架,用于在大规模GPU集群上调度异构LLM工作负载。我们将LLM推理建模为具有状态依赖服务速率的多类多服务器排队网络,基于经验迭代时间测量。我们分析了该系统的流体近似,并解决了描述最优资源分配的稳态线性规划。我们设计了门控和路由策略,用于调节prefill准入和decode路由,并证明这些策略在大量GPU极限下在捆绑和分离token定价方案下都是渐进最优的。我们进一步扩展该框架,以纳入服务等级指标(SLIs)如延迟和公平性,提供了一种受限调度的一般方法。数值实验基于经验迭代时间数据证明,我们的策略优于标准服务启发式方法。

英文摘要:

Large Language Models (LLMs) are rapidly becoming critical infrastructure for enterprise applications, driving unprecedented demand for GPU-based inference services. A key operational challenge arises from the two-phase nature of LLM inference: a compute-intensive \emph{prefill} phase that processes user input, followed by a memory-bound \emph{decode} phase that generates output tokens. When these phases share GPU resources, prefill tasks throttle the processing speed of concurrent decodes, creating state-dependent contention. This contention is further complicated by workload heterogeneity, as different applications exhibit vastly different input and output lengths. We develop a stochastic control framework for scheduling heterogeneous LLM workloads across large GPU clusters. We formulate LLM inference as a multiclass many-server queueing network with state-dependent service rates, grounded in empirical iteration-time measurements. We analyze the fluid approximation of this system and solve steady-state linear programs that characterize optimal resource allocation. We design gate-and-route policies that regulate prefill admission and decode routing, and prove that they are asymptotically optimal in the many-GPU limit under both bundled and separate token-pricing schemes. We further extend the framework to incorporate Service Level Indicators (SLIs) such as latency and fairness, providing a general approach to constrained scheduling. Numerical experiments calibrated to empirical iteration-time data demonstrate that our policies outperform standard serving heuristics.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑