Optimizing Decoding Paths in Masked Diffusion Models by Quantifying Uncertainty

Ziyu Chen, Xinbei Jiang, Peng Sun, Tao Lin
12/24/2025
cs.CLcs.AIcs.LG

No official code found. Best implementation: LINs-lab/DenoisingEntropy (2 stars, Apache-2.0, last commit 2026-01-12).

Abstract

Masked Diffusion Models (MDMs) offer flexible, non-autoregressive generation, but this freedom introduces a challenge: final output quality is highly sensitive to the decoding order. We are the first to formalize this issue, attributing the variability in output quality to the cumulative predictive uncertainty along a generative path. To quantify this uncertainty, we introduce Denoising Entropy, a computable metric that serves as an internal signal for evaluating generative process. Leveraging this metric, we propose two algorithms designed to optimize the decoding path: a post-hoc selection method and a real-time guidance strategy. Experiments demonstrate that our entropy-guided methods significantly improve generation quality, consistently boosting accuracy on challenging reasoning, planning, and code benchmarks. Our work establishes Denoising Entropy as a principled tool for understanding and controlling generation, effectively turning the uncertainty in MDMs from a liability into a key advantage for discovering high-quality solutions.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

[Preprint] Optimizing Decoding Paths in Masked Diffusion Models by Quantifying Uncertainty

20PythonDec 24, 20259 months agoApache-2.0

Similar Papers

Cite this paper

@article{chen2025optimizing,
  title  = {Optimizing Decoding Paths in Masked Diffusion Models by Quantifying Uncertainty},
  author = {Ziyu Chen and Xinbei Jiang and Peng Sun and Tao Lin},
  year   = {2025},
  eprint = {2512.21336},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2512.21336v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2512.21336.svg)](https://codeofpaper.com/paper/2512.21336)

Discussion