Graph Neural Reasoning for 2-Quantified Boolean Formula Solvers

Zhanfu Yang, Fei Wang, Ziliang Chen, Guannan Wei, Tiark RompfarXiv 2019

Abstract

In this paper, we investigate the feasibility of learning GNN (Graph Neural Network) based solvers and GNN-based heuristics for specified QBF (Quantified Boolean Formula) problems. We design and evaluate several GNN architectures for 2QBF formulae, and conjecture that GNN has limitations in learning 2QBF solvers. Then we show how to learn a heuristic CEGAR 2QBF solver. We further explore generalizing GNN-based heuristics to larger unseen instances, and uncover some interesting challenges. In summary, this paper provides a comprehensive surveying view of applying GNN-embeddings to specified QBF solvers, and aims to offer guidance in applying ML to more complicated symbolic reasoning problems.

Introduction

Automated reasoning has seen significant advances with the application of Graph Neural Networks (GNNs) to Boolean Satisfiability (SAT) problems. However, this research pushes the boundaries further to 2-Quantified Boolean Formulae (2QBF). A 2QBF problem is defined as $\forall X \exists Y . \phi$, asking if for every possible assignment of variables in $X$, there exists at least one assignment for variables in $Y$ that satisfies the formula $\phi$. This class of problems is PSPACE-complete, representing a significant leap in complexity over standard SAT.

While GNNs are proficient at finding "witnesses" for satisfiability, they struggle with the exhaustive reasoning required to prove unsatisfiability or universal quantification. This paper explores whether GNNs can act as end-to-end solvers or if their strength lies in serving as intelligent heuristics for traditional symbolic solvers.

Methods

The investigation follows two primary paths:

  1. End-to-End GNN Solvers: The authors adapted architectures like NeuroSAT for 2QBF by partitioning universal ($\forall$) and existential ($\exists$) literals. Message-passing allows these literals to interact through clause nodes, attempting to learn the global satisfiability of the formula directly.
  2. GNN-based Heuristics for CEGAR: Recognizing the limitations of pure neural approaches, GNNs were integrated into a Counterexample-Guided Abstraction Refinement (CEGAR) framework. In this iterative process, the GNN is used to rank candidate assignments for $\forall$ variables and potential counterexamples for $\exists$ variables, guiding the symbolic solver toward a solution more efficiently.

Results

End-to-End Solver Performance

The end-to-end GNN models demonstrated a clear inability to generalize to larger 2QBF instances. While training accuracy remained high, testing performance on datasets with 160 pairs dropped to approximately 50%, effectively no better than random guessing. This failure highlights the "witness limitation": GNNs can identify a single satisfying assignment but struggle to reason about the absence of counterexamples across an entire search space.

Table 1: GNN performance on SAT/UNSAT prediction shows a significant drop in testing accuracy as problem size increases.

Heuristic Integration in CEGAR

In contrast, using GNNs as heuristics within the CEGAR solver proved highly effective. By ranking candidates, the GNN-guided solver significantly reduced the computational effort required. For instance, in unsatisfiable test cases, the number of steps was reduced from a baseline of ~21.9 to approximately 13.8-14.5 steps using GNN-based ranking.

Performance comparison of CEGAR solvers with and without GNN-based heuristics, showing a marked reduction in steps for test instances.

Discussion and Conclusion

The findings suggest a powerful synergy between neural and symbolic methods. While GNNs lack the inherent mechanism for the exhaustive search required by 2QBF, they provide a valuable "intuition" that can prune the search space for rigorous symbolic algorithms.

However, challenges remain. GNNs exhibit a structural bias where increased message-passing iterations can lead to overfitting rather than improved reasoning. Furthermore, predicting "unsatisfiability cores" remains a difficult task for current architectures. Future work should focus on developing graph representations that can more explicitly handle logical implications and universal quantification at scale.

Summary updated

BibTeX
@misc{yang2019graph,
  author = {Zhanfu Yang and Fei Wang and Ziliang Chen and Guannan Wei and Tiark Rompf},
  title = {{Graph Neural Reasoning for 2-Quantified Boolean Formula Solvers}},
  year = {2019},
  eprint = {1904.12084},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1904.12084},
}
Figure