Skip to main content
QUICK REVIEW

[Paper Review] HyperTree Proof Search for Neural Theorem Proving

Guillaume Lample, Marie-Anne Lachaux|arXiv (Cornell University)|May 23, 2022
Natural Language Processing TechniquesComputer Science24 citations
TL;DR

The paper introduces HyperTree Proof Search (HTPS), an online-training framework for a transformer-based automated theorem prover, achieving state-of-the-art results on Metamath and Lean by combining a new HTPS algorithm with online self-improvement.

ABSTRACT

We propose an online training procedure for a transformer-based automated theorem prover. Our approach leverages a new search algorithm, HyperTree Proof Search (HTPS), inspired by the recent success of AlphaZero. Our model learns from previous proof searches through online training, allowing it to generalize to domains far from the training distribution. We report detailed ablations of our pipeline's main components by studying performance on three environments of increasing complexity. In particular, we show that with HTPS alone, a model trained on annotated proofs manages to prove 65.4% of a held-out set of Metamath theorems, significantly outperforming the previous state of the art of 56.5% by GPT-f. Online training on these unproved theorems increases accuracy to 82.6%. With a similar computational budget, we improve the state of the art on the Lean-based miniF2F-curriculum dataset from 31% to 42% proving accuracy.

Motivation & Objective

  • Motivate automated theorem proving that scales to complex formal systems using online learning and search.
  • Develop a novel HTPS search algorithm operating on proof hypertrees to efficiently expand subgoals.
  • Enable online training where policy and critic models learn from ongoing proof searches to improve generalization.
  • Evaluate the approach across multiple proving environments (Metamath, Lean, and Equations) and perform thorough ablations.

Proposed method

  • Introduce HyperTree Proof Search (HTPS), an MCTS-inspired search over a proof hypergraph instead of a single path.
  • Use a policy model to propose tactics and a critic model to estimate solvability, with HTPS expanding leaves and back-propagating values over hypertrees.
  • Represent proofs as hypertrees rooted at the theorem, with edges as tactics and nodes as subgoals.
  • Train policy and critic via online training; policy minimizes tactic prediction loss while critic minimizes a binary/probability-based loss for provable vs unprovable states.
  • Pretrain on large unsupervised LaTeX data (MASS objective), then fine-tune on supervised datasets per environment, followed by online training from proof searches.
  • Sample training data from proving runs: tactic samples from successful proofs and critic targets from solved/invalid/internal nodes, with a distributed data-parallel training setup.

Experimental results

Research questions

  • RQ1Can HTPS effectively search unbalanced hypergraphs to find proofs for complex theorems?
  • RQ2Does online training (policy and critic) significantly improve theorem-proving performance across diverse environments?
  • RQ3What is the impact of training data selection and ablations on proof success and generalization to out-of-domain problems?
  • RQ4How does HTPS perform relative to state-of-the-art methods (e.g., GPT-f) on Metamath and Lean datasets?

Key findings

  • HTPS with online training solves 82.6% of Metamath theorems in a held-out set (set.mm) and 58.6% on Lean miniF2F-valid, surpassing prior state-of-the-art.
  • Without online training, HTPS dramatically drops performance, highlighting the importance of online self-improvement.
  • On Lean, HTPS improves miniF2F-curriculum pass rates from 31% (baselines) to 42%, and final evaluation reaches 41% on miniF2F-test (pass@64).
  • For Metamath, HTPS with online training achieves substantial gains over the GPT-f baseline (e.g., 65.4% with HTPS alone vs 56.5% prior), with online training pushing accuracy further to 82.6%.
  • The approach is validated via ablations across three environments (Metamath, Lean, Equations) and shows strong generalization and data-efficiency.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.