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

简单即最佳:乘法可能就是LLM请求调度所需的一切

Simple is Better: Multiplication May Be All You Need for LLM Request Scheduling

Institute of Parallel and Distributed Systems, Shanghai Jiao Tong University(上海交通大学并行与分布式系统研究所);Alibaba Group(阿里巴巴集团)

Dingyan Zhang, Jinbo Han, Kaixi Zhang, Xingda Wei, Sijie Shen, Chenguang Fang, Wenyuan Yu, Jingren Zhou, Rong Chen

AI总结:

本文提出通过简单乘法结合KVCache和负载均衡指标,实现LLM请求调度的双重目标,无需超参数调优,实验显示在真实工作负载中显著提升性能。

摘要:

高质量LLM请求调度需要同时满足两个关键目标:确保路由实例具备KVCache以加速请求执行,以及确保工作负载在实例间平衡。实现这两个目标具有挑战性,因为追求其中一个可能损害另一个。当前方法使用各种组合器(如线性组合)计算调度分数,结合两个目标的指标。这些方法复杂:要么需要大量工作负载特定的超参数调优,要么需要模型-硬件感知的模拟器开发,但可能仍会导致性能不佳。本文表明,使用两个精心选择的指标的简单乘积(如KVCache-aware和负载均衡-aware)作为调度分数(LMETRIC)可以同时实现两个目标,无需任何超参数调优。关键思想是,简单乘积的分数以类似于线性组合的方式考虑两个目标,但原始超参数在比较过程中抵消,因此无需调优以找到最佳参数。这两个指标基于我们对LLM特性分析的选择。我们的广泛实验表明,这种简单方法可将TTFT减少92%和39%,TPOT减少24%和51%,相比vLLM-v1和生产调度器。我们还推导了乘法可能失效的数学条件,并发现这些条件在实践中极为罕见,可以提前检测并缓解。LMETRIC已在生产环境中部署,金丝雀发布证实其有效性。

英文摘要:

High-quality LLM request scheduling requires meeting two key objectives: ensuring the routed instance has KVCache to accelerate request execution, and ensuring that the workload is balanced across instances. Achieving both objectives is challenging because pursuing one may compromise the other. Current approaches use various combinators (e.g., linear combinations) to compute a scheduling score that combines indicators for the two objectives. These approaches are complex: they either require significant workload-specific hyperparameter tuning or model-hardware-aware simulator development, yet could still lead to suboptimal performance. In this paper, we show that using a simple multiplication of two carefully chosen indicators: one KVCache-aware (new prefill tokens if routed to an instance) and one load-balancing-aware (current batch size of the instance), as the scheduling score (LMETRIC) can achieve both objectives simultaneously without any hyperparameter tuning. The key idea is that the simply multiplied score considers both objectives in a manner similar to a linear combination, but the original hyperparameters cancel out during comparison, so no tuning is needed to find the best parameters. The two indicators are chosen based on our analysis of LLM characteristics. Our extensive experiments show that this simple approach can reduce TTFT by 92% and 39%, and TPOT by 24% and 51%, compared to vLLM-v1 and an in-production scheduler on real-world workloads covering chatbots and coding agents. We also derive the mathematical conditions under which multiplication may fail, and find that such conditions are extremely rare in practice and can be detected (and mitigated) beforehand. LMETRIC has been deployed in production and canary release confirms its effectiveness

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

↑