TL;DR
Neural theorem provers struggle with complex problems due to a lack of relevant training data. This paper introduces an evolutionary approach to automated conjecturing, where new, targeted mathematical problems (conjectures) are generated to specifically improve a theorem prover's performance on a difficult set of existing problems. Preliminary results show a significant boost in proof success rates on these challenging problems.
What Problem Does This Paper Address?
Modern neural theorem provers have made impressive strides, but their performance often plateaus when faced with truly difficult mathematical problems. This limitation stems from a reliance on large datasets of formal proofs, which are scarce for advanced mathematics. While autoformalization can generate vast amounts of data, it's still constrained by existing human-generated mathematics. The core challenge is how to effectively generate new training data that specifically targets and overcomes the prover's weaknesses on hard problems, rather than just increasing the sheer volume of data.
Methods
The paper proposes an evolutionary algorithm for automated conjecturing. Here's how it works:
- Conjecturer Model: A specialized neural network (the "Conjecturer") is trained to generate new mathematical statements (conjectures). Crucially, it's trained to produce conjectures whose proofs are similar in topic and difficulty to existing proofs, ensuring smooth learning transitions for the prover. This is achieved by using the prover's internal representations of proofs to find similar examples for training.
- Base Prover Model: A neural theorem prover (the "Prover") is initially trained on a dataset of formal proofs.
- Evolutionary Loop:
- Generation: For each "seed" problem (a problem the prover can already solve), the Conjecturer generates a set of new conjectures.
- Training: Separate instances of the Prover are trained on these generated conjectures using a reinforcement learning algorithm (GRPO).
- Evaluation: Each trained Prover instance is evaluated on a fixed "target set" of difficult problems that the original Prover struggled with. Performance is measured by how many proofs are found.
- Selection: The conjectures that led to the most significant improvements in the Prover's performance on the target set are selected. The focus is on conjectures that help solve new problems, not just reinforce existing successes.
- Update: The selected conjectures become the new "seeds" for the next iteration, and the base Prover is further trained with them. This process repeats, iteratively refining the conjectures and improving the Prover.
Datasets
- Training Data for Prover: 130,000 formalized proofs of competition-style problems (provided by Numina).
- Training Data for Conjecturer: Constructed from the Prover's training data by finding pairs of proofs with high cosine similarity in their embeddings. This resulted in approximately 120,000 pairs.
- Evaluation Data:
- Held-out test set: 2,000 problems used to evaluate the initial Prover's performance and select seeds/target sets.
- Target Set: A curated set of 49 complex number problems from the held-out set that the initial Prover failed to solve in 16 attempts.
- Seed Set: 16 problems from the held-out set that the Prover could solve reliably (at least 8 out of 16 attempts), chosen to represent a broad range of topics.
Key Insights and Ideas
- Targeted Conjecture Generation: The core innovation is generating conjectures specifically tailored to improve performance on a defined set of difficult problems. This is a departure from methods that generate general-purpose or human-like conjectures.
- Evolutionary Improvement: An evolutionary approach allows for iterative refinement. By feeding back the performance gains on the target set, the system learns to produce increasingly effective conjectures over time.
- Similarity-Based Conjecturer Training: Training the Conjecturer to produce proofs similar to existing ones is key. This ensures that the generated problems are "in the same neighborhood" as what the prover already understands, facilitating learning.
- Focus on "Unsolved" Progress: Prioritizing conjectures that help solve previously unsolved problems over those that merely reinforce already-solved ones is crucial for genuine improvement on hard tasks.
Key Results
Preliminary results show a significant improvement in the Prover's performance on the target set of complex number problems.
- The initial Prover (baseline) had a 8.2% pass@16 success rate on the target set, solving 5 total proofs.
- After five iterations of the evolutionary conjecturing process, the Prover's success rate increased to 28.6% pass@16, solving 46 total proofs. This represents a substantial jump from 8% to 29%.
Limitations and Future Work
- Scalability: The authors suggest scaling the method by increasing the number of conjectures, seeds, or model sizes.
- Automatic Seed/Target Selection: Future work could automate the selection of seed and target problems using clustering techniques on problem embeddings. This could lead to more principled and scalable selection processes.
- Generalization: Testing the method on diverse target sets is planned to assess its generality.
- Integration with Other Methods: The approach could be combined with techniques like test-time reinforcement learning (e.g., from AlphaProof) by using the target-set generation to enhance a single difficult theorem.
- Narrow Distribution: The effectiveness relies on the target set being from a narrow distribution. If the target set is too broad, the system might struggle to learn effectively.
Summary updated