atlas

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

MUSTARD: Mastering Uniform Synthesis of Theorem and Proof Data

ICLR 2024 · Large language models › Agents, code and math · approach: Formal verification and proof data · 0 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.

Proposes MUSTARD, a concept-seeded LLM (GPT-4) pipeline that generates math problems with informal and Lean 3 formal proofs, filters them with the Lean prover and error-driven revision, and releases a 7,335-point dataset used to fine-tune Llama 2-7B and GPT2-large with LoRA.

Problem

Obtaining large-scale, high-quality step-wise theorem-proving and math word problem data with verified intermediate steps is costly, since manual annotation is small-scale and rule-based synthesis yields meaningless proofs.

Approach

Sample Khan Academy math concept seeds, have GPT-4 generate problem, informal proof and Lean 3 formal proof in one pass, then use the Lean prover's error messages to iteratively revise the formal proof and keep only prover-validated samples; the number of revision rounds serves as a difficulty measure.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Fine-tune on MUSTARDSAUCE-valid rather than MUSTARDSAUCE-randomLlama 2-7B · Mathlibpass@1: 7.5 -> 8.7; (+16.00%)Helped
Fine-tune on MUSTARDSAUCE-valid rather than MUSTARDSAUCE-randomLlama 2-7B · miniF2Fpass@1: 2.5 -> 2.9; (+16.00%)Helped
Fine-tune on MUSTARDSAUCE-valid rather than MUSTARDSAUCE-randomLlama 2-7B · MUSTARDSAUCE-valid testpass@1: 10.4 -> 12.2; (+17.31%)Helped
Fine-tune on MUSTARDSAUCE-valid rather than MUSTARDSAUCE-randomLlama 2-7B · GSM8K zero-shotMaj1@1: 8.9 -> 9.1Helped
Fine-tune on all generated data instead of the valid subsetLlama 2-7B · Mathlibpass@1: 8.7 -> 8.3Hurt
Fine-tune on all generated data instead of the valid subsetLlama 2-7B · GSM8K zero-shotMaj1@1: 9.1 -> 9.0No clear effect
Add 1 prover-feedback correction (ablation)GPT-4 formal proof generation · Theorem proving, elementary, 1 seed conceptpass@1: 26.0 -> 48.0 (+22.0)Helped
Add 2 prover-feedback corrections (ablation)GPT-4 formal proof generation · Theorem proving, elementary, 1 seed conceptpass@1: 26.0 -> 55.9 (+33.9)Helped
Add 2 prover-feedback corrections (ablation)GPT-4 formal proof generation · Word problem, elementary, 1 seed conceptpass@1: 38.0 -> 67.0 (+45.3)Helped
Use step-by-step rather than all-at-once proof generation (ablation)GPT-4 · Higher-education theorem provingpass@1: 2.1 -> 3.0Mixed
Fine-tune on mathlib after MUSTARDSAUCE-valid rather than before it (ablation)Llama 2-7B · MUSTARDSAUCE-valid testpass@1: 13.8 -> 14.4Helped
Lean Prover validation of generated dataMUSTARDSAUCE data · Human evaluation, informal proof correctnessaccuracy: 73.50 -> 88.50; p-value 0.00012Helped

Surprising findings

Limitations

Experimental setup

Datasets: MUSTARD (generated) GSM8K MATH (PRM800K test split) mathlib miniF2F

Benchmarks: GSM8K MATH mathlib miniF2F MUSTARD-test

Metrics: maj1@1 pass@1 ROUGE-L human-rated accuracy per dimension p-value

Baselines: GPT2-large Llama 2-7B INT

Builds on: LoRA miniF2F GSM8K Lean Prover

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