arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2611.41862cs.LGcs.AIcs.CL
收藏

采样器重放:在带可验证奖励的强化学习中训练采样器而非训练器

Sampler Replay: Train The Sampler Not The Trainer in Reinforcement Learning with Verifiable Rewards

Mila(米拉研究所);Université de Montréal(蒙特利尔大学);Polytechnique Montréal(蒙特利尔理工学院);Chandar Research Lab(钱德拉研究实验室)

Milad Aghajohari, Kamran Chitsaz, Sarath Chandar, Alessandro Sordoni, Michael Noukhovitch, Aaron Courville

AI总结:

针对带可验证奖励的强化学习的训练-推理不匹配问题,提出Sampler Replay算法,通过重放采样器相关信息优化梯度近似,稳定训练且性能优于基线,还证明Score Centering是其特例。

摘要:

训练-推理不匹配是导致带可验证奖励的强化学习(RLVR)性能下降的知名问题。当前该问题被表述为:用来自自身不完美版本的样本训练训练器,该样本是为满足某些效率标准而优化的采样器。因此,现有RLVR算法旨在解决采样器离策略rollout导致的训练器梯度差异。本文中,我们重新定义该问题:我们认为RLVR应致力于训练采样器,因为我们最终关心的是测试时采样器的性能。因此,我们将训练器仅视为获取采样器真实梯度近似值的机制。我们提出Sampler Replay算法,该算法在训练器的前向传播中重放采样器的隐藏状态、logits和路由决策,以更好地近似采样器的梯度。在不同任务和模型规模下,我们表明Sampler Replay可在量化(权重、激活、KV缓存)、权重扰动和陈旧性引发的严重训练-推理不匹配下稳定训练,且优于强基线。此外,我们表明Sampler Replay是文献中广泛用于解决训练-推理不匹配(TIM)的技术的泛化,这些技术此前被独立对待。值得注意的是,我们从数学上证明Score Centering是Sampler Replay的特例,其中仅重放logits。

英文摘要:

Train-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 \emph{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 \emph{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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