atlas

Research map / Large language models / Reasoning and chain of thought

MAmmoTH: Building Math Generalist Models through Hybrid Instruction Tuning

ICLR 2024 · Large language models › Reasoning and chain of thought · approach: Theory of autoregressive reasoning

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.

Introduces MAmmoTH, Llama-2 and Code Llama models instruction-tuned on MathInstruct (260K hybrid CoT/PoT math rationales) that generalize across in-domain and out-of-domain math benchmarks.

Problem

Open-source LLMs lag closed models on math reasoning, and dataset-specific fine-tuning (RFT, WizardMath) improves in-domain math but hurts out-of-domain generalization.

Approach

Combine broad-coverage math datasets with hybrid chain-of-thought and program-of-thought rationales (six newly GPT-4-curated) in one instruction-tuning mix, and decode PoT first with CoT fallback when the program is not executable.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use hybrid CoT and PoT training instead of CoT-only training (ablation)MAmmoTH-7B · All nine evaluation datasetsaverage accuracy: 32.0 -> 47.9Helped
Use hybrid CoT and PoT training instead of PoT-only training (ablation)MAmmoTH-7B · All nine evaluation datasetsaverage accuracy: 41.0 -> 47.9Helped
Train on the CoT subset instead of WizardMath's dataset-specific data (ablation)MAmmoTH-7B · All nine evaluation datasetsaverage accuracy: 27% to 32%Helped
Train on the CoT subset instead of WizardMath's dataset-specific data (ablation)MAmmoTH-7B · GSM8K and MATHaccuracy: 3%Hurt
Train on the PoT subset instead of WizardMath's dataset-specific data (ablation)MAmmoTH-7B · All nine evaluation datasetsoverall accuracy: 27% to 41%Helped
Use hybrid decoding rather than CoT decoding (ablation)MAmmoTH-7B · All nine evaluation datasetsaverage accuracy: 33.0 -> 47.9Helped
Use hybrid decoding rather than PoT decoding (ablation)MAmmoTH-7B · All nine evaluation datasetsaverage accuracy: 46.1 -> 47.9Helped
Add the six newly curated rationale datasets (ablation)MAmmoTH-7B · All nine evaluation datasetsoverall accuracy: 9% overall increaseHelped
Add diverse math datasets beyond GSM8K (ablation)MAmmoTH-7B · All nine evaluation datasetsaverage accuracy: 22.7 -> 19.5 -> 19.2 -> -4.8 -> -3.4 -> 47.9Helped
Fine-tune Code-Llama rather than Llama-2, using MathInstructMAmmoTH-7B · All nine evaluation datasetsaverage accuracy: +4Helped

Surprising findings

Limitations

Experimental setup

Datasets: MathInstruct GSM8K MATH AQuA-RAT TheoremQA Camel-Math MathQA NumGLUE

Benchmarks: GSM8K MATH AQuA-RAT NumGLUE SVAMP Mathematics SimulEq SAT-Math MMLU-Math

Metrics: accuracy

Baselines: WizardMath Platypus Code Llama (PoT) RFT GPT-4 PaLM-2 Claude-2 Galactica Vicuna-1.5 Tulu

Builds on: WizardMath Program-of-Thought PAL Self-Instruct Platypus

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