Formal Mathematics Statement Curriculum Learning

Stanislas Polu, Jesse Michael Han, Kunhao Zheng, Mantas Baksys, Igor Babuschkin, Ilya Sutskever

TL;DR

Researchers have demonstrated that AI can master complex formal mathematics through "expert iteration"—a process of interleaving proof search with learning. By providing a curriculum of increasingly difficult mathematical statements without associated proofs, the model learns to solve challenging high school olympiad problems, setting a new state-of-the-art on the miniF2F benchmark.

The Challenge of Formal Mathematics

Deep learning has revolutionized language and vision, but symbolic reasoning and long-term planning remain significant hurdles. Formal mathematics is an ideal "game-like" domain for testing these abilities because proofs are machine-verifiable. However, it presents two unique challenges:

  1. Infinite Action Space: Unlike Go or Chess, where moves are chosen from a finite set, a math prover must generate complex "tactics" and mathematical terms (like proposing a specific number as a witness) from an infinite pool of possibilities.
  2. No Direct Self-Play: In games, you can improve by playing against a slightly better version of yourself. In math, you are "playing" against a static statement. If the statement is too hard, the model simply fails and learns nothing.

The authors address how to create a "self-play-like" improvement loop in a domain where the "opponent" doesn't hit back.

Methods: Expert Iteration

The core technique is Expert Iteration. The process works in a continuous loop:

  • Proof Search (Sampling): The model attempts to prove a large set of formal statements using a best-first search procedure.
  • Learning (Fine-tuning): Successful proofs are added to the training set. The model is then fine-tuned on these new "expert" trajectories.
Performance comparison of Expert Iteration versus Sample Only and Adjusted Compute on mathlib and miniF2F benchmarks.

To guide the search, the authors use two training objectives: a Proofstep Objective (predicting the next mathematical tactic to apply) and a Proofsize Objective (a novel value function that estimates the number of steps remaining to complete a proof). Instead of a simple "win/loss" binary, this "bucketed" estimate helps the model prioritize shorter, more efficient paths.

Curriculum Learning: Statements are Cheaper than Proofs

Crucially, the authors show that if you provide a curriculum of statements of varying difficulty, the model can "hill-climb" the difficulty gradient. Formalizing a math problem is much easier than writing a formal proof for it. This paper shows that just having the questions is enough for the AI to teach itself the answers, provided the questions are graded in difficulty.

Expert Iteration successfully bootstraps performance across increasing difficulty levels (0-6) compared to sampling alone.

In synthetic inequality tests, the model successfully solved problems at "Difficulty Level 6" despite never being shown a single human proof for that level. It "bootstrapped" its way there from Level 1, solving the easy problems first, using those proofs to become smarter, and eventually tackling problems that were previously out of reach.

Key Results and Datasets

The model, a 774M parameter Transformer, was trained and evaluated on datasets including mathlib, WebMath, and miniF2F. It achieved significant leaps in performance:

  • State-of-the-Art: It reached a 36.6% pass rate on the miniF2F-test set, a substantial improvement over previous methods.
  • Olympiad Success: It automatically solved multiple challenging problems from high school competitions, including 26 AMC12 problems, 6 AIME problems, and 2 adapted IMO problems.
  • Proof Efficiency: Expert iteration didn't just help the model solve more problems; it helped it find shorter proofs. On mathlib-train, the average proof length dropped from 4.8 to 4.0 steps over nine iterations.
  • Distinctive "Machine" Style: The model often finds proofs that are structurally different from human ones. It leverages high-powered tactics (like nlinarith for non-linear inequalities) in ways that humans find difficult to track but are perfectly valid and often more concise.

Limitations and Future Work

Despite these successes, the authors note that the model still struggles with "deep" reasoning. It generally cannot chain more than 2 or 3 non-trivial, creative steps of mathematical reasoning. While it can use powerful automated tactics to close a goal, it lacks the "stamina" for the extremely long, multi-stage proofs required for the highest levels of professional mathematics.

Future work will likely focus on improving the model's ability to generate "cuts" (intermediate lemmas) and scaling the automated generation of statement curricula to further bridge the gap between high school and research-level mathematics.

Summary updated

BibTeX
@inproceedings{polu2023formal,
  author = {Stanislas Polu and Jesse Michael Han and Kunhao Zheng and Mantas Baksys and Igor Babuschkin and Ilya Sutskever},
  title = {{Formal Mathematics Statement Curriculum Learning}},
  booktitle = {International Conference on Learning Representations},
  year = {2023},
  url = {https://openreview.net/forum?id=-P7G-8dmSh4},
}
Figure