Preprint
Large Language Models

Scaling Reasoning in Diffusion LLMs via RL

Siyan Zhao, Devaansh Gupta, Qinqing Zheng, Aditya Grover
April 16, 2025arXiv.org168 citations

168

Citations

41

Influential Citations

arXiv.org

Venue

2025

Year

Abstract

Recent large language models (LLMs) have demonstrated strong reasoning capabilities that benefits from online reinforcement learning (RL). These capabilities have primarily been demonstrated within the left-to-right autoregressive (AR) generation paradigm. In contrast, non-autoregressive paradigms based on diffusion generate text in a coarse-to-fine manner. Although recent diffusion-based large language models (dLLMs) have achieved competitive language modeling performance compared to their AR counterparts, it remains unclear if dLLMs can also leverage recent advances in LLM reasoning. To this end, we propose d1, a framework to adapt pre-trained masked dLLMs into reasoning models via a combination of supervised finetuning (SFT) and RL. Specifically, we develop and extend techniques to improve reasoning in pretrained dLLMs: (a) we utilize a masked SFT technique to distill knowledge and instill self-improvement behavior directly from existing datasets, and (b) we introduce a novel critic-free, policy-gradient based RL algorithm called diffu-GRPO, the first integration of policy gradient methods to masked dLLMs. Through empirical studies, we investigate the performance of different post-training recipes on multiple mathematical and planning benchmarks. We find that d1 yields the best performance and significantly improves performance of a state-of-the-art dLLM. Our code is released at https://dllm-reasoning.github.io/.

Analysis

Why This Paper Matters

This paper addresses a critical gap in the evolution of large language models (LLMs): while autoregressive (AR) models have shown remarkable reasoning improvements through online reinforcement learning (RL), non-autoregressive diffusion-based LLMs (dLLMs) have lagged in this area. The authors propose d1, a framework that successfully adapts pre-trained masked dLLMs into reasoning models, demonstrating that diffusion-based generation can also benefit from RL post-training. This is significant because dLLMs offer potential advantages in parallel generation and coarse-to-fine text synthesis, and unlocking their reasoning capabilities could lead to more efficient and scalable AI systems.

The work is timely given the rapid adoption of RL in LLM reasoning (e.g., DeepSeek-R1, GRPO). By showing that dLLMs can leverage similar techniques, the paper broadens the scope of RL-based reasoning beyond the autoregressive paradigm, opening new avenues for model architectures and training strategies.

Technical Contributions

  • Masked SFT: The authors develop a supervised finetuning technique that operates on masked tokens, enabling the distillation of reasoning knowledge from existing datasets and instilling self-improvement behavior directly into the dLLM.
  • diffu-GRPO: A novel critic-free, policy-gradient RL algorithm specifically designed for masked dLLMs. This is the first integration of policy gradient methods into diffusion-based language models, avoiding the need for a value critic and simplifying the RL pipeline.
  • Framework d1: Combines masked SFT and diffu-GRPO into a cohesive post-training recipe, demonstrating that the two stages synergistically improve reasoning performance.
  • Empirical Study: The paper systematically compares different post-training recipes (e.g., SFT-only, RL-only, and combined) on multiple mathematical and planning benchmarks, providing insights into the effectiveness of each component.

Results

The paper reports that d1 yields the best performance among all tested post-training recipes. Specifically, it significantly improves the performance of a state-of-the-art dLLM on mathematical and planning benchmarks. While the abstract does not provide exact numerical metrics, the qualitative claim of significant improvement suggests that the combination of masked SFT and diffu-GRPO is effective. The authors also release their code, facilitating reproducibility and further research.

Significance

This work has several broader implications. First, it demonstrates that RL-based reasoning is not exclusive to autoregressive models, potentially inspiring new research into non-autoregressive reasoning architectures. Second, the introduction of diffu-GRPO provides a scalable RL algorithm for dLLMs, which could be applied to other diffusion-based generative models beyond language. Finally, by open-sourcing the code, the authors enable the community to build upon their framework, accelerating progress in this emerging area. Overall, d1 represents a step toward more versatile and efficient reasoning models, with potential applications in domains requiring parallel generation or iterative refinement.