DMax:用于dLLMs的激进并行解码
DMax: Aggressive Parallel Decoding for dLLMs
AI总结:
DMax通过改进并行解码方法,有效缓解误差累积,提升生成质量。其核心是On-Policy Uniform Training策略,结合Soft Parallel Decoding实现高效统一的掩码和均匀解码。
摘要:
我们提出了DMax,一种高效的扩散语言模型(dLLMs)新范式。它通过缓解并行解码中的误差累积,实现了激进的并行解码同时保持生成质量。与传统掩码dLLMs不同,DMax将解码重新定义为从掩码嵌入到token嵌入的逐步自我完善过程。我们的方法核心是On-Policy Uniform Training,一种新的训练策略,有效统一了掩码和均匀dLLMs,使模型能够从掩码输入和自身错误预测中恢复干净的token。在此基础上,我们进一步提出了Soft Parallel Decoding。我们将每个中间解码状态表示为预测token嵌入与掩码嵌入之间的插值,从而在嵌入空间中实现迭代自我修正。在各种基准测试中的广泛实验表明了DMax的有效性。与原始LLaDA-2.0-mini相比,我们的方法在GSM8K上将TPF从2.04提高到5.47,同时保持准确性。在MBPP上,它将TPF从2.71提高到5.86,同时保持可比性能。在两块H200 GPU上,我们的模型在批大小为1时实现了平均1,338 TPS。代码可在https://github.com/czg1225/DMax上获得。
英文摘要:
We present DMax, a new paradigm for efficient diffusion language models (dLLMs). It mitigates error accumulation in parallel decoding, enabling aggressive decoding parallelism while preserving generation quality. Unlike conventional masked dLLMs that decode through a binary mask-to-token transition, DMax reformulates decoding as a progressive self-refinement from mask embeddings to token embeddings. At the core of our approach is On-Policy Uniform Training, a novel training strategy that efficiently unifies masked and uniform dLLMs, equipping the model to recover clean tokens from both masked inputs and its own erroneous predictions. Building on this foundation, we further propose Soft Parallel Decoding. We represent each intermediate decoding state as an interpolation between the predicted token embedding and the mask embedding, enabling iterative self-revising in embedding space. Extensive experiments across a variety of benchmarks demonstrate the effectiveness of DMax. Compared with the original LLaDA-2.0-mini, our method improves TPF on GSM8K from 2.04 to 5.47 while preserving accuracy. On MBPP, it increases TPF from 2.71 to 5.86 while maintaining comparable performance. On two H200 GPUs, our model achieves an average of 1,338 TPS at batch size 1. Code is available at: https://github.com/czg1225/DMax
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。