Origins and evolution of training-inference mismatch in large language model reinforcement learningOn the Origin and Evolution of Training-Inference Mismatch in LLM Reinforcement Learning
The authors precisely decompose the training-inference mismatch in LLM RL into numerical discrepancy and policy lag and propose DLC; under the stale sampler on Qwen3-1.7B, the deviation stays at 0.6 times the noise floor.
- In LLM reinforcement learning, the inference engine samples and the trainer computes gradients, and the inconsistency between the two distributions makes the training data off-policy; the same correction behaves oppositely under a quantized sampler and a stale sampler, and the authors ask which property of the mismatch sources determines the correction it needs.
- Using one forward pass of the trainer at the sampler weights, exactly decompose the sampled-token error into numerical discrepancy and policy lag, and track the evolution of the two during training; based on this, propose DLC: center the numerical discrepancy, apply PPO clipping to the lag ratio, and resynchronize the sampler when its effective sample size drops below half.
- In Countdown short training of Qwen3-0.6B/1.7B (40 steps, 3 runs per configuration), under the stale sampler the DLC deviation stays within twice the noise floor; on Qwen3-1.7B, importance sampling leaves the floor at step 11, when the effective sample size drops below half, and resynchronization can prevent collapse.
- Training is only 40 steps, 3 runs per configuration (only 1 for Qwen3-8B and continuous asynchronous), the only task is Countdown, and the models are three Qwen3 sizes; the paper does not specifically discuss limitations.
- Evaluated models
- Qwen3-0.6BQwen3-1.7BQwen3-8B
- Benchmarks
- Countdown
- Metrics
- deviation(对 on-policy 训练的 KL 与噪声底线之比)test accuracyeffective sample sizeoff-support share
The researchers propose discrepancy-lag correction (DLC), which decomposes the training-inference mismatch in large language model reinforcement learning into inference engine numerical discrepancies and policy lag caused by asynchronous sampling. DLC centralizes numerical discrepancies, clips the lag ratio according to sampler weights, and resynchronizes the sampler when the effective sample size falls below half; on Qwen3-0.6B and Qwen3-1.7B, it keeps the KL divergence under a stale sampler at no more than twice the KL between two independent same-policy training runs.
Paper analysis
What problem does this paper attempt to solve?
The authors ask which property of the sources of training-inference mismatch determines the required correction, and exactly decompose the mismatch into two classes: numerical discrepancy and policy lag.
Core question: In LLM reinforcement learning, training-inference mismatch between the inference engine and the trainer makes training data off-policy, and one correction stabilizes training under one class of mismatch source while potentially failing under another; the authors ask which property of the mismatch source determines the correction it needs.
- Setting and importance: On-policy RL assumes training samples come from the current policy, but in practice they are sampled by an inference engine such as vLLM and the trainer computes gradients; even with identical weights, the engine's kernels and precision make the two distributions differ, and low-precision samplers widen the gap (introduction).
- Shortcomings of existing methods: The authors cite experiments from Marek and Ryabinin (2026)—score centering performs best under a quantized sampler but lags importance sampling under a stale sampler, and PPO trains under stale but collapses under quantized; Song et al. (2026) and Huang et al. (2026) respectively report that asynchronous GRPO collapse scales with staleness times learning rate, and that importance-weighted training first loses effective sample size and then diverges. The authors argue that a correction's behavior depends on the estimator and on the process that produces the mismatch.
- Core observation: On a single prefix, both untruncated ratios and centering eliminate drift, so the mismatch source must act through what remains after each correction eliminates drift, and through how that remainder evolves during training; a forward pass of the trainer at the sampler weights can exactly decompose the sampled-token error into numerical discrepancy and policy lag.
- Paper's output: It gives a source decomposition of mismatch and an analysis of the training loop, and on this basis proposes discrepancy-lag correction (DLC): center the numerical discrepancy, clip the lag ratio against the sampler weights, and resynchronize the sampler when the effective sample size of the lag ratio drops below half (contributions ❶–❸).
What related research exists?
Related work falls into three groups: mismatch measurement and engineering fixes, correction methods under mismatch, and off-policy and staleness control; this paper builds on the decomposition of Guan et al. and allocates corrections by source.
Measurement and engineering fixes of training-inference mismatch
- Yao et al. (2025) report that vLLM and FSDP give different token probabilities under the same weights and propose truncated importance sampling; Liu et al. (2025a) trace the gap to engine numerics, quantization and kernels and propose a sequence-level variant.
- Engineering directions use batch-invariant kernels (He and Thinking Machines Lab, 2025), deterministic inference across tensor parallelism (Zhang et al., 2025), FP16 training (Qi et al., 2025), an FP32 language model head (MiniMax, 2025), and router replay for MoE (Ma et al., 2025) to reduce the numerical discrepancy.
- Zhong et al. (2026) isolate the numerical discrepancy with a bitwise-aligned reference engine; Yu et al. (2026) model it as a logits shift and calibrate the importance weights.
Correction methods under mismatch sources
- Marek and Ryabinin (2026) trace instability under mismatch to drift and propose score centering; the paper cites their experiments: under the quantized sampler, score centering alone trains best; under a sampler synchronized every 64 steps, importance sampling plus centering can train while centering alone lags behind; PPO survives under staleness but collapses under quantization and synthetic weight noise.
- Quantized sampler directions: AIS and QaRL weight the discrepancy factor and the PPO ratio separately (Zhou et al., 2026b; Gu et al., 2026), Chen et al. (2026) calibrate the clipping range by quantization noise, QeRL exploits quantization noise for exploration (Huang et al., 2025), and QUADS aligns the quantization errors of the sampler and the trainer (Zhuge et al., 2026).
Off-policy correction and staleness control
- Truncating and clipping importance weights has a long history (Ionides, 2008; Munos et al., 2016; Espeholt et al., 2018), ACER combines truncation with bias correction (Wang et al., 2017); asynchronous systems limit staleness and weight by ratio (Fu et al., 2025; Piché et al., 2025; Noukhovitch et al., 2025), decoupled PPO separates the proximal policy from the behavior policy (Hilton et al., 2022), and GSPO clips at the sequence level (Zheng et al., 2025c).
- Guan et al. (2026) prove that the importance ratio decomposes at the sampler weights into a training-inference discrepancy factor and a policy staleness factor; Song et al. (2026) trace asynchronous GRPO collapse to staleness-induced update bias; M2PO bounds the second moment of the weights (Zheng et al., 2025a), and VCPO scales the learning rate by effective sample size (Huang et al., 2026).
- GAC (Xu et al., 2026), SAT (Yang et al., 2026) and GMC-GRPO (He et al., 2026) act directly on the update; the paper notes that these three analyze the update without centering and do not separate policy lag from numerical discrepancy.
Baselines and benchmarks: the experimental baselines are policy gradient, PPO (including without clipping), importance sampling, score centering, importance sampling with centering, and importance sampling with resynchronization; the Qwen3-8B and continuous asynchronous settings additionally include M2PO and VCPO; the task is Countdown.
Positioning: the authors state that DLC builds on the decomposition of Guan et al. (2026), allocates a correction to each factor according to whether the factor enters the training loop, and uses the second moment of the lag ratio to decide resynchronization of the sampler weights.
How does the paper address this problem?
Using one forward pass of the trainer at the sampler weights, decompose the error into numerical discrepancy and policy lag, analyze the lag feedback loop, and design the three corrections of DLC accordingly.
Overall idea: treat the sampler as a biased copy of the trainer and put it back into the training loop; with one extra forward pass of the trainer at the sampler weights θold, exactly decompose the error of each sampled token into numerical discrepancy and policy lag, track the evolution of the two during training separately, then allocate corrections by source, yielding discrepancy-lag correction (DLC).
Problem setting and sources of mismatch
- Setting: the trainer's next-token distribution at weights θ is p_θ, and the sampler draws responses from q; a token's score is s_t and its advantage is A_t (reward minus group mean). The prefix update under the sampler decomposes into a drift term and a covariance term (Equation 1); drift is a KL gradient step from the sampler to the trainer with the expected advantage as step size.
- Two classes of sources: after the infrastructure layer aligns sampling, reporting and token sequences, only the weight version (produced by asynchronous rollout, growing with updates) and engine numerics (produced by low precision and kernels, approximately fixed during training) reach the algorithm layer (Table 1).
- Four samplers: the reference sampler is BF16 vLLM (on-policy); the quantized sampler uses FP8 weights (128×128 blocks), dynamic activation quantization and an FP8 KV cache; the stale sampler synchronizes every 64 steps and keeps the initial weights within 40 steps; the combined source quantizes the stale weights (Section 3.2).
Exact decomposition of the error
- Decomposition: δt = ℓt + et, where ℓ_t = log p_θ − log p_{θold} is the policy lag and e_t = log p_{θold} − log q is the numerical discrepancy; this is the logarithm of the importance ratio decomposed at the sampler weights (Equation 2, Equation 12).
- Different dynamics: the numerical discrepancy does not depend on the cumulative update Δ and causes an approximately equal deviation at each step, and centering can remove its first-order bias; the lag is to first order the projection of Δ onto the score and grows because the trainer itself moves (Section 4.2).
- Four residual bias terms: after centering removes drift, the residual bias consists of prefix, continuation, token and tail terms (Equation 4); the numerical discrepancy gives them a fixed size, and the policy lag gives them a part that grows with Δ.
Training loop of policy lag
- Three links: lag growth (Δ_k determines each token's lag) → residual bias (the lag determines the bias b_k left by the correction) → bias accumulation (b_k enters the next update), approximately Δ_{k+1} ≈ (I − ηM)Δ_k + ηg_k (Equation 3); directions of negative eigenvalues of M make the bias-driven part grow until the next synchronization resets it to zero.
- Terms left by each correction: score centering retains the token term (A_t − Ā_t)ℓ_t, and importance sampling removes the token term on tokens whose ratio is below the clipping threshold of 2 (Equation 5); tokens with advantage below the prefix mean amplify the lag magnitude of score-aligned tokens, forming loop gain (Section 5.3).
- End of the effective range: the effective sample size of the lag ratio ρ_t = e^{ℓ_t} is 1/E_q[ρ²], which under Gaussian lag equals e^{2μ}; the authors state that the effective range of ratio weighting ends where the effective sample size drops below half, and when the lag concentrates on a few tokens this endpoint is earlier than the Gaussian prediction (Section 6.1).
Design of DLC
- Three corrections: apply PPO-style clipping to the lag ratio ρ_t (reference is the sampler weights, ε = 0.2, dual-clip upper bound c = 3, taking verl defaults) to remove the token term; subtract the centering term C_t (the mean of weighted scores over the sampler's top-128 head H, with the tail estimated by scaling by κ) to remove the drift of the numerical discrepancy; when the effective sample size of the lag ratio drops below half the batch, copy the trainer weights to the sampler (Equation 6, Algorithm 1).
- Two limits: when θ = θ_old, DLC reduces to score centering; when q = p_{θold} and clipping is not active, it reduces to PPO with the sampler weights as reference (Section 7.1).
- Overhead and hyperparameters: relative to importance sampling with centering, DLC adds one forward pass of the trainer at θ_old per step and stores the same top-128 log-probabilities; the hyperparameters are clipping range 0.2, head size 128, and resynchronization threshold 1/2 (Section 7.1).
What experiments did the paper conduct?
Training Qwen3-0.6B/1.7B on Countdown (8B in the appendix), under a stale sampler DLC deviation stays within twice the noise floor, and importance sampling fails where effective sample size drops below half.
Experimental setup
- Models tested: Qwen3-0.6B and Qwen3-1.7B (non-thinking mode); Appendix C additionally includes Qwen3-8B (one run per correction) and a continuous asynchronous setting for Qwen3-1.7B.
- Task and data: Countdown, reward ±1; 64 prompts per step with 8 samples each, temperature 1; test on 64 held-out problems with 8 samples each (Section 3.2).
- Training configuration: verl + FSDP2, SGD learning rate 10⁻² (some runs use 5·10⁻³ to test deviation accumulation), 3 training runs per configuration, 40 steps each (Appendix B).
- Mismatch sources: four samplers—reference (on-policy), quantized, stale (64-step synchronization, keeping initial weights within 40 steps), and quantized plus stale (Section 3.2).
- Metrics: deviation is the full-vocabulary KL of the trained model from an on-policy model of the same configuration (on fixed prefixes of θ0), divided by the noise floor (the average KL of two independent on-policy trainings); also test accuracy, effective sample size of the lag ratio, and off-support share (the share of sequence KL on tokens where θ0 probability is below 10⁻³, based on 256 responses).
- Baselines: policy gradient, PPO (including without clipping, 4 updates per batch, with the pre-batch trainer as reference), importance sampling, score centering, importance sampling with centering, importance sampling with resynchronization; Qwen3-8B and continuous asynchronous additionally include M2PO and VCPO.
Main results
Deviation under the stale sampler (multiples of the noise floor) and test accuracy at step 40 (from Table 4):
Swipe horizontally to read the table
Correction 0.6B deviation step 40 0.6B accuracy 1.7B deviation step 40 1.7B accuracy On-policy training 1.0 46.5 1.0 57.6 Policy gradient 345 0.2 not reported not reported PPO 699 0.0 not reported not reported Score centering 31.7 12.2 7.6 15.9 Importance sampling 4.5 20.9 115 0.5 IS with centering 2.1 32.0 not reported not reported IS with resynchronization not reported not reported 2.6 36.6 DLC (ours) 1.9 31.7 0.6 51.9 - The authors report that under the stale sampler DLC keeps deviation from on-policy training within twice the noise floor (0.6B and 1.7B), dropping to 0.6× at step 40 on 1.7B.
- On 1.7B, importance sampling leaves the floor at step 11 (where effective sample size drops below half) and reaches 152× at step 30; after resynchronizing at the same threshold its deviation drops from 115 to 2.6 (Figure 4c, Figure 5a).
- Under the quantized sampler all corrections (IS, score centering, and their combination) stay near the floor, while policy gradient reaches 12.7× at step 40 (Table 2).
Effective sample size and failure boundary
- What was measured: Effective sample size of the lag ratio under the stale sampler, compared with the Gaussian prediction (Figure 4).
- Results: On 1.7B the effective sample size drops below half at step 11 (mean lag −0.15 nats/token), with the Gaussian prediction at step 14 (−0.35 nats); on 0.6B at step 40 the Gaussian predicts 28% of tokens with ratio below 0.5, versus 11% measured.
- Authors' interpretation: The lag concentrates on a few tokens, so the effective range of ratio weighting ends earlier than the Gaussian value; past the boundary, truncated tokens bias the update.
Collapse and off-support share
- What was measured: An ablation of DLC without resynchronization under the 1.7B stale sampler, and the off-support share of the trainer's own responses relative to θ0 (Figure 5c, 5d).
- Results: In 2 of 3 runs of DLC without resynchronization, accuracy at step 40 fell below θ0; at collapse the off-support share was about 90%, versus at most 14% before; under DLC it never exceeded 11%. The Spearman correlation of off-support share with falling below θ0 was 0.80, higher than deviation's 0.74.
- Authors' interpretation: Centering, ratio weighting, and clipping act only on tokens the sampler draws, and drift toward tokens the stale sampler rarely draws falls outside all three; KL on the sampler prefix does not detect this collapse, and resynchronization moves the sampler and the clipping reference back to the trainer weights.
Other ablations and analyses
- PPO reference position: With the pre-batch trainer as reference, PPO's deviation under stale is 699× (not lower than the 534× without clipping); the authors report that a sampler-weight reference puts the lag into the ratio and leaves the numerical discrepancy outside, explaining PPO's asymmetry across the two source types (Section 6.2, Table 2).
- Loop quadratic term: Fitting the excess update norm of score centering relative to importance sampling to E = a·ηk + c·(ηk)² gives c = 0.52, R² = 0.987 (linear term alone 0.90), and the quadratic coefficient is positive in all six fits by learning rate and run (Figure 3f).
- Residual deviation measurement: For score centering, ‖b‖ grows linearly with ‖Δ‖ (R² 0.95–0.99 per run), reaching 2.5× gradient noise at step 40; for importance sampling, ‖b‖ stays within noise (Figure 3c).
- Combined sources: The numerical discrepancy stays at the size seen with quantization alone, the lag reaches the stale value at step 40, and the cumulative update differs from the stale run by within 10% (Figure 2e, 2f).
- Qwen3-8B (Appendix C, 1 run per correction): DLC and IS with centering have deviations of 3.1× and 2.9×, score centering 89.1×, and M2PO 10768× with accuracy 0.0.
- Continuous asynchronous (Appendix C, 1.7B, maximum version difference 4, 1 run per correction): DLC has deviation 1.2× at step 40 and accuracy 55.9%; the admission variant has 0.8×, deferring 68 responses over 40 steps (0.3%).
- Step time (Table 7, 1.7B stale): DLC takes 113.2 seconds per step, of which 54.2 seconds is the sampler-weight forward pass; the authors report that about 19 seconds of this comes from a second reference forward pass on the verl KL path whose output does not enter the loss; resynchronization copies at most 1.5 seconds each time.
What are some points that can be further explored?
The paper does not specifically discuss limitations; the experiments are limited to 40-step short training of three Qwen3 sizes on Countdown, and some settings have only one run.
Limitations and future directions noted by the authors
The paper does not specifically discuss limitations and has no Limitations or Future Work section. Two statements in the main text related to the experimental design:
- Section 3.2: these short trainings (40 steps), together with replaying the sampler at shared checkpoints, are intended to keep the measurements on an uncollapsed trajectory.
- Section 5.3: after step 20, the lag under score centering exceeds 1 nat, and the first-order loop analysis ends at that scale; the lag then spreads over the response (the 1% of tokens with the largest lag carry 78% of the total lag at step 5 and 11% at step 40).
Scope of experimental coverage
- The models tested are Qwen3-0.6B, Qwen3-1.7B (main text) and Qwen3-8B (Appendix C), the task is Countdown, and the reward is ±1.
- The main text trains 3 times per configuration, 40 steps each; Qwen3-8B and the continuous asynchronous setting have only 1 run per correction (Table 8, Table 9).
- The mismatch sources cover four samplers: BF16 reference, FP8 quantization, a stale sampler synchronized every 64 steps, and quantization plus staleness; the continuous asynchronous setting covers a maximum version difference of 4.
- The defense/correction evaluations include policy gradient, PPO (including without clipping), importance sampling, score centering, importance sampling with centering, importance sampling with resynchronization, and DLC; M2PO and VCPO appear only in the Qwen3-8B and continuous asynchronous tables.
- The paper does not report agreement with human evaluation (the evaluation uses programmatic rewards and KL-type metrics, with no human review step); test accuracy is measured on 64 test questions with 8 samples per question.
Summarize the main content of the paper
The authors decompose the training-inference mismatch into an approximately constant numerical discrepancy and a self-reinforcing policy lag, propose DLC, and verify its stability on Qwen3.
An analysis and methods paper on mismatch in LLM reinforcement learning systems. Inference-engine sampling and trainer gradient computation make training data off-policy, and the authors ask which property of the mismatch source determines the needed correction.
- Question: The same correction behaves oppositely under different mismatch sources—score centering is stable under a quantized sampler and fails under a stale sampler, while PPO is the reverse; the authors argue the answer lies in what remains after each correction removes drift and in how that remainder evolves during training.
- Method: A single forward pass of the trainer at the sampler weights exactly decomposes the sampled-token error into numerical discrepancy e_t (produced by engine numerics, approximately constant during training, whose drift centering removes) and policy lag ℓ_t (produced by the trainer's own updates, fed back into subsequent updates through residual deviation to form a loop); ratio weighting cuts the loop only while the effective sample size of the lag ratio is above half. On this basis they propose DLC: center the numerical discrepancy, clip the lag ratio against the sampler weights, and resynchronize the sampler when effective sample size drops below half.
- Results: Under the stale sampler, DLC keeps deviation from on-policy training within twice the noise floor on Qwen3-0.6B and Qwen3-1.7B (1.9× and 0.6× at step 40, Table 4); on 1.7B, importance sampling leaves the floor at step 11 where effective sample size drops below half, reaches 115× at step 40, and drops to 2.6 after resynchronizing at the same threshold.
- Collapse evidence: On 1.7B, after removing resynchronization from DLC, 2 of 3 runs fell below the initial model in accuracy; at collapse the off-support share of trainer responses on low-probability θ0 tokens was about 90%, which KL on the sampler prefix does not detect; the Spearman correlation of this metric with falling below the initial model was 0.80.
- Authors' conclusion: The numerical discrepancy is approximately fixed, so removing its drift suffices; policy lag is produced by the trainer's own updates and amplified by feedback, requiring clipping plus resynchronization at the end of the effective range; the authors report that DLC thereby stays stable under the stale sampler and prevents the collapse left by per-token corrections.