AI
New Metric Helps Diffusion Language Models Pick Better Generation Paths
Researchers introduce Denoising Entropy to guide non-autoregressive text generation and boost performance on reasoning and coding tasks.
Diffusion Language Models generate text in parallel across all positions rather than one word at a time, offering computational flexibility. However, this freedom comes with a critical trade-off: the order in which words are refined during the decoding process dramatically affects final quality, and finding the optimal sequence has proven difficult.
The Problem with Flexible Decoding#
Diffusion-based text generation doesn't follow the sequential left-to-right pattern of traditional language models. Instead, it refines all tokens simultaneously across multiple steps. This parallelism is powerful—but it introduces a hidden cost. The final output quality hinges on which tokens the model prioritizes during refinement, and this decoding path choice directly determines whether the model produces accurate, coherent text or mediocre results. Until now, researchers lacked a principled way to understand or control this variability.
Measuring Uncertainty with Denoising Entropy#
The research team addresses this by formalizing the core challenge: the quality variability stems from cumulative predictive uncertainty accumulated along a generative path. They introduce Denoising Entropy, a computable internal signal that quantifies this uncertainty at each step of generation. This metric acts as a diagnostic tool, revealing which decoding sequences are more likely to yield high-quality outputs.
Guiding Generation in Two Ways#
The team proposes two practical algorithms built on Denoising Entropy:
- Post-hoc selection: After generation completes, the method ranks candidate outputs and selects the one with the lowest entropy signal, essentially choosing the path that navigated uncertainty most efficiently.
- Real-time guidance: During generation, the algorithm actively steers token refinement toward low-entropy trajectories, dynamically optimizing the decoding order as it unfolds.
Empirical Results#
Testing across challenging benchmarks—reasoning tasks, planning problems, and code generation—both entropy-guided approaches consistently improved generation quality and accuracy. The methods essentially convert the inherent uncertainty in diffusion models from a drawback into a valuable signal for discovering superior solutions.

