[Paper Review] Improving Graph Neural Network Representations of Logical Formulae with Subgraph Pooling
This paper proposes a novel graph neural network architecture that improves logical formula embeddings by leveraging subgraph pooling and attention-based aggregation over DAG-structured formulae. By jointly modeling premises and conjectures with structure-aware node embeddings and dynamic pooling, the method achieves state-of-the-art performance on premise selection and proof step classification in both first-order (Mizar) and higher-order (Holstep) logic, significantly boosting E theorem prover's success rate by 61.6% in large-theory settings.
Recent advances in the integration of deep learning with automated theorem proving have centered around the representation of logical formulae as inputs to deep learning systems. In particular, there has been a growing interest in adapting structure-aware neural methods to work with the underlying graph representations of logical expressions. While more effective than character and token-level approaches, graph-based methods have often made representational trade-offs that limited their ability to capture key structural properties of their inputs. In this work we propose a novel approach for embedding logical formulae that is designed to overcome the representational limitations of prior approaches. Our architecture works for logics of different expressivity; e.g., first-order and higher-order logic. We evaluate our approach on two standard datasets and show that the proposed architecture achieves state-of-the-art performance on both premise selection and proof step classification.
Motivation & Objective
- To address representational limitations in existing graph-based methods for logical formulae, which fail to capture shared subexpressions and variable quantifications effectively.
- To overcome the independent embedding of premises and conjectures in prior approaches, which prevents cross-formula information flow.
- To design a two-phase GNN architecture that first learns enriched node representations using global structural context, then pools them via structure-dependent mechanisms.
- To enable effective integration with classical theorem provers by enhancing premise selection accuracy through joint, attention-regulated embedding of formula pairs.
- To demonstrate generalization across logics by evaluating on both first-order (Mizar) and higher-order (Holstep) logic benchmarks.
Proposed method
- The method uses a two-phase architecture: first, it applies a message-passing GNN (e.g., MPNN, GCN, or LSTM-based) to generate node embeddings that incorporate more than just local neighborhood information.
- It introduces a novel subgraph pooling mechanism, including DagPool and AttDagPool, which dynamically aggregate node embeddings based on the underlying DAG structure of logical formulae.
- The pooling mechanism is designed to respect logical substructure, such as shared subexpressions and quantification scopes, by learning to pool over semantically meaningful subgraphs.
- A localized attention-based exchange mechanism is introduced to regulate information flow between concurrent embeddings of premises and conjectures, enabling cross-formula context integration.
- The architecture supports both first-order and higher-order logic by operating on the DAG representation of formulae, preserving logical structure across different formalisms.
- The model is fine-tuned end-to-end for binary classification tasks using contrastive learning on paired formulae (premise-conjecture or proof step-conjecture).
Experimental results
Research questions
- RQ1Can subgraph pooling over DAG-structured logical formulae improve GNN representations beyond local neighborhood aggregation?
- RQ2Does joint modeling of premises and conjectures via attention-regulated information exchange enhance premise selection and proof step classification accuracy?
- RQ3Can the proposed architecture generalize across different logical formalisms, such as first-order and higher-order logic?
- RQ4To what extent does integrating this method as a premise selection module improve the performance of classical theorem provers like E?
- RQ5How do different node embedding types (e.g., MPNN, GCN, LSTM) and pooling strategies (e.g., max, DagPool, AttDagPool) compare in terms of downstream performance?
Key findings
- The proposed method achieved state-of-the-art performance on both the Mizar (first-order logic) and Holstep (higher-order logic) datasets for premise selection and proof step classification.
- On the Mizar dataset, the best variant (BidirDagLSTM with AttDagPool) achieved 81.0% accuracy, significantly outperforming prior work (e.g., 76.9% for MPNN with MaxPool).
- On the Holstep dataset, the best variant reached 91.5% accuracy, a statistically significant improvement over prior methods such as FormulaNet (90.0%) and CNN-LSTM (83.0%).
- When integrated as a premise selection module for the E theorem prover, the method enabled E to solve 1,484 out of 3,252 problems—61.6% more than E’s native performance (918 solved), with a p-value < 0.01.
- Ablation studies confirmed that the combination of $ρ^{+}$ node embedders and DagPool/AttDagPool pooling yielded the best results, with attention-based pooling providing consistent gains across datasets.
- The ablation study showed that increasing the number of message-passing rounds beyond k=2 provided negligible performance gains, suggesting convergence within two rounds.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.