Standard Reinforcement Learning (RL) assumes language models generate text one token at a time. However, Diffusion LLMs (dLLMs) denoise entire sequences at once. This fundamental mismatch has made applying RL to dLLMs notoriously difficult. To address this, researchers have introduced ESPO (ELBO-based Sequence-level Policy Optimization), a principled framework that treats sequence generation as a single atomic action, leading to massive performance gains in planning and reasoning tasks.
The Challenge: Token-Level vs. Sequence-Level
Most modern RL algorithms for language models (like PPO or GRPO) are built for Autoregressive (AR) models. These models predict the "next token" based on previous ones, allowing RL to assign rewards and calculate "importance ratios" at the token level.
Diffusion Large Language Models (dLLMs), however, work differently. They start with a sequence of noise (or masks) and iteratively refine the entire block of text. Because they don't follow a strict left-to-right factorization, the standard token-level RL math breaks down. Previous attempts to bridge this gap used "mean-field" heuristics or tried to chop up the dLLM's objective into token-sized pieces. These methods are often mathematically inconsistent and notoriously unstable, frequently leading to training collapse.
The ESPO Framework
The authors propose ESPO, which shifts the perspective from token-level actions to sequence-level actions.
- Sequence-level Action Space: Instead of asking "how likely is this token?", ESPO asks "how likely is this entire sequence?". This aligns perfectly with how diffusion models actually generate text.
- ELBO as a Proxy: Since calculating the exact likelihood of a sequence in a dLLM is computationally impossible, ESPO uses the Evidence Lower Bound (ELBO). Unlike prior work that broke the ELBO apart, ESPO treats it as a holistic sequence-level likelihood proxy.
- Log-Ratio Normalization: To prevent the importance ratios from exploding or vanishing (a common issue when dealing with long sequences), the authors normalize the log-likelihood difference by the sequence length.
- Robust KL Estimation: Standard RL often uses the "$k_3$" KL-divergence estimator, which contains an exponential term. In the high-variance world of dLLMs, this causes "spiky" gradients. ESPO adopts the $k_2$ estimator, a quadratic function that provides a much smoother and more stable training signal.
Key Insights
- Don't Force the Factorization: The biggest takeaway is that we shouldn't force dLLMs to behave like autoregressive models. By treating the whole sequence as one "move" in a game, the math becomes cleaner and the training becomes more stable.
- The Integrity of the ELBO: Prior methods that decomposed the ELBO into token-level contributions introduced unknown inconsistencies. Keeping the ELBO whole at the sequence level preserves its mathematical validity as a variational lower bound.
- Stability over Complexity: The switch from the $k_3$ to the $k_2$ KL estimator is a subtle but vital engineering choice, proving that avoiding exponential terms in the objective function is key to preventing training collapse for non-autoregressive models.
Key Results
The researchers evaluated ESPO across three demanding domains using the LLaDA-8B and Dream-7B models: Mathematics (GSM8K, MATH), Coding (HumanEval, MBPP), and Planning (Countdown, Sudoku).
ESPO significantly outperformed existing dLLM-RL baselines (like d1 and wd1):
- Planning Dominance: On the Countdown task, ESPO improved scores by 20–40 points over the strongest baselines. On Sudoku, the gains were even more dramatic, sometimes exceeding 60 points.
- Consistent Reasoning Gains: In mathematics (GSM8K), ESPO provided a +6.1 point boost for LLaDA, surpassing previous token-level RL attempts.
- Computational Efficiency: Despite using Monte Carlo sampling to estimate the ELBO, ESPO's training cost only grows moderately. Increasing from 1 to 4 samples only increased the total FLOPs by about 47%, whereas other methods scale linearly (400%).
Limitations and Future Work
While ESPO represents a major step forward, challenges remain. The authors note that RL can only extract so much performance; the pre-existing knowledge in the base model still acts as a "ceiling" for tasks like MATH and Coding. Additionally, while dLLMs offer advantages in long-context and parallel decoding, they still require multiple denoising steps, which can be slower than simple AR decoding for short sequences. Finally, while the models generalized well to varying sequence lengths during testing, the absolute limits of this length-generalization remain an open area for study.
Summary updated