Introduction
While Auto-Regressive (AR) models currently dominate the large language model (LLM) landscape, Diffusion Language Models (dLLMs) have emerged as a promising alternative due to their potential for parallel generation and increased inference speeds. However, the transition from pre-training to effective deployment has been hindered by a significant "post-training" gap. Unlike AR models, which benefit from mature alignment techniques like Reinforcement Learning from Human Feedback (RLHF), dLLMs have struggled with the complexities of supervised fine-tuning (SFT) and reinforcement learning (RL).
This paper introduces DiRL, a novel post-training framework designed to make RL practical and efficient for dLLMs. By combining the Diffusion Policy Optimization (DiPO) algorithm with significant engineering optimizations, the authors demonstrate that an 8B parameter dLLM can achieve state-of-the-art performance in mathematical reasoning, even outperforming significantly larger AR models.
The Challenges of dLLM Post-Training
Applying standard alignment techniques to dLLMs presents two primary obstacles:
- Objective Mismatch: Traditional bidirectional diffusion does not generate tokens in a fixed linear order. This lack of sequentiality makes it mathematically difficult to calculate the exact log-probabilities (logits) required for standard RL algorithms, which rely on comparing the model's current policy against a reference.
- Computational Inefficiency: The RL loop involves alternating between a "rollout" phase (generating responses) and a "training" phase (updating parameters). In existing dLLM workflows, this process is bottlenecked by massive I/O overhead—frequently saving and reloading multi-gigabyte checkpoints—and the absence of efficient KV-caching mechanisms that accelerate AR inference.
The DiRL Framework
To address these bottlenecks, the DiRL framework introduces two major innovations: an engineering overhaul of the training pipeline and a new optimization algorithm.
Engineering Optimizations
DiRL streamlines the RL loop by tightly coupling the training environment with a high-performance inference server, LMDeploy. Rather than relying on disk-based checkpoint swapping, DiRL utilizes an in-place parameter update API. This eliminates the "I/O tax" that typically plagues RL training. Furthermore, the framework incorporates FlexAttention, a high-performance attention mechanism that supports the complex, block-specific masking required by diffusion models, significantly reducing training latency.
The DiPO Algorithm
The authors propose Diffusion Policy Optimization (DiPO), the first unbiased implementation of Group Relative Policy Optimization (GRPO) specifically for diffusion. DiPO leverages blockwise dLLMs, which treat text as a sequence of blocks. Because these models maintain an auto-regressive flow between blocks while using diffusion within blocks, DiPO can compute unbiased logits for each segment. This allows the model to be aligned using the same importance sampling logic used for AR models, ensuring the training objective remains consistent with inference behavior.
Experimental Setup
The researchers evaluated DiRL in the domain of mathematics, a rigorous test for reasoning capabilities.
- SFT Stage: The model was first fine-tuned on the OpenR1-Math dataset (220k samples), featuring high-quality reasoning trajectories distilled from GLM-4.6.
- RL Stage: The model underwent reinforcement learning using the Big-Math dataset.
- Evaluation: Performance was measured across standard benchmarks, including MATH500, GSM8k, AIME2024, AIME2025, and OlympiadBench.
Key Results and Insights
State-of-the-Art Performance
The resulting model, DiRL-8B-Instruct, achieved an average score of 54.0 across the math benchmarks. This represents a significant leap over previous dLLM leaders, such as TraDo-8B (46.5). Notably, the 8B DiRL model outperformed the Qwen2.5-32B-Instruct—an AR model four times its size—on the challenging AIME24 and AIME25 exams.
Efficiency Gains
The DiRL framework achieved a 6x reduction in training latency compared to baseline methods. By optimizing I/O operations and attention kernels, the authors realized a 2.5x total throughput improvement for the entire RL pipeline, making the post-training of dLLMs computationally competitive with AR models.
Robustness to Decoding
Ablation studies revealed that DiRL-8B-Instruct is remarkably robust to variations in decoding strategies. While previous dLLMs often experienced performance degradation if sampling thresholds were not perfectly tuned, DiRL demonstrated a steady upward trend in accuracy as decoding became more conservative, suggesting a more stable and well-aligned underlying policy.
Conclusion and Future Work
DiRL demonstrates that with the right algorithmic and engineering foundations, diffusion models can be successfully aligned to match or exceed the reasoning capabilities of auto-regressive models. While this study focused on the 8B scale and an 8k token context window, it provides a scalable blueprint for future research. The authors identify model scaling (70B+), extending context lengths, and exploring "test-time scaling" (allowing the model to compute longer for harder problems) as the next critical frontiers for diffusion-based language modeling.
Summary updated