Bayesian Optimisation for Premise Selection in Automated Theorem Proving (Student Abstract)

Agnieszka Slowik, Chaitanya Mangla, Mateja Jamnik, Sean B. Holden, Lawrence C. Paulson

Abstract

Automated Theorem Provers (ATPs) face a significant challenge in "search space explosion" when selecting relevant premises from large libraries. While heuristics like the Sumo Inference Engine (SInE) help filter these premises, their performance depends heavily on manually tuned parameters. This paper presents a principled approach using Bayesian Optimisation (BO) with Gaussian Processes to automatically tune these heuristics. Our evaluation across ten articles from the Archive of Formal Proofs (AFP) demonstrates that this framework can find optimal, article-specific parameters in minutes, significantly improving proof success rates compared to static defaults.

The Challenge of Premise Selection

In formal verification, an ATP might have access to thousands of previously proven lemmas. Including too many irrelevant premises slows down the prover, while missing a critical one makes the proof impossible. The SInE heuristic is a standard tool for filtering these premises, but it relies on three key parameters: $t$ (local symbol frequency), $g$ (global symbol frequency), and $k$ (maximum iterations). Historically, these have been set using expert intuition, which fails to account for the diverse nature of different mathematical theories.

Bayesian Optimisation Framework

To move beyond manual tuning, we propose a probabilistic framework based on Bayesian Optimisation. Instead of an exhaustive grid search, we model the heuristic's performance as a Gaussian Process (GP). This creates a surrogate model of the parameter space, allowing the system to predict performance in unexplored regions.

The search is guided by the Upper Confidence Bound (UCB) acquisition function. UCB balances two competing goals:

  1. Exploitation: Searching in areas where the GP predicts high performance.
  2. Exploration: Searching in areas with high uncertainty to improve the model's accuracy.

This approach is particularly well-suited for ATP tasks because it minimizes the number of expensive "black-box" evaluations (running the prover) needed to find an optimal configuration.

Experimental Evaluation

The framework was tested on 10 representative articles from the Archive of Formal Proofs (AFP), including domains like Polynomials, MiniML, and RecursionTheory. Conjectures and ground-truth premises were extracted from Sledgehammer logs. We tuned the continuous parameter $t$ and discrete parameters $g$ and $k$ to maximize a custom metric based on precision and recall, ensuring the filter remains inclusive enough to capture essential premises.

Results and Analysis

The experimental results confirm that Bayesian Optimisation is both efficient and effective. The system found optimal parameters for each article in under nine minutes. Notably, the "optimal" settings varied significantly across different mathematical domains, justifying the need for automated, per-article tuning.

Table 1: Detailed results of the Bayesian Optimisation framework across 10 AFP articles, showing proof success rates, optimization time, and the resulting optimal parameters.

As shown in Table 1, the framework achieved an average proof success rate of 85.3%. The optimization time ranged from 57 seconds for simpler articles to roughly 8.7 minutes for more complex ones like RefineMonadic. The variation in optimal parameters—for instance, $t$ ranging from 14.0 to 19.6—highlights that a single global default is inherently suboptimal.

Conclusion and Future Work

This study demonstrates that Bayesian Optimisation is a powerful tool for automating the configuration of theorem-proving heuristics. By replacing manual "rules of thumb" with a principled probabilistic search, we can achieve higher proof success rates with minimal computational overhead. Future work will focus on scaling this approach to the entire AFP and applying BO to other ATP challenges, such as automated strategy scheduling.

Summary updated

BibTeX
@inproceedings{slowik2020bayesian,
  author = {Agnieszka Slowik and Chaitanya Mangla and Mateja Jamnik and Sean B. Holden and Lawrence C. Paulson},
  title = {{Bayesian Optimisation for Premise Selection in Automated Theorem Proving (Student Abstract)}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2020},
  doi = {10.1609/aaai.v34i10.7232},
}
Figure