TL;DR
Unlike traditional language models that write strictly left-to-right, Diffusion Language Models (DLMs) can fill in words in any order—much like solving a crossword puzzle. However, picking the wrong order can ruin the final text. This paper introduces Denoising Entropy, an internal "uncertainty compass" that helps DLMs navigate the vast maze of possible generation paths to consistently find smarter, cleaner, and more accurate solutions.
What Problem Does This Paper Address?
Standard autoregressive models (like GPT) generate text sequentially, one token after another from left to right. Diffusion Language Models (DLMs), on the other hand, start with a sequence of blank [MASK] tokens and iteratively "unmask" them over several steps.
Because a DLM can unmask tokens in any order, every generation is a choice among a massive number of possible decoding paths. In theory, this freedom is a superpower: somewhere in that space is an optimal path—say, sketching out key structural words before filling in the tricky details. In practice, this freedom is a bottleneck. Unmasking tokens in a random order leaves quality up to chance, while greedy heuristics (like always unmasking whichever single token the model is most confident about right now) are myopic. Just like in a maze, a series of locally easy steps can still walk you straight into a global dead end. Until now, DLMs lacked a principled way to measure the global reliability of an entire generation trajectory.
Methods
The authors formalize Path Uncertainty—the cumulative hesitation a model experiences from a fully masked sequence to finished text—and introduce a computable metric called Denoising Entropy to measure it without needing external reward models.
Calculating exact joint uncertainty over all masked blanks at once is mathematically intractable, so the authors build a two-part proxy:
- State Entropy ($h_{\text{DE}}$): At any intermediate step, the model predicts probability distributions for all remaining
[MASK]positions. State Entropy is simply the average Shannon entropy across all currently masked tokens—a snapshot of how confused the model is about the rest of the puzzle. - Path Entropy ($\mathcal{H}_{\text{DE}}$): The average of State Entropy across all steps from start to finish, capturing total cumulative uncertainty.
To turn this metric into better text, they adapt two search strategies:
- Entropy-based Best-of-N (E-BoN): Generate $M$ independent candidate paths all the way to the end, and pick the one with the lowest total Path Entropy ($\mathcal{H}_{\text{DE}}$).
- Entropy-guided Sequential Monte Carlo (E-SMC): Run $M$ parallel "particles" (partial drafts) and periodically check their State Entropy ($h_{\text{DE}}$) mid-flight. High-entropy paths get pruned, and low-entropy paths get duplicated, dynamically focusing compute on the most promising trajectories.
Datasets
No new benchmarks are introduced; the authors evaluate pre-trained DLMs across existing suites:
- Unconditional Text Generation: Models trained on OpenWebText are evaluated for fluency and diversity.
- Math & Science Reasoning: GSM8K, MATH500, and GPQA.
- Planning: Sudoku and Countdown (an arithmetic puzzle game).
- Code Generation: HumanEval / HumanEval+ and MBPP / MBPP+.
Key Insights and Ideas
- Internal hesitation mirrors external quality: Across thousands of generated text samples, a model's internal Path Entropy ($\mathcal{H}_{\text{DE}}$) exhibits a remarkably tight, near-linear correlation with log-perplexity as judged by much larger external models (GPT2-Large). When the DLM feels uncertain along its path, the resulting text genuinely reads worse.
- Entropy beats raw likelihood and majority voting: Under a fixed 5-path budget, selecting paths via Denoising Entropy outperforms picking the answer with the highest token log-likelihood or taking a majority vote. Why? Likelihood only cares about the chosen tokens, whereas Denoising Entropy looks at the full predictive distribution of all remaining masked tokens at every step, sensing global structural trouble early.
- Don't over-optimize (avoiding collapse): If you minimize entropy greedily at every token, perplexity plummets, but diversity collapses into repetitive text. Theoretically and empirically, E-BoN and E-SMC hit a sweet spot—calibrating uncertainty to improve quality while preserving output diversity.
Key Results
- Better Fluency & Distributional Quality: On a 130M-parameter MDLM (256 steps, 8 particles), E-SMC drops GPT2-Large perplexity from 68.5 (vanilla) down to 40.4 without sacrificing text diversity. On 5,000 samples (4 particles), E-SMC also boosts MAUVE scores (which jointly measure quality and diversity) on ReMDM from 0.427 to 0.456.
- Reasoning & Planning Gains: Applied on top of the strong PC-Sampler baseline with 8B-parameter LLaDA models, E-BoN and E-SMC boost accuracy across all five reasoning/planning tasks. On
LLaDA-Instruct-8B, E-SMC pushes GSM8K from 79.3% to 81.2% and Countdown from 36.3% to 40.4% (+4.1 points). - Plug-and-Play Versatility: On
Open-dCoder-0.5B, adding E-BoN and E-SMC consistently improves code generation accuracy across five distinct underlying unmasking strategies.
Limitations and Future Work
- Compute Overhead vs. Single-Pass: Both E-BoN and E-SMC require running multiple parallel candidate paths ($M$ particles) to search the space. Furthermore, finding the true globally optimal decoding strategy remains intractable; these algorithms are practical approximations. (Specifically, E-BoN spends full compute on bad paths before filtering them at the end, though E-SMC mitigates this via online pruning.)
- Ignoring Token Interactions: State Entropy sums marginal entropies independently, intentionally ignoring contextual dependencies between unmasked blanks to stay computable (making it an upper bound on true joint uncertainty).
- Future Directions: The authors suggest using Denoising Entropy beyond test-time search—specifically to design better-calibrated native decoding schedules, or as a free, internal reward signal for reinforcement learning in DLMs.
Summary updated