MetaMath:为大型语言模型自举生成数学问题
MetaMath: Bootstrap Your Own Mathematical Questions for Large Language Models
AI总结:
MetaMath通过多角度重写问题自举构建MetaMathQA数据集并微调LLaMA-2,在GSM8K和MATH上显著超越同规模开源模型,MetaMath-70B在GSM8K上略优于GPT-3.5-Turbo。
摘要:
大型语言模型(LLMs)已经推动了自然语言理解的极限,并展现出出色的问题解决能力。尽管取得了巨大成功,但由于复杂的推理过程,大多数现有的开源LLMs(例如LLaMA-2)在解决数学问题方面仍远不能令人满意。为了弥补这一差距,我们提出了MetaMath,一个专门用于数学推理的微调语言模型。具体来说,我们首先通过从多个角度重写问题而不引入额外知识来自举生成数学问题,从而产生了一个名为MetaMathQA的新数据集。然后我们在MetaMathQA上微调LLaMA-2模型。在两个流行的数学推理基准(即GSM8K和MATH)上的实验结果表明,MetaMath以显著优势超越了一系列开源LLMs。我们的MetaMath-7B模型在GSM8K上达到66.4%,在MATH上达到19.4%,分别比同规模的最先进模型高出11.5%和8.7%。特别是,MetaMath-70B在GSM8K上达到了82.3%的准确率,略优于GPT-3.5-Turbo。我们公开发布了全部MetaMathQA数据集、不同模型规模的MetaMath模型以及训练代码。
英文摘要:
Large language models (LLMs) have pushed the limits of natural language understanding and exhibited excellent problem-solving ability. Despite the great success, most existing open-source LLMs (e.g., LLaMA-2) are still far away from satisfactory for solving mathematical problem due to the complex reasoning procedures. To bridge this gap, we propose MetaMath, a fine-tuned language model that specializes in mathematical reasoning. Specifically, we start by bootstrapping mathematical questions by rewriting the question from multiple perspectives without extra knowledge, which results in a new dataset called MetaMathQA. Then we fine-tune the LLaMA-2 models on MetaMathQA. Experimental results on two popular benchmarks (i.e., GSM8K and MATH) for mathematical reasoning demonstrate that MetaMath outperforms a suite of open-source LLMs by a significant margin. Our MetaMath-7B model achieves 66.4% on GSM8K and 19.4% on MATH, exceeding the state-of-the-art models of the same size by 11.5% and 8.7%. Particularly, MetaMath-70B achieves an accuracy of 82.3% on GSM8K, slightly better than GPT-3.5-Turbo. We release all the MetaMathQA dataset, the MetaMath models with different model sizes and the training code for public use.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。