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

Accelerated Sampling from Masked Diffusion Models via Entropy Bounded Unmasking

Heli Ben-Hamu, Itai Gat, Daniel Severo, Niklas Nolte, Brian Karrer

Introduction

Masked Diffusion Models (MDMs) have emerged as a compelling non-autoregressive alternative to standard Large Language Models (LLMs). Unlike Autoregressive Models (ARMs) that generate text strictly left-to-right, MDMs start with a sequence of mask tokens and iteratively reveal them in an arbitrary order. However, MDMs face a significant efficiency bottleneck: because they utilize full bidirectional attention, they cannot easily cache computations like ARMs. This makes the generation process computationally expensive, especially when unmasking tokens one by one.

The Challenge of Parallel Unmasking

To accelerate MDMs, researchers often attempt to unmask multiple tokens simultaneously. The standard approach is "Top-$k$" sampling, which reveals a fixed number of the model's most confident tokens at each step. This method frequently fails due to joint dependence error. By unmasking $k$ tokens at once, the sampler assumes these tokens are independent. If they are actually dependent, the generated text often loses coherence, devolving into gibberish. The core challenge lies in unmasking multiple tokens to save compute without violating these underlying dependencies.

The EB-Sampler: Dynamic Entropy Bounding

The Entropy Bounded (EB) Sampler is a training-free, drop-in replacement for existing MDM samplers that addresses the joint dependence problem. Instead of unmasking a fixed number of tokens, EB-Sampler dynamically decides how many tokens to reveal based on the model's prediction entropy (uncertainty).

Overview of the Entropy Bounded (EB) sampling step, illustrating the dynamic selection of tokens based on uncertainty.

The algorithm follows a three-step process:

  1. Sort: Masked tokens are ranked using an error proxy, such as confidence or entropy.
  2. Bound: The sampler iterates through the sorted list, adding tokens to an "unmasking bucket" as long as the cumulative entropy minus the maximum entropy in the bucket remains below a user-defined threshold ($\gamma$).
  3. Unmask: All tokens in the bucket are sampled and unmasked simultaneously.

This approach is rooted in the intuition that if a model is highly certain about several tokens, they are likely deterministic given the current context and can be safely unmasked in parallel without significant error.

Key Results and Performance

The EB-Sampler was evaluated on reasoning and coding benchmarks (HumanEval, MBPP, GSM8K, MATH) using state-of-the-art MDMs like LLaDa 8B and Dream 7B.

Efficiency vs. Accuracy Pareto front for LLaDa 8B, showing EB-Sampler's dominance over standard Top-k methods.

Key findings include:

  • 2-3x Speedup: EB-Sampler achieves a 2x to 3x reduction in Number of Function Evaluations (NFEs) without sacrificing pass@1 accuracy compared to single-token unmasking.
  • Pareto Dominance: Across nearly all configurations, EB-Sampler strictly dominates standard Top-$k$ samplers on the efficiency-accuracy front, as shown in the LLaDa 8B results.
  • Robustness in Logic Puzzles: On Sudoku and Maze navigation tasks, the sampler maintained near-perfect accuracy with only 10-15 NFEs, whereas Top-$k$ baselines saw sharp performance degradation.

Conclusion

EB-Sampler provides a mathematically grounded way to accelerate MDM inference by bounding joint dependence error. By adapting the unmasking rate to the complexity of the sequence at each step, it bridges the efficiency gap between MDMs and their autoregressive counterparts. Future work may explore incorporating "remasking" techniques or learning parameterized adaptive samplers to further push the boundaries of MDM performance.

Summary updated

BibTeX
@inproceedings{benhamu2025accelerated,
  author = {Heli Ben-Hamu and Itai Gat and Daniel Severo and Niklas Nolte and Brian Karrer},
  title = {{Accelerated Sampling from Masked Diffusion Models via Entropy Bounded Unmasking}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=WBcBhT1NKO},
}
Figure