TLDR: A new reinforcement learning algorithm, Amortized Group Relative Policy Optimization (AGRPO), has been developed for Diffusion Large Language Models (dLLMs). Unlike previous attempts, AGRPO provides a theoretically sound and efficient way to apply RL, significantly improving dLLMs’ performance on complex math and reasoning tasks while also allowing for better trade-offs between computational cost and generation quality.
Diffusion Large Language Models (dLLMs) represent a fascinating new direction in artificial intelligence, offering a non-autoregressive way to generate text by predicting multiple tokens simultaneously and refining output through iterative unmasking. While traditional autoregressive LLMs have seen immense benefits from post-training techniques like reinforcement learning (RL), dLLMs have historically struggled to integrate these advanced methods effectively. This challenge stems from fundamental differences in how these models operate, making standard RL algorithms incompatible.
A recent paper, Principled and Tractable RL for Reasoning with Diffusion Language Models, introduces a groundbreaking solution: Amortized Group Relative Policy Optimization (AGRPO). This novel RL algorithm is specifically designed for dLLMs, addressing the limitations of previous attempts that relied on heuristic-based objectives without strong theoretical foundations.
The Core Problem with dLLMs and RL
Autoregressive LLMs generate text token by token, from left to right, allowing for straightforward calculation of token probabilities in a single pass. This characteristic makes them well-suited for existing RL algorithms like Group Relative Policy Optimization (GRPO), which optimize models based on these probabilities and associated rewards.
dLLMs, however, work differently. They start with a masked sequence and iteratively unmask tokens, refining the text over several steps. This multi-step, parallel prediction process means that calculating exact token probabilities for all steps, as required by traditional GRPO, would demand a separate forward pass for each token, making online RL training impractically slow and computationally intensive.
Introducing AGRPO: A Principled Solution
Anthony Zhan from Stanford University developed AGRPO to bridge this gap. The key innovation lies in reinterpreting the GRPO objective. Instead of requiring a forward pass for every token at every step, AGRPO views the inner sum of the GRPO objective as an expectation over timesteps. This allows for the use of Monte Carlo sampling.
During training, AGRPO samples a small number of timesteps (k) from the total generation steps (m) using a technique called low-discrepancy sampling. For these sampled timesteps, it computes the exact token probabilities and averages them. This approach yields an unbiased policy gradient estimate, making AGRPO the first tractable and theoretically sound adaptation of policy gradient methods for dLLMs.
Key Benefits and Performance
AGRPO brings several significant advantages to dLLMs:
- Theoretical Soundness: Unlike prior dLLM RL methods that used biased approximations, AGRPO provides an unbiased policy gradient, ensuring its theoretical integrity.
- Practical Efficiency: The Monte Carlo sampling approach makes the algorithm tractable, balancing computational cost with effectiveness.
- Enhanced Reasoning: Experiments on challenging math and reasoning tasks like GSM8K, MATH, and Countdown demonstrate AGRPO’s efficacy. It achieved up to a 7.6% absolute gain on GSM8K and a remarkable 3.8x performance improvement on the Countdown task compared to the baseline LLaDA-8B-Instruct model. It also outperformed other dLLM RL methods like diffu-GRPO by 1.3x.
- Flexible Inference: A unique strength of dLLMs is their ability to trade off compute and generation quality at inference time. AGRPO-trained models consistently maintain high accuracy even with fewer sampling steps, effectively expanding the compute/quality frontier. This means dLLMs can achieve better performance with less computational effort.
The research highlights that online RL algorithms can indeed be extended to diffusion LLMs in a principled manner, leading to robust reasoning capabilities. This work is a crucial step towards solidifying dLLMs as a true competitor to autoregressive LLMs, especially in tasks requiring complex thought processes.
Also Read:
- MaskGRPO: A Unified Reinforcement Learning Approach for Multimodal Discrete Diffusion Models
- Boosting LLM Reasoning: A New Test-Time Optimization Approach for Latent Thoughts
Looking Ahead
AGRPO paves the way for future advancements in dLLM post-training. While current implementations are compute-intensive, ongoing research into areas like KV caching for dLLMs could further enhance their efficiency. The ability of dLLMs to leverage context from both left and right also presents exciting opportunities for designing new reasoning tasks that fully utilize their unique architecture.
This development marks a significant milestone in making dLLMs not just versatile text generators, but powerful reasoners capable of tackling complex problems with theoretical rigor and practical effectiveness.


