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

论为LLM推理在训练时设计有效的强化学习奖励

On Designing Effective RL Reward at Training Time for LLM Reasoning

Institute for Interdisciplinary Information Sciences, Tsinghua University(清华大学交叉信息研究院);Shanghai Qi Zhi Institute(上海期智研究院);OpenPsi Inc.(OpenPsi公司)

Jiaxuan Gao, Shusheng Xu, Wenjie Ye, Weilin Liu, Chuyi He, Wei Fu, Zhiyu Mei, Guangju Wang, Yi Wu

AI总结:

本研究探索奖励模型在LLM推理RL训练中的潜力,发现主流奖励模型可能引发奖励黑客问题,提出Clipping和Delta技术优化奖励,实现无需额外监督微调即可提升多规模LLM在数学基准上的推理性能。

摘要:

奖励模型在提升大语言模型(LLM)推理能力方面的重要性日益凸显。现有研究表明,训练良好的奖励模型可通过搜索大幅提升模型在推理时的性能。然而,奖励模型在强化学习(RL)训练时的潜力仍未得到充分探索。目前尚不清楚,在使用稀疏成功奖励(用于验证解决方案正确性)的RL训练中,这些奖励模型能否提供额外训练信号以增强LLM的推理能力。在本研究中,我们评估了用于RL训练的主流奖励模型,包括结果监督奖励模型(ORM)和过程监督奖励模型(PRM),并通过将这些学习到的奖励与成功奖励相结合,使用RL训练了一系列针对数学问题的LLM。令人惊讶的是,尽管这些学习到的奖励模型在推理时性能出色,但它们可能对RL训练无帮助甚至造成损害,导致性能劣于仅使用成功奖励训练的LLM。我们的分析揭示,LLM可通过重复正确但不必要的推理步骤从部分奖励模型中获得高奖励,引发严重的奖励黑客问题。因此,我们提出两种新颖的奖励优化技术:Clipping和Delta。其核心思想是确保任何推理轨迹的累积奖励有上界,以保持学习到的奖励模型有效且不被滥用。我们在MATH和GSM8K基准上,针对1.5B和7B规模的多个LLM,结合多种奖励模型评估了这些技术,结果表明,通过精心设计奖励函数,无需额外监督微调的RL训练可提升所有受评估的LLM,包括最先进的7B规模LLM Qwen2.5-Math-7B-Instruct在MATH和GSM8K基准上的性能。

英文摘要:

Reward models have been increasingly critical for improving the reasoning capability of LLMs. Existing research has shown that a well-trained reward model can substantially improve model performances at inference time via search. However, the potential of reward models during RL training time still remains largely under-explored. It is currently unclear whether these reward models can provide additional training signals to enhance the reasoning capabilities of LLMs in RL training that uses sparse success rewards, which verify the correctness of solutions. In this work, we evaluate popular reward models for RL training, including the Outcome-supervised Reward Model (ORM) and the Process-supervised Reward Model (PRM), and train a collection of LLMs for math problems using RL by combining these learned rewards with success rewards. Surprisingly, even though these learned reward models have strong inference-time performances, they may NOT help or even hurt RL training, producing worse performances than LLMs trained with the success reward only. Our analysis reveals that an LLM can receive high rewards from some of these reward models by repeating correct but unnecessary reasoning steps, leading to a severe reward hacking issue. Therefore, we introduce two novel reward refinement techniques, including Clipping and Delta. The key idea is to ensure the accumulative reward of any reasoning trajectory is upper-bounded to keep a learned reward model effective without being exploited. We evaluate our techniques with multiple reward models over a set of 1.5B and 7B LLMs on MATH and GSM8K benchmarks and demonstrate that with a carefully designed reward function, RL training without any additional supervised tuning can improve all the evaluated LLMs, including the state-of-the-art 7B LLM Qwen2.5-Math-7B-Instruct on MATH and GSM8K benchmarks.

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

↑