TL;DR
When you train an LLM using Reinforcement Learning (RL), the engine generating responses and the engine updating weights don't do math in the exact same way—a hidden mismatch that often causes training runs to abruptly collapse. Instead of trying to rewrite low-level GPU kernels to make these engines identical, the authors teach the LLM to actively perceive and steer clear of this mismatch via an adaptive penalty. Even better, this unlocks "heterogeneous training": you can train a model in high-precision (BF16) while explicitly optimizing it to thrive on cheap, quantized (FP8) deployment servers.
What Problem Does This Paper Address?
Reinforcement Learning (RL) has become the secret sauce for teaching LLMs deep reasoning. However, RL post-training is notoriously fragile, often suffering from sudden, catastrophic collapses that waste massive amounts of compute.
The culprit lies beneath the algorithm, down in the infrastructure. An RL loop has two phases: rollout (generating answers, which requires blazing-fast inference engines like vLLM) and training (updating parameters, which demands strict numerical precision in frameworks like Megatron-LM or FSDP). Because these two backends use different low-level kernels, parallelization strategies, and floating-point precisions—and because Mixture-of-Experts (MoE) models can route tokens differently across setups—the exact same model weights produce slightly different token probabilities in training versus inference.
Existing fixes either downgrade training precision to match inference (risking numerical overflow) or simply mask out gradients on mismatched tokens. Masking stabilizes training, sure, but it misses the ultimate point: you want a model that actually performs well on the inference engine you deploy in production, not just the training rig.
Methods
The authors build on GRPO (Group Relative Policy Optimization), a popular critic-free RL algorithm that normalizes rewards across a group of sampled responses to estimate token advantages. They reformulate this setup into Discrepancy-Constrained LLM RL (DC-RL)—specifically DC-GRPO—treating the backend mismatch as a black-box feedback signal.
Here is what is novel in their recipe:
- Token-Level Absolute Probability Difference: To penalize mismatch, they measure $\delta_{i,t} = |p^{\text{Train}}_t - p^{\text{Inf}}_t|$ for every token. Unlike sequence-level averages (which dilute rare, catastrophic outlier tokens) or probability ratios (which over-penalize shifting probability toward rare but useful reasoning tokens), absolute difference keeps optimization plastic while catching localized spikes.
- Lagrangian Relaxation with a Tolerance Budget: Simply subtracting the mismatch from the advantage at all times over-regularizes the model. Instead, the authors set a discrepancy tolerance budget $c$. Using a learnable Lagrangian multiplier $\lambda$, they subtract an adaptive penalty ($\lambda \cdot \delta_{i,t}$) directly from the GRPO token advantage. If the batch-average discrepancy exceeds $c$, $\lambda$ scales up via dual gradient ascent to pull the policy back into the safe zone; if discrepancy sits comfortably below $c$, $\lambda$ anneals toward zero, letting the model explore freely.
Datasets
No new benchmarks are introduced; the authors rely on standard, verifiable mathematical reasoning suites:
- Training: DAPO-Math-17K, evaluated with rule-based verifiable rewards (
math-verify). - Evaluation: Six mathematical reasoning benchmarks—AIME24, AIME25, AMC23, MATH-500, Minerva Math, and OlympiadBench.
Key Insights and Ideas
- High-reward, low-mismatch solutions naturally exist: By sweeping sampling temperatures on a 1.5B model, the authors showed that broader exploration temporarily discovers reasoning paths that both score high rewards and exhibit low backend mismatch. The model can avoid backend landmines—it just needs a dense signal showing where they are.
- The "Discrepancy Tolerance Region": Zero mismatch is a trap. Policies naturally tolerate microscopic backend deviations. Aggressively penalizing tiny gaps ($c = 0$) chokes early exploration and lowers the performance ceiling, whereas allowing a small "safe zone" ($c \approx 0.0037$–$0.0050$) gives the policy room to learn before reining it in.
- Turning quantization bugs into features: Because DC-RL doesn't care why the two engines disagree, you can intentionally pair a high-fidelity BF16 training backend with an aggressive FP8 inference engine. The training policy learns to generate reasoning trajectories that survive FP8 quantization intact.
Key Results
Across both dense (Qwen3-8B on FSDP2) and MoE (Qwen3-30B-A3B on Megatron-LM) architectures, DC-GRPO eliminates training collapses, keeps backend discrepancy flat, and boosts accuracy across the board:
- Standard BF16 Training & Inference: On Qwen3-8B, DC-GRPO lifts the six-benchmark average from 67.3% to 71.0% (including a massive +12.5 point jump on AIME25, from 40.0% to 52.5%). On Qwen3-30B-A3B, the average rises from 69.0% to 71.8% (+6.6 points on AIME24).
- Heterogeneous BF16 Training + FP8 Deployment: When rolling out and deploying in FP8, vanilla GRPO degrades noticeably (dropping to 64.7% on 8B and 65.2% on 30B). DC-GRPO recovers and thrives, hitting 68.1% on Qwen3-8B (even beating vanilla GRPO's BF16 score!) and 67.7% on Qwen3-30B-A3B.
Limitations and Future Work
The authors note that their empirical testing only covers BF16 and FP8 precision setups; testing more extreme quantization formats (like INT4) or other inference/training engine combinations remains open. Additionally, experiments were restricted to the Qwen model family on math reasoning tasks, leaving broader model families, model scales, and non-verifiable domains for future exploration.
Summary updated