Skip to main content
QUICK REVIEW

[Paper Review] MetaMath: Bootstrap Your Own Mathematical Questions for Large Language Models

Longhui Yu, Weisen Jiang|arXiv (Cornell University)|Sep 21, 2023
Topic ModelingComputer Science28 citations
TL;DR

MetaMath finetunes open-source LLMs on a novel MetaMathQA dataset created by forward and backward question bootstrapping to improve mathematical reasoning, achieving state-of-the-art results among open-source models on GSM8K and 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.

Motivation & Objective

  • Motivate improving open-source LLM mathematical problem-solving with data-driven fine-tuning.
  • Propose question bootstrapping to create diverse forward and backward reasoning variations.
  • Augment training data with answer augmentation and rephrasing to boost generalization.
  • Demonstrate MetaMath achieves strong performance on GSM8K and MATH across model sizes.

Proposed method

  • Create MetaMathQA by forward (original and LLM-rephrased questions) and backward (self-verification and FOBAR) reasoning variants.
  • Generate diverse reasoning paths via answer augmentation (RFT-style rejection sampling) to obtain correct-answer augmentations.
  • Fine-tune LLaMA-2 models on MetaMathQA using maximum likelihood of the reasoning paths given questions.
  • 2-3 augmentations: AnsAug, Rephrasing, SV, FOBAR; combine into D_MetaMathQA for finetuning.
  • Evaluate on GSM8K and MATH against open-source and closed-source baselines across model sizes.

Experimental results

Research questions

  • RQ1Can bootstrapping questions in forward and backward directions improve mathematical reasoning in open-source LLMs?
  • RQ2How does diversity in question-style augmentation affect generalization on GSM8K and MATH?
  • RQ3What is the impact of different augmentation types (AnsAug, Rephrase, SV, FOBAR) on fine-tuning outcomes?
  • RQ4Do backward-reasoning enhancements transfer to improved performance on standard benchmarks?

Key findings

  • MetaMath achieves state-of-the-art open-source results on GSM8K and MATH across 7B, 13B, and 70B families.
  • MetaMath-7B attains 66.5% on GSM8K and 19.8% on MATH, beating previous open-source models by 11.5% and 8.7%.
  • MetaMath-70B reaches 82.3% on GSM8K, slightly better than GPT-3.5-Turbo.
  • On open-source scales (11-50B), MetaMath is the best among peers; on 51-70B, MetaMath again achieves the highest scores.
  • Diversity in bootstrapped questions correlates positively with accuracy (Pearson 0.972).
  • Backward reasoning augmentations (SV, FOBAR) significantly improve backward mathematical capability and overall performance.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.