Reinforcement Learning for Diffusion LLMs with Entropy-Guided Step Selection and Stepwise Advantages

Vishnu Teja Kunde, Fatemeh Doudi, Mahdi Farahbakhsh, Dileep Kalathil, Krishna Narayanan, Jean-Francois Chamberland

TL;DR

Diffusion language models generate text by iteratively unmasking sentences all at once rather than predicting word-by-word, which breaks the standard reinforcement learning (RL) math that made models like DeepSeek-R1 so capable. Rather than relying on rough likelihood approximations, the authors formulate the diffusion process from first principles and leverage the model’s native uncertainty and "one-shot" foresight to train it efficiently. The result is a scalable RL recipe that achieves state-of-the-art reasoning and coding performance for diffusion LLMs.

What Problem Does This Paper Address?

Autoregressive language models (like GPT or Qwen) write from left to right. Because each token depends strictly on what came before, you can calculate the exact probability of an entire generated response in a single forward pass—a property that RL algorithms like GRPO rely on to assign credit and update the model.

Diffusion Language Models (DLMs) work differently. They start with a block of [MASK] tokens and iteratively "denoise" (unmask) multiple tokens in parallel over $T$ steps using bidirectional context. While great for parallel generation, this breaks causal token-by-token factorization: evaluating the exact likelihood of a final sequence is mathematically intractable, and backpropagating through hundreds of denoising steps is prohibitively expensive at the 7B–8B parameter scale. Existing DLM post-training methods work around this by optimizing heuristic surrogate likelihoods, which can bias gradients and obscure how individual denoising steps actually contribute to a right or wrong answer.

Methods

Instead of treating the DLM as a black box, the authors model iterative unmasking explicitly as a finite-horizon Markov Decision Process (MDP), where each state is a partially masked sequence and each action unmasks the next set of tokens. From this, they derive an exact policy gradient that decomposes across denoising steps, then introduce two clever DLM-native approximations to make it computationally tractable alongside standard GRPO clipping and group centering:

Figure 2: (a) Entropy-guided step selection: K steps with highest entropy Ht are selected (solid lines); with H3 > H1 > H2 > H0 and K=2, steps 3 and 1 are chosen. (b) Stepwise advantage estimation: Reward of greedy one-step completion ˆx0|t+1 from xt+1 approximates Vt; At measures the additional reward from continuing the full denoising trajectory to x0.
  1. Entropy-Guided Step Selection (EGSPO): Computing gradients for all $T$ steps (often $10^2$–$10^3$) blows up memory and compute. Proving an upper bound on gradient approximation error, the authors show that the best way to spend a fixed budget of $K$ steps is simply to pick the $K$ steps where the model's token predictions have the highest entropy (uncertainty)—which comes for free from the rollout pass.
  2. One-Shot Stepwise Advantages (EGSPO-SA): How much credit does step $t$ deserve compared to step $t+1$? Standard RL needs a separate value network or expensive Monte Carlo rollouts to know how good an intermediate state is. However, masked DLMs naturally predict a distribution over all clean tokens at every step. The authors take a greedy "one-shot" full completion from intermediate state $x_{t+1}$, score it with the verifiable reward function, and subtract that from the final trajectory's reward. This zero-extra-cost baseline isolates how much continuing the iterative denoising actually helped.

Datasets

The authors evaluate on six established verifiable-reward benchmarks (no new datasets are introduced):

  • Logical Reasoning: Sudoku and Countdown.
  • Mathematical Reasoning: GSM8K and MATH500.
  • Coding: MBPP and HumanEval.

Experiments are run across two distinct open-weight diffusion backbones: LLaDA-8B-Instruct and Dream-7B-Instruct.

Key Insights and Ideas

  • Peak uncertainty happens in the middle, not the start: You might expect the earliest, 99%-masked steps to have the highest entropy and hog the training budget. Surprisingly, selected steps cluster in the intermediate horizon. Early on, the model confidently locks in obvious formatting/boilerplate tokens, and late steps are nearly deterministic. The middle is where partial structure exists, multiple valid paths compete, and RL updates matter most.
  • Stepwise foresight shines when solutions lock in piece-by-piece: One-shot stepwise advantages (EGSPO-SA) give huge boosts on puzzles like Sudoku and Countdown, where partial grids progressively constrain the final answer, making greedy intermediate guesses meaningful. In math word problems, where the final answer hinges on multi-step chain-of-thought tokens that aren't resolved yet, intermediate greedy completions are noisy—meaning simpler sequence-level rewards (EGSPO) work just as well.

Key Results

Across coding, logic, and math, EGSPO and EGSPO-SA set new state-of-the-art marks for RL post-training on DLMs under matched 2-token/step multi-token decoding:

Figure 1: Benchmark accuracy for (a) LLaDA-8B-Instruct and (b) Dream- 7B-Instruct. Ours reports the better of EGSPO and EGSPO-SA per task, using the best accuracy across generation lengths. Axis ranges are shown beside each benchmark. See Tables 1, 2, and 3 for results and evaluation protocols.
  • Logical Reasoning: Huge leaps over prior methods. On LLaDA-8B, EGSPO-SA hits 94.3% on 0-shot Sudoku (vs. 11.7% base and 72.9% ESPO) and 85.2% on Countdown. On Dream-7B, it beats ESPO by 18 percentage points on Sudoku (90.6%) and 14 points on Countdown (82.4%).
  • Coding: On LLaDA-8B, EGSPO-SA reaches 44.5% on HumanEval (up from 37.8% for d1 and 36.0% for ESPO) and 51.1% on MBPP.
  • Math & Compute Efficiency: Matches or beats baselines on GSM8K (86.1% on both LLaDA and Dream). Furthermore, under a fixed wall-clock GPU budget, a moderate budget of $K=8$ selected steps hits the sweet spot between trajectory coverage and total optimizer updates, converging to near-perfect Sudoku reward while baseline d1 plateaus below 0.2.

Limitations and Future Work

  • Practical deviations from exact theory: To make training work at scale, the algorithm makes three compromises that introduce bias or lose theoretical variance-reduction guarantees: treating the top-k confidence unmasking positions as fixed (non-differentiable), subsampling $K$ steps via a potentially loose upper bound, and relying on biased greedy one-step value estimates.
  • Monotonic unmasking only: The current MDP assumes that once a token is unmasked, it stays fixed forever. Extending this framework to newer DLMs capable of remasking and self-correcting already-decoded tokens will require rethinking the action space and policy gradient math.

Summary updated

BibTeX
@inproceedings{kunde2026reinforcement,
  author = {Vishnu Teja Kunde and Fatemeh Doudi and Mahdi Farahbakhsh and Dileep Kalathil and Krishna Narayanan and Jean-Francois Chamberland},
  title = {{Reinforcement Learning for Diffusion LLMs with Entropy-Guided Step Selection and Stepwise Advantages}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=C2Jvfl4xzR},
}
Figure