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

Optimus: 用于高效扩散LLM服务的弹性解码

Optimus: Elastic Decoding for Efficient Diffusion LLM Serving

Duke University(杜克大学);National University of Singapore(新加坡国立大学)

Chiyue Wei, Cong Guo, Bowen Duan, Junyao Zhang, Haoxuan Shan, Yifei Wang, Yangjie Zhou, Hai "Helen" Li, Danyang Zhuo, Yiran Chen

AI总结:

提出Optimus系统,通过动态调整解码粒度(分块解码与饱和度感知调度)来平衡GPU利用率和令牌效率,实现扩散LLM的弹性解码,显著提升吞吐量并保持模型精度。

摘要:

大语言模型(LLM)服务从根本上受限于低效的硬件利用率。自回归(AR)解码由于严格的顺序执行导致GPU利用率不足,而扩散LLM(DLLM)通过每次迭代解码多个令牌来提高吞吐量。然而,固定块大小的扩散解码表现出强烈的负载敏感性:大块在低负载下能充分利用空闲GPU资源,但在高负载下会过早饱和并产生大量冗余计算。因此,吞吐量增益在饱和后消失,且没有单一的解码粒度能在动态服务负载下表现良好。我们提出Optimus,一个通过动态调整解码粒度以适应运行时负载来实现扩散LLM弹性解码的服务系统。关键思想是将解码粒度视为运行时控制变量,平衡GPU利用率和令牌效率。Optimus结合了分块解码(无需重新训练即可实现细粒度执行)和饱和度感知调度(一种基于运行时条件选择块大小的闭环机制)。结合系统级优化和定制的注意力内核,Optimus在保持模型精度的同时实现了显著的性能提升。实验表明,与AR解码相比,Optimus的吞吐量提升高达6.1倍,与固定块扩散LLM相比提升4.3倍,并且在各种负载条件下保持稳定性能,在延迟约束下提高了端到端服务容量。源代码可在https://github.com/dubcyfor3/Optimus获取。

英文摘要:

Large language model (LLM) serving is fundamentally limited by inefficient hardware utilization. Autoregressive (AR) decoding underutilizes GPUs due to its strictly sequential execution, while diffusion LLMs (DLLMs) improve throughput by decoding multiple tokens per iteration. However, fixed block-size diffusion decoding exhibits strong load sensitivity: large blocks exploit idle GPU resources under low load, but saturate early and incur substantial redundant computation under high load. As a result, throughput gains vanish beyond saturation, and no single decoding granularity performs well across dynamic serving workloads. We present Optimus, a serving system that enables elastic decoding for diffusion LLMs by dynamically adapting decoding granularity to runtime load. The key idea is to treat decoding granularity as a runtime control variable, balancing GPU utilization and token efficiency. Optimus combines chunked decoding, which enables fine-grained execution without retraining, with saturation-aware scheduling, a closed-loop mechanism that selects chunk sizes based on runtime conditions. Together with system-level optimizations and customized attention kernels, Optimus achieves significant performance improvements while preserving model accuracy. Experiments show that Optimus delivers up to 6.1x throughput improvement over AR decoding and 4.3x improvement over fixed-block diffusion LLM, while maintaining stable performance across diverse load regimes and improving end-to-end serving capacity under latency constraints. The source code is available at https://github.com/dubcyfor3/Optimus.

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

↑