NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Diffusion Language Models Know the Answer Before Decoding

Pengxiang Li, Yefan Zhou, Dilxat Muhtar, Lu Yin, Shilin Yan, Li Shen, Yi Liang, Soroush Vosoughi, Shiwei Liu

TL;DR

Diffusion Language Models (DLMs) often internally settle on the correct output long before their iterative denoising process finishes. Capitalizing on this "early answer convergence," the authors propose Prophet, a training-free decoding framework that monitors the top-2 prediction confidence gap to trigger an "early commit"—decoding all remaining tokens in one shot. Prophet achieves up to a 3.4× reduction in decoding steps across popular benchmarks while preserving (and sometimes improving) task accuracy.

What Problem Does This Paper Address?

While discrete diffusion language models (such as LLaDA and Dream) offer compelling advantages over autoregressive (AR) models—including flexible generation orders and parallel decoding—their practical inference latency remains high. Because DLMs rely on bidirectional attention, standard key-value (KV) caching cannot be naively applied, and generating coherent text typically demands dozens or hundreds of sequential refinement iterations.

Standard DLM decoding runs for a predetermined, fixed budget of denoising steps regardless of whether the output tokens have already stabilized. The authors investigate whether these extra iterations are strictly necessary, framing DLM inference as an optimal stopping problem: when has the model done enough work to safely finalize generation?

Methods

  1. Empirical Discovery (Early Answer Convergence): Tracking token predictions step-by-step revealed that answer tokens stabilize very early in the trajectory, while non-answer scratchpad tokens continue to fluctuate. Using simple suffix prompts like "Answer:" concentrates the final answer into a recognizable span and accelerates convergence even further.
  2. Confidence Gap Metric: At step $t$, for each token position $i$, the model computes the logit difference between its top two predictions: $$g_{t,i} = L^{(1)}_{t,i} - L^{(2)}_{t,i}$$ A wide gap indicates that the model is overwhelmingly certain about its top choice.

  3. Adaptive Early Commit Decoding (Prophet): Prophet computes the average confidence gap $\bar{g}_t$ across the target answer positions and compares it to a staged threshold $\tau(p)$, where progress $p = (T_{\max} - t)/T_{\max}$:

  4. Early phase ($p < 0.33$): Highly risk-averse; requires $\tau_{\text{high}} = 7.5$ to exit.
  5. Mid phase ($0.33 \le p < 0.67$): Moderate risk; threshold relaxes to $\tau_{\text{mid}} = 5.0$.
  6. Late phase ($p \ge 0.67$): Risk-tolerant; threshold drops to $\tau_{\text{low}} = 2.5$.
  7. One-Shot Finalization: Once $\bar{g}_t \ge \tau(p)$, the refinement loop terminates immediately. All remaining [MASK] tokens are decoded in parallel in a single forward pass via $\text{argmax}(L_t)$.

Datasets

The authors evaluated Prophet without fine-tuning across two open DLMs: LLaDA-8B-Instruct and Dream-7B-Instruct. Evaluations covered twelve standard benchmarks across four capability domains:

  • General Reasoning: MMLU, ARC-Challenge, HellaSwag, TruthfulQA, WinoGrande, and PIQA.
  • Math & Science: GSM8K and GPQA.
  • Code Generation: HumanEval and MBPP.
  • Planning Tasks: Countdown and Sudoku (8-shot).

No new datasets were introduced.

Key Insights and Ideas

  • The Answer Converges First: On benchmarks like GSM8K and MMLU, up to 97%–99% of correct answers are internally found by the halfway mark of the decoding process (and over 88% within the first 25% of steps under random re-masking).
  • Over-refinement Can Hurt Accuracy: Later diffusion steps re-inject noise and risk corrupting an already correct prediction. On HellaSwag, Prophet outperformed the full 128-step baseline (70.9% vs. 68.7%), demonstrating that stopping early can actually act as a regularizer against late-stage decoding noise.
  • Dynamic Adaptivity: Harder tasks naturally take longer to converge. On complex code generation (HumanEval), Prophet conservatively applies a ~1.20×–1.44× speedup, whereas on structured planning tasks like Sudoku, it securely accelerates by up to 3.40×.

Key Results

  • Inference Speedups: Prophet cut denoising steps by 1.2× to 3.4× across all tasks.
  • MMLU: 2.34× speedup on LLaDA-8B (54.0% vs. 54.1% baseline); 2.47× on Dream-7B (66.1% vs. 67.6%).
  • GSM8K: 1.63× speedup on LLaDA-8B, stopping around step 160/256 while slightly improving accuracy from 77.1% to 77.9%.
  • Sudoku: 3.40× speedup on Dream-7B while maintaining an identical 89.0% solve rate.
  • Robustness to Block Length: In semi-autoregressive settings where large block updates normally degrade baseline accuracy (dropping from 71.3% to 33.1% at block size 128 on GSM8K), Prophet rescued performance back to 52.2% (+19.1 points).

Limitations and Future Work

  • Heuristic Thresholds: The piecewise confidence threshold schedule ($\tau \in \{7.5, 5.0, 2.5\}$) is handcrafted from validation data rather than learned dynamically per-domain.
  • Locating Answer Regions: The approach relies on identifying the target answer token span (facilitated by suffix prompting like "Answer:"). It is less straightforward for free-form open-ended generation where the "answer" does not have an explicit location.
  • Sampling Regimes: The study focuses primarily on greedy decoding; extending dynamic early exit to stochastic or nucleus sampling warrants further investigation.

Summary updated

BibTeX
@inproceedings{li2025diffusion,
  author = {Pengxiang Li and Yefan Zhou and Dilxat Muhtar and Lu Yin and Shilin Yan and Li Shen and Yi Liang and Soroush Vosoughi and Shiwei Liu},
  title = {{Diffusion Language Models Know the Answer Before Decoding}},
  booktitle = {ER @ NeurIPS},
  year = {2025},
  url = {https://openreview.net/forum?id=s8bHSmuvwC},
}
Figure