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:这篇论文想要解决什么具体问题?
- 问题背景:扩散大语言模型(dLLMs)具有并行解码和降低推理延迟的潜力,但其并行解码潜力尚未得到充分探索。
- 现有方案不足:现有的开源模型仍需要与序列长度成比例的解码步骤来确保性能,限制了推理效率。
- 研究目标:通过训练dLLMs以释放其并行解码潜力,减少解码步骤,同时保持性能。
问题2:论文的核心创新点是什么?
- 技术创新:提出了确定性强制蒸馏,这是一种新的训练策略,它将模型的内在顺序确定性传播转换为更并行的收敛过程。
- 方法改进:将dLLM的采样轨迹与预训练模型保持一致,同时最小化对正确预测的掩码标记的预测熵,以强制快速并行地实现高确定性。
- 优势:与现有方法相比,dParallel显著减少了解码步骤,同时保持了性能,实现了更高的推理效率。
问题3:实验结果如何验证了方法的有效性?
- 关键实验:在LLaDA-8B-Instruct模型上,dParallel将GSM8K上的解码步骤从256减少到30,实现了8.5倍的速度提升,没有性能下降。
- 性能提升:在MBPP基准测试中,解码步骤从256减少到24,实现了10.5倍的速度提升,同时保持准确性。
- 对比结果:与基线方法相比,dParallel在多个基准测试中显著减少了解码步骤,同时保持了性能。
问题4:这个研究的实际应用价值是什么?
- 应用场景:文本生成、推理加速、机器翻译等需要高效推理的场景。
- 实施建议:使用dParallel可以显著提高dLLMs的推理效率,尤其是在资源受限的环境中。
- 局限与展望:当前方法依赖于预训练模型的性能,未来将探索将确定性强制策略扩展到dLLMs的预训练阶段,以进一步提高性能和泛化能力。
来源
机器可读索引:llms.txt