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

LoPA: 通过前瞻性并行解码扩展dLLM推理

LoPA: Scaling dLLM Inference via Lookahead Parallel Decoding

Shanghai Jiao Tong University(上海交通大学);Huawei(华为)

Chenkai Xu, Yijie Jin, Jiajun Li, Yi Tu, Guoping Long, Dandan Tu, Mingcong Song, Hongjie Si, Tianqi Hou, Junchi Yan, Zhijie Deng

AI总结:

LoPA通过前瞻性并行解码技术提升dLLM推理效率,实现更高并行度和更快的解码速度。

摘要:

扩散大语言模型(dLLMs)在高速推理方面展现了显著潜力。然而,当前基于置信度的解码策略受到有限并行性的限制,通常只能实现每前向传递1-3个标记(TPF)。在本工作中,我们发现dLLM推理过程中的并行度高度敏感于标记填充顺序(TFO)。然后,我们引入了Lookahead PArallel Decoding LoPA,一种无需训练的即插即用算法,以识别更优的TFO并加速推理。LoPA通过并行分支同时探索不同的候选TFO,并根据分支置信度选择具有最高未来并行潜力的TFO。我们将在最先进的D2F模型上应用LoPA,并观察到解码效率的显著提升。值得注意的是,LoPA将D2F-Dream在GSM8K上的TPF提高到10.1,同时保持性能优于Dream基线。此外,为了实现这种前所未有的并行度,我们开发了一种专用的多设备推理系统,具有分支并行性(BP),在多GPU部署下实现了每秒1073.9个标记的单样本吞吐量。代码可在https://github.com/zhijie-group/LoPA上获取。

英文摘要:

Diffusion Large Language Models (dLLMs) have demonstrated significant potential for high-speed inference. However, current confidence-driven decoding strategies are constrained by limited parallelism, typically achieving only 1--3 tokens per forward pass (TPF). In this work, we identify that the degree of parallelism during dLLM inference is highly sensitive to the Token Filling Order (TFO). Then, we introduce Lookahead PArallel Decoding LoPA, a training-free, plug-and-play algorithm, to identify a superior TFO and hence accelerate inference. LoPA concurrently explores distinct candidate TFOs via parallel branches, and selects the one with the highest potential for future parallelism based on branch confidence. We apply LoPA to the state-of-the-art D2F model and observe a substantial enhancement in decoding efficiency. Notably, LoPA increases the TPF of D2F-Dream to 10.1 on the GSM8K while maintaining performance superior to the Dream baseline. Furthermore, to facilitate this unprecedented degree of parallelism, we develop a specialized multi-device inference system featuring Branch Parallelism (BP), which achieves a single-sample throughput of 1073.9 tokens per second under multi-GPU deployment. The code is available at https://github.com/zhijie-group/LoPA.

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

↑