Research
dUltra: Ultra-Fast Diffusion Language Models via Reinforcement Learning
dUltra: Ultra-Fast Diffusion Language Models via Reinforcement Learning Overview Research area: Efficient inference for masked diffusion language models (MDLMs), combining discrete diffusion sampling

- arXiv
- 2512.21446
- Published
- 2025-12-24
- Authors
- Shirui Chen, Jiantao Jiao, Lillian J. Ratliff, Banghua Zhu
AI summary
dUltra: Ultra-Fast Diffusion Language Models via Reinforcement LearningOverview
Research area: Efficient inference for masked diffusion language models (MDLMs), combining discrete diffusion sampling with on-policy reinforcement learning (GRPO).
Technical level: Advanced. The paper assumes familiarity with masked diffusion, negative ELBO objectives, any-order autoregressive modeling, policy-gradient RL, and distillation-based distillation rewards.
Scope: The paper proposes dUltra, a GRPO-based framework that jointly trains a base masked diffusion LLM (LLaDA-8B-Instruct) and a learned Bernoulli "unmasking planner" head to trade accuracy against denoising steps on math and code benchmarks. Note: the provided paper content is truncated mid-way through Table 2 (the large-block-size results), so d3LLM and dUltra rows for block size 128 are not reported here.
What This Paper Is About
Masked diffusion language models can in principle generate many tokens in parallel, but most open-source MDLMs decode fewer than 5 tokens per model forward pass, even with sophisticated sampling strategies. Existing speedups rely either on fixed confidence-based heuristics or on distillation from trajectories generated by a base model, which can go off-policy during finetuning and cannot exceed the base model's sample quality. dUltra instead learns which tokens to unmask at each denoising step using on-policy reinforcement learning, so the model discovers its own efficient parallel decoding trajectories.
Key Contributions
- An unmasking planner head that predicts per-token unmasking likelihoods under independent Bernoulli distributions, making sampling-trajectory planning learnable rather than heuristic.
- A GRPO-based on-policy framework that jointly optimizes the diffusion model and the unmasking order planner using a combination of verifiable reward, distillation reward, and a step-count (efficiency) reward.
- Advantage clipping, a modification to GRPO that prevents the planner from collapsing to a degenerate policy that never unmasks tokens.
- State-of-the-art accuracy–efficiency trade-offs on mathematical reasoning (GSM8K, MATH500) and code generation (HumanEval, MBPP), measured in both tokens per forward pass (TPF) and number of function evaluations (NFE), against Fast-dLLM, d3LLM, and dParallel. Code and checkpoints are released.
Main Findings
- Baseline parallelism is low: The paper reports prior confidence-based decoding achieving roughly 4.5 tokens per step on GSM8K and roughly 3.3 tokens per step on MATH500, versus commercial diffusion language models operating at roughly 1000 tokens/s and autoregressive models typically at 100–300 tokens/s.
- Conditional-independence case study (Figure 2): Using LLaDA-8B-Instruct, masking 30% of tokens randomly allowed high-quality one-step decoding, while masking the same 30% at the end of the sequence (autoregressive masking) produced poor generation quality — motivating conditional-independence-aware planning.
- Training dynamics: On GSM8K, correctness reward, efficiency reward, and distillation reward all increase stably during dUltra training; the correctness reward gives 2.0 for a correct answer and 0.0 otherwise, and the efficiency reward is the negative number of denoising steps times a constant.
- Advantage clipping is necessary: Without clipping (C = −∞), average NFE diverges as the planner collapses to never unmasking tokens. With C = 0.0, training remains stable and NFE decreases while task performance is maintained.
- Block size 32 main results (Table 1): dUltra-math reaches 81.29 accuracy at 21.21 NFE (9.717 T/F) on GSM8K and 35.52 at 33.20 NFE (7.03 T/F) on MATH500. dUltra-coding reaches 81.52 at 23.54 NFE (8.40 T/F) on GSM8K, 35.64 at 33.39 NFE (6.72 T/F) on MATH500, 35.85 at 24.29 NFE (7.23 T/F) on HumanEval, and 37.04 at 19.78 NFE (7.29 T/F) on MBPP.
- Comparison to baselines at block size 32: Fast-dLLM scores 77.56 at 57.26 NFE on GSM8K; dParallel 77.10 at 28.47 NFE; d3LLM 72.50 at 25.79 NFE. dUltra outperforms both distillation baselines in accuracy on GSM8K and MATH500 while using fewer denoising steps on GSM8K and comparable steps on MATH500.
- Learned planner vs. the same base model without the planner: The "w/o planner" ablation (Fast-dLLM sampling with base-model logits) yields 75.44 on GSM8K for the dUltra-math configuration versus 81.29 with the planner, and the dUltra-coding ablation yields 75.89 versus 81.52. The paper reports +5.9 pp on GSM8K and +12–17 pp on code generation tasks from joint training of the base model and planner.
- Trade-off behavior without the planner: The ablation rows show lower NFE but lower accuracy in several settings (e.g., 15.31 NFE at 75.44 accuracy on GSM8K for dUltra-math w/o planner; 12.18 NFE at 20.40 accuracy on MBPP for dUltra-coding w/o planner).
- Block size 128 (Table 2, partial): Fast-dLLM scores 75.66 at 54.43 NFE on GSM8K, 32.60 at 75.72 NFE on MATH500, 35.40 at 61.54 NFE on HumanEval, and 37.80 at 56.93 NFE on MBPP; dParallel scores 75.66 at 24.07 NFE, 31.40 at 28.49 NFE, 30.49 at 23.68 NFE, and 36.00 at 18.07 NFE respectively. The d3LLM and dUltra rows for block size 128 are not included in the provided content.
Methodology in Plain English
The researchers start from the observation that masked diffusion models predict masked tokens independently of each other given the current sequence — an assumption that is violated when a method unmasks several dependent tokens at once, producing incoherent text. Accelerating such models is therefore a form of "mode filtering": picking one sensible mode out of several.
Rather than hand-designing a confidence threshold, they attach a small planner module (one transformer block matching the base architecture, plus time embeddings, adaptive layer norm, and a linear projection to scalar logits) on top of LLaDA-8B-Instruct. The planner reads the model's last-layer hidden states and outputs, for every masked position, a probability of being unmasked this step. Sampling these independent Bernoulli decisions reconstructs the whole generation as an ancestral process with a tractable likelihood: the probability of a rollout is the product over steps of (probability of choosing that set of positions) times (probability of the chosen tokens). A block-size hyperparameter restricts candidate positions to a prefix, interpolating between fully learnable ordering and left-to-right, autoregressive-like ordering.
Before RL, they warm-start the planner by supervised finetuning: a binary classification task with binary cross-entropy and a positive-class weight equal to the ratio of negatives to positives, teaching the planner to mimic Fast-dLLM's confidence-based unmasking criterion. This avoids a degenerate start where the untrained planner unmasks far too many tokens at once.
They then optimize with GRPO. For each prompt they sample G trajectories, compute group-relative advantages as each reward minus the group mean (without normalizing, to avoid policy-gradient bias), and use on-policy updates (one iteration), since off-policy updates would not save compute — each likelihood evaluation requires a full denoising process. To keep the planner from collapsing, they clip advantages below a threshold C to zero, so that only above-average trajectories contribute learning signal (C = 0.0 works best). The reward is a weighted sum of three terms: a verifiable task reward, an on-policy distillation reward (average teacher log-likelihood of the student's own rollouts, using Qwen2.5-Math-7B-Instruct for math and Qwen2.5-Coder-7B-Instruct for code), and an efficiency reward equal to the negative number of denoising steps. The entropy-regularization coefficient β is set to 0 in experiments, and the authors report no significant performance differences when varying β. dUltra-math is trained on the GSM8K training dataset, and dUltra-coding is initialized from dUltra-math and trained on the APPS dataset.
Why This Matters
Impact on research. The work reframes parallel decoding in masked diffusion LLMs as a learnable sequential decision problem rather than a fixed confidence heuristic, and it argues that offline distillation is fundamentally limited by the base model's trajectories and by off-policy distribution mismatch. It also connects the learned sampling order to any-order autoregressive modeling, where standard training marginalizes over a uniform distribution of generation orders.
Real-world applications:
- Low-latency code assistants that must return completions quickly under tight compute budgets.
- Mathematical reasoning tutors or solvers where wall-clock response time matters for interactivity.
- On-device or edge deployment, where reducing denoising steps directly reduces compute and energy.
- High-throughput batch serving of language models where throughput per forward pass is the binding constraint.
Industry relevance. The paper explicitly frames the gap between open-source MDLMs (a few tokens per forward pass) and commercial diffusion language models (roughly 1000 tokens/s) as an unmet opportunity, and targets "diffusion supremacy" over autoregressive models that typically run at 100–300 tokens/s. Any organization serving diffusion LLMs and paying per denoising step has a direct interest in this trade-off.
Future Directions
- Extending the evaluation to the large-block-size (B = 128) regime, where the full dUltra and d3LLM results are not reported in the available content.
- Testing whether the learned planner transfers across base models and beyond LLaDA-8B-Instruct, since all experiments here use that single base model.
- Investigating the distillation reward more systematically, including the entropy-regularization weight β, which the authors set to 0 and found to matter little empirically.
- Closing the remaining gap to commercial diffusion models' reported throughput and pushing past the current tokens-per-forward-pass levels on harder reasoning tasks such as MATH500.
Target Audience
Researchers and engineers working on efficient inference for diffusion language models, reinforcement learning for LLM post-training, or parallel decoding and sampling-order design. It is also relevant to practitioners who need to choose between confidence-based heuristics and distillation-based acceleration for production deployment, and to anyone studying the theoretical link between masked diffusion objectives and any-order autoregressive modeling.
Authors’ abstract
Masked diffusion language models (MDLMs) offer the potential for parallel token generation, but most open-source MDLMs decode fewer than 5 tokens per model forward pass even with sophisticated sampling strategies, limiting their parallel generation potential. Existing acceleration methods either rely on fixed confidence-based heuristics or use distillation-based approaches that finetune MDLMs on trajectories generated by a base model, which can become off-policy during finetuning and restrict performance to the quality of the base model's samples. We propose \texttt{dUltra}, an on-policy reinforcement learning framework based on Group Relative Policy Optimization (GRPO) that learns unmasking strategies for efficient parallel decoding. dUltra introduces an unmasking planner head that predicts per-token unmasking likelihoods under independent Bernoulli distributions. We jointly optimize the base diffusion LLM and the unmasking order planner using reward signals combining verifiable reward, distillation reward, and the number of unmasking steps. Across mathematical reasoning and code generation tasks, dUltra achieves superior accuracy-efficiency trade-offs compared to state-of-the-art heuristic (Fast-dLLM) and distillation baselines (d3LLM, dParallel), demonstrating that learned unmasking trajectories through on-policy RL enable better exploitation of parallel generation in MDLMs. Code and checkpoints are released at https://github.com/chinsengi/dUltra-os.