TL;DR
Goedel-Prover is a new open-source AI model that achieves state-of-the-art performance in automatically generating formal mathematical proofs. By creating a massive dataset of formalized problems and using an iterative training approach, it significantly outperforms previous models, even those using more complex reinforcement learning techniques.
What Problem Does This Paper Address?
Automated theorem proving (ATP) is a crucial area for verifying mathematical reasoning, but it's hampered by a scarcity of formalized mathematical statements and proofs. Existing datasets are often small or don't align well with general problem-solving benchmarks. This lack of data makes it difficult to train powerful AI models for this task. The authors aim to overcome this data bottleneck by creating a large-scale, high-quality dataset and developing a robust model that can generate formal proofs for complex mathematical problems.
Methods
The core of Goedel-Prover's success lies in a two-pronged approach:
- Autoformalization: They trained two "formalizer" models to translate natural language math problems (from the Numina dataset and a private collection) into the formal language Lean 4. Crucially, they also used an LLM to verify that these formal statements accurately captured the original problem's intent, leading to a dataset of 1.64 million formal statements.
- Expert Iteration: This is an iterative training process. They start with a strong base model (DeepSeek-Prover-V1.5-Base) and use it to generate proofs for their formalized statements. These generated proofs are then verified by the Lean compiler. The correct proofs are used to fine-tune the model, creating a new, improved "iter-k" prover. This process is repeated, with each iteration building upon the previous one and generating more complex proofs, effectively creating a large dataset of verified formal proofs.
Datasets
- Training Data:
- Numina: A large dataset of natural language math problems.
- Lean Workbook: A dataset of formalized math problems.
- Private AOPS dataset: Another collection of math problems.
- Mathlib4: A dataset of formalized mathematical definitions and theorems.
- Evaluation Benchmarks:
- miniF2F: A benchmark for formal theorem proving, consisting of problems from high-school exercises and math competitions.
- PutnamBench: A benchmark of problems from the William Lowell Putnam Mathematical Competition.
- ProofNet: A benchmark of undergraduate-level mathematics problems.
- NuminaTest: A held-out subset of their formalized Numina dataset.
- Lean Workbook: Used to track the number of new proofs discovered.
Key Insights and Ideas
- Diversity in Formalization Matters: Using statements formalized by different models (Formalizer A and B) improved performance, suggesting that diverse formalization styles lead to better generalization.
- Scale is Key: Increasing the size of the formalized statement dataset consistently improved model performance, highlighting the importance of large-scale data for training effective provers.
- SFT Outperforms RL (in this case): Despite exploring reinforcement learning (DPO/GRPO), the authors found that their supervised fine-tuning (SFT) approach on high-quality data achieved superior results and was less prone to "reward hacking" or overfitting to shortcuts.
- Proof Style Differences: Goedel-Prover-SFT tends to use more interpretable "have" tactics for structured proofs, contrasting with baseline models that rely more heavily on opaque automation tactics like "norm_num."
- Dataset Distribution Shifts: Performance on ProofNet showed a negative correlation with other benchmarks, suggesting a distribution shift between competition-style problems (miniF2F, Lean Workbook) and more abstract mathematical concepts (ProofNet, Mathlib4).
Key Results
- State-of-the-Art Performance: Goedel-Prover-SFT achieved a 57.6% Pass@32 on miniF2F, surpassing the previous SOTA open-source model (DeepSeek-Prover-V1.5-RL) by 7.6%.
- Leaderboard Topping: It ranked first on the PutnamBench leaderboard, solving 7 problems with Pass@512.
- New Proofs: Discovered 29.7K new proofs for Lean Workbook problems, nearly doubling the previous record.
- Efficiency: Even with SFT, Goedel-Prover-SFT showed significant improvements across various inference compute budgets compared to baselines.
- RL Exploration: While DPO/GRPO showed some improvement in Pass@32, they led to longer proofs and potential overfitting to shortcuts.
Limitations and Future Work
- RL Overfitting: The authors noted that RL-trained models can overfit to "shortcuts" (like the
trytactic) and benefit less from increased inference compute. - Proof Style: The reliance on high-level tactics like
nlinarithandsimp_allis effective but raises questions about its sufficiency for highly complex reasoning. - Future Directions:
- Online Interaction: Incorporating interaction with the Lean compiler for feedback during proof generation.
- External Tools: Integrating symbolic computation tools like SymPy to handle complex algebraic and transcendental function simplifications.
- Stepwise Provers: Adapting their methodology to develop stepwise proof generation.
- Dynamic Proof Generation: Exploring more dynamic proof generation strategies.
Summary updated