Improving Sampling for Masked Diffusion Models via Information Gain

Kaisen Yang, Jayden Teoh, Kaicheng Yang, Yitong Zhang, Alex Lamb
2/20/2026
cs.CL

Official code: yks23/Information-Gain-Sampler (14 stars, Unlicense, last commit 2026-04-30).

Abstract

Masked Diffusion Models (MDMs) offer greater flexibility in decoding order than autoregressive models but require careful planning to achieve high-quality generation. Existing samplers typically adopt greedy heuristics, prioritizing positions with the highest local certainty to decode at each step. Through failure case analysis, we identify a fundamental limitation of this approach: it neglects the downstream impact of current decoding choices on subsequent steps and fails to minimize cumulative uncertainty. In particular, these methods do not fully exploit the non-causal nature of MDMs, which enables evaluating how a decoding decision reshapes token probabilities/uncertainty across all remaining masked positions. To bridge this gap, we propose the Info-Gain Sampler, a principled decoding framework that balances immediate uncertainty with information gain over future masked tokens. Extensive evaluations across diverse architectures and tasks (reasoning, coding, creative writing, and image generation) demonstrate that Info-Gain Sampler consistently outperforms existing samplers for MDMs. For instance, it achieves a 3.6% improvement in average accuracy on reasoning tasks and a 63.1% win-rate in creative writing. Notably, on reasoning tasks it reduces cumulative uncertainty from 78.4 to 48.6, outperforming the best baseline by a large margin. The code will be available at https://github.com/yks23/Information-Gain-Sampler.

View on arXivView PDF

Code Implementations(1)

Unlicense

The official Repo of "Improving Sampling for Masked Diffusion Models via Information Gain"

140Shell, PythonFeb 2, 20265 months agoUnlicense

Similar Papers

Cite this paper

@article{yang2026improving,
  title  = {Improving Sampling for Masked Diffusion Models via Information Gain},
  author = {Kaisen Yang and Jayden Teoh and Kaicheng Yang and Yitong Zhang and Alex Lamb},
  year   = {2026},
  eprint = {2602.18176},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2602.18176v1}
}

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/2602.18176.svg)](https://codeofpaper.com/paper/2602.18176)

Discussion