arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2406.03816cs.CL
收藏

ReST-MCTS*:基于过程奖励引导的树搜索的LLM自训练

ReST-MCTS*: LLM Self-Training via Process Reward Guided Tree Search

California Institute of Technology(加州理工学院);Tsinghua University(清华大学)

Dan Zhang, Sining Zhoubian, Ziniu Hu, Yisong Yue, Yuxiao Dong, Jie Tang

AI总结:

本文提出强化自训练方法ReST-MCTS*,结合过程奖励引导与树搜索MCTS*,利用推断的过程奖励收集高质量推理轨迹以训练策略和奖励模型,在相同搜索预算下准确率优于Best-of-N等基线,并持续提升模型性能超越其他自训练算法。

摘要:

近期LLM自训练的方法大多依赖于LLM生成响应,并筛选输出答案正确的响应作为训练数据。这种方法通常会产生低质量的微调训练集(例如,错误的计划或中间推理)。在本文中,我们开发了一种强化自训练方法,称为ReST-MCTS*,该方法将过程奖励引导与树搜索MCTS*相结合,用于收集更高质量的推理轨迹以及每步的价值,以训练策略模型和奖励模型。ReST-MCTS*通过基于树搜索的强化学习,避免了训练过程奖励通常所需的每步手动标注:给定预言机最终正确答案,ReST-MCTS*能够通过估计该步骤有助于导出正确答案的概率来推断正确的过程奖励。这些推断出的奖励具有双重目的:它们作为价值目标用于进一步细化过程奖励模型,同时也促进了为策略模型自训练选择高质量轨迹。我们首先表明,在相同的搜索预算内,ReST-MCTS*中的树搜索策略与先前的LLM推理基线(如Best-of-N和Tree-of-Thought)相比,实现了更高的准确率。然后我们表明,通过使用该树搜索策略搜索到的轨迹作为训练数据,我们可以持续增强三个语言模型进行多次迭代,并优于其他自训练算法,如ReST$^\ ext{EM}$和Self-Rewarding LM。我们在 https://github.com/THUDM/ReST-MCTS 发布了所有代码。

英文摘要:

Recent methodologies in LLM self-training mostly rely on LLM generating responses and filtering those with correct output answers as training data. This approach often yields a low-quality fine-tuning training set (e.g., incorrect plans or intermediate reasoning). In this paper, we develop a reinforced self-training approach, called ReST-MCTS*, based on integrating process reward guidance with tree search MCTS* for collecting higher-quality reasoning traces as well as per-step value to train policy and reward models. ReST-MCTS* circumvents the per-step manual annotation typically used to train process rewards by tree-search-based reinforcement learning: Given oracle final correct answers, ReST-MCTS* is able to infer the correct process rewards by estimating the probability this step can help lead to the correct answer. These inferred rewards serve dual purposes: they act as value targets for further refining the process reward model and also facilitate the selection of high-quality traces for policy model self-training. We first show that the tree-search policy in ReST-MCTS* achieves higher accuracy compared with prior LLM reasoning baselines such as Best-of-N and Tree-of-Thought, within the same search budget. We then show that by using traces searched by this tree-search policy as training data, we can continuously enhance the three language models for multiple iterations, and outperform other self-training algorithms such as ReST$^\text{EM}$ and Self-Rewarding LM. We release all code at https://github.com/THUDM/ReST-MCTS.

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

↑