提出Q-RM模型,让大模型推理更准更快
Discriminative Policy Optimization for Token-Level Reward Models
- 用判别式策略优化方法分离生成与奖励,实现精准的词级奖励分配
- 在数学推理任务上,平均通过率提升超5分,训练速度比传统方法快10倍以上
- 适合需要高精度推理和高效训练的研究者与开发者
过程奖励模型(PRMs)相比结果奖励模型(ORMs)能提供更细致的监督信号,对提升大语言模型在复杂推理任务中的能力具有潜力。近期工作已将PRMs从步骤级推进到词级粒度,通过将奖励建模融入生成模型训练,利用词生成概率获取奖励分数。然而,生成语言建模与奖励建模之间的冲突可能导致不稳定性及错误信用分配。为此,本文重新审视词级奖励分配,通过解耦奖励建模与语言生成,基于判别式策略优化推导出词级奖励模型,称为Q函数奖励模型(Q-RM)。理论证明,Q-RM可从偏好数据中显式学习词级Q函数,无需细粒度标注。实验表明,Q-RM在多个基准测试中持续优于所有基线方法。例如,在PPO/REINFORCE算法中,其在数学推理任务上的平均Pass@1得分较ORM基线提高5.85/4.70分,较词级PRM提高4.56/5.73分。此外,使用Q-RM进行强化学习显著提升训练效率,在GSM8K上收敛速度比ORM快12倍,在MATH上比步骤级PRM快11倍。代码与数据见https://github.com/homzer/Q-RM。
原文摘要 · Abstract (English)
Process reward models (PRMs) provide more nuanced supervision compared to outcome reward models (ORMs) for optimizing policy models, positioning them as a promising approach to enhancing the capabilities of LLMs in complex reasoning tasks. Recent efforts have advanced PRMs from step-level to token-level granularity by integrating reward modeling into the training of generative models, with reward scores derived from token generation probabilities. However, the conflict between generative language modeling and reward modeling may introduce instability and lead to inaccurate credit assignments. To address this challenge, we revisit token-level reward assignment by decoupling reward modeling from language generation and derive a token-level reward model through the optimization of a discriminative policy, termed the Q-function Reward Model (Q-RM). We theoretically demonstrate that Q-RM explicitly learns token-level Q-functions from preference data without relying on fine-grained annotations. In our experiments, Q-RM consistently outperforms all baseline methods across various benchmarks. For example, when integrated into PPO/REINFORCE algorithms, Q-RM enhances the average Pass@1 score by 5.85/4.70 points on mathematical reasoning tasks compared to the ORM baseline, and by 4.56/5.73 points compared to the token-level PRM counterpart. Moreover, reinforcement learning with Q-RM significantly enhances training efficiency, achieving convergence 12 times faster than ORM on GSM8K and 11 times faster than step-level PRM on MATH. Code and data are available at https://github.com/homzer/Q-RM.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。