arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2402.17786cs.AIcs.CLcs.LG
收藏

使用大型语言模型进行逐步自洽数学推理

Stepwise Self-Consistent Mathematical Reasoning with Large Language Models

Technical University of Munich(慕尼黑工业大学)

Zilong Zhao, Yao Rong, Dongyang Guo, Emek Gözlüklü, Emir Gülboy, Enkelejda Kasneci

AI总结:

针对大语言模型多步数学推理中中间结果选择与解探索不足的问题,提出SSC-CoT算法,利用推理链交集和知识图谱发现关键步骤,并在TriMaster100与MATH level 5上显著提升性能。

摘要:

使用大型语言模型进行复杂数学推理十分困难,主要原因在于多步推理的复杂性。这一过程的主要挑战包括:(1)选择关键中间结果以推进流程;(2)对潜在解的探索有限。为解决这些问题,我们提出了一种新算法,即逐步自洽思维链(Stepwise Self-Consistent Chain-of-Thought,SSC-CoT)。SSC-CoT采用基于不同推理链交集来选择中间步骤的策略。此外,SSC-CoT通过查询由相关领域知识构成的知识图谱,使模型能够发现关键中间步骤。为验证SSC-CoT,我们提出了一个新数据集TriMaster100,专为复杂三角学问题定制。该数据集包含100个问题,每个解答都被分解为带评分的中间步骤,从而支持对数学推理过程进行全面评估。在TriMaster100上,SSC-CoT使最先进方法的有效性提升至三倍。此外,我们在广泛认可的复杂数学问题数据集MATH level 5上对SSC-CoT进行基准测试,其准确率比第二名方法高出7.2%。代码和TriMaster100数据集可在以下地址获取:https://github.com/zhao-zilong/ssc-cot。

英文摘要:

Using Large Language Models for complex mathematical reasoning is difficult, primarily due to the complexity of multi-step reasoning. The main challenges of this process include (1) selecting critical intermediate results to advance the procedure, and (2) limited exploration of potential solutions. To address these issues, we introduce a novel algorithm, namely Stepwise Self-Consistent Chain-of-Thought (SSC-CoT). SSC-CoT employs a strategy of selecting intermediate steps based on the intersection of various reasoning chains. Additionally, SSC-CoT enables the model to discover critical intermediate steps by querying a knowledge graph comprising relevant domain knowledge. To validate SSC-CoT, we present a new dataset, TriMaster100, tailored for complex trigonometry problems. This dataset contains 100 questions, with each solution broken down into scored intermediate steps, facilitating a comprehensive evaluation of the mathematical reasoning process. On TriMaster100, SSC-CoT triples the effectiveness of the state-of-the-art methods. Furthermore, we benchmark SSC-CoT on the widely recognized complex mathematical question dataset, MATH level 5, and it surpasses the second-best method by 7.2% in accuracy. Code and the TriMaster100 dataset can be found at: https://github.com/zhao-zilong/ssc-cot.

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

↑