Skip to content

The Rollout Engine Is Lying to Your Trainer

#llm-rl #post-training #training-inference-mismatch #score-centering #mixture-of-experts #pac-learning

The Rollout Engine Is Lying to Your Trainer ​

Nobody runs on-policy RL on a language model. The sampler is an inference engine built for throughput: fp8 or nvfp4 weights, fused kernels, batching that reshuffles per request. The trainer runs bf16 on a different topology. Between weight syncs, every token in the buffer was produced by a policy your optimizer has never seen.

The standard fix is importance sampling with a cap. Clip the ratio, clip the gradient, move on. Four papers posted this month take that fix apart from four angles. One proves the cap leaves a bias floor you cannot tune away. One shows where the floor leaks in sequence-level methods. One asks what any rollout learner can learn at all. One argues the computation graph itself is a post-training variable you've been ignoring.

Mismatch has two kinds, and they don't take the same fix ​

The GRACE paper (Refresh or Reweight?) has the cleanest framing I've read on this. Every correction in use today repairs one failure and exposes another. Truncated importance sampling slows learning when rollouts are quantized. Score centering over-sharpens the policy late in training. A trust region on the lag ratio works but needs a second forward pass.

The authors show these failures are uncontrolled terms of one bias decomposition. The mismatch behind them splits into a lag, which a weight refresh removes, and an engine discrepancy, which survives every refresh.

MismatchWhat causes itSurvives a weight refresh?Lever
Weight lagSampler trails the trainer by a few stepsNoRefresh when the lag leak exceeds a budget
Engine discrepancyDifferent kernels, fp8/nvfp4 rollouts vs bf16 training, different batch shapesYesTurn truncation on when the discrepancy grows

Then the theorem that should change how you tune. Every estimator with bounded importance weights has a bias floor set by the leak: the trainer's probability mass sitting above the weight cap. No cap value gets you under that floor. Most teams spend a week sweeping the cap when the cap was never the problem.

The good part is that the leak is measurable. You can compute it from the top-K log-probs the engine already returns, no extra forward pass. The leak at a refresh and its growth afterwards separate the two kinds online.

Across nine settings spanning stale, quantized and asynchronous FP8 and NVFP4 rollouts on Qwen3 up to 8B parameters, GRACE is the only correction that hits the highest accuracy in every one. Under a stale sampler it matches on-policy training with 7 to 9 times fewer refreshes. That number is the one that pays rent: the refresh is where your training pipeline stalls, so cutting refreshes by 8x cuts the dominant source of dead time. Under NVFP4 rollouts it beats centered truncated importance sampling by up to 4.4 points, and it matches the lag-ratio trust region at 11% lower cost per step.

An 8B model is a single node of rented H100s. You can reproduce all nine settings in a day.

Sequence-level RL was leaking drift at every token ​

Score centering cancels rollout-versus-trainer drift by subtracting, at each token, the expected score under the sampler. That works because the token-level estimator treats every position independently.

Sequence-level methods do something else. Seq-TIS, GSPO and TOPR weight an entire response by a single bounded importance ratio. The payoff is real: one ratio per sequence means you can train a mixture-of-experts model without routing replay, the trick where you store the expert routing decisions from rollout and force them back through the trainer. Routing replay is expensive in memory and painful to implement. Dropping it is a large engineering benefit that matters.

But token-level centering leaves substantial drift there, because each token you center also shifts the sequence ratio. The centering is applied to the wrong quantity. SeqSC fixes this by subtracting each token's expected weighted score instead. Post-hoc bounds get replaced with optional stopping on a mean-one running ratio, which keeps those expected weights in closed form at every prefix. That makes the centering exact for any policy and any sampler, not just small ones.

Applied to all three sequence-level methods, SeqSC trains Qwen3 models from 4B to 30B with zero collapses under quantized, noisy and stale samplers. Fifteen mismatch settings, and the gains over token-level centering are large.

Quick Take: the drift in sequence-level RL is a centering bug, not a hyperparameter problem, and fixing it worth 6 to 15 accuracy points costs nothing per step.

The headline result is Qwen3-30B-A3B without routing replay: highest evaluation accuracy in the set, and roughly half the training steps to match what token-level centering eventually reaches, at no extra per-step cost. A3B means 30B total parameters with 3B active per token, so the per-token compute is small-model scale while the capacity is not. Halving steps at that scale is the difference between a two-day run and a four-day one.

I ran into this shape of failure myself. The reward curve looked fine for a few hundred steps, then came apart, and every knob I turned (learning rate, clip range, group size) moved the collapse point by a little without removing it. The drift was in the estimator, not the optimizer.

What any rollout learner can actually learn ​

The PAC paper (A PAC Theory of Post-Training) gives the first learning-theoretic account I've seen for post-training, and it's unusually practical for a theory paper. The model: a rollout learner whose only access to the task is the empirical mean reward of groups of n sampled completions. Group means carry Hoeffding precision Θ(1/√n), and that one fact organizes the whole phenomenology.

1/8. With a group of 8 samples, any correct mode rarer than 1/8 is at risk of being erased before it's ever sampled. 14.6 points. Largest reported SeqSC gain over token-level score centering, on Seq-TIS. 7 to 9 times. Fewer weight refreshes GRACE needs to match on-policy training under a stale sampler. 11%. Per-step cost GRACE saves versus a lag-ratio trust region, with the same accuracy.

Take the visibility theorem seriously and your group size stops being a throughput knob. A skill the base policy lands 5% of the time shows up in a group of 8 about 34% of the time. Two thirds of your groups give zero gradient on it. That's not noise you can average out, that's a capability the estimator structurally cannot see.

The feasibility frontier is the more interesting result. Inference-time compute of budget c multiplies the learnable signal, and a target flips from exponentially infeasible to cheaply learnable exactly when n·c·p₀ clears a constant, where p₀ is the base policy's per-attempt success probability. With n=8 and p₀=0.02, n·p₀ is 0.16, so you need on the order of six attempts per sample before the target crosses into learnable. Raising the sampling budget changes what's learnable. Raising the learning rate doesn't.

The paper also gives a compounding condition for iterated distillation, and a dichotomy on internalization: whether compiling inference-time computation into weights is provably possible or impossible depends on the representational degree of the direct policy class. Some skills distill into weights and some don't, and which case you're in is a property of your policy class, not of how long you train.

Then the trap, which is my favorite result in the set. Once budget accuracy saturates, group-relative advantages vanish, so the signal you'd need for internalization dies precisely because the inference loop succeeds. I've hit this: great best-of-n eval numbers, then you train on that distribution and the gradient goes to zero. It looks like a reward bug. It's the estimator telling you the policy already solves the task at inference time.

The architecture is a post-training variable ​

The APT paper makes a different argument. Post-training today is data-driven: parameter reweighting tunes existing weights, scaffold tuning (prompts, tools, context management) tunes what surrounds the model. Neither changes what the model computes.

APT rewires the pretrained computation graph in place, freezes the backbone, and trains only the inserted modules. World knowledge and behavioral conventions from pretraining survive because the backbone is untouched. Data and compute costs land orders of magnitude below training a new architecture from scratch.

Two instantiations serve as evidence for the approach, not as its definition:

  • Attach a decision head to a long-context reasoning model and it becomes an instant decision model: explicit probabilities over a small action set in one step, replacing verbose chain-of-thought with committed decisions.
  • Split the Transformer into three stages and iterate the frozen middle core a variable number of times, and you get a looped reasoner that trades chain-of-thought tokens for latent computation.

The evaluation protocol is the part I'd steal. Measure on a public leaderboard and on SWE-bench Verified, in both wall-clock time and token consumption. Comparing reasoning methods by accuracy alone hides the fact that a looped reasoner and a chain-of-thought reasoner can hit the same score with wildly different cost profiles. The paper also separates the "System One model" and "Recursive Language model" labels that get used interchangeably, which is useful because those two things are not the same intervention.

If chain-of-thought length is what's blowing your latency budget, a decision head is a cheaper intervention than distilling a smaller student. If you need adaptive compute, the looped core gives you more iterations on hard inputs without emitting more tokens.

The four papers, in one place ​

PaperProblem it targetsCore mechanismHeadline evidence
SeqSCToken-level centering leaves drift in sequence-level RLSubtract each token's expected weighted score; optional stopping keeps the running ratio mean-one+14.6 / +12.7 / +6.6 points over SC; 30B-A3B MoE with no routing replay
GRACEEvery existing correction fixes one failure and exposes anotherCenter always, refresh on lag leak, truncate on engine discrepancyTop accuracy in all 9 settings; 7-9x fewer refreshes
APTData-only post-training can't change what the model computesFreeze the backbone, insert and train new modulesDecision head and looped reasoner; SWE-bench Verified in wall-clock and tokens
PAC theoryPost-training capability claims rest on empirics aloneRollout learner with group-mean rewards and Hoeffding precisionVisibility theorem, n·c·p₀ frontier, internalization dichotomy

What trips people up ​

Tuning the importance-sampling cap to chase a bias floor. No cap value removes the leak, and the leak is computable from log-probs you already have. Measure it, then spend the tuning time on something that moves.

Refreshing weights more often to fix quantization drift. Engine discrepancy survives every refresh. You pay the pipeline stall on every sync and get nothing back for it.

Dropping routing replay on a MoE while keeping token-level centering. Without routing replay you need a sequence-level estimator, and token-level centering under-corrects for sequence-level weights because each centered token also shifts the ratio. The collapse that follows looks like an instability problem and isn't.

Reading a best-of-n eval number as a training target. Once the sampling budget saturates accuracy, group-relative advantages go to zero and the internalization signal dies. You end up distilling nothing.

Trusting group size to surface rare modes. Eight samples cannot see a mode below 1/8. If the capability you want is rare in the base policy, raise attempts per prompt before you touch the optimizer.

The one thing I'd carry forward ​

All four papers describe the same underlying object from different sides: what you can learn is bounded by what your sampler's distribution lets you see, and every cheap correction that ignores the gap between sampler and trainer eventually hits a floor. SeqSC removes the floor for sequence-level estimators. GRACE tells you which half of the gap you're standing in. The PAC result tells you the floor is real even with a perfect correction, because group means only carry 1/√n precision. Architecture, per APT, is a way to change what the model computes instead of fighting the estimator. If I had to keep one habit from this batch, it's measuring the leak before touching a single hyperparameter.

The Bottom Line ​

If you're training a MoE with sequence-level RL and no routing replay, switch to SeqSC. The centering is exact for any sampler, costs nothing per step, and the 14.6-point gain on Seq-TIS is far outside the range where you'd debate the run.

If you're running FP8 or NVFP4 rollouts and your instability keeps surviving weight refreshes, you have engine discrepancy, not lag. Stop increasing refresh frequency and turn truncation on when the discrepancy grows. GRACE gets you there at 11% lower cost per step than a lag-ratio trust region.

If your base policy succeeds on a skill less than about 1/8 of the time and your training loss is flat on it, no learning rate will fix it. Raise attempts per prompt until n·c·p₀ clears the frontier, or accept that the capability stays at inference time. And watch the saturation trap: the day your best-of-n numbers plateau is the day your distillation gradient starts dying.