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

面向无服务器大语言模型推理的稳定令牌级调度

Stable Token-level Scheduling for Serverless LLM Inference

National Institute of Technology Karnataka(卡纳塔克邦国家理工学院);Cloud & Smart System Services Lab(云与智能系统服务实验室)

Hardi Ashishbhai Desai, Balaji N K, Sourav Kanti Addya

AI总结:

该研究针对无服务器LLM推理中令牌间延迟被忽视的问题,提出令牌窗口 pacing(TWP)框架,通过令牌级调度实现稳定低延迟,吞吐量较现有方案最高提升58%。

摘要:

无服务器推理正成为大语言模型(LLM)的高效部署模式,它具备弹性扩展资源、通过资源共享提升GPU利用率、降低基础设施成本的优势。然而,现有方法主要优化首令牌时间(TTFT),却忽略了令牌间延迟(ITL)——这是响应生成期间决定用户体验的关键因素。我们观察到,LLM推理包含计算密集型的预填充阶段和带宽受限的解码阶段,接纳新请求会干扰正在进行的解码并增加延迟。为解决该问题,我们提出令牌窗口 pacing(TWP),这是一种闭环调度框架,它利用ITL、队列深度和工作负载特征的运行时反馈,在令牌级别而非批次级别调节请求接纳。TWP动态调整自调节令牌窗口,并结合基于块的预填充,以最小化传入请求的干扰。在真实无服务器工作负载上的实验表明,TWP可提供稳定的TTFT,显著降低延迟峰值,降低P99尾部延迟,最小化ITL变化,且吞吐量相比ServerlessLLM提升高达45%,相比传统调度器提升58%。这些结果表明,反馈驱动的令牌级调度可实现稳定、高吞吐量的无服务器LLM推理,且无需修改底层模型。

英文摘要:

Serverless inference is emerging as an efficient deployment model for Large Language Models (LLMs) due to its ability to elastically scale resources, improve GPU utilization through resource sharing, and reduce infrastructure costs. However, existing approaches primarily optimize time to first token (TTFT) while overlooking inter-token latency (ITL), a key determinant of user experience during response generation. We observe that LLM inference comprises a computation-intensive prefill stage and a bandwidth-bound decode stage, where admitting new requests can disrupt ongoing decoding and increase latency. To address this, we propose Token Window Pacing (TWP), a closed-loop scheduling framework that leverages runtime feedback from ITL, queue depth, and workload characteristics to regulate request admission at the token level instead of the batch level. TWP dynamically adjusts a selfregulating token window and incorporates chunk-based prefill to minimize interference from incoming requests. Experiments on realistic serverless workloads show that TWP delivers stable TTFT, significantly reduces latency spikes, lowers P99 tail latency, minimizes ITL variation, and improves throughput by up to 45% over ServerlessLLM and 58% over conventional schedulers. These results demonstrate that feedback-driven tokenlevel scheduling enables stable, high-throughput serverless LLM inference without modifying the underlying model.

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

↑