LightningRL: Breaking the Accuracy–Parallelism Trade-off of Block-wise dLLMs via Reinforcement Learning

Yanzhe Hu, Yijie Jin, Pengfei Liu, Kai Yu, Zhijie Deng

TL;DR

LightningRL is a new reinforcement learning (RL) framework designed to optimize block-wise Diffusion Large Language Models (dLLMs). By directly optimizing for both accuracy and generation speed, it breaks the traditional trade-off where faster parallel decoding usually leads to lower quality, achieving an average of 7.32 tokens per forward pass (TPF) while maintaining high performance on math and code benchmarks.

What Problem Does This Paper Address?

Most Large Language Models (LLMs) today are autoregressive, meaning they generate text one token at a time. This is inherently slow. Diffusion LLMs (dLLMs) and their "block-wise" variants attempt to fix this by generating multiple tokens in parallel.

However, these models face a stubborn accuracy–parallelism trade-off: if you force the model to be more "aggressive" (predicting more tokens at once), the accuracy typically plummets because the model loses the fine-grained context of previous tokens. Current methods usually try to fix this during inference or through distillation, but they rarely manage to push the "Pareto frontier"—the limit of how fast a model can go without getting dumber.

Methods

The authors introduce LightningRL, a post-training approach that treats the speed-quality balance as a multi-objective RL problem. It is built on the Group Relative Policy Optimization (GRPO) framework but introduces three critical innovations to make it work for diffusion models:

  1. Decoupled Reward Normalization: In multi-objective RL, different rewards (like "is the answer right?" vs. "how fast was it?") often have different scales. LightningRL normalizes these rewards independently before combining them. This prevents a high-magnitude accuracy reward from completely drowning out the more subtle speed signals.
  2. Token-Level NLL Regularization: To prevent "reward hacking" (where the model finds a weird, nonsensical way to get a high score) and to maintain linguistic coherence, the authors add a standard Negative Log-Likelihood (NLL) loss. Crucially, this is only applied to trajectories that resulted in a correct answer, acting as a "self-imitation" anchor.
  3. Dynamic Sampling with TPF-aware Filtering: Training is expensive. LightningRL improves efficiency by filtering out "uninformative" prompts—those where all generated samples are wrong, or where all samples have the same speed. This ensures the model only learns from examples where there is a clear "better" path to follow.

Datasets

The researchers evaluated LightningRL across four major benchmarks focusing on reasoning and logic:

  • Math: GSM8K and MATH500.
  • Code: HumanEval and MBPP.
  • Training Data: They used the training splits of MATH and GSM8K for reasoning, and the PrimeIntellect dataset for code generation.

Key Insights and Ideas

  • Navigating the Subspace: The core philosophy is that the model doesn't need to be fast on every possible generation path. It just needs to learn to find and stay within the specific "subspace" of trajectories that happen to be both highly parallelizable and correct.
  • The "Critic" Problem: Interestingly, the authors found that incorporating a traditional "value model" (a critic) actually hurt performance. They hypothesize that the non-smooth state transitions in block-wise diffusion make it too difficult for a scalar value function to learn a stable baseline, leading to noisy gradients.
  • Breaking the Tail: Standard block-wise models often suffer from "long-tail" decoding, where the last few tokens take many steps to resolve. LightningRL effectively trains the model to "commit" more confidently, significantly shortening this tail.

Key Results

LightningRL-8B (built on the SDAR-8B base) showed dramatic improvements over state-of-the-art baselines:

  • Speed: It achieved an average of 7.32 Tokens Per Forward (TPF). On the MBPP coding benchmark, this went as high as 11.10 TPF.
  • Efficiency: It reached a score of 437.8 Accuracy Under Parallelism (AUP), significantly outperforming competitors like Eagle-3 (252.5 AUP) and Fast-dLLM-v2.
  • Wall-Clock Performance: On an H100 GPU, LightningRL reached 336.0 Tokens Per Second (TPS) on GSM8K, more than triple the speed of the base SDAR model (105.6 TPS) while actually improving accuracy from 88.9% to 90.3%.

Limitations and Future Work

While LightningRL is highly effective for math and code, these are tasks with verifiable outcomes (you can check the answer or run unit tests). The paper does not deeply explore how this framework would perform on more subjective tasks like creative writing or open-ended chat, where "correctness" is harder to define for the RL reward.

The authors suggest that future work should look into scaling laws—testing if these gains hold up as models grow to 70B parameters and beyond—and generalizing the approach to a wider variety of non-verifiable generation tasks.

Summary updated

BibTeX
@inproceedings{hu2026lightningrl,
  author = {Yanzhe Hu and Yijie Jin and Pengfei Liu and Kai Yu and Zhijie Deng},
  title = {{LightningRL: Breaking the Accuracy–Parallelism Trade-off of Block-wise dLLMs via Reinforcement Learning}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=Fgdyd2BLoR},
}
Figure