通过自适应引导提升推理模型强化学习的泛化能力
Adaptive Guidance Accelerates Reinforcement Learning of Reasoning Models
- 用自然语言提示引导模型在上下文中思考,再自主推导解题链
- 7B和32B模型在数学基准上泛化性能提升最高达4%
- 适合想提升大模型推理能力的研究者与工程师
我们研究了在可验证奖励下通过强化学习训练的推理模型解决新问题的过程。发现强化学习主要通过两种方式提升性能:(1) 将 pass@$k$ 压缩为 pass@1;(2) 实现“能力增长”,即模型学会解决原本无法解决的新问题,即使 $k$ 很高也无效。尽管能力增长在不同规模模型中均存在,但主要由自蒸馏驱动。我们在超过50万道涵盖数学、科学和代码领域的推理题上,对0.5B至72B参数的模型进行了验证。进一步表明,通过在上下文中引入自然语言引导,可在不改变模型生成方式的前提下显著提高 pass@$k$ 率。基于此,我们提出 $ ext{Guide}$——一种新型在线训练算法,自适应地将提示注入到初始所有轨迹均错误的问题中,并调整重要性采样比,以优化无提示情境下的策略。我们描述了 $ ext{Guide}$ 在 GRPO 与 PPO 中的变体,并实证证明,Guide-GRPO 在7B和32B模型上相比原版在数学基准上实现最高4%的宏观平均提升。我们还进行了细致消融分析并理论探讨了 $ ext{Guide}$ 的学习效率。
原文摘要 · Abstract (English)
We study the process through which reasoning models trained with reinforcement learning on verifiable rewards (RLVR) can learn to solve new problems. We find that RLVR drives performance in two main ways: (1) by compressing pass@$k$ into pass@1 and (2) via "capability gain" in which models learn to solve new problems that they previously could not solve even at high $k$. We find that while capability gain exists across model scales, learning to solve new problems is primarily driven through self-distillation. We demonstrate these findings across model scales ranging from 0.5B to 72B parameters on >500,000 reasoning problems with prompts and verifiable final answers across math, science, and code domains. We further show that we can significantly improve pass@$k$ rates by leveraging natural language guidance for the model to consider within context while still requiring the model to derive a solution chain from scratch. Based of these insights, we derive $\text{Guide}$ -- a new class of online training algorithms. $\text{Guide}$ adaptively incorporates hints into the model's context on problems for which all rollouts were initially incorrect and adjusts the importance sampling ratio for the "off-policy" trajectories in order to optimize the policy for contexts in which the hints are no longer present. We describe variants of $\text{Guide}$ for GRPO and PPO and empirically show that Guide-GRPO on 7B and 32B parameter models improves generalization over its vanilla counterpart with up to 4$\%$ macro-average improvement across math benchmarks. We include careful ablations to analyze $\text{Guide}$'s components and theoretically analyze Guide's learning efficiency.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。