Rethinking Training-Inference Mismatch in LLM Reinforcement Learning: Where It Arises and How to Correct It
Tianrun Yu, Kaixiang Zhao, Shangzhe Li, Yuxiao Yang, Porter Jenkins, Weitong Zhang, Taylor W. Killian
Abstract
We study training-inference mismatch in reinforcement learning with verifiable rewards (RLVR) for large language models, where rollouts are sampled by an inference engine while gradients are computed by a training engine, and the two engines assign different probabilities to the same tokens. To account for this discrepancy in policy updates, we introduce calibrated importance sampling (CIS). CIS is motivated by an empirically supported logit-displacement characterization that expresses the mismatch as an additive displacement in log-odds, determined by the per-logit perturbation before the softmax, whose distribution is approximately invariant to token confidence. This characterization motivates a confidence-aware truncation: large positive displacements are truncated at a single constant threshold, which maps back to an importance-ratio cap that tightens as token confidence increases. Theoretically, we show that CIS replaces the unbounded second moment that governs the error of exact importance sampling with a term bounded by a constant, at the cost of a bias controlled by the truncated excess. In evaluation across three mixture-of-experts models and five mathematical reasoning benchmarks, CIS achieves the highest five-benchmark average on all three models among the evaluated baselines. Diagnostic analyses show that CIS places less truncation bias on low-confidence tokens than truncated importance sampling, while upward clipping of small importance weights reduces held-out accuracy.
Create a lesson
Metadata
- Categories
- cs.LG, cs.AI
- Comments
- 32 pages. Code: https://github.com/kzhao5/CIS-RL
Related papers
Refresh or Reweight? Two Kinds of Training-Inference Mismatch in LLM Reinforcement Learning
Shared title terminologycs.LGRunguo Li, Dezhen Lu, Lingxiang Gao
Hyperparameter Transfer For Reinforcement Learning Post-Training
Shared title terminologycs.LGYihe Dong, Gage DeZoort, Mufan Li
Shorter Sequences, Faster Models: Sequence Length Compression as a Stackable Primitive for LLM Training and Inference
Shared title terminologycs.LGMarc Neumann
Elastic Selective Spectral Hybrids for Train-Once, Export-Many Budgeted Inference
Shared title terminologycs.LGDachuan Song, Chuchu Chen, Xuan Wang
Grokking Is a High-Overlap, High-Capacity Regime of Ordinary Training
Shared title terminologycs.LGMian Wang
Iterative Physics-Informed Corrections for PDE Solving
Shared title terminologycs.LGJin Wu, Xinquan Huang, Paris Perdikaris