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

具有不确定性感知输出长度预测的LLM推理调度

Scheduling LLM Inference with Uncertainty-Aware Output Length Predictions

School of Computer Science, Wuhan University, Wuhan, China(武汉大学计算机学院);School of Computer Science, Central China Normal University, Wuhan, China(中央财经大学计算机学院);Dameng Database Co., Ltd., Wuhan, China(达梦数据库有限公司);School of Artificial Intelligence, Shanghai Jiao Tong University, Shanghai, China(上海交通大学人工智能学院);Institute for Math and AI, Wuhan University, Wuhan, China(武汉大学数学与人工智能研究院)

Haoyu Zheng, Yongqiang Zhang, Fangcheng Fu, Xiaokai Zhou, Hao Luo, Hongchao Zhu, Yuanyuan Zhu, Hao Wang, Xiao Yan, Jiawei Jiang

AI总结:

针对LLM推理调度,提出基于对数t分布的输出长度分布模型,并设计Tail Inflated Expectation (TIE)指标替代点估计,以降低在线推理延迟并提高离线吞吐量。

摘要:

为了调度LLM推理, extit{最短作业优先}(SJF)原则通过优先处理输出长度短的请求来避免队头(HOL)阻塞。现有方法通常为每个请求预测单个输出长度以促进调度。我们认为这种 extit{点估计}与LLM推理的 extit{随机}解码过程不匹配,其中输出长度本质上是 extit{不确定的},由何时采样到序列结束(EOS)标记决定。因此,每个请求的输出长度应拟合为分布而非单个值。通过对经验数据和随机解码过程的深入分析,我们观察到输出长度服从重尾分布,并可以用对数t分布拟合。在此基础上,我们提出一个简单的指标,称为Tail Inflated Expectation (TIE),用于替换SJF调度中的输出长度,该指标通过对数t分布的期望进行尾部概率调整,以考虑请求生成长输出的风险。为了评估我们的TIE调度器,我们将其与三个强基线进行比较,结果表明,TIE将在线推理的每token延迟降低了$2.31 imes$,并将离线数据生成的吞吐量提高了$1.42 imes$。

英文摘要:

To schedule LLM inference, the \textit{shortest job first} (SJF) principle is favorable by prioritizing requests with short output lengths to avoid head-of-line (HOL) blocking. Existing methods usually predict a single output length for each request to facilitate scheduling. We argue that such a \textit{point estimate} does not match the \textit{stochastic} decoding process of LLM inference, where output length is \textit{uncertain} by nature and determined by when the end-of-sequence (EOS) token is sampled. Hence, the output length of each request should be fitted with a distribution rather than a single value. With an in-depth analysis of empirical data and the stochastic decoding process, we observe that output length follows a heavy-tailed distribution and can be fitted with the log-t distribution. On this basis, we propose a simple metric called Tail Inflated Expectation (TIE) to replace the output length in SJF scheduling, which adjusts the expectation of a log-t distribution with its tail probabilities to account for the risk that a request generates long outputs. To evaluate our TIE scheduler, we compare it with three strong baselines, and the results show that TIE reduces the per-token latency by $2.31\times$ for online inference and improves throughput by $1.42\times$ for offline data generation.

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

↑