Skip to main content
QUICK REVIEW

[论文解读] MetaMath: Bootstrap Your Own Mathematical Questions for Large Language Models

Longhui Yu, Weisen Jiang|arXiv (Cornell University)|Sep 21, 2023
Topic ModelingComputer Science被引用 28
一句话总结

MetaMath 在一个新颖的 MetaMathQA 数据集上对开源大型语言模型进行微调,该数据集通过前向和后向问题引导自举来提升数学推理能力,在 GSM8K 和 MATH 上达到开源模型的最新水平。

ABSTRACT

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.

研究动机与目标

  • 以数据驱动的微调来推动开源大型语言模型在数学问题求解方面的能力提升。
  • 提出问题自举方法,以创建多样化的前向和后向推理变体。
  • 通过答案增强和改写来扩充训练数据,以提升泛化能力。
  • 展示 MetaMath 在不同模型规模上对 GSM8K 和 MATH 的强劲表现。

提出的方法

  • 通过前向(原始问题和 LLM 改写的问题)和后向(自我验证和 FOBAR)推理变体创建 MetaMathQA。
  • 通过答案增强(RFT 风格的拒绝采样)生成多样化的推理路径,以获得正确答案的增强数据。
  • 在 MetaMathQA 上使用给定问题的推理路径的最大似然进行 LLaMA-2 模型微调。
  • 2-3 种增强方式:AnsAug、Rephrasing、SV、FOBAR;整合成 D_MetaMathQA 以用于微调。
  • 在 GSM8K 和 MATH 上对比开源与闭源基线,覆盖不同模型规模进行评估。

实验结果

研究问题

  • RQ1在前向和后向方向对问题进行自举,是否能提升开源 LLM 的数学推理能力?
  • RQ2问题风格增强的多样性如何影响在 GSM8K 和 MATH 上的泛化能力?
  • RQ3不同增强类型(AnsAug、Rephrase、SV、FOBAR)对微调结果有何影响?
  • RQ4后向推理增强是否会带来标准基准测试上的性能提升?

主要发现

  • MetaMath 在 7B、13B、70B 系列上实现了 GSM8K 和 MATH 的开源领域最新结果。
  • MetaMath-7B 在 GSM8K 上达到 66.5%,在 MATH 上达到 19.8%,超越之前的开源模型分别 11.5% 和 8.7%。
  • MetaMath-70B 在 GSM8K 达到 82.3%,略优于 GPT-3.5-Turbo。
  • 在开源规模(11-50B)上,MetaMath 是同类中最出色的;在 51-70B 规模上,MetaMath 再次实现最高分。
  • 自举问题的多样性与准确率呈正相关(Pearson 0.972)。
  • 后向推理增强(SV、FOBAR)显著提升后向数学能力和整体性能。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。