TL;DR
Standard reinforcement learning (RL) algorithms fail when applied to diffusion large language models (dLLMs) because they assume a left-to-right token factorization that non-autoregressive models simply do not have. To bridge this gap, researchers have introduced ELBO-based Sequence-level Policy Optimization (ESPO), a framework that treats the generation of an entire sequence as a single atomic action and uses the Evidence Lower Bound (ELBO) as a stable proxy for sequence likelihood. ESPO yields dramatic performance improvements—up to 40 points on complex planning tasks—while maintaining stable, efficient training at scale.
What Problem Does This Paper Address?
Autoregressive (AR) language models generate text token-by-token from left to right. This structure makes it easy to calculate token-level conditional probabilities, which popular RL algorithms (like GRPO) rely on to distribute rewards and optimize policies.
Diffusion LLMs (dLLMs), however, work differently. They generate text non-autoregressively by iteratively denoising an entire sequence at once. Because they lack a step-by-step token factorization, calculating token-level conditional probabilities is either mathematically ill-defined or computationally prohibitive. Previous attempts to apply RL to diffusion models relied on heuristic token-level approximations (such as mean-field surrogates). Unfortunately, breaking down a holistic diffusion process into token-level pieces introduces severe probabilistic inconsistencies, frequently causing training to stagnate or collapse entirely.
Methods
The authors propose ELBO-based Sequence-level Policy Optimization (ESPO). Instead of forcing dLLMs into an artificial token-level framework, ESPO shifts the perspective to the sequence level, treating the generation of a full sequence as a single action.
To make this mathematically rigorous and computationally viable, ESPO introduces three key techniques:
- ELBO as a Sequence Likelihood Proxy: Since exact sequence log-likelihood is intractable in dLLMs, ESPO leverages the Evidence Lower Bound (ELBO) as a mathematically sound surrogate.
- Per-Token Normalization: Raw ELBO differences scale linearly with sequence length, which can lead to astronomically large or infinitesimally small importance ratios during exponentiation. ESPO normalizes the log-ratio by the sequence length to stabilize optimization.
- Polynomial KL-Divergence Estimation: Standard RL algorithms often use the $k_3$ KL estimator, which contains an exponential term. When paired with sequence-level ELBO approximations, this exponential term amplifies minor estimation errors and causes massive gradient spikes. ESPO swaps this out for the $k_2$ estimator—a simple quadratic function of the ELBO difference—which provides smooth, unbiased, and stable gradient signals.
Additionally, the framework incorporates variance reduction techniques like antithetic sampling (sharing mask positions between old and new policies) and coupled sampling (averaging losses from complementary masks) to ensure stable training.
Datasets
The authors evaluated ESPO across three categories of reasoning tasks using open-source dLLMs (LLaDA-8B-Instruct and Dream-7B-Instruct):
- Mathematics: GSM8K and MATH (trained on official training splits).
- Coding: AceCoder-87K (trained on a subset), evaluated on HumanEval, HumanEval+, MBPP, and MBPP+.
- Planning: Countdown and Sudoku (trained on synthetically generated data).
Key Insights and Ideas
- The Token-Level Mismatch is Fundamental: Forcing a dLLM into token-level AR objectives breaks the integrity of the variational bound. As shown in Figure 1, token-level ELBO approximations suffer from high instability and eventual collapse, whereas sequence-level optimization converges rapidly to high rewards.
- Exponential Terms Kill Sequence Stability: In sequence-level RL, any estimator containing an exponential term (like $k_1$ or $k_3$) will magnify noise over long sequences. Moving to a polynomial quadratic estimator ($k_2$) eliminates these spikes entirely, ensuring smooth training dynamics.
- Compute Efficiency in Diffusion RL: In dLLMs, the data generation (sampling) phase dominates compute time because it requires non-autoregressive denoising over the full sequence. Because increasing the number of Monte Carlo samples ($M$) for ELBO estimation only impacts the policy update phase, ESPO can scale up sample sizes to improve stability with minimal wall-clock time overhead.
Key Results
ESPO consistently and significantly outperformed both the original base models and prior token-level dLLM-RL baselines (such as d1 and wd1).
- Dominance in Planning: The most dramatic gains occurred in tasks requiring global consistency. On Countdown, ESPO outperformed the strongest baselines by 20–40 absolute points. On Sudoku, it achieved up to a 60+ point improvement depending on the sequence length, while token-level baselines completely stagnated.
- Consistent Math and Coding Gains: ESPO reliably enhanced performance on knowledge-intensive benchmarks, achieving an average improvement of +6.1 points on GSM8K and +2.9 points on HumanEval over the LLaDA base model.
- Length Generalization: Even though the models were trained strictly on a sequence length of 256, the performance gains generalized effectively when evaluated at lengths of 128 and 512.
Limitations and Future Work
- Knowledge Ceiling: The authors note that the pre-existing knowledge of the base models acts as a performance ceiling. RL post-training optimizes the model's reasoning capabilities but cannot inject entirely new knowledge into the network.
- Task-Brittle Landscapes: While simple planning tasks are highly robust and allow for aggressive policy updates, more complex domains like mathematics and coding feature more brittle reward landscapes. The authors suggest that future work could explore adaptive update frequencies to safely navigate these complex domains without risking training instability.
Summary updated