atlas

Research map / Large language models / Instruction and fine-tuning

MAmmoTH2: Scaling Instructions from the Web

NeurIPS 2024 · Large language models › Instruction and fine-tuning · approach: Fine-tuning for reasoning data · 2 citations (OpenAlex)

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.

Mines ~10M instruction-response pairs from Common Crawl via fastText recall, LLM extraction, and LLM refinement (WebInstruct), then fine-tunes base LLMs into MAmmoTH2 models that gain strongly on held-out reasoning benchmarks.

Problem

Instruction tuning data for LLM reasoning is usually small and human-written or GPT-4 synthesized, which limits scale, diversity and quality; the paper asks whether high-quality instruction data already exists naturally in the web pre-training corpus.

Approach

A three-step pipeline (fastText-based recall of domain-relevant Common Crawl documents with GPT-3.5/4 domain filtering, LLM-based extraction of naturally occurring Q-A pairs, and LLM refinement that completes reasoning steps) harvests web instruction data without human annotation or GPT-4 distillation.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Train Mistral-7B on WebInstructMistral-7B · Reasoning benchmarks (average)accuracy: +14.0 AVGHelped
Continue WebInstruct training with additional public instruction datasets (ablation)Mistral-7B trained on WebInstruct · Reasoning benchmarks (average)accuracy: 52.8 -> 58.0Helped
Merge data refined by Mixtral and Qwen (ablation)Mistral-7B trained on refined data · GSM8Kaccuracy: 62.9 / 65.4 -> 65.6Helped
Merge data refined by Mixtral and Qwen (ablation)Mistral-7B trained on refined data · MATHaccuracy: 29.1 / 28.9 -> 31.0Helped
Use education-source data rather than forum-source data (ablation)Mistral-7B · GSM8Kaccuracy: 51.0 -> 58.0Helped
Use education-source data rather than forum-source data (ablation)Mistral-7B · MATHaccuracy: 24.0 -> 24.8Helped
Train on Math-domain data (ablation)Mistral-7B · MATHaccuracy: 15.7 -> 27.3Helped
Train on Math-domain data (ablation)Mistral-7B · ARC-Caccuracy: 77.6 -> 74.1Hurt
Train on Science-domain data (ablation)Mistral-7B · ARC-Caccuracy: 77.6 -> 83.6Helped
Train on diverse Other-domain data (ablation)Mistral-7B · GSM8Kaccuracy: 47.4 -> 59.4Helped
Continue WebInstruct training with additional public instruction datasets (ablation)Mixtral-8x7B trained on WebInstruct · Reasoning benchmarks (average)accuracy: 58.9 -> 62.9Helped

Surprising findings

Limitations

Experimental setup

Datasets: WebInstruct OpenHermes 2.5 Code-Feedback Math-Plus (MetaMathQA, Orca-Math) Common Crawl GSM8K MATH TheoremQA BBH ARC-C GPQA MMLU-STEM

Benchmarks: TheoremQA MATH GSM8K GPQA MMLU-STEM BBH ARC-C HumanEval MBPP MMLU MMLU-Pro MT-Bench

Metrics: accuracy pass@1 win rate average score

Baselines: Mixtral-8x7B-Instruct Llama-3-8B-Instruct Qwen-1.5-110B Qwen-1.5-72B Deepseek-Math-Instruct WizardMath-7B-1.1 Mistral-7B-Instruct-v0.2 GPT-4-Turbo-0409

Builds on: fastText DeepSeekMath recall pipeline LLaMA-Factory DeepSpeed ZeRO MetaMathQA Orca-Math

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