arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2606.22327cs.AI
收藏

面向LLM服务的几何感知在线调度:从理论界到系统实践

Geometry-Aware Online Scheduling for LLM Serving: From Theoretical Bound to System Practice

Gaoling School of Artificial Intelligence(人工智能学院);Renmin University of China(中国人民大学);Department of Management Science and Engineering(管理科学与工程系);Stanford University(斯坦福大学);Department of Industrial Engineering and Decision Analytics(工业工程与决策分析系);HKUST(香港科技大学)

Li Kong, Qi Qi, Yinyu Ye, Zijie Zhou

AI总结:

针对LLM推理中KV缓存动态内存占用问题,提出Smallest Volume First (SVF)算法,通过几何感知调度优化性能,理论证明将竞争比从48降至5,并在vLLM中实现即插即用,显著降低平均和尾部延迟。

摘要:

交互式大型语言模型服务的爆炸性需求凸显了Key-Value缓存动态内存占用的管理作为推理引擎性能优化的关键领域。现代推理系统绝大多数依赖于时间中心的调度启发式算法,例如最短作业优先。然而,它们的理论最优性植根于传统调度建模,未能捕捉到LLM推理机制特有的高度动态的二维时空几何增长。为解决此问题,我们通过引入最小体积优先(SVF)算法及其高效变体1-bit SVF,提出了几何感知在线调度。理论上,我们为我们的方法提供了严格的数学基础。利用一种新颖的证明方法,我们收紧了对已知输出长度的SVF的最坏情况竞争比(从CR ≤ 48到CR ≤ 5)。基于这一核心突破,我们完成了一个全面的理论分类,分析了我们的算法在不同流量场景和信息可用性下的表现。实践中,我们将我们的方法作为即插即用层无缝集成到vLLM中。在Llama-3.1模型上的广泛评估展示了全面的性能提升:SVF在平均和尾部延迟上均实现了显著降低,而仅需单个比特信息的1-bit SVF则实现了有竞争力的吞吐量和延迟。这项工作为解决现代LLM部署中的内存受限调度建立了一个理论上合理且经验上有效的方法。为促进未来研究,我们的代码可在该https URL获取。

英文摘要:

The rapid growth of interactive Large Language Model serving has made efficient management of dynamic Key-Value cache footprints increasingly important for inference performance. Modern inference systems overwhelmingly rely on time-centric scheduling heuristics, such as Shortest Job First. However, their classical guarantees are rooted in traditional scheduling modeling, failing to capture the highly dynamic, 2D spatio-temporal geometric growth specific to LLM inference mechanisms. To resolve this, we propose the geometry-aware online scheduling by introducing the Smallest Volume First (SVF) algorithm and its highly efficient variant, 1-bit SVF. Via a novel volume-certificate proof, we establish a worst-case approximation ratio for SVF that approaches \textbf{3} in the high-concurrency regime of LLM serving, substantially improving upon the prior best constant of 48. Building upon this core breakthrough, we complete a comprehensive theoretical taxonomy analyzing our algorithms across different traffic scenarios and information availability. Practically, we seamlessly integrate our approach as a plug-and-play layer in vLLM. Extensive evaluations on Llama-3.1 models demonstrate comprehensive performance gains: SVF delivers strong reductions in both average and tail latency, while 1-bit SVF, with merely a single bit of information, achieves competitive throughput and latency. This work establishes a theoretically sound and empirically proven approach for resolving memory-constrained scheduling in modern LLM deployments. To facilitate future research, our code is available at https://github.com/Li-Beverly-Kong/Geometry-Aware-Online-Scheduling.git.

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

↑