Learning Unmasking Policies for Diffusion Language Models

Metod Jazbec (University of Amsterdam), Theo X. Olausson (PhD student · MIT), Louis Béthune, Pierre Ablin, Michael Kirchhof, Joao Monteiro, Victor Guilherme Turrisi da Costa, Jason Ramapuram, Marco Cuturi

International Conference on Machine Learning 2026 · Oral

Overview

Masked diffusion language models (MDMs) have emerged as scalable alternatives to traditional autoregressive architectures, offering flexible any-order sequence generation and test-time control over token unmasking. However, a major bottleneck in deploying MDMs efficiently is low number of function evaluation (NFE) sampling. Existing inference strategies rely on hand-crafted heuristics—such as confidence thresholds or fixed-size subset selection—which break down when pushed to ultra-low NFEs or when expanded beyond semi-autoregressive block-wise generation into full sequence-level diffusion.

Watch on SlidesLive

Visual summary for Learning Unmasking Policies for Diffusion Language Models by Metod Jazbec, Theo X. Olausson, Louis Béthune, Pierre Ablin, Michael Kirchhof, Joao Monteiro, Victor Guilherme Turrisi da Costa, Jason Ramapuram, Marco Cuturi
Visual summary for Learning Unmasking Policies for Diffusion Language Models by Metod Jazbec, Theo X. Olausson, Louis Béthune, Pierre Ablin, Michael Kirchhof, Joao Monteiro, Victor Guilherme Turrisi da Costa, Jason Ramapuram, Marco Cuturi

Key moments

  1. 0:00 Introduction and background on masked diffusion language models
  2. 2:00 Heuristic confidence-based unmasking strategies and their limitations
  3. 4:00 Proposed method: learning unmasking policies with GRPO
  4. 5:30 Semi-autoregressive setting results and analysis
  5. 6:00 Full diffusion setting and expert steering
  6. 7:30 Conclusion and overview of additional paper contributions
  7. 8:12 Audience Q&A: Sample diversity and stochasticity
  8. 9:42 Audience Q&A: Policy transferability across models and domains

Learning Unmasking Policies for Diffusion Language Models

Speakers: Metod Jazbec (University of Amsterdam); Theo X. Olausson (PhD student, MIT); Louis Béthune; Pierre Ablin; Michael Kirchhof; Joao Monteiro; Victor Guilherme Turrisi da Costa; Jason Ramapuram; Marco Cuturi

Conference: ICML

YouTube: https://slideslive.com/39083532

Overview

Masked diffusion language models (MDMs) have emerged as scalable alternatives to traditional autoregressive architectures, offering flexible any-order sequence generation and test-time control over token unmasking. However, a major bottleneck in deploying MDMs efficiently is low number of function evaluation (NFE) sampling. Existing inference strategies rely on hand-crafted heuristics—such as confidence thresholds or fixed-size subset selection—which break down when pushed to ultra-low NFEs or when expanded beyond semi-autoregressive block-wise generation into full sequence-level diffusion.

In this talk, Theo Olausson presents work done during an internship at Apple Machine Learning Research with Metod Jazbec and collaborators, tackling this limitation by learning dedicated unmasking policies for frozen diffusion language models. Rather than modifying the underlying language model weights or engineering complex search heuristics, the authors freeze the base model and train a lightweight secondary policy network using Group Relative Policy Optimization (GRPO). This policy dynamically decides which tokens to unmask at each time step based on model confidences, time steps, and current mask states.

The approach yields a Pareto-optimal trade-off between generation accuracy and efficiency. In the full diffusion setting, the learned policy achieves roughly 50% accuracy on GSM8K using only 15 NFEs—doubling the accuracy of heuristic baselines at equivalent NFEs while operating twice as fast as semi-autoregressive heuristics at matching accuracy. This research demonstrates that amortization via reinforcement learning can effectively navigate the combinatorial search space of token unmasking orders without requiring expensive retraining of massive base models.

Background

