TL;DR
Masked Diffusion Language Models (MDLMs) suffer from a fundamental "training-inference divide" because they are trained on randomly masked tokens but generate text using a progressive, confidence-guided unmasking schedule. This paper introduces Masked Diffusion Policy Optimization (MDPO) to align these two stages using reinforcement learning with intermediate rewards, alongside Running Confidence Remasking (RCR), a training-free decoding strategy that allows models to revise early mistakes. Together, these methods dramatically improve reasoning performance, matching state-of-the-art results with 60× fewer gradient updates.
What Problem Does This Paper Address?
While traditional autoregressive (AR) large language models generate text token-by-token from left to right, Diffusion Language Models (DLMs) generate text by iteratively denoising an entire sequence in parallel. Currently, Masked Diffusion Language Models (MDLMs) represent the state-of-the-art in this paradigm.
However, the authors identify a critical flaw: the training-inference divide. During training, tokens are masked completely at random. But at inference time, the model uses a confidence-guided schedule to progressively reveal the sequence, predicting fewer and fewer masked tokens at each step.
This mismatch causes a newly documented phenomenon called over-denoising: the model frequently generates the correct answer at an intermediate step but then "refines" it into an incorrect final answer because it hasn't learned stable denoising trajectories. Standard decoding methods also permanently freeze tokens once predicted, making it impossible to fix early, noisy mistakes.
Methods
The authors propose two complementary solutions to bridge this gap:
- Masked Diffusion Policy Optimization (MDPO): This method frames the iterative denoising process as a multi-step sequential decision-making problem. By treating the mask-prediction network as a reinforcement learning policy, MDPO optimizes the model using policy gradients based on intermediate-step rewards. It leverages a group-relative advantage estimation strategy to reward trajectories that reach correct answers faster and more reliably.
- Running Confidence Remasking (RCR): A training-free, plug-and-play inference strategy. Instead of freezing tokens based on single-step confidence, RCR continuously tracks the running maximum confidence for each position across the entire denoising trajectory. If an early prediction was highly uncertain, RCR allows it to be re-masked and revised in later steps.
Datasets
The methods were evaluated on challenging mathematical and reasoning benchmarks:
- MATH-500: A curated subset of 500 problems from the standard MATH dataset.
- Countdown: A combinatorial arithmetic puzzle dataset where the model must reach a target number using basic operations.
- Training Data: Models were fine-tuned using subsets of the Huggingface OpenR1 dataset (93.7k competition-level math problems from NuminaMath 1.5) and the Countdown training split.
Key Insights and Ideas
- The Reality of Over-Denoising: The authors discovered that if you look at intermediate steps, baseline models like LLaDA actually hit the correct answer much more often than their final outputs suggest (+9.8% potential accuracy on MATH-500 and +6.2% on Countdown).
- Over-Denoising as a Data Filter: Since over-denoising samples contain highly informative signals of where the model's trajectory fails, training MDPO exclusively on these samples (roughly 10% of the dataset) proves incredibly data-efficient and yields superior performance compared to training on all data.
- The Power of Revision: MDLMs generate complete text at every step, meaning early tokens are guessed with very little context. Allowing the model to dynamically unfreeze and revise these early tokens (via RCR) prevents error propagation.
Key Results
- 60× More Efficient: MDPO matches the performance of the previous state-of-the-art MDLM RL framework (diffu-GRPO) while requiring 60× fewer gradient updates.
- Superior Accuracy: When given the same number of weight updates, MDPO achieves an average improvement of 9.6% on MATH-500 and 54.2% on Countdown over the SOTA baseline.
- Synergistic Effects: The training-free RCR method consistently boosts both pre-trained and MDPO-fine-tuned models, frequently delivering the best or second-best results across all tested configurations.
Limitations and Future Work
Currently, MDPO relies on tasks with verifiable, static reward functions (e.g., math problems where the final answer can be parsed and checked programmatically). The authors note that expanding MDPO to general, open-ended text generation tasks remains an open challenge. They suggest that incorporating modern validation concepts, such as using an LLM-as-a-judge to provide intermediate trajectory rewards, is a promising direction for future research.
Summary updated