[Paper Review] G2SAT: Learning to Generate SAT Formulas
G2SAT is a deep generative model that learns to create realistic SAT formulas by modeling their literal-clause graphs as bipartite graphs and using a graph convolutional network to iteratively merge nodes in a sequence. It generates formulas that closely match real-world SAT instances in both structural metrics and solver behavior, improving SAT solver performance on benchmarks.
The Boolean Satisfiability (SAT) problem is the canonical NP-complete problem and is fundamental to computer science, with a wide array of applications in planning, verification, and theorem proving. Developing and evaluating practical SAT solvers relies on extensive empirical testing on a set of real-world benchmark formulas. However, the availability of such real-world SAT formulas is limited. While these benchmark formulas can be augmented with synthetically generated ones, existing approaches for doing so are heavily hand-crafted and fail to simultaneously capture a wide range of characteristics exhibited by real-world SAT instances. In this work, we present G2SAT, the first deep generative framework that learns to generate SAT formulas from a given set of input formulas. Our key insight is that SAT formulas can be transformed into latent bipartite graph representations which we model using a specialized deep generative neural network. We show that G2SAT can generate SAT formulas that closely resemble given real-world SAT instances, as measured by both graph metrics and SAT solver behavior. Further, we show that our synthetic SAT formulas could be used to improve SAT solver performance on real-world benchmarks, which opens up new opportunities for the continued development of SAT solvers and a deeper understanding of their performance.
Motivation & Objective
- To address the limited availability of diverse, realistic SAT benchmark formulas for evaluating and improving SAT solvers.
- To develop a data-driven, learnable alternative to hand-crafted SAT formula generators that fail to capture the full complexity of real-world instances.
- To model SAT formula generation as a bipartite graph generation task using a sequence of node merging operations.
- To enable synthetic SAT formulas that preserve key structural and solver-behavioral properties of real-world instances.
- To demonstrate that generated formulas can enhance SAT solver performance on real benchmarks.
Proposed method
- Represent SAT formulas as literal-clause graphs (LCGs), which are bipartite graphs with variables and clauses as nodes.
- Model the generation process as starting from a set of disjoint trees and applying a sequence of node merging operations on one partition.
- Use a shared Graph Convolutional Network (GCN) to predict which node pairs should be merged at each step in an auto-regressive manner.
- Train the GCN on sequences of node splitting operations derived from real LCGs to learn the distribution of valid merging paths.
- Generate new formulas by starting with trees and applying the learned merging policy step-by-step.
- Ensure generated graphs maintain key structural properties by enforcing bipartite structure and learning from real-world graph statistics.
Experimental results
Research questions
- RQ1Can a deep generative model learn to produce SAT formulas that match real-world instances in both graph structure and solver behavior?
- RQ2Can the model generate diverse, non-trivial SAT formulas without relying on hand-crafted rules?
- RQ3To what extent does the learned generative model preserve key graph metrics such as modularity, degree distribution, and clustering coefficients?
- RQ4Can synthetic formulas generated by G2SAT improve the performance of SAT solvers on real-world benchmarks?
- RQ5How does the model’s performance vary with architectural choices like GCN depth?
Key findings
- G2SAT generates SAT formulas whose structural properties—such as modularity, degree distribution, and clustering—closely match those of real-world SAT instances.
- The model’s generated formulas exhibit SAT solver behavior (e.g., runtime, conflict patterns) that is statistically indistinguishable from real-world formulas.
- Increasing the number of GCN layers improves the match to training data’s modularity, indicating that deeper models capture more complex structure.
- The synthetic formulas generated by G2SAT improve SAT solver performance on real-world benchmarks when used for training or tuning.
- G2SAT outperforms hand-crafted baselines like Community Attachment (CA) and Popularity-Similarity (PS), especially in generating non-trivial, satisfiable instances.
- Post-processing to remove clauses from unsatisfiable cores significantly increases the difficulty of PS-generated formulas, but G2SAT still produces more realistic and challenging instances.
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.