Diffusion language model uses loops to improve token predictions
dLoop: Looped Diffusion Language Models via Recurrent Latent Refinement
Computation and Language
Summary
Diffusion language models can generate text by guessing multiple words at once but often need many tries to decide some words confidently. The authors propose dLoop, which lets the model repeatedly refine uncertain words before finalizing them, improving overall accuracy. This method helps the model better use information from the prompt and earlier guesses to make smarter word choices. Tests show dLoop performs better or matches other leading methods on several coding and math problem benchmarks.
What this means in practice
- •For natural language processing engineers: Improve accuracy and efficiency of text generation models by integrating repeated refinement loops before committing predicted tokens.
- •For code generation developers: Increase reliability in automatic program synthesis models through repeated latent computation to reduce errors in generated code snippets.
Authors
Handa Li, Pengxiang Li, Mingyu Cao, Xilu Wang, Li Shen, Da Li, Lu Yin
Abstract
Diffusion language models (DLMs) support parallel generation, yet they often require many denoising steps because only a fraction of token predictions are sufficiently reliable to be committed at each step. Existing acceleration methods primarily optimize confidence learning or commitment policies. However, these approaches operate on the outputs of a single denoising forward pass, in which information from the prompt, previously committed tokens, and uncommitted positions may not yet be fully integrated. Consequently, some predictions remain under-refined when the commitment decision is made, and modifying the commitment policy alone cannot improve their underlying representations. We introduce dLoop, which restructures a pretrained diffusion language model into a Prelude-Loop-Coda architecture and recurrently applies a parameter-shared intermediate block to the same partially masked state. Rather than advancing the denoising process, each additional loop provides further latent computation, allowing information distributed across uncommitted positions to continue interacting and become more fully integrated before commitment. Experiments on GSM8K, MATH, MBPP, and HumanEval show that dLoop achieves the highest or tied-highest accuracy on every benchmark. With tokens per forward pass (TPF) adjusted for loop computation, it outperforms Fast-dLLM in both accuracy and TPF on all four benchmarks and dParallel on three, and is more accurate than d3LLM on all four, while d3LLM attains higher TPF; no compared method surpasses dLoop in both. Mechanistic analyses show that extra loops mainly help on slow, unstable trajectories and that updates at uncommitted positions drive changes in token decisions and later generation. Pre-commitment latent computation thus makes predictions more reliable, offering a route to DLM acceleration distinct from forcing confidence through the training loss.