dUltra: Ultra-Fast Diffusion Language Models via Reinforcement Learning

Shirui Chen, Jiantao Jiao, Lillian J. Ratliff, Banghua ZhuarXiv 2025 · DOI

Introduction

Masked Diffusion Language Models (MDLMs) represent a promising alternative to standard autoregressive Large Language Models (LLMs). While autoregressive models generate text token-by-token, MDLMs have the theoretical potential to generate multiple tokens in parallel, significantly increasing throughput. However, realizing this potential is difficult because parallel decoding often violates conditional independence assumptions, leading to degraded output quality. This paper introduces dUltra, a reinforcement learning (RL) framework designed to optimize the unmasking strategies of MDLMs, achieving substantial speedups without sacrificing accuracy.

The Challenge of Parallel Decoding

The primary bottleneck in MDLMs is the "unmasking schedule"—the sequence and number of tokens revealed in each step. If a model unmasks too many dependent or ambiguous tokens simultaneously, it risks producing "hallucinations" or mixing different semantic modes. For instance, predicting the middle of a sentence without sufficient context from the end can lead to nonsensical results. Consequently, many current MDLMs are restricted to conservative, slow unmasking schedules (e.g., fewer than 5 tokens per pass). Existing acceleration techniques, such as distillation or rigid heuristics, often fail to capture the complex dependencies required for high-speed, high-quality generation.

The dUltra Framework

dUltra reframes unmasking as a policy learning problem. The framework consists of several key components:

  1. Unmasking Planner Head: A lightweight transformer block is integrated into the base model (LLaDA-8B-Instruct). This head predicts the probability that each individual token should be unmasked in the current step, modeled via independent Bernoulli distributions.
  2. On-Policy RL via GRPO: The model is trained using Group Relative Policy Optimization (GRPO). Unlike traditional RL methods that require a separate critic model, GRPO evaluates a group of trajectories generated by the model itself to identify superior unmasking sequences.
  3. Multi-Objective Reward System: The training process is guided by three distinct signals: a Verifiable Reward for task success (e.g., correct math answers), a Distillation Reward from a high-quality autoregressive teacher (e.g., Qwen2.5) to encourage "mode-seeking" behavior, and an Efficiency Reward that penalizes excessive decoding steps.
  4. Advantage Clipping: To prevent the planner from becoming overly conservative (unmasking zero tokens to avoid penalties), a novel clipping mechanism maintains exploration during training.

Mode Filtering and Task-Specific Strategies

A central insight of the dUltra paper is that effective acceleration is synonymous with mode filtering. In a high-dimensional probability space, parallel decoding without proper guidance can lead to "mode mixing," where the model attempts to follow multiple conflicting paths at once, resulting in nonsensical output. By applying RL, dUltra learns to commit to a single high-quality "mode," effectively filtering out the spurious paths that arise from aggressive parallelization.

Visualization of mode filtering in parallel decoding.

Furthermore, dUltra discovers task-specific unmasking strategies. In mathematical reasoning, where steps are strictly sequential, the model maintains a largely left-to-right unmasking order. In contrast, for code generation, dUltra learns to first unmask structural "skeletons"—such as function signatures and keywords—before filling in the internal logic in a highly parallel fashion.

Experimental Results

The researchers evaluated dUltra on benchmarks including GSM8K, MATH500, HumanEval, and MBPP. The results demonstrate that dUltra significantly shifts the Pareto frontier of accuracy versus speed:

  • Efficiency Gains: dUltra achieved a 70% reduction in the Number of Function Evaluations (NFE) on GSM8K and a 74% reduction on MBPP compared to heuristic baselines.
  • Increased Throughput: The Tokens Per Forward pass (TPF) increased from approximately 4.3 in the baseline to between 10 and 14 tokens per pass.
  • Accuracy Maintenance: Unlike many speed-up methods that trade off quality, dUltra often improved performance. For example, it delivered a +5.9 percentage point increase in accuracy on GSM8K, suggesting that the RL process also enhances the base model's reasoning capabilities.

Conclusion

dUltra demonstrates that reinforcement learning is a powerful tool for unlocking the parallel generation capabilities of diffusion language models. By learning optimal, task-specific unmasking policies and performing effective mode filtering, dUltra achieves state-of-the-art inference speeds while maintaining or improving the quality of complex reasoning and coding outputs.

Summary updated

BibTeX
@misc{chen2025dultra,
  author = {Shirui Chen and Jiantao Jiao and Lillian J. Ratliff and Banghua Zhu},
  title = {{dUltra: Ultra-Fast Diffusion Language Models via Reinforcement Learning}},
  year = {2025},
  eprint = {2512.21446},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2512.21446},
}
Figure