2025-10-01 · 专家 · 自然语言处理 · 机器学习

dParallel: Learnable Parallel Decoding for dLLMs

本文提出了一种名为dParallel的简单而有效的方法,通过释放扩散语言模型(dLLMs)的并行解码潜力,显著减少了解码步骤,同时保持了性能。

更新于 2025-10-01。作者:Zigeng Chen、Gongfan Fang、Xinyin Ma、Ruonan Yu、Xinchao Wang。

中文摘要

扩散大语言模型(dLLMs)最近在研究界引起了相当大的关注,作为自回归生成的有前景替代方案,它提供了并行标记预测和更低的推理延迟。然而,它们的并行解码潜力在很大程度上仍被低估,因为现有的开源模型仍需要接近标记长度的解码步骤来确保性能。为了解决这个问题,我们提出了一种简单而有效的方法dParallel,它释放了dLLMs固有的并行性以实现快速采样。我们发现,并行解码的关键瓶颈来自于掩码标记的顺序确定性收敛。基于这一洞察,我们介绍了我们方法的核心:确定性蒸馏,这是一种新颖的训练策略,它将模型蒸馏成遵循其原始采样轨迹,同时强制它在掩码标记上更快、更并行地达到高确定性。在各种基准测试上的大量实验表明,我们的方法可以显著减少解码步骤的数量,同时保持性能。当应用于LLaDA-8B-Instruct模型时,dParallel将GSM8K上的解码步骤从256减少到30,实现了8.5倍的速度提升且性能无下降。在MBPP基准测试中,它将解码步骤从256减少到24,实现了10.5倍的速度提升且保持了准确性。我们的代码可在https://github.com/czg1225/dParallel上获取。

英文摘要

Diffusion large language models (dLLMs) have recently drawn considerable attention within the research community as a promising alternative to autoregressive generation, offering parallel token prediction and lower inference latency. Yet, their parallel decoding potential remains largely underexplored, as existing open-source models still require nearly token-length decoding steps to ensure performance. To address this, we introduce dParallel, a simple and effective method that unlocks the inherent parallelism of dLLMs for fast sampling. We identify that the key bottleneck to parallel decoding arises from the sequential certainty convergence for masked tokens. Building on this insight, we introduce the core of our approach: certainty-forcing distillation, a novel training strategy that distills the model to follow its original sampling trajectories while enforcing it to achieve high certainty on masked tokens more rapidly and in parallel. Extensive experiments across various benchmarks demonstrate that our method can dramatically reduce the number of decoding steps while maintaining performance. When applied to the LLaDA-8B-Instruct model, dParallel reduces decoding steps from 256 to 30 on GSM8K, achieving an 8.5x speedup without performance degradation. On the MBPP benchmark, it cuts decoding steps from 256 to 24, resulting in a 10.5x speedup while maintaining accuracy. Our code is available at https://github.com/czg1225/dParallel

解读

一句话总结

本文提出了一种名为dParallel的简单而有效的方法,通过释放扩散语言模型(dLLMs)的并行解码潜力,显著减少了解码步骤,同时保持了性能。

问题1:这篇论文想要解决什么具体问题?

问题2:论文的核心创新点是什么?

问题3:实验结果如何验证了方法的有效性?

问题4:这个研究的实际应用价值是什么?

来源

机器可读索引:llms.txt