▶ Watch: Introduction and background on masked diffusion language models (0:00)

The dominant paradigm in language generation remains left-to-right autoregressive decoding. While highly optimized, autoregressive models inherently serialize generation token by token, limiting the hardware parallelism that modern accelerators can exploit. Masked diffusion models reverse a forward corruption process where tokens are progressively replaced with a special mask token. During inference, the model predicts the original tokens for a subset of masked positions over a sequence of discrete time steps.

This formulation promises dramatic speedups if high-quality generation can be achieved in very few forward passes (low NFEs). To accelerate sampling, practitioners typically employ heuristic confidence-based strategies. These include selecting the top-$K$ most confident masked positions (MaskGIT-style selection) or unmasking all positions whose predictive confidence exceeds a fixed threshold $\lambda$ (Fast-DLM).

Despite their popularity, these heuristics exhibit severe performance degradation in ultra-low NFE regimes. To maintain syntactic coherence and avoid semantic deadlocks (such as failing to coordinate rhyming pairs or multi-step reasoning traces), practitioners often resort to semi-autoregressive generation, forcing the model to diffuse one contiguous block of tokens at a time. This semi-sequential constraint artificially caps maximum throughput. Attempting to lift this constraint and apply standard heuristics in a full diffusion setting—where the model generates across the entire sequence simultaneously—results in performance collapsing to near random chance. Hand-crafted heuristics fail to capture the complex interdependencies required for coherent global unmasking under tight iteration budgets.

Key Findings

▶ Watch: Proposed method: learning unmasking policies with GRPO (4:00)

The central contribution of this work is demonstrating that unmasking strategies for diffusion language models can be successfully formulated as a learned policy rather than a hand-crafted heuristic. The key findings include:

  • Low-NFE Mastery via Compute Allocation: When evaluated on math reasoning tasks like GSM8K using Llama-3-8B-Instruct as the base DLM, learned policies excel at low NFEs by learning to allocate the vast majority of generation compute to the final reasoning blocks where final answers are synthesized.
  • Unlocking Full Diffusion: In the unconstrained full diffusion setting, the learned policy achieves ~50% accuracy on GSM8K in roughly 15 NFEs. This represents a 2x accuracy improvement over full diffusion heuristics at matching NFEs, and a 2x speedup over semi-autoregressive heuristics at matching accuracy.
  • Expert Steering for High-NFE Recovery: While unconstrained policies trail semi-autoregressive baselines at high NFEs, introducing expert steering—a mixture distribution blending the learned policy with a heuristic expert—recovers high-NFE performance while preserving low-NFE gains.
  • Reward Structure Sensitivity: Ablation studies reveal that a multiplicative reward structure combining correctness and efficiency is essential for guiding policy optimization effectively along the Pareto front.

Technical Deep Dive

▶ Watch: Full diffusion setting and expert steering (6:00)

The system architecture cleanly separates the base generative model from the decision-making policy. The underlying diffusion language model $P_\theta$ is treated as a frozen black box that outputs predictive distributions over vocabulary tokens given a partially masked sequence $Y_T$ and time step $T$.

Policy Parameterization and Optimization

The unmasking policy $\pi_\phi$ is parameterized as a lightweight single-block DiT-style transformer operating directly on token confidences. Containing roughly 300,000 parameters (a negligible fraction of a 7B or 8B parameter base model), the policy conditions on mask information and time step $T$ via adaptive layer normalization. For each sequence position, it produces a logit passed through a sigmoid function to yield per-position Bernoulli probabilities. Unmasking decisions are sampled independently from these Bernoulli distributions.

The problem is framed as a Markov Decision Process (MDP):

  • State Space: Prompt $X$ and current partially masked sequence $Y_T$.
  • Action Space: Binary sequences of length $L$ indicating which positions to unmask at step $T$.
  • Transition Dynamics: Determined by greedy (temperature zero) sampling from the underlying DLM at the selected positions.
  • Reward Function: Balances task correctness against generation efficiency:

$$\text{Reward} = \mathbb{I}(\text{Correct}) \times \left(\frac{T_{\text{target}}}{\hat{T}}\right)^\alpha$$

where $\mathbb{I}(\text{Correct})$ is a binary indicator for mathematical correctness, $T_{\text{target}}$ is the target sequence length, $\hat{T}$ is the actual number of sampling steps taken, and $\alpha$ is a hyperparameter controlling the aggressiveness of the speed-accuracy trade-off.

The policy is optimized end-to-end using Group Relative Policy Optimization (GRPO), facilitated by the closed-form likelihood computations afforded by independent Bernoulli sampling.

Experimental Setup & Results

▶ Watch: Conclusion and overview of additional paper contributions (7:30)

Experiments focus primarily on mathematical reasoning benchmarks, using Llama-3-8B-Instruct as the underlying DLM backbone. The primary benchmark dataset is GSM8K.

  • Semi-Autoregressive Performance: In standard block-wise generation, the learned policy matches or slightly exceeds state-of-the-art heuristics like Fast-DLM across most regimes, with distinct advantages concentrated in ultra-low NFE settings.
  • Full Diffusion Performance: Operating without block constraints, the policy achieves ~50% accuracy on GSM8K in ~15 NFEs, outperforming unconstrained heuristic baselines by a factor of two.
  • Transferability and Generalization: Transferring policies across different base models shows moderate success, though performance degrades when transferring across distinct domains (e.g., migrating a policy trained on math reasoning to code generation tasks), highlighting the inherent tension between amortized learning and domain-specific search.

Practical Implications

▶ Watch: Audience Q&A: Policy transferability across models and domains (9:42)

For infrastructure teams and model deployers, this work proves that inference acceleration for diffusion language models does not require co-training or modifying massive base architectures. By training a secondary policy with a parameter footprint under 1 MB ($\approx$300k parameters), engineering teams can retrofit existing frozen diffusion models to operate efficiently at ultra-low NFEs.

However, practitioners must account for important tradeoffs:

  • Domain Specialization: Policies learn domain-specific trajectories (such as front-loading compute into final-answer blocks for math reasoning). Deploying a policy across heterogeneous workloads requires either task-specific fine-tuning or robust expert steering.
  • Exploration vs. Exploitation: Pure policy learning without heuristic guidance can suffer at high NFEs. Production deployments should incorporate hybrid rollout strategies (such as expert steering) to ensure robustness across both low-latency and high-accuracy operating points.

Key Takeaways

  • Decoupled Optimization: Freezing the base diffusion language model and training a lightweight separate policy ($\approx$300k parameters) avoids expensive model retraining while achieving superior unmasking schedules.
  • Overcoming Heuristic Limits: Learned policies bypass the limitations of hand-crafted confidence thresholds ($\lambda$-thresholding or top-$K$ selection), enabling stable unmasking in unconstrained full diffusion settings.
  • Strategic Compute Allocation: Policies learn to concentrate inference compute where it matters most—such as dedicating steps to final-answer generation tokens in reasoning tasks.
  • Scalable RL with GRPO: Group Relative Policy Optimization provides a stable framework for policy training without requiring a separate value network.
  • Robust Hybrid Sampling: Combining learned policies with heuristic experts via expert steering bridges the gap between ultra-low NFE speedups and high-NFE accuracy retention.

About the Speaker(s)

  • Metod Jazbec (University of Amsterdam): Researcher from the University of Amsterdam who worked on this project while interning with the Apple Machine Learning Research team in Paris, France.
  • Theo X. Olausson (PhD student, MIT): PhD student at MIT who is presenting this work and interned with the Apple Machine Learning Research team in Paris, France.

Co-authors: Louis Béthune, Pierre Ablin, Michael Kirchhof, Joao Monteiro, Victor Guilherme Turrisi da Costa, Jason Ramapuram, Marco Cuturi.

Reviews

→ Top-rated talks at International Conference on Machine Learning 2026

All talks from International Conference on Machine Learning 2026