[Paper Review] Training a First-Order Theorem Prover from Synthetic Data
This paper proposes training a first-order theorem prover using only synthetically generated theorems, avoiding human-annotated data. By generating valid theorems via a forward proposer and distilling search policies through neural guidance, the prover outperforms E-prover on synthetic data and achieves 72% success on unseen TPTP problems without equality, demonstrating strong zero-shot transfer.
A major challenge in applying machine learning to automated theorem proving is the scarcity of training data, which is a key ingredient in training successful deep learning models. To tackle this problem, we propose an approach that relies on training purely with synthetically generated theorems, without any human data aside from axioms. We use these theorems to train a neurally-guided saturation-based prover. Our neural prover outperforms the state-of-the-art E-prover on this synthetic data in both time and search steps, and shows significant transfer to the unseen human-written theorems from the TPTP library, where it solves 72\% of first-order problems without equality.
Motivation & Objective
- To address the scarcity of training data in neural theorem proving by generating synthetic theorems instead of relying on human-annotated formalizations.
- To train a neurally-guided saturation-based prover using only synthetic data, with no human-provided proofs or examples.
- To evaluate whether a prover trained on synthetic data can generalize to real-world, human-written theorems from the TPTP library.
- To optimize the synthetic data generation process for diversity, difficulty, and size to maximize transfer performance.
Proposed method
- A forward proposer generates synthetic theorems by applying linear resolution to axioms, biased toward smaller clauses using a softmax over clause size.
- The prover uses a given-clause algorithm with a neural cost function that combines clause probability predictions and clause size, with a 64:1 ratio favoring size in early training.
- A search distillation technique similar to AlphaZero is used to train the neural cost function via self-play on synthetic problems.
- The neural network is trained using a replay buffer with experience from multiple actors, using either an MLP or Transformer architecture on clause features.
- Clause features include literal counts, symbol counts, predicate/functor/variable diversity, and inference metadata, encoded into fixed-size vectors.
- The system uses a priority queue for clause selection and applies forward and backward subsumption to maintain proof state efficiency.
Experimental results
Research questions
- RQ1Can a first-order theorem prover be effectively trained using only synthetic theorems, without any human-annotated proofs?
- RQ2Does a prover trained on synthetic data generalize to real-world, human-written theorems from the TPTP library?
- RQ3How do synthetic data generation parameters (number of steps, temperature) affect transfer performance to real problems?
- RQ4What is the impact of neural guidance on search efficiency compared to baseline provers like E-prover?
Key findings
- The neural prover outperforms the state-of-the-art E-prover on the synthetic training distribution, solving more problems in less time and with fewer search steps.
- On the unseen TPTP test set of first-order problems without equality, the best-trained prover achieves a 72% success rate, a significant improvement over the 42% baseline of the non-learning prover.
- The system demonstrates strong zero-shot transfer, solving 72% of TPTP problems without any exposure to TPTP data during training.
- The forward proposer's hyperparameters were tuned via proxy metrics (size, difficulty, diversity), with a cap on mean clause size at 64 and a requirement for at least 500,000 unique theorems per setting.
- The Transformer-based neural cost function outperformed the MLP in transfer performance, though both showed strong generalization.
- Extending training beyond two days yielded no further improvement for the MLP, indicating convergence, while the Transformer model showed sustained gains.
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.