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

S^3cMath:自发步骤级自我纠正使大型语言模型成为更好的数学推理器

S^3cMath: Spontaneous Step-level Self-correction Makes Large Language Models Better Mathematical Reasoners

Meituan Group(美团集团)

Yuchen Yan, Jin Jiang, Yang Liu, Yixin Cao, Xin Xu, Mengdi Zhang, Xunliang Cai, Jian Shao

AI总结:

本文提出S$^3$c-Math系列模型,通过步骤级采样构建自我纠正数据并实施训练策略,使LLMs具备自发步骤级自我纠正能力,在GSM8K等数学基准上取得显著进步。

摘要:

自我纠正是一种能够激发大型语言模型(LLMs)潜在推理能力的新方法。它涉及在LLMs解决推理问题时,在推理过程中检测并纠正错误。然而,最近的研究并未将自我纠正视为LLMs自发且内在的能力。相反,这种纠正通常通过事后生成、引入外部知识、多模型协作及类似技术来实现。在本文中,我们提出了一系列名为S$^3$c-Math的数学LLMs,能够为数学推理执行自发步骤级自我纠正。这种能力帮助LLMs识别其正在进行的推理是否容易包含错误,并同时纠正这些错误以产生更可靠的响应。我们提出了一种方法,采用步骤级采样方法构建逐步自我纠正数据以实现该能力。此外,我们实施了一种训练策略,利用上述构建的数据使LLMs具备自发步骤级自我纠正能力。我们的数据和方法已被证明在多种基础LLMs上均有效,在GSM8K、MATH和其他数学基准的评估中持续显示出显著进步。据我们所知,我们是首个在数学推理中引入LLMs自发步骤级自我纠正能力的。

英文摘要:

Self-correction is a novel method that can stimulate the potential reasoning abilities of large language models (LLMs). It involves detecting and correcting errors during the inference process when LLMs solve reasoning problems. However, recent works do not regard self-correction as a spontaneous and intrinsic capability of LLMs. Instead, such correction is achieved through post-hoc generation, external knowledge introduction, multi-model collaboration, and similar techniques. In this paper, we propose a series of mathematical LLMs called S$^3$c-Math, which are able to perform Spontaneous Step-level Self-correction for Mathematical reasoning. This capability helps LLMs to recognize whether their ongoing inference tends to contain errors and simultaneously correct these errors to produce a more reliable response. We proposed a method, which employs a step-level sampling approach to construct step-wise self-correction data for achieving such ability. Additionally, we implement a training strategy that uses above constructed data to equip LLMs with spontaneous step-level self-correction capacities. Our data and methods have been demonstrated to be effective across various foundation LLMs, consistently showing significant progress in evaluations on GSM8K, MATH, and other mathematical benchmarks. To the best of our knowledge, we are the first to introduce the spontaneous step-level self-correction ability of LLMs in mathematical reasoning.

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

↑