TL;DR
Reinforcement Learning (RL) for Large Language Models often fails because the policy we optimize in the training engine isn't exactly the same as the one used in the inference engine. This paper introduces Monotonic Inference Policy Update (MIPU), a two-step framework that ensures RL updates actually improve the deployed inference policy, significantly enhancing training stability and reasoning performance.
What Problem Does This Paper Address?
In modern LLM pipelines, we typically use two different "engines": a training engine (like Megatron or FSDP) for calculating gradients and a separate inference engine (like vLLM or SGLang) for generating responses efficiently.
Even when these engines share the exact same model weights, they often assign different probabilities to the same sequences due to differences in numerical precision, decoding implementations, or hardware backends. This is known as training-inference mismatch.
The authors argue that this creates an "objective misalignment." Standard RL algorithms optimize the training policy ($\pi$), but we actually care about the performance of the inference policy ($\mu$) used in deployment. If $\pi$ and $\mu$ are different, an update that makes $\pi$ better might actually make $\mu$ worse, leading to the fragile training and sudden performance collapses often seen in LLM RL.
Methods
The authors propose a new principle called Monotonic Inference Policy Improvement (MIPI), which explicitly targets the improvement of the inference policy. To realize this, they developed MIPU, a two-step framework:
- Step 1: Sampler-Referenced Update. Instead of standard PPO or GRPO, the trainer uses a "Truncated Importance Sampling" (TIS) objective. This objective uses weights to correct for the mismatch between the trainer and the sampler before the update, ensuring the candidate policy is optimized relative to the actual data distribution seen during rollout.
- Step 2: Inference-Gap-Aware Acceptance. After the update is synchronized to the inference engine, the system performs a quick validation. It calculates a proxy for the "inference gap"—essentially checking if the new inference policy is actually performing better. If the gap is too large (indicating a risky or harmful update), the system rolls back to the previous stable checkpoint.
Datasets
The researchers evaluated their method on complex mathematical reasoning tasks using two model scales: Qwen3-1.7B and Qwen3-4B.
- Training Data: Filtered subsets of DAPO-Math-17k and DeepMath-103k.
- Evaluation Benchmarks:
- MATH-500
- AIME24
- AMC23
- Minerva Math
- OlympiadBench
To test the limits of their method, they used FP8-quantized rollouts, a high-mismatch setting where the discrepancy between training (high precision) and inference (low precision) is intentionally amplified.
Key Insights and Ideas
- The Objective is the Mirage: We have been treating training-inference mismatch as a low-level system bug to be "fixed" or "reduced." This paper suggests it’s actually a fundamental change in the optimization objective. We shouldn't just try to make the engines match; we should optimize for the one that matters: the inference engine.
- Decomposition is Key: The authors mathematically decompose the inference policy improvement into three terms: the post-update inference gap, the training-side update, and the pre-update inference gap. This allows them to target specific parts of the mismatch in different steps of the algorithm.
- Rollback as a Safety Rail: Step 2 acts as a "filter." It recognizes that some updates, while looking good on paper (in the training engine), are "poisonous" once deployed to the inference engine. By rejecting these, they prevent the accumulation of errors that lead to model collapse.
Key Results
MIPU consistently outperformed standard GRPO and other stabilization baselines like MIS (mismatch-filtering) and learning rate decay.
- Performance: On Qwen3-4B, MIPU achieved an average score of 66.71% across benchmarks, compared to the baseline's 64.42%.
- Stability: While baselines often suffered from "sharp degradation" or total collapse during long training runs, MIPU maintained a stable, upward trajectory.
- Quantization Resilience: MIPU proved particularly effective in FP8 settings, showing that it can handle the significant noise introduced by low-precision inference engines.
Limitations and Future Work
The authors acknowledge a few key limitations:
- Model Scale: The experiments were limited to moderate-scale models (up to 4B parameters) due to computational constraints. It remains to be seen how these mismatch patterns scale to 70B+ parameter models.
- Validation Overhead: Step 2 requires an additional validation rollout, which adds computational cost.
- Design Space: The authors view Step 2 as a "flexible design space." Their current validation proxy is just one way to do it; future work could explore more efficient estimators or tighter acceptance criteria to further improve the efficiency of the framework.
Summary updated