[Paper Review] Graph Neural Networks and Boolean Satisfiability
This paper proposes using Graph Neural Networks (GNNs) to classify Boolean satisfiability (SAT) problems by representing conjunctive normal form (CNF) formulas as graphs, without manual feature engineering. The key finding is that GNNs can learn to distinguish satisfiable from unsatisfiable instances in a weakly-supervised setting, demonstrating that deep learning can capture intrinsic structural properties of SAT problems.
In this paper we explore whether or not deep neural architectures can learn to classify Boolean satisfiability (SAT). We devote considerable time to discussing the theoretical properties of SAT. Then, we define a graph representation for Boolean formulas in conjunctive normal form, and train neural classifiers over general graph structures called Graph Neural Networks, or GNNs, to recognize features of satisfiability. To the best of our knowledge this has never been tried before. Our preliminary findings are potentially profound. In a weakly-supervised setting, that is, without problem specific feature engineering, Graph Neural Networks can learn features of satisfiability.
Motivation & Objective
- To investigate whether deep neural networks can learn to classify Boolean satisfiability (SAT) problems without relying on handcrafted features.
- To explore the theoretical properties of SAT that influence learnability by neural models.
- To develop a graph-based representation of CNF formulas to enable application of Graph Neural Networks (GNNs).
- To evaluate whether GNNs can generalize satisfiability patterns across diverse problem instances in a weakly-supervised setting.
- To compare GNNs against alternative neural architectures like Recursive Neural Networks (RNNs) that assume tree-like syntactic structures.
Proposed method
- Represent CNF formulas as heterogeneous graphs where nodes correspond to variables and clauses, and edges encode variable-clause incidence.
- Apply Graph Neural Networks (GNNs) to classify the graph representation as SAT or UNSAT based on message-passing over graph structures.
- Train GNNs in a weakly-supervised manner using only the SAT/UNSAT label, without problem-specific feature engineering.
- Use a differentiable approximation of the SAT objective function to enable gradient-based optimization, approximating the step function with sigmoid and tanh activations.
- Implement a neural circuit solver using a continuous relaxation of the SAT problem, where variables are represented as real-valued vectors and the objective function is differentiable.
- Compare performance against Recursive Neural Networks (RNNs) that impose artificial tree structures on CNF formulas via clustering of clause vectors.
Experimental results
Research questions
- RQ1Can Graph Neural Networks learn to classify Boolean satisfiability without explicit feature engineering?
- RQ2How do theoretical properties of SAT, such as clause-to-variable ratio, affect the learnability of GNNs on graph-structured CNF formulas?
- RQ3Does imposing a tree-like structure on CNF formulas (via clustering) improve or hinder the performance of neural classifiers compared to direct graph representations?
- RQ4How does the performance of GNNs compare to other neural architectures like RNNs on SAT classification tasks?
- RQ5To what extent can neural networks capture the intrinsic structural complexity of SAT problems through end-to-end training on graph representations?
Key findings
- GNNs successfully learned to classify SAT instances in a weakly-supervised setting, achieving high accuracy without manual feature engineering.
- The performance of the neural SAT solver based on continuous relaxation degraded with increasing problem size, with failure rates rising due to local optima in optimization.
- Recursive Neural Networks (RNNs) failed to learn meaningful distinctions between SAT and UNSAT formulas because the subproblems they constructed were overwhelmingly likely to be SAT, leading to a strong bias in the model.
- The RNN-based approach, which imposed an artificial tree structure on clauses via cosine similarity clustering, performed no better than random baseline on SAT classification.
- The failure of RNNs highlights the unsuitability of tree-structured models for CNF formulas due to the non-recursive, commutative nature of logical disjunctions and conjunctions.
- The success of GNNs suggests that graph-based representations preserve essential structural features of SAT problems that are critical for classification.
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.