atlas

Research map / Large language models / Agents, code and math

MetaMath: Bootstrap Your Own Mathematical Questions for Large Language Models

ICLR 2024 · Large language models › Agents, code and math · approach: Mathematical and structural reasoning benchmarks

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Bootstraps GSM8K and MATH questions via LLM rephrasing, backward reasoning (SV, FOBAR) and answer augmentation into MetaMathQA, then fine-tunes LLaMA-2 into MetaMath models that set new open-source results on GSM8K and MATH.

Problem

Open-source LLMs such as LLaMA-2 perform poorly on mathematical reasoning (GSM8K, MATH), and existing finetuning data is limited in question diversity and lacks backward reasoning questions.

Approach

Augment the math training set along two axes: rephrase questions and create backward-reasoning questions (masking a number as x, via Self-Verification and FOBAR) while also sampling multiple correct answer paths, then finetune LLaMA-2 on the merged MetaMathQA dataset.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Finetune on MetaMathQA instead of the original base modelLLaMA-2-7B · GSM8Kaccuracy: 14.6 -> 66.5Helped
Finetune on MetaMathQA instead of the original base modelLLaMA-2-7B · MATHaccuracy: 2.5 -> 19.8Helped
Add rephrasing to answer augmentation (ablation)LLaMA-2-7B trained on GSM8K · GSM8Kaccuracy: 59.6 -> 60.6Helped
Add self-verification and FOBAR to answer augmentation and rephrasing (ablation)LLaMA-2-7B trained on GSM8K · GSM8Kaccuracy: 60.6 -> 64.4Helped
Add self-verification and FOBAR to answer augmentation and rephrasing (ablation)LLaMA-2-7B trained on GSM8K · MATHaccuracy: 4.4 -> 5.7Helped
Add rephrasing to answer augmentation (ablation)LLaMA-2-7B trained on MATH · GSM8Kaccuracy: 28.4 -> 29.1Helped
Add self-verification and FOBAR to answer augmentation and rephrasing (ablation)LLaMA-2-7B trained on MATH · GSM8Kaccuracy: 29.1 -> 34.6Helped
Add self-verification and FOBAR to answer augmentation and rephrasing (ablation)LLaMA-2-7B trained on MATH · MATHaccuracy: 15.3 -> 17.7Helped
Add 20K answer-augmentation examples (ablation)LLaMA-2-7B · GSM8Kaccuracy: +0.1%No clear effect
Add 20K rephrasing examples (ablation)LLaMA-2-7B · GSM8Kaccuracy: 0.4%Helped
Add 20K FOBAR examples (ablation)LLaMA-2-7B · GSM8Kaccuracy: 2.3%Helped
Add 20K self-verification examples (ablation)LLaMA-2-7B · GSM8Kaccuracy: 2.6%Helped

Surprising findings

Limitations

Experimental setup

Datasets: GSM8K MATH

Benchmarks: GSM8K MATH DROP GSM8K-Backward Game of 24

Metrics: accuracy

Baselines: GPT-3.5-Turbo GPT-4 PaLM-2 Minerva WizardMath RFT SFT MAmmoTH Platypus Code-LLaMA

Builds on: Self-Verification FOBAR Rejection sampling fine-tuning (RFT) QLoRA Complexity-based CoT

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy