FantasticML

Tasks

Language models

Training–Inference Mismatch

Correcting the policy gradient so RL stays stable when the sampler and the trainer disagree.

2 of 7 agents stand above the best published method, TIS + score centering

Collage for Training–Inference Mismatch

The question

With the model, data, reward, RL loop and an imposed sampler-trainer mismatch fixed, design the per-token correction to the policy-gradient objective, from the trainer's and the sampler's log-probs, the sampler's top-K log-probs and the advantage, so that training stays stable and reward keeps rising as the mismatch grows.

RL for language models samples rollouts with one engine and trains with another whose numerics differ, so every rollout is slightly off-policy and training can collapse as the gap grows. Marek and Ryabinin (2026) decompose the off-policy REINFORCE update into an expected-score term that acts as distillation toward the sampler and compounds over steps, and a covariance term that carries the learning signal; importance-sampling corrections (token- and sequence-level TIS and MIS, rejection sampling, PPO's clip, GSPO, TOPR, DPPO, vocabulary pruning) reweight or reject the sampled token, score centering subtracts the expected score under the sampler, and the two compose. It matters because every production RL stack for LLMs runs under such a mismatch, and the correction is a single function.

Built on
martin-marek/score-centering
Reference methods
13 implementations of published methods
Scored settings
4
Verifying one submission
3×H100/H200, 9.1 h, 27 H100-h

The published methods

The methods that compete on this question, each re-implemented in the task's code and measured under one protocol, the strongest first. Open one for its citation.

TIS + score centeringtruncated IS with the matching truncated expected score subtractedbest published method

Marek and Ryabinin, 2026. Score Centering Stabilizes Off-policy Reinforcement Learning. arXiv preprint.

The implementation comes with the benchmark's release.

Score centeringsubtracts the sampler's expected score from each token's score

Marek and Ryabinin, 2026. Score Centering Stabilizes Off-policy Reinforcement Learning. arXiv preprint.

The implementation comes with the benchmark's release.

Sequence-level TISone truncated product ratio per sequence, applied to all its tokens

Liu et al., 2025. When Speed Kills Stability: Demystifying RL Collapse from the Training-Inference Mismatch.

The implementation comes with the benchmark's release.

DVP + Seq-MIScuts the vocabulary's unlikely tail, then sequence-level masked IS

Li et al., 2026. Dynamic Vocabulary Pruning: Stable LLM-RL by Taming the Tail. arXiv preprint.

Liu et al., 2025. When Speed Kills Stability: Demystifying RL Collapse from the Training-Inference Mismatch.

The implementation comes with the benchmark's release.

Sequence-level masked ISone product ratio per sequence, rejecting sequences whose ratio is extreme

Liu et al., 2025. When Speed Kills Stability: Demystifying RL Collapse from the Training-Inference Mismatch.

The implementation comes with the benchmark's release.

IcePopmasks the gradient of tokens whose importance ratio falls outside a band

Team et al., 2025. Every Step Evolves: Scaling Reinforcement Learning for Trillion-Scale Thinking Model. arXiv preprint.

Marek and Ryabinin, 2026. Score Centering Stabilizes Off-policy Reinforcement Learning. arXiv preprint.

The implementation comes with the benchmark's release.

Geometric-mean RStrains only on sequences whose geometric-mean ratio is close to one

Liu et al., 2025. When Speed Kills Stability: Demystifying RL Collapse from the Training-Inference Mismatch.

The implementation comes with the benchmark's release.

DPPOa trust region on the change in token probability, not the ratio

Qi et al., 2026. Rethinking the Trust Region in LLM Reinforcement Learning. arXiv preprint.

Marek and Ryabinin, 2026. Score Centering Stabilizes Off-policy Reinforcement Learning. arXiv preprint.

The implementation comes with the benchmark's release.

TOPRplain REINFORCE on positive rollouts, truncated sequence ratio on negative ones

Le Roux et al., 2025. Tapered Off-Policy REINFORCE - Stable and efficient reinforcement learning for large language models. Advances in Neural Information Processing Systems.

Marek and Ryabinin, 2026. Score Centering Stabilizes Off-policy Reinforcement Learning. arXiv preprint.

The implementation comes with the benchmark's release.

Naive importance samplingunclipped token-level importance weight of trainer to sampler

Marek and Ryabinin, 2026. Score Centering Stabilizes Off-policy Reinforcement Learning. arXiv preprint.

The implementation comes with the benchmark's release.

Truncated IStoken importance weight of trainer to sampler, truncated from above

Yao et al., 2025. Your Efficient RL Framework Secretly Brings You Off-Policy RL Training.

Marek and Ryabinin, 2026. Score Centering Stabilizes Off-policy Reinforcement Learning. arXiv preprint.

The implementation comes with the benchmark's release.

GSPOsequence-level geometric-mean ratio with a very narrow clip

Zheng et al., 2025. Group Sequence Policy Optimization. arXiv preprint.

Marek and Ryabinin, 2026. Score Centering Stabilizes Off-policy Reinforcement Learning. arXiv preprint.

The implementation comes with the benchmark's release.

PPOPPO's clipped surrogate against the sampler, with a dual clip

Schulman et al., 2017. Proximal Policy Optimization Algorithms. arXiv preprint.

Marek and Ryabinin, 2026. Score Centering Stabilizes Off-policy Reinforcement Learning. arXiv preprint.

The implementation comes with the benchmark's release.

The starter and the controls

Uncorrected policy gradientREINFORCE on the trainer's log-probs, ignoring the samplerstarter

Williams, 1992. Simple statistical gradient-following algorithms for connectionist reinforcement learning. Machine Learning.

Marek and Ryabinin, 2026. Score Centering Stabilizes Off-policy Reinforcement Learning. arXiv preprint.

The implementation comes with the benchmark's release.

The environment

A method writes the per-token loss of the policy-gradient update, computed from the trainer's and the sampler's log-probs of the sampled tokens, the sampler's top-128 log-probs and the group-centred advantage. The model, the Countdown task and its reward, the training loop with plain SGD and the imposed mismatch between sampler and trainer are held fixed.

This is the workspace an agent is given: the task prompt and the task's code, with the lines it may change marked. Its submission is the code it leaves in those lines.

Workspace

The task prompt

The task prompt

The task prompt and the task's code come with the benchmark's release.

Results

The scored settings

  1. ① Qwen3-0.6B on Countdown, sampler weight noise 0.02, 300 steps
  2. ② sampler weight noise 0.05, 300 steps
  3. ③ stale bf16 sampler, re-synchronised from the trainer only every 65 steps, 1200 steps
  4. ④ int8 weights, activations and KV cache in the sampler against a bf16 trainer, 1200 steps

The order

Every method of the task, best first, with its task score out of 100.

  1. Gemini 4 Carbon38.6
  2. Kimi K3.1 Pro36.7
  3. Claude Opus 5.536.5
  4. TIS + score centering best published method36.5
  5. Qwen4-Max35.8
  6. GPT-6.2 Astra35.6
  7. Claude Fable 5.234.6
  8. Muse Wonder Full34.3
  9. Score centering27.4
  10. Sequence-level TIS25.9
  11. DVP + Seq-MIS22.8
  12. Sequence-level masked IS22.4
  13. IcePop15.4
  14. Geometric-mean RS15.0
  15. DPPO10.8
  16. TOPR9.6
  17. Naive importance sampling8.3
  18. Truncated IS7.4
  19. GSPO7.2
  20. PPO7.2
  21. Uncorrected policy gradient starter0.5

The measurements

Raw values on the scored settings, one run per agent, as bars: the best value first. Each chart says which direction is better.

Claude Fable 5.2Claude Opus 5.5GPT-6.2 AstraGemini 4 CarbonMuse Wonder FullKimi K3.1 ProQwen4-Maxpublished methodsthe best published method of the task

Countdown accuracy ↑ higher is better

Share of Countdown problems the trained policy solves at the end of training.

① Qwen3-0.6B on Countdown, sampler weight noise 0.02, 300 stepshigher is better ↑
Claude Fable 5.20.736
GPT-6.2 Astra0.731
Claude Opus 5.50.730
Qwen4-Max0.717
Score centering0.716
IcePop0.714
TIS + score centering0.709
Muse Wonder Full0.702
Kimi K3.1 Pro0.701
Naive importance sampling0.688
Sequence-level TIS0.675
DVP + Seq-MIS0.606
Sequence-level masked IS0.594
Truncated IS0.577
00.736

6 more reference methods are in the numbers below.

② sampler weight noise 0.05, 300 stepshigher is better ↑
TIS + score centering0.765
Claude Fable 5.20.740
Qwen4-Max0.721
Claude Opus 5.50.719
Kimi K3.1 Pro0.715
Score centering0.706
Muse Wonder Full0.658
GPT-6.2 Astra0.641
IcePop0.321
Sequence-level TIS0.254
DVP + Seq-MIS0.193
Sequence-level masked IS0.185
DPPO0.165
Geometric-mean RS0.117
00.765

6 more reference methods are in the numbers below.

③ stale bf16 sampler, re-synchronised from the trainer only every…higher is better ↑
GPT-6.2 Astra0.817
Kimi K3.1 Pro0.808
Claude Opus 5.50.797
TIS + score centering0.770
Qwen4-Max0.760
Claude Fable 5.20.740
Muse Wonder Full0.738
TOPR0.721
Sequence-level TIS0.720
Sequence-level masked IS0.706
DVP + Seq-MIS0.689
DPPO0.685
Geometric-mean RS0.624
PPO0.620
00.817

6 more reference methods are in the numbers below.

④ int8 weights, activations and KV cache in the sampler against a…higher is better ↑
Score centering0.794
Muse Wonder Full0.779
Kimi K3.1 Pro0.757
Qwen4-Max0.755
TIS + score centering0.735
Claude Opus 5.50.731
GPT-6.2 Astra0.731
Sequence-level TIS0.690
Claude Fable 5.20.683
DVP + Seq-MIS0.656
Sequence-level masked IS0.628
IcePop0.477
Geometric-mean RS0.432
DPPO0.221
00.794

6 more reference methods are in the numbers below.

The numbers
Method①②③④
Kimi K3.1 Pro0.7010.7150.8080.757
Claude Opus 5.50.7300.7190.7970.731
TIS + score centering0.7090.7650.7700.735
Qwen4-Max0.7170.7210.7600.755
GPT-6.2 Astra0.7310.6410.8170.731
Claude Fable 5.20.7360.7400.7400.683
Muse Wonder Full0.7020.6580.7380.779
Score centering0.7160.7060.0530.794
Sequence-level TIS0.6750.2540.7200.690
DVP + Seq-MIS0.6060.1930.6890.656
Sequence-level masked IS0.5940.1850.7060.628
IcePop0.7140.32100.477
Geometric-mean RS0.4170.1170.6240.432
DPPO0.0210.1650.6850.221
TOPR0.0430.0220.7210.089
Naive importance sampling0.6880.00200.061
Truncated IS0.5770.0620.1470
GSPO0.0170.0190.5840.134
PPO0.0020.0020.6200.084
Uncorrected policy gradient0.0620.00200

What the agents built

One run per model.

Claude Fable 5.2in Claude Code
below the best published method

The write-up and the submitted code of this run come with the benchmark's release.

Claude Opus 5.5in Claude Code
level with the best published method

The write-up and the submitted code of this run come with the benchmark's release.

GPT-6.2 Astrain Codex CLI
below the best published method

The write-up and the submitted code of this run come with the benchmark's release.

Gemini 4 Carbonin Antigravity
above the best published method

The write-up and the submitted code of this run come with the benchmark's release.

Muse Wonder Fullin Muse Code
below the best published method

The write-up and the submitted code of this run come with the benchmark's release.

Kimi K3.1 Proin Kimi Code
above the best published method

The write-up and the submitted code of this run come with the benchmark's release.

Qwen4-Maxin Claude Code
below the best published method

The write-up and the submitted code of this run come with the benchmark's release.