Introduction
The Boolean Satisfiability problem (SAT) is the foundational NP-complete problem, critical for applications ranging from circuit design to software verification. Traditionally, SAT solving has relied on Conflict-Driven Clause Learning (CDCL) and Stochastic Local Search (SLS) algorithms, which utilize human-designed heuristics to navigate vast search spaces. However, as these handcrafted rules reach a performance plateau, researchers are increasingly turning to Machine Learning (ML) to automate heuristic discovery and develop end-to-end neural solvers.
Methodological Paradigms
The integration of ML into SAT solving generally follows three primary architectures:
1. Standalone ML Solvers
These models attempt to predict satisfiability or find assignments directly. A landmark in this category is NeuroSAT, which utilizes Graph Neural Networks (GNNs) to process SAT formulas represented as bipartite graphs. By leveraging message passing between literal and clause nodes, NeuroSAT learns embeddings that capture the structural properties of the formula.
2. Learning-aided CDCL
Rather than replacing the solver, ML is used to optimize specific components of the CDCL algorithm. For instance, NeuroCore uses GNNs to identify variables within the "unsatisfiable core"—the subset of clauses that make a formula impossible to solve. These variables are then prioritized for branching. Because GNN inference is computationally expensive, these models often run periodically to update internal solver scores rather than at every decision step.
3. Learning-aided SLS
Stochastic Local Search solvers, which flip variable values to minimize unsatisfied clauses, benefit from ML-driven initialization. Tools like NLocalSAT use GNNs to provide high-quality starting assignments, significantly reducing the time required for the local search to converge on a solution.
Formula Encoding and Feature Extraction
A critical challenge in applying ML to SAT is representing discrete, symbolic formulas in a way that neural networks can process. GNNs are preferred because they respect the inherent symmetries of SAT formulas, such as permutation and negation invariance.
As shown in the figure above, various encoding schemes like the Literal-Clause Graph (LCG) and Variable-Clause Graph (VCG) allow models to capture different relational nuances between variables and constraints.
Datasets and Benchmarking
Training effective ML SAT solvers requires diverse datasets:
- SR(n): A standard dataset of random SAT pairs used for initial model validation.
- SATCOMP: Real-world industrial benchmarks from the annual SAT Competition.
- Synthetic Generators: Tools like G2SAT generate "pseudo-industrial" data that mimics the complex structure of real-world problems, providing the large-scale data necessary for deep learning.
Key Results and Performance
- NeuroSAT proved that GNNs could learn to solve random SAT problems with high accuracy (~85%) using only SAT/UNSAT labels for training.
- NeuroCore demonstrated practical utility by allowing the Minisat solver to solve 10% more problems from the SATCOMP-2018 benchmark within a standard timeout.
- Hybrid Approaches have emerged as the most successful, combining the strategic "intuition" of ML with the low-level efficiency of optimized C++ solvers.
Challenges and Future Directions
Despite recent progress, several hurdles remain:
- Scalability: GNN message passing is computationally intensive, limiting pure neural solvers to relatively small instances compared to the millions of variables handled by industrial solvers.
- Verifiability: Unlike traditional solvers, neural models cannot currently provide mathematical proofs (e.g., DRAT proofs) for unsatisfiability, which is essential for safety-critical hardware verification.
- Explainability: The "black box" nature of neural heuristics makes it difficult for human experts to extract actionable insights from model decisions.
Future research is expected to focus on improving the computational efficiency of neural architectures and developing better synthetic data generators to bridge the gap between random and industrial instances.
Summary updated