MARIO:基于代码解释器输出的数学推理——一种可复现的流程
MARIO: MAth Reasoning with code Interpreter Output -- A Reproducible Pipeline
AI总结:
本文提出MARIO可复现流程,通过引入基于Python代码解释器增强的数学数据集和微调协议,显著提升了7B参数LLM在GSM8K和MATH上的数学推理性能。
摘要:
大型语言模型(LLMs)在自然语言理解任务中已取得显著进展,但在实现真正的人工通用智能之前仍存在差距,尤其是在数学推理能力方面的不足。我们假设,LLM训练的本质特性——专注于预测下一个token的概率——从数据驱动和理论角度来看,都对有效建模需要精确计算的数学推理构成了挑战。在本文中,我们通过丰富数据环境并引入一个新颖的数学数据集来应对这一挑战,该数据集增强了利用Python代码解释器的能力。该数据集源自GSM8K和MATH,并通过GPT-4标注、人工审核和自训练过程的组合进一步精炼,其中原始GSM8K训练集中的错误已被修正。此外,我们提出了一套初步的、易于复现的数学专用LLM微调协议,该协议使一个7B参数LLM在GSM8K和MATH数据集上的性能得到了显著提升。我们致力于推动LLM数学推理领域的发展,为此,我们已将数据生成/训练/推理的源代码以及模型检查点公开发布在\url{https://github.com/MARIO-Math-Reasoning/MARIO}。我们希望这将促进社区内进一步的研究与开发。
英文摘要:
Large language models (LLMs) have seen considerable advancements in natural language understanding tasks, yet there remains a gap to bridge before attaining true artificial general intelligence, especially concerning shortcomings in mathematical reasoning capabilities. We postulate that the inherent nature of LLM training, which focuses on predicting probabilities of next token, presents challenges in effectively modeling mathematical reasoning that demands exact calculations, both from data-driven and theoretical standpoints. In this paper, we address this challenge by enriching the data landscape and introducing a novel math dataset, enhanced with a capability to utilize a Python code interpreter. This dataset is derived from GSM8K and MATH and has been further refined through a combination of GPT-4 annotations, human review, and self-training processes, where the errors in the original GSM8K training set have been fixed. Additionally, we propose a tentative, easily replicable protocol for the fine-tuning of math-specific LLMs, which has led to a significant improvement in the performance of a 7B-parameter LLM on the GSM8K and MATH datasets. We are committed to advancing the field of mathematical reasoning in LLMs and, to that end, we have made source code for data generation / training / inference, and the model checkpoints publicly available at \url{https://github.com/MARIO-Math-Reasoning/MARIO}. We hope this will facilitate further research and development within the community.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。