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
Brigham Young University · University of North Carolina at Chapel Hill
Published September 26, 2026 · on the feed September 29, 2026 · ▲ 30 · arXiv 2609.32444
The 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 varepsilon_t 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.
The Brief
2:39A short podcast summary of the paper. Written and voiced by AI.
Transcript
Rethinking Training-Inference Mismatch in LLM Reinforcement Learning. Where It Arises and How to Correct It. By Tianrun Yu and six others, from Brigham Young University and the University of North Carolina at Chapel Hill. Published on the twenty-sixth of September. Its code repository is public and real: fifteen source files.
In reinforcement learning with verifiable rewards for large language models, two different engines are involved. An inference engine samples the rollouts. A training engine computes the gradients. The two do not agree exactly: they assign different probabilities to the same tokens. The model being trained is, in a small but real sense, not the model that produced the data it is being trained on. Policy updates have to account for that discrepancy somehow. Exact importance sampling is one answer, reweighting each token by the ratio between the two engines, but its error is governed by a second moment that is unbounded. The title asks two things, where the mismatch arises and how to correct it, and the paper answers them in that order.
The paper's first step is to characterize where the mismatch comes from, and the characterization is empirically supported. The mismatch shows up as an additive displacement in log-odds, fixed by the perturbation each logit receives before the softmax. The key observation is that the distribution of that displacement is roughly the same whatever the token's confidence. That motivates calibrated importance sampling, or CIS.
CIS applies a confidence-aware truncation. Large positive displacements are cut off at a single constant threshold. Translated back into importance ratios, one fixed threshold on displacement becomes a cap on the ratio that tightens as the token's confidence rises. A confident token is allowed less room for its ratio to stray than an uncertain one, even though the threshold on displacement never changes. On the theory side, the authors show that CIS swaps the unbounded second moment of exact importance sampling for a term bounded by a constant. The price is a bias, and that bias is controlled by how much gets truncated.
The evaluation covers three mixture-of-experts models and five mathematical reasoning benchmarks. On all three models, CIS gets the highest average across the five benchmarks among the baselines evaluated. Diagnostic analyses add two details. CIS puts less truncation bias on low-confidence tokens than truncated importance sampling does. And clipping small importance weights upward, rather than leaving them alone, lowers held-out accuracy.
Much of the work here is done before any correction is proposed. Once the mismatch is described as a displacement in log-odds that does not care about confidence, a single threshold is enough, and the confidence-dependent cap on the ratio falls out of the translation rather than being designed in separately.
Paper Quest · 7 chapters · about 41 min
Play this paper
Learn it by doing: make the calls the authors made, guess the result before you see it, and defend it in a viva graded on your own words. Chapter 1 is right here.
Chapter 1 🧩 · The problem
Every quest starts with a wall. Here it is two engines that should agree, and quietly don't.
You are training a language model with reinforcement learning. One engine samples the answers, another computes the gradients. They load the same weights, yet their numerics give the same token slightly different probabilities.
The road ahead
- 1 · The problem ~7 min Two engines load the same weights yet give the same token slightly different probabilities, and the usual fixes for that gap either explode or misplace their bias.
- 2 · What came before ~3 min
- 3 · The key idea ~9 min Measure the engines' disagreement as a log-odds shift that looks alike for every token, cut only its large positive tail at one threshold.
- 4 · Choose your own research ~3 min
- 5 · Build the method ~8 min Compute each token's displacement, cap it at one threshold, turn that into a confidence-dependent ratio cap, and reweight the update with it.
- 6 · The experiment ~6 min You’ll guess: Across three mixture-of-experts models trained on maths reasoning, on how many did calibrated importance sampling get the best five-benchmark average among the baselines?
- 7 · The viva ~5 min Three questions from the examiners, answered in your own words. Win it for the paper’s trophy.
Free, with Google or an email address. Your stars and progress are kept.