arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2402.05808cs.AIcs.CLcs.LG
收藏

通过反向课程强化学习训练大型语言模型进行推理

Training Large Language Models for Reasoning through Reverse Curriculum Reinforcement Learning

School of Computer Science, Fudan University(复旦大学计算机科学学院);ByteDance Research(字节跳动研究部);Institute of Modern Languages and Linguistics, Fudan University(复旦大学现代语言与语言学研究所)
Zhiheng Xi, Wenxiang Chen, Boyang Hong, Senjie Jin, Rui Zheng, Wei He, Yiwen Ding, Shichun Liu, Xin Guo, Junzhe Wang, Honglin Guo, Wei Shen, Xiaoran Fan, Yuhao … 展开作者

Zhiheng Xi, Wenxiang Chen, Boyang Hong, Senjie Jin, Rui Zheng, Wei He, Yiwen Ding, Shichun Liu, Xin Guo, Junzhe Wang, Honglin Guo, Wei Shen, Xiaoran Fan, Yuhao Zhou, Shihan Dou, Xiao Wang, Xinbo Zhang, Peng Sun, Tao Gui, Qi Zhang, Xuanjing Huang

AI总结:

提出R$^3$方法,通过反向课程强化学习仅用结果监督实现过程监督效果,在八个推理任务上平均提升4.1点,并在GSM8K上超越基线4.2点。

摘要:

在本文中,我们提出了R$^3$:通过反向课程强化学习(RL)学习推理,这是一种新颖的方法,仅采用结果监督即可实现过程监督对大型语言模型的益处。将RL应用于复杂推理的核心挑战在于识别产生正奖励的动作序列,并为优化提供适当的监督。结果监督为最终结果提供稀疏奖励,而不识别错误位置,而过程监督提供逐步奖励,但需要大量的人工标注。R$^3$通过从正确演示中学习来克服这些局限性。具体而言,R$^3$逐步将推理的起始状态从演示的末尾滑动到其开头,从而在所有阶段促进模型更轻松的探索。因此,R$^3$建立了逐步课程,使结果监督能够提供步骤级信号并精确定位错误。使用Llama2-7B,我们的方法在八个推理任务上平均超过RL基线4.1个点。值得注意的是,在GSM8K上的基于程序的推理中,它在三个骨干模型上超过基线4.2个点,并且在没有任何额外数据的情况下,Codellama-7B + R$^3$的表现可与更大模型或闭源模型相媲美。

英文摘要:

In this paper, we propose R$^3$: Learning Reasoning through Reverse Curriculum Reinforcement Learning (RL), a novel method that employs only outcome supervision to achieve the benefits of process supervision for large language models. The core challenge in applying RL to complex reasoning is to identify a sequence of actions that result in positive rewards and provide appropriate supervision for optimization. Outcome supervision provides sparse rewards for final results without identifying error locations, whereas process supervision offers step-wise rewards but requires extensive manual annotation. R$^3$ overcomes these limitations by learning from correct demonstrations. Specifically, R$^3$ progressively slides the start state of reasoning from a demonstration's end to its beginning, facilitating easier model exploration at all stages. Thus, R$^3$ establishes a step-wise curriculum, allowing outcome supervision to offer step-level signals and precisely pinpoint errors. Using Llama2-7B, our method surpasses RL baseline on eight reasoning tasks by $4.1$ points on average. Notebaly, in program-based reasoning on GSM8K, it exceeds the baseline by $4.2$ points across three backbone models, and without any extra data, Codellama-7B + R$^3$ performs comparable to larger models or closed-source models.

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

↑