On the Origin and Evolution of Training-Inference Mismatch in LLM Reinforcement Learning

Yu Li, Yufa Zhou, Tian Lan

arXiv:2610.40945 · 2026-11-02 공개 · arXiv · PDF

reinforcement-learning llm qwen3 kl-divergence on-policy-training training-inference-mismatch numerical-discrepancy policy-lag

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.

한국어 요약

한 줄 요약

LLM 강화학습에서 발생하는 학습-추론 불일치를 DLC라는 새로운 보정법으로 분석하고 해결한다.

핵심 기여도

핵심 아이디어

기존 학습-추론 불일치는 추론 엔진의 수치적 차이와 비동기 샘플링에 의한 정책 지연의 두 가지 원인으로 발생한다. 수치적 차이는 학습 중 거의 일정하며, 중심화(centering)로 해결할 수 있다. 반면, 정책 지연은 학습 업데이트 자체에서 유발되며, 이는 피드백 루프를 형성해 누적된다. 중요도 가중치는 정책 지연이 일정 범위 내에 있을 때만 효과적이며, Qwen3-1.7B 모델에서 샘플 수가 0.5 이하로 떨어지는 11단계에서 실패한다. 이를 해결하기 위해 DLC는 수치적 차이를 중심화하고, 정책 지연 비율을 클리핑하며, 샘플러를 재동기화한다.

기술적 접근법

주요 결과

의의 및 한계

실용적 활용