Teaching Vampire New Tricks: An Experimental Study of Neural Clause Selection

Karel Chvalovský, Martin Suda, Josef UrbanarXiv 2026

TL;DR

This paper presents a comprehensive experimental study of neural clause-selection guidance in the Vampire theorem prover across multiple diverse datasets. While neural guidance dramatically boosts performance within specific domains, models fail to generalize across different problem distributions unless trained jointly on all datasets, and their marginal benefit diminishes when integrated into large strategy portfolios.

What Problem Does This Paper Address?

Automated Theorem Provers (ATPs) like Vampire rely heavily on clause-selection heuristics to navigate massive search spaces during proof saturation. Recently, reinforcement learning-inspired neural models have been used to replace handcrafted heuristics, showing great success on standard benchmarks like TPTP.

However, three major questions remained unanswered:

  1. Broader Effectiveness: Does this neural guidance hold up on structurally distinct problem distributions exported from Interactive Theorem Provers (ITPs), often referred to as "hammers"?
  2. Transferability: Do these trained neural models transfer knowledge effectively across different benchmark families?
  3. Portfolio Integration: How does neural guidance interact with the diverse strategy portfolios typically used by state-of-the-art provers to maximize problem coverage?

Methods

The authors build on an RL-inspired framework integrated into Vampire. The neural architecture consists of:

  • A Graph Neural Network (GNN) that processes the input problem's Clause Normal Form (CNF) to generate initial embeddings for clauses and symbols.
  • Two Recursive Neural Networks (RvNNs): one tracking the clause derivation history and another analyzing Vampire's term structure.
  • A fully connected layer that outputs a single clause score.

The system alternates between running the prover to collect successful proof traces and updating the network parameters via gradient descent. To explore strategy interactions, the authors implement a greedy hill-climbing algorithm for portfolio selection and use a 20-day "spider-style" randomized strategy search to discover complementary proving configurations.

Datasets

The study evaluates four distinct first-order logic benchmark families in TPTP format:

  • TPTP (v9.1.0): 15,500 classic ATP problems (excluding non-theorems and arithmetic).
  • Mizar40: 57,880 "bushy" problems exported from the Mizar Mathematical Library.
  • Isabelle: 276,363 problems extracted via Isabelle Sledgehammer using many-sorted first-order (TFF) encoding.
  • CoqHammer: 82,366 problems in the FOL fragment exported from Coq/Rocq.

Key Insights and Ideas

  • Encoding Specifics Over General Math Skills: Models trained on one dataset completely fail to transfer to others, often performing worse than the unguided default strategy. This suggests the GNN is heavily exploiting dataset-specific encoding quirks (like type guards vs. type tags) rather than learning general theorem-proving principles.
  • The Power of Joint Training: The lack of cross-dataset transfer can be overcome by training a single model on a combined "mega-pile" of all datasets. This single model successfully learns to recognize distinct sub-classes and matches the performance of dedicated, single-domain models.
  • Diminishing Returns in Large Portfolios: While neural guidance provides massive gains for individual strategies, its value shrinks in large portfolios. Strategic diversity (combining different symbolic settings) already captures much of the solvable search space, meaning neural guidance and strategic complementarity have overlapping benefits.
  • Taming Wild Calculi: Neural guidance can compensate for highly prolific but inefficient proof calculi. When applied to a weakened strategy using unordered resolution and plain paramodulation (no ordering constraints), the neurally guided version actually outperformed the unguided default strategy using the highly optimized superposition calculus.

Key Results

  • Single-Strategy Boosting: Neural guidance achieved massive performance improvements within individual domains. On the test sets, it boosted solved problems by 101.0% on Mizar40 and 93.5% on CoqHammer.
Table 1: Boosting performance by neural clause selection guidance across datasets.
  • Knowledge Transfer Failure: As models specialize in their own training domains, their performance on other datasets drops below the baseline default strategy.
Figure 1: Cross-dataset performance evaluation showing the lack of knowledge transfer when models specialize.
  • Portfolio-Scale Impact: In a large-scale evaluation using portfolios generated from a 20-day spider search, a combined portfolio (plain + neural strategies) solved 4.1% more problems overall and achieved a 12.2% improvement at a practically relevant ~10-second time limit compared to a plain portfolio.

Limitations and Future Work

  • High Computational Cost: Training these models is exceptionally expensive; the joint multi-dataset model required 17 days of continuous training to complete 25 iterations.
  • Overfitting: The authors observed clear signs of overfitting on certain datasets like Isabelle, where test performance plateaued early despite continuous training gains.
  • Future Directions: The authors suggest scaling up to larger models trained on larger fractions of hammer benchmarks, exploring transformer architectures to see if emergent intelligent behavior appears, and conducting a deeper analysis of the learned clause/symbol representations.

Summary updated

BibTeX
@misc{chvalovsky2026teaching,
  author = {Karel Chvalovský and Martin Suda and Josef Urban},
  title = {{Teaching Vampire New Tricks: An Experimental Study of Neural Clause Selection}},
  year = {2026},
  eprint = {2609.16228},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2609.16228},
}
Figure