DiRL: An Efficient Post-Training Framework for Diffusion Language Models
Ying Zhu, Jiaxin Wan, Xiaoran Liu, Siyanag He, Qiqi Wang, Xu Guo, Tianyi Liang, Zengfeng Huang, Ziwei He, Xipeng Qiu
TL;DR
This work targets the inefficient post-training of diffusion language models (dLLMs) by introducing DiRL, a two-stage framework (SFT followed by RL) that tightly couples training with an inference backend for online updates. It also presents DiPO, the first unbiased Group Relative Policy Optimization (GRPO) implementation for dLLMs, enabled by blockwise diffusion and FlexAttention to compute logits efficiently. Trained on OpenR1-Math, the resulting DiRL-8B-Instruct achieves state-of-the-art math performance among dLLMs and often surpasses larger autoregressive baselines like Qwen2.5-32B-Instruct on multiple benchmarks, demonstrating the practical impact of efficient post-training and unbiased RL for complex reasoning tasks. The approach combines a blockwise BDLM foundation, efficient training–inference co-design, and targeted RL data to deliver a scalable, open-source post-training toolkit for diffusion-based language models with strong math reasoning capabilities.
Abstract
Diffusion Language Models (dLLMs) have emerged as promising alternatives to Auto-Regressive (AR) models. While recent efforts have validated their pre-training potential and accelerated inference speeds, the post-training landscape for dLLMs remains underdeveloped. Existing methods suffer from computational inefficiency and objective mismatches between training and inference, severely limiting performance on complex reasoning tasks such as mathematics. To address this, we introduce DiRL, an efficient post-training framework that tightly integrates FlexAttention-accelerated blockwise training with LMDeploy-optimized inference. This architecture enables a streamlined online model update loop, facilitating efficient two-stage post-training (Supervised Fine-Tuning followed by Reinforcement Learning). Building on this framework, we propose DiPO, the first unbiased Group Relative Policy Optimization (GRPO) implementation tailored for dLLMs. We validate our approach by training DiRL-8B-Instruct on high-quality math data. Our model achieves state-of-the-art math performance among dLLMs and surpasses comparable models in the Qwen2.5 series on several benchmarks.
