MetaMath: Bootstrap Your Own Mathematical Questions for Large Language Models

L. Yu, Weisen Jiang, Han Shi, Jincheng Yu, Zhengying Liu +5 more
2/12/2026

No official code found. Best implementation: meta-math/MetaMath (455 stars, Apache-2.0, last commit 2024-02-01).

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.

View on arXivView PDF

Code Implementations(1)

meta-math/MetaMathCommunity100%
Apache-2.0

MetaMath: Bootstrap Your Own Mathematical Questions for Large Language Models

45542Shell, PythonSep 21, 20232 years agoApache-2.0

Similar Papers

Cite this paper

@article{yu2026metamath,
  title  = {MetaMath: Bootstrap Your Own Mathematical Questions for Large Language Models},
  author = {L. Yu and Weisen Jiang and Han Shi and Jincheng Yu and Zhengying Liu and Yu Zhang and James T. Kwok and Zheng Li and Adrian Weller and Weiyang Liu},
  year   = {2026},
  eprint = {2309.12284},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2309.12284},
  journal = {ICLR 2023 2023}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2309.12284.svg)](https://codeofpaper.com/paper/2309.12284)

Discussion