arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2402.10963cs.CLcs.LG
收藏

GLoRe:何时、何地以及如何通过全局和局部细化改进LLM推理

GLoRe: When, Where, and How to Improve LLM Reasoning via Global and Local Refinements

FAIR at Meta(Meta FAIR研究院);Georgia Institute of Technology(佐治亚理工学院);StabilityAI(StabilityAI公司)

Alex Havrilla, Sharath Raparthy, Christoforus Nalmpantis, Jane Dwivedi-Yu, Maksym Zhuravinskyi, Eric Hambro, Roberta Raileanu

AI总结:

提出SORM模型,结合全局与局部细化及ORM重排序,将LLaMA-2 13B在GSM8K上的准确率从53%提升至65%。

摘要:

最先进的语言模型在数学、科学或编码任务上可以展现出令人印象深刻的推理细化能力。然而,最近的研究表明,即使是最好的模型,在无法获取外部反馈的情况下,也难以识别“何时何地细化”。基于结果的奖励模型(ORMs),通过训练来预测最终答案的正确性以指示何时细化,为决定何时细化提供了一种便捷的解决方案。基于过程的奖励模型(PRMs),通过训练来预测中间步骤的正确性,随后可用于指示何处细化。但它们的训练成本高昂,需要大量的人工标注。在本文中,我们提出了逐步ORM(SORMs),它仅使用合成数据训练,以近似最优策略的期望未来奖励或V*。更具体地说,SORMs被训练为在多次采样当前策略(而非像ORMs那样仅采样一次)时预测最终答案的正确性。我们的实验表明,与ORMs相比,SORMs能更准确地检测不正确的推理步骤,从而在进行细化时提高下游准确性。然后,我们训练了全局细化模型,该模型仅将问题和草稿解决方案作为输入,并预测修正后的解决方案;以及局部细化模型,该模型还输入一个指示第一个推理错误位置的批评。我们通过重用用于训练SORM的数据,为这两个模型合成生成训练数据。我们发现,将全局和局部细化相结合,并使用ORM作为重排序器,其性能显著优于单独使用任何一种细化,也优于三次采样最佳基线。采用此策略,我们可以将已经通过RL微调的LLaMA-2 13B模型在GSM8K上的贪心采样准确率从53%提高到65%。

英文摘要:

State-of-the-art language models can exhibit impressive reasoning refinement capabilities on math, science or coding tasks. However, recent work demonstrates that even the best models struggle to identify \textit{when and where to refine} without access to external feedback. Outcome-based Reward Models (\textbf{ORMs}), trained to predict correctness of the final answer indicating when to refine, offer one convenient solution for deciding when to refine. Process Based Reward Models (\textbf{PRMs}), trained to predict correctness of intermediate steps, can then be used to indicate where to refine. But they are expensive to train, requiring extensive human annotations. In this paper, we propose Stepwise ORMs (\textbf{SORMs}) which are trained, only on synthetic data, to approximate the expected future reward of the optimal policy or $V^{\star}$. More specifically, SORMs are trained to predict the correctness of the final answer when sampling the current policy many times (rather than only once as in the case of ORMs). Our experiments show that SORMs can more accurately detect incorrect reasoning steps compared to ORMs, thus improving downstream accuracy when doing refinements. We then train \textit{global} refinement models, which take only the question and a draft solution as input and predict a corrected solution, and \textit{local} refinement models which also take as input a critique indicating the location of the first reasoning error. We generate training data for both models synthetically by reusing data used to train the SORM. We find combining global and local refinements, using the ORM as a reranker, significantly outperforms either one individually, as well as a best of three sample baseline. With this strategy we can improve the accuracy of a LLaMA-2 13B model (already fine-tuned with RL) on GSM8K from 53\% to 65\% when greedily sampled.

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

↑