Get the daily emailDaily email
  1. Home
  2. Research
  3. This story

Sampler Replay: train the sampler, not the trainer, to fix RLVR train-inference mismatch

A new paper reframes train-inference mismatch in reinforcement learning with verifiable rewards (RLVR): since the sampler is what runs at test time, training should approximate the sampler's gradient. Its Sampler Replay algorithm replays the sampler's hidden…

Published Read the original
Sampler Replay: train the sampler, not the trainer, to fix RLVR train-inference mismatch

Why it matters

Teams doing RL post-training with fast quantized inference engines get a unified, principled way to handle the mismatch between rollout and training numerics.

What happened

1 min read

A new paper reframes train-inference mismatch in reinforcement learning with verifiable rewards (RLVR): since the sampler is what runs at test time, training should approximate the sampler's gradient. Its Sampler Replay algorithm replays the sampler's hidden states, logits and MoE routing decisions in the trainer's forward pass, and the authors report stable training under quantization, weight perturbation and staleness. They also prove that Score Centering is a special case that replays only logits.

inscraper analysis

Our analysis

Train-inference mismatch is a real pain point now that rollouts commonly run in vLLM or SGLang with FP8 or quantized KV caches while training runs in higher precision. Unifying existing fixes like routing replay and score centering under one framework is the genuinely useful contribution. The abstract gives no numbers or model scales, and replaying hidden states has memory and bandwidth costs the summary doesn't quantify. Worth reading for RL infrastructure engineers; others can wait for adoption in open training stacks.

More in Research