On the Origin and Evolution of Training-Inference Mismatch in LLM Reinforcement Learning
AuthorsYu Li, Yufa Zhou, Tian Lan
AffiliationsGeorge Washington University · Duke University
The paper traces why LLM reinforcement learning can drift when sampling and training differ, then proposes a correction that detects when stale samples need resynchronization.
Key results
Approximate nats per token under the quantized sampler.
DLC resynchronizes when effective sample size falls below half.
Step when Qwen3-1.7B effective sample size falls below 0.5.
Maximum noise-floor multiple reported under stale sampling on Qwen3-0.6B and Qwen3-1.7B.
Steps in the main training tests.
What the paper found
This paper traces training–inference mismatch in large language model reinforcement learning to two sources: numerical differences between the inference engine and trainer, and policy lag when asynchronous sampling uses stale weights. A trainer forward pass at the sampler’s weights separates these components: numerical discrepancy stays nearly constant, while policy lag grows with training and can feed back into later updates. The authors show that score centering can remove the leading bias from numerical discrepancy but does not stop the lag-driven feedback loop; importance weighting helps only while its effective sample size remains adequate. On Qwen3-1.7B, that sample size falls below 0.5 at step 11, and importance sampling then departs from the on-policy noise floor. The proposed discrepancy-lag correction, or DLC, centers the numerical discrepancy, clips the lag ratio relative to the sampler’s weights, and resynchronizes the sampler when effective sample size drops below half. In 40-step tests with vLLM samplers, DLC kept deviation from on-policy training within 2 times the noise floor on Qwen3-0.6B and Qwen3-1.7B under stale sampling. The measured numerical discrepancy under quantization was about 0.02 nats per token. The findings identify a source-specific correction strategy: center fixed engine error, but control evolving policy lag through ratio clipping and timely resynchronization.
Original abstract
On-policy reinforcement learning for large language models assumes that training responses are sampled from the current policy. In practice, an inference engine samples the responses and a separate trainer computes the gradients, and the \textbf{training-inference mismatch} between the two makes the training data off-policy. The mismatch has two sources, the numerics of the engine and the stale weights of asynchronous sampling, and a correction that stabilizes training under one source can fail under the other. \textit{We ask which property of a mismatch source decides the correction it needs.} Evaluating the trainer at the sampler's weights splits each sampled-token error exactly into a \textit{numerical discrepancy} of the engine and a \textit{policy lag} of the trainer, and we follow both through training. The numerical discrepancy stays approximately constant, so it biases the updates by a nearly fixed amount, and centering the score at each prefix removes its leading bias. The policy lag is produced by the trainer's own updates: the bias it leaves enters the next update, which enlarges the next lag and closes a feedback loop. Importance weighting cuts this loop only while the lag ratio stays concentrated, and on Qwen3-1.7B it fails at the step where the effective sample size of the ratio falls below one half. From this account we derive the \textbf{discrepancy-lag correction} (DLC), which centers the numerical discrepancy, clips the lag ratio against the sampler's weights and resynchronizes the sampler when this effective sample size falls below one half. Under a stale sampler, DLC keeps the KL divergence from on-policy training within twice the KL between two independent on-policy trainings on Qwen3-0.6B and Qwen3-1.7B, and its resynchronization prevents collapses that the per-token corrections leave and that a KL measured on the sampler's prefixes does not detect.
Read the original paperMore in Reinforcement Learning
Browse all 66 papers →ProAS: A Progress-Aware Advantage Shaping Framework for Multi-Turn Agentic Reinforcement Learning
Bowen Ding, Mingda Wan, Yuhan Chen, Jiyao Yuan, Qi Zhu, Futing Wang, Heyuan Deng, Fei Mi, Lifeng Shang, Tao Lin
ProAS helps language-model agents learn from multi-step tasks by assigning credit more selectively to the actions that make progress.
What Outcome RL Buys: Finishing, Reliability, Rarely Reach
Shan Yang
Outcome RL often helps models finish on time and answer reliably, but appears to add few genuinely new problem-solving capabilities.
Enabling Token-wise Importance Sampling in Off-Policy RLVR with Proximal KL Regularization
Hao Bai, Jiarui Yao, Tong Zhang
A new proximal-KL approach makes token-wise off-policy learning more stable for training language models with verifiable rewards.