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データセットを用いてオープンソースLLMを微調整し、数学的推論を改善します。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.

研究の動機と目的

  • データ駆動型の微調整によってオープンソースLLMの数学的問題解決能力を改善する動機づけ。
  • 前方および後方の推論の多様なバリエーションを作成するための質問ブートストラップを提案する。
  • 一般化を高めるために回答の拡張と言い換えを用いて学習データを増強する。
  • モデルサイズを問わず、GSM8KとMATHでMetaMathが高い性能を達成することを示す。

提案手法

  • forward (original and LLM-rephrased questions) and backward (self-verification and FOBAR) reasoning variants によって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でも再び最高得点を達成。
  • ブートストラップされた質問の多様さは精度と正の相関(Pearson 0.972)。
  • 後方推論拡張(SV, FOBAR)は後方の数学能力と全体の性能を顕著に改善する。

この論文を読む

Nubintのビューアで原文を開き、読みながら気になる箇所をすぐに質問できます。

Nubintでこの論文を読む

このレビューはAIが論文の原文をもとに作成しました。引用する前に原文をご確認ください。