Reinforce-Ada: An Adaptive Sampling Framework for Reinforce-Style LLM Training
提出了Reinforce-Ada,一个自适应采样框架,用于大型语言模型(LLM)的在线强化学习后训练,通过动态调整采样努力,提高了收敛速度和最终性能。
更新于 2025-10-07。作者:Wei Xiong、Chenlu Ye、Baohao Liao、Hanze Dong、Xinxing Xu、Christof Monz、Jiang Bian、Nan Jiang、Tong Zhang。
中文摘要
将大型语言模型(LLMs)应用于推理任务时,强化学习常常因为固定和均匀的采样响应而受到不稳定梯度估计的瓶颈。先前的工作,如GVM-RAFT,通过在每个提示上动态分配推理预算来最小化在预算约束下的随机梯度方差来解决这个问题。受此启发,我们提出了Reinforce-Ada,这是一种用于LLMs在线RL后训练的自适应采样框架,它持续地将采样努力重新分配给具有最大不确定度或学习潜力的提示。与传统的两阶段分配方法不同,Reinforce-Ada在在线连续消除过程中交织估计和采样,并在收集到足够的信号后自动停止对某个提示的采样。为了稳定更新,我们形成了强制奖励多样性的固定大小组,并使用自适应采样阶段的全局统计数据计算优势基线。多项模型架构和推理基准的实证结果表明,与GRPO相比,Reinforce-Ada加速了收敛并提高了最终性能,尤其是在使用平衡采样变体时。我们的工作突出了在实现推理能力LLMs的高效和可靠的强化学习中,方差感知、自适应数据整理的中心作用。代码可在https://github.com/RLHFlow/Reinforce-Ada上找到。
英文摘要
Reinforcement learning applied to large language models (LLMs) for reasoning tasks is often bottlenecked by unstable gradient estimates due to fixed and uniform sampling of responses across prompts. Prior work such as GVM-RAFT addresses this by dynamically allocating inference budget per prompt to minimize stochastic gradient variance under a budget constraint. Inspired by this insight, we propose Reinforce-Ada, an adaptive sampling framework for online RL post-training of LLMs that continuously reallocates sampling effort to the prompts with the greatest uncertainty or learning potential. Unlike conventional two-stage allocation methods, Reinforce-Ada interleaves estimation and sampling in an online successive elimination process, and automatically stops sampling for a prompt once sufficient signal is collected. To stabilize updates, we form fixed-size groups with enforced reward diversity and compute advantage baselines using global statistics aggregated over the adaptive sampling phase. Empirical results across multiple model architectures and reasoning benchmarks show that Reinforce-Ada accelerates convergence and improves final performance compared to GRPO, especially when using the balanced sampling variant. Our work highlights the central role of variance-aware, adaptive data curation in enabling efficient and reliable reinforcement learning for reasoning-capable LLMs. Code is available at https://github.com/RLHFlow/Reinforce-Ada.
解读
一句话总结
提出了Reinforce-Ada,一个自适应采样框架,用于大型语言模型(LLM)的在线强化学习后训练,通过动态调整采样努力,提高了收敛速度和最终性能。
问题1:这篇论文想要解决什么具体问题?
- 问题背景:强化学习应用于LLM的推理任务时,由于对提示的响应进行固定和均匀采样,往往受到不稳定梯度估计的限制。
- 现有方案不足:现有方法如GVM-RAFT通过动态分配每个提示的推理预算来最小化在预算约束下的随机梯度方差,但这种方法在采样上存在瓶颈。
- 研究目标:提出Reinforce-Ada,一个自适应采样框架,通过连续调整采样努力到具有最大不确定度或学习潜力的提示,以提高LLM在线强化学习后训练的效率和可靠性。
问题2:论文的核心创新点是什么?
- 技术创新:提出了自适应采样策略,动态分配推理预算,并在收集足够信号后停止采样。
- 方法改进:将估计和采样交织在一个在线连续消除过程中,并使用全局统计数据计算优势基线。
- 优势:与现有方法相比,Reinforce-Ada提高了收敛速度和最终性能,尤其是在使用平衡采样变体时。
问题3:实验结果如何验证了方法的有效性?
- 关键实验:在多个模型架构和推理基准上进行了实验,包括MATH500、Minerva Math、Olympiad Bench和AIME-like测试集。
- 性能提升:与GRPO相比,Reinforce-Ada在所有基准上都实现了显著的性能提升,通常平均@32准确率提高1-3点。
- 对比结果:Reinforce-Ada-balance变体通常达到最高的渐近线,表明平衡采样策略的有效性。
问题4:这个研究的实际应用价值是什么?
- 应用场景:适用于大型语言模型的在线强化学习后训练,特别是在需要推理能力的应用中。
- 实施建议:将Reinforce-Ada集成到现有的RL训练流程中,无需架构修改。
- 局限与展望:尽管Reinforce-Ada在数学领域表现出色,但其在其他领域的应用需要进一步研究。未来工作可以探索将Reinforce-Ada与课程学习等方法结合,以实现更全面的数据优化。
来源
机器可读索引:llms.txt