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

自我奖励修正用于数学推理

Self-rewarding correction for mathematical reasoning

University of Illinois Urbana-Champaign(伊利诺伊大学厄巴纳-香槟分校);University of Maryland, College Park(马里兰大学帕克分校)

Wei Xiong, Hanning Zhang, Chenlu Ye, Lichang Chen, Nan Jiang, Tong Zhang

AI总结:

本文提出两阶段自我奖励修正框架,利用自我生成数据训练推理模型,实现无外部反馈的自我纠错,实验表明性能优于内在修正并媲美外部奖励模型。

摘要:

我们研究自我奖励推理大语言模型(LLMs),这类模型能够在推理过程中同时生成逐步推理并评估其输出的正确性,而无需外部反馈。这种集成方法使得单一模型能够独立引导其推理过程,为模型部署带来计算优势。我们特别关注自我修正这一代表性任务,其中模型自主检测其回答中的错误,修订输出,并决定何时终止迭代细化循环。为实现这一目标,我们提出一个两阶段的算法框架,仅使用自我生成的数据来构建自我奖励推理模型。在第一阶段,我们采用顺序拒绝采样来合成包含自我奖励和自我修正机制的长思维链轨迹。在这些精选数据上微调模型,使它们能够学习自我奖励和自我修正的模式。在第二阶段,我们通过基于规则的信号进行强化学习,进一步增强模型评估回答准确性和细化输出的能力。使用Llama-3和Qwen-2.5进行的实验表明,我们的方法超越了内在的自我修正能力,并达到了与依赖外部奖励模型的系统相当的性能。

英文摘要:

We study self-rewarding reasoning large language models (LLMs), which can simultaneously generate step-by-step reasoning and evaluate the correctness of their outputs during the inference time-without external feedback. This integrated approach allows a single model to independently guide its reasoning process, offering computational advantages for model deployment. We particularly focus on the representative task of self-correction, where models autonomously detect errors in their responses, revise outputs, and decide when to terminate iterative refinement loops. To enable this, we propose a two-staged algorithmic framework for constructing self-rewarding reasoning models using only self-generated data. In the first stage, we employ sequential rejection sampling to synthesize long chain-of-thought trajectories that incorporate both self-rewarding and self-correction mechanisms. Fine-tuning models on these curated data allows them to learn the patterns of self-rewarding and self-correction. In the second stage, we further enhance the models' ability to assess response accuracy and refine outputs through reinforcement learning with rule-based signals. Experiments with Llama-3 and Qwen-2.5 demonstrate that our approach surpasses intrinsic self-correction capabilities and achieves performance comparable to systems that rely on external reward models.

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

↑