循环均匀扩散语言模型

·

研究论文 · 2026/10/23

均匀扩散语言模型(UDLM)通过迭代去噪普通词汇标记序列生成文本,训练时需从可能不可靠的上下文去噪,比掩码扩散语言模型(MDLM)更耗FLOP但下游推理性能更强。本文研究在UDLM中应用选择性循环(每个去噪步骤递归应用少量早期Transformer层),保持训练目标和采样器不变。实验发现循环显著提升训练效率:在OpenWebText和FineWeb-Edu上,循环UDLM达到非循环UDLM约0.5万亿标记训练的验证NLL,训练FLOP分别减少至多2.8倍和3.3倍。在匹配NFE预算下,循环UDLM生成困惑度最多降低9.8%,且大部分增益在中等循环次数时实现。研究不同循环次数分布发现,训练时更频繁采样较小循环次数可提升推理效率:下游任务中比均匀循环次数采样少用12%循环且不降低准确率。

该研究首次将选择性循环应用于均匀扩散语言模型,在保持训练目标和采样器不变的情况下,显著提升训练效率(FLOP减少至多3.3倍)和生成质量(困惑度降低9.8%),并发现非均匀循环次数采样可进一步提升推理效率,为高效训练扩散语言模型提供了实用策略。

Uniform diffusion language models (UDLMs) generate text by iteratively denoising sequences of ordinary vocabulary tokens, any of which may be corrupted and subsequently revised. During training, UDLMs must denoise from a context that may itself be unreliable, whereas masked diffusion language models (MDLMs) always condition on a clean context. This challenging training objective makes UDLMs more FLOP-intensive to train than MDLMs, but it yields stronger downstream reasoning performance. Recently, selective looping, which recursively applies a few early Transformer layers within each denoising step, has been shown to improve training efficiency in MDLMs under an iso-FLOP budget. We investigate looping in UDLMs while keeping the training objective and sampler unchanged. We find that looping significantly improves training efficiency: looped UDLMs reach the validation NLL of a non-looped UDLM trained on about 0.5 trillion tokens with up to 2.8x fewer training FLOPs on OpenWebText and 3.3x fewer on FineWeb-Edu. We also find that, at a matched NFE budget, looped UDLMs reach up to 9.8% lower generation perplexity than the non-looped UDLM, with most gains achieved at moderate loop counts. Finally, we study different loop-count distributions and find that sampling smaller loop counts more frequently during training improves inference efficiency: on downstream tasks, this strategy uses 12% fewer loops than uniform loop-count sampling without degrading accuracy.

阅读原文

参与讨论