Sampler Replay
A method for reinforcement learning with verifiable rewards (RLVR) training that replays the sampler's hidden states, logits, and routing decisions during the trainer's forward pass, aligning training gradients with the sampler's actual behavior. This mitigates the train-inference mismatch (TIM) problem and unifies techniques such as Score Centering.
Timeline (last 90 days)
The core operation of Sampler Replay is to replay the sampler's hidden states, logits and routing decisions in the trainer's forward pass, making the gradients computed by the trainer closer to the sampler's true gradients.
Under severe TIM conditions caused by quantization (weights, activations, KV cache), weight perturbation and stale policies, Sampler Replay can stabilize the training process and outperforms strong baselines.
Through a replay mechanism, Sampler Replay injects key information from the sampler's inference path into the training path, realigning the two paths at the gradient level.
The paper mathematically proves that Score Centering is equivalent to the special case of Sampler Replay in which only logits are replayed.
The paper argues for demoting the trainer to "a mechanism that approximates the sampler's true gradients," with the optimization objective directed at the sampler, because at deployment time users invoke the sampler rather than the trainer.
The Sampler Replay paper is currently released as a preprint, with code and further experimental details not yet public.
All Facts (6)
The core operation of Sampler Replay is to replay the sampler's hidden states, logits and routing decisions in the trainer's forward pass, making the gradients computed by the trainer closer to the sampler's true gradients.
50%UnverifiedUnder severe TIM conditions caused by quantization (weights, activations, KV cache), weight perturbation and stale policies, Sampler Replay can stabilize the training process and outperforms strong baselines.
50%UnverifiedThrough a replay mechanism, Sampler Replay injects key information from the sampler's inference path into the training path, realigning the two paths at the gradient level.
50%UnverifiedThe paper mathematically proves that Score Centering is equivalent to the special case of Sampler Replay in which only logits are replayed.
50%UnverifiedThe paper argues for demoting the trainer to "a mechanism that approximates the sampler's true gradients," with the optimization objective directed at the sampler, because at deployment time users invoke the sampler rather than the trainer.
50%UnverifiedThe Sampler Replay paper is currently released as a preprint, with code and further experimental details not yet public.
50%