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

ReFT:基于强化微调的推理

ReFT: Reasoning with Reinforced Fine-Tuning

ByteDance Research(字节跳动研究院)

Trung Quoc Luong, Xinbo Zhang, Zhanming Jie, Peng Sun, Xiaoran Jin, Hang Li

AI总结:

针对大语言模型监督微调推理泛化性不足的问题,提出ReFT强化微调方法,先SFT预热再用PPO在线强化学习采样多推理路径微调,在相同训练数据下性能优于SFT且泛化性更强。

摘要:

提升大语言模型(LLM)推理能力的一种方法是使用思维链(CoT)标注进行监督微调(SFT)。但该方法的泛化能力不够强,因为训练仅依赖给定的CoT数据。例如在数学解题场景中,训练数据里每个问题通常只有一条标注推理路径。直观来看,算法若能针对一个问题从多条标注推理路径中学习,效果会更好。为解决这一问题,我们提出了一种简单且有效的方法——强化微调(Reinforced Fine-Tuning,ReFT),以数学解题为例提升用于推理的LLM的学习泛化能力。ReFT首先通过SFT对模型进行预热,随后采用在线强化学习(本文具体使用PPO算法)进一步微调模型:针对给定问题自动采样大量推理路径,并根据真实答案自然生成奖励。在GSM8K、MathQA和SVAMP数据集上的大量实验表明,ReFT的性能显著优于SFT,若结合多数投票、重排序等推理阶段策略,性能还有进一步提升的潜力。值得注意的是,ReFT是在与SFT相同的训练问题上学习实现的性能提升,无需依赖额外的或增强的训练问题,这表明ReFT具备更优异的泛化能力。

英文摘要:

One way to enhance the reasoning capability of Large Language Models (LLMs) is to conduct Supervised Fine-Tuning (SFT) using Chain-of-Thought (CoT) annotations. This approach does not show sufficiently strong generalization ability, however, because the training only relies on the given CoT data. In math problem-solving, for example, there is usually only one annotated reasoning path for each question in the training data. Intuitively, it would be better for the algorithm to learn from multiple annotated reasoning paths given a question. To address this issue, we propose a simple yet effective approach called Reinforced Fine-Tuning (ReFT) to enhance the generalizability of learning LLMs for reasoning, with math problem-solving as an example. ReFT first warmups the model with SFT, and then employs on-line reinforcement learning, specifically the PPO algorithm in this paper, to further fine-tune the model, where an abundance of reasoning paths are automatically sampled given the question and the rewards are naturally derived from the ground-truth answers. Extensive experiments on GSM8K, MathQA, and SVAMP datasets show that ReFT significantly outperforms SFT, and the performance can be potentially further boosted by combining inference-time strategies such as majority voting and re-ranking. Note that ReFT obtains the improvement by learning from the same training questions as SFT, without relying on extra or augmented training questions. This indicates a superior generalization ability for ReFT.

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

↑