Skip to main content
QUICK REVIEW

[Paper Review] Proving Theorems using Incremental Learning and Hindsight Experience Replay

Eser Aygün, Laurent Orseau|arXiv (Cornell University)|Dec 20, 2021
Logic, programming, and type systemsComputer Science7 citations
TL;DR

This paper proposes a machine learning-based approach to train domain-specific first-order theorem provers from scratch using incremental learning and hindsight experience replay (HER), enabling the system to learn from failed proof attempts by retroactively generating training examples. The method achieves performance comparable to or better than the state-of-the-art prover E on the TPTP dataset, producing significantly shorter proofs in 98% of cases.

ABSTRACT

Traditional automated theorem provers for first-order logic depend on speed-optimized search and many handcrafted heuristics that are designed to work best over a wide range of domains. Machine learning approaches in literature either depend on these traditional provers to bootstrap themselves or fall short on reaching comparable performance. In this paper, we propose a general incremental learning algorithm for training domain specific provers for first-order logic without equality, based only on a basic given-clause algorithm, but using a learned clause-scoring function. Clauses are represented as graphs and presented to transformer networks with spectral features. To address the sparsity and the initial lack of training data as well as the lack of a natural curriculum, we adapt hindsight experience replay to theorem proving, so as to be able to learn even when no proof can be found. We show that provers trained this way can match and sometimes surpass state-of-the-art traditional provers on the TPTP dataset in terms of both quantity and quality of the proofs.

Motivation & Objective

  • To develop a machine learning framework that trains theorem provers from scratch without relying on pre-existing proofs or high-performing ATP systems.
  • To address the challenge of sparse and unstructured training data in automated theorem proving by leveraging hindsight experience replay to generate auxiliary training examples from failed proof attempts.
  • To improve proof quality by enabling the system to iteratively discover shorter proofs through incremental learning.
  • To demonstrate that a learned clause-scoring function with spectral graph features and transformers can match or surpass heuristic-based provers like E on standard benchmarks.

Proposed method

  • The system uses a basic given-clause algorithm as the core proof engine, with clause scoring guided by a learned transformer-based model.
  • Clauses are represented as graphs with spectral features to encode structural information for the neural network.
  • Hindsight experience replay (HER) is adapted to convert clauses reached during failed proof attempts into new, solvable conjectures, creating synthetic training examples.
  • The model is trained incrementally using a curriculum-like process, where the system proves more conjectures over time, improving its scoring function.
  • A DISCOUNT-based exploration strategy is used to balance exploration and exploitation during proof search.
  • The training process is self-supervised: even when no original conjecture is proven, the system generates new, provable goals from intermediate states, enabling continuous learning.

Experimental results

Research questions

  • RQ1Can a theorem prover be trained from scratch using only a basic proof engine and no pre-existing proofs, relying solely on self-generated training data?
  • RQ2How effective is hindsight experience replay in improving learning efficiency and proof discovery in automated theorem proving?
  • RQ3Can a learned clause-scoring function based on graph-convolutional transformers outperform handcrafted heuristics in a state-of-the-art ATP system like E?
  • RQ4To what extent does incremental learning with HER lead to shorter and higher-quality proofs compared to traditional provers?
  • RQ5Can the proposed method generalize across diverse domains in the TPTP dataset without requiring domain-specific heuristics?

Key findings

  • The incremental learning system with hindsight experience replay (IL w/HER) achieved equal or better performance than the E prover on 16 out of 20 domains in the TPTP dataset.
  • IL w/HER discovered shorter proofs than E in 921 out of 941 conjectures (97.9%) where both systems succeeded, with E's proofs being shorter in only 9 cases.
  • Proofs generated by the system were, on average, 13% shorter after initial discovery, indicating continuous improvement through revisiting and refinement.
  • Without HER, the system stalled on hard domains due to lack of training data, demonstrating HER's critical role in enabling learning from failed attempts.
  • The system generated 1,042 proofs in seven days of training, approaching E’s performance despite using a much simpler proof engine and no pre-existing heuristics.
  • The model achieved comparable proof throughput to E in terms of total proofs found, though E generated clauses 25.6 times faster, highlighting the need for stronger scoring functions to close the speed gap.

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.