G4SATBench: Benchmarking and Advancing SAT Solving with Graph Neural Networks

Read original: arXiv:2309.16941 - Published 5/14/2024 by Zhaoyu Li, Jinpei Guo, Xujie Si
Total Score

0

🧠

Sign in to get full access

or

If you already have an account, we'll log you in

Overview

  • The paper presents a new benchmark, G4SATBench, for evaluating graph neural network (GNN) models on the Boolean Satisfiability (SAT) problem.
  • The benchmark includes a diverse set of 7 SAT datasets with 3 difficulty levels, and evaluates a range of GNN models across different prediction tasks, training objectives, and inference algorithms.
  • The paper also compares the solving processes of GNN-based SAT solvers with traditional search-based heuristics to understand the strengths and limitations of the GNN approaches.

Plain English Explanation

The Boolean Satisfiability (SAT) problem is a fundamental challenge in computer science, with applications in areas like artificial intelligence, hardware design, and software verification. Graph neural networks (GNNs) have emerged as a promising approach for solving the SAT problem, offering potential alternatives to traditional backtracking or local search SAT solvers.

However, the field of GNN-based SAT solvers has lacked a unified dataset and a fair benchmark to evaluate and compare the existing approaches. To address this, the researchers present G4SATBench, the first comprehensive benchmark for GNN-based SAT solvers.

The benchmark includes a diverse set of 7 SAT datasets, covering different problem types and difficulty levels. The researchers evaluate a broad range of GNN models on various prediction tasks, training objectives, and inference algorithms. By comparing the solving processes of the GNN-based solvers with traditional search-based heuristics, the researchers aim to understand the strengths and limitations of the GNN approaches.

The key insight is that while existing GNN models can effectively learn a solving strategy akin to greedy local search, they struggle to learn the backtracking search techniques used in traditional SAT solvers. This suggests that there is still room for improvement in developing GNN-based SAT solvers that can match or outperform the traditional approaches.

Technical Explanation

The researchers curate a diverse set of 7 SAT datasets for the G4SATBench benchmark, covering a range of problem types and difficulty levels. These datasets include: 3-SAT, Circuit-SAT, and Knuth-bendix problems, among others.

They then evaluate a broad range of GNN models, including graph convolutional networks (GCNs), graph attention networks (GATs), and [graph isomorphism networks (GINs)], on various prediction tasks, such as variable assignment, clause satisfaction, and SAT problem solving.

The GNN models are trained using different objectives, including binary classification, multi-class classification, and reinforcement learning. The researchers also experiment with different inference algorithms, such as greedy search, beam search, and backtracking.

By comparing the solving processes of the GNN-based solvers with traditional search-based heuristics, the researchers find that the GNN models can effectively learn a solving strategy akin to greedy local search, but struggle to learn the backtracking search techniques used in traditional SAT solvers.

Critical Analysis

The researchers acknowledge that their benchmark does not cover all possible formulations of the SAT problem, and that the selected datasets may not represent the full complexity of real-world SAT instances. They also note that the performance of GNN-based SAT solvers may be influenced by factors such as the size and complexity of the input graphs, the choice of GNN architecture, and the training hyperparameters.

Furthermore, the paper does not explore the potential use of novel techniques for query plan representation based on graphs or other advanced GNN architectures, such as dynamic graph neural networks, which could potentially improve the performance of GNN-based SAT solvers.

Overall, the G4SATBench benchmark represents a significant step forward in the field of GNN-based SAT solvers, but further research is needed to address the limitations and explore more advanced GNN architectures and techniques.

Conclusion

The G4SATBench benchmark provides a comprehensive evaluation framework for GNN-based SAT solvers, addressing a crucial gap in the field. The paper's findings suggest that existing GNN models can effectively learn a solving strategy akin to greedy local search, but struggle to learn the backtracking search techniques used in traditional SAT solvers.

These insights highlight the need for further research and development in GNN-based SAT solvers to match or outperform the performance of traditional approaches. The G4SATBench benchmark and the lessons learned from this study can serve as a valuable foundation for advancing the state of the art in this important area of computer science.



This summary was produced with help from an AI and may contain inaccuracies - check out the links to read the original source documents!

Follow @aimodelsfyi on 𝕏 →

Related Papers

🧠

Total Score

0

G4SATBench: Benchmarking and Advancing SAT Solving with Graph Neural Networks

Zhaoyu Li, Jinpei Guo, Xujie Si

Graph neural networks (GNNs) have recently emerged as a promising approach for solving the Boolean Satisfiability Problem (SAT), offering potential alternatives to traditional backtracking or local search SAT solvers. However, despite the growing volume of literature in this field, there remains a notable absence of a unified dataset and a fair benchmark to evaluate and compare existing approaches. To address this crucial gap, we present G4SATBench, the first benchmark study that establishes a comprehensive evaluation framework for GNN-based SAT solvers. In G4SATBench, we meticulously curate a large and diverse set of SAT datasets comprising 7 problems with 3 difficulty levels and benchmark a broad range of GNN models across various prediction tasks, training objectives, and inference algorithms. To explore the learning abilities and comprehend the strengths and limitations of GNN-based SAT solvers, we also compare their solving processes with the heuristics in search-based SAT solvers. Our empirical results provide valuable insights into the performance of GNN-based SAT solvers and further suggest that existing GNN models can effectively learn a solving strategy akin to greedy local search but struggle to learn backtracking search in the latent space. Our codebase is available at https://github.com/zhaoyu-li/G4SATBench.

Read more

5/14/2024

GraSS: Combining Graph Neural Networks with Expert Knowledge for SAT Solver Selection
Total Score

0

GraSS: Combining Graph Neural Networks with Expert Knowledge for SAT Solver Selection

Zhanguang Zhang, Didier Chetelat, Joseph Cotnareanu, Amur Ghose, Wenyi Xiao, Hui-Ling Zhen, Yingxue Zhang, Jianye Hao, Mark Coates, Mingxuan Yuan

Boolean satisfiability (SAT) problems are routinely solved by SAT solvers in real-life applications, yet solving time can vary drastically between solvers for the same instance. This has motivated research into machine learning models that can predict, for a given SAT instance, which solver to select among several options. Existing SAT solver selection methods all rely on some hand-picked instance features, which are costly to compute and ignore the structural information in SAT graphs. In this paper we present GraSS, a novel approach for automatic SAT solver selection based on tripartite graph representations of instances and a heterogeneous graph neural network (GNN) model. While GNNs have been previously adopted in other SAT-related tasks, they do not incorporate any domain-specific knowledge and ignore the runtime variation introduced by different clause orders. We enrich the graph representation with domain-specific decisions, such as novel node feature design, positional encodings for clauses in the graph, a GNN architecture tailored to our tripartite graphs and a runtime-sensitive loss function. Through extensive experiments, we demonstrate that this combination of raw representations and domain-specific choices leads to improvements in runtime for a pool of seven state-of-the-art solvers on both an industrial circuit design benchmark, and on instances from the 20-year Anniversary Track of the 2022 SAT Competition.

Read more

5/21/2024

GNNBENCH: Fair and Productive Benchmarking for Single-GPU GNN System
Total Score

0

GNNBENCH: Fair and Productive Benchmarking for Single-GPU GNN System

Yidong Gong, Pradeep Kumar

We hypothesize that the absence of a standardized benchmark has allowed several fundamental pitfalls in GNN System design and evaluation that the community has overlooked. In this work, we propose GNNBench, a plug-and-play benchmarking platform focused on system innovation. GNNBench presents a new protocol to exchange their captive tensor data, supports custom classes in System APIs, and allows automatic integration of the same system module to many deep learning frameworks, such as PyTorch and TensorFlow. To demonstrate the importance of such a benchmark framework, we integrated several GNN systems. Our results show that integration with GNNBench helped us identify several measurement issues that deserve attention from the community.

Read more

4/8/2024

Understanding GNNs for Boolean Satisfiability through Approximation Algorithms
Total Score

0

Understanding GNNs for Boolean Satisfiability through Approximation Algorithms

Jan Hr{u}la, David Mojv{z}'iv{s}ek, Mikol'av{s} Janota

The paper deals with the interpretability of Graph Neural Networks in the context of Boolean Satisfiability. The goal is to demystify the internal workings of these models and provide insightful perspectives into their decision-making processes. This is done by uncovering connections to two approximation algorithms studied in the domain of Boolean Satisfiability: Belief Propagation and Semidefinite Programming Relaxations. Revealing these connections has empowered us to introduce a suite of impactful enhancements. The first significant enhancement is a curriculum training procedure, which incrementally increases the problem complexity in the training set, together with increasing the number of message passing iterations of the Graph Neural Network. We show that the curriculum, together with several other optimizations, reduces the training time by more than an order of magnitude compared to the baseline without the curriculum. Furthermore, we apply decimation and sampling of initial embeddings, which significantly increase the percentage of solved problems.

Read more

8/29/2024