[Paper Review] Learning to Prove Theorems by Learning to Generate Theorems
This paper proposes MetaGen, a learnable neural generator that synthesizes synthetic theorems and proofs to augment limited human-written training data for automated theorem proving in Metamath. By training the generator on human proofs via imitation learning or reinforcement learning with a GAN-like discriminator, the method significantly improves theorem prover performance, advancing the state of the art on set.mm and iset.mm benchmarks by proving more theorems than prior methods.
We consider the task of automated theorem proving, a key AI task. Deep learning has shown promise for training theorem provers, but there are limited human-written theorems and proofs available for supervised learning. To address this limitation, we propose to learn a neural generator that automatically synthesizes theorems and proofs for the purpose of training a theorem prover. Experiments on real-world tasks demonstrate that synthetic data from our approach improves the theorem prover and advances the state of the art of automated theorem proving in Metamath. Code is available at https://github.com/princeton-vl/MetaGen.
Motivation & Objective
- To address the scarcity of human-written formal proofs in formal languages like Metamath, which limits supervised training of theorem provers.
- To develop a neural generator that automatically synthesizes high-quality, diverse theorems and proofs for training theorem provers.
- To improve theorem prover performance by augmenting limited human data with synthetic data generated via a learnable generator.
- To explore two training paradigms: imitation learning from human proofs and reinforcement learning with a GAN-style discriminator to align synthetic theorems with human-like patterns.
Proposed method
- Train a neural generator (MetaGen) to synthesize new theorems and proofs by performing symbol manipulations similar to a prover, using inference rules on existing theorems.
- Use imitation learning to train the generator to follow human proof steps in the forward direction when full proofs are available.
- Use reinforcement learning with a discriminator to guide the generator toward producing synthetic theorems that are similar to human-written ones when only statements are available.
- Incorporate a GAN-like training objective where the discriminator distinguishes between real human theorems and synthetic ones, encouraging the generator to produce realistic, useful theorems.
- Integrate the synthetic data into the Holophrasm neural prover, fine-tuning its relevance and substitution networks for improved proof search.
- Evaluate the prover on standard Metamath benchmarks (set.mm and iset.mm) using standard protocols to compare performance with baselines and ablations.
Experimental results
Research questions
- RQ1Can a learnable neural generator produce synthetic theorems and proofs that effectively improve theorem prover performance?
- RQ2Does synthetic data generated via imitation learning or reinforcement learning with a discriminator lead to better generalization than human-only data?
- RQ3How does the quality of synthetic data compare to human data in terms of improving the relevance and substitution networks of a neural prover?
- RQ4To what extent can synthetic data reduce reliance on expensive human-written proofs while maintaining or improving proof completion rates?
Key findings
- The prover trained on synthetic data from MetaGen proved 600 theorems on the iset.mm benchmark, outperforming the original Holophrasm and achieving state-of-the-art performance.
- On set.mm, a prover trained with 10% human proofs and synthetic data proved 472 theorems, nearly matching the 476 proved by a model trained on 100% human data.
- The relevance network of the prover achieved higher top-k accuracy and mean reciprocal rank when trained on synthetic data, with the best results from the learnable generator.
- The substitution network showed improved accuracy and normalized probability scores when trained on synthetic data, especially with the learnable generator.
- Removing trivial proof steps from training data increased the number of proved theorems from 574 to 600, indicating data quality matters.
- The GPU-optimized re-implementation of Holophrasm proved 557 theorems on set.mm, exceeding the number reported in the original Whalen (2016) work.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.