titleSampler Replay: Train The Sampler Not The Trainer in Reinforcement Learning with Verifiable Rewards
authorsMilad Aghajohari, Kamran Chitsaz, Sarath Chandar, Alessandro Sordoni, Michael Noukhovitch, Aaron Courville
date2026-11-30
venuearXiv (preprint, not peer reviewed)
idarXiv:2611.41862
affiliationMila – Quebec Artificial Intelligence Institute
upvotes16 (Hugging Face Daily Papers, 2026-12-03)
linksabs pdf hf code
cite
relatedCross-modal Steering Vectors Exist Across Both Image and Text Generation
Characterizing Latent Reasoning Dynamics in LLMs
Toward Open Weight Models Without Risks: Separating Public and Private Capabilities in LLMs
Trajectory-Refined Distillation
abstractTrain-inference mismatch is a well-known problem that degrades reinforcement learning with verifiable rewards (RLVR) performance. This problem is currently framed as training the trainer with samples coming from an imperfect version of itself: a sampler optimized to meet some efficiency criteria. Therefore, current RLVR algorithms are designed to account for the discrepancy in the trainer's gradient due to the sampler's off-policy rollouts. In this paper, we reframe the problem: we argue that RLVR should strive to train the sampler, since it is the sampler's performance at test time that we ultimately care about. Therefore, we view the trainer merely as a mechanism to get an approximation of the sampler's true gradient. We propose Sampler Replay, an algorithm that replays the sampler's hidden states, logits, and routing decisions in the trainer's forward pass to better approximate the sampler's gradient. Across tasks and model scales, we show that Sampler Replay stabilizes training under severe train-inference mismatch induced by quantization (weights, activations, KV cache), weight perturbation, and staleness, outperforming strong baselines. Furthermore, we show that Sampler Replay is a generalization of techniques that have been widely used in the literature to address TIM but that, so far, have been treated independently. Notably, we mathematically prove that Score Centering is a special case of Sampler Replay, where only the logits are replayed.

bibtex

@misc{aghajohari2026sampler,
  title={Sampler Replay: Train The Sampler Not The Trainer in Reinforcement Learning with Verifiable Rewards},
  author={Milad Aghajohari and Kamran Chitsaz and Sarath Chandar and Alessandro Sordoni and Michael Noukhovitch and Aaron Courville},
  year={2026},
  eprint={2611.41862},
  archivePrefix={arXiv},
  url={https://arxiv.org/abs/2611.41862}
}