Abstract
We propose SplitGNN, a graph neural network (GNN)-based approach that learns to solve weighted maximum satisfiability (MaxSAT) problems. SplitGNN incorporates a co-training architecture consisting of a supervised message passing mechanism and an unsupervised solution boosting layer. A new graph representation called the edge-splitting factor graph is proposed to provide more structural information for learning, which is based on spanning tree generation and edge classification. To improve solutions on challenging and weighted instances, we implement a GPU-accelerated layer applying efficient score calculation and relaxation-based optimization. Experiments show that SplitGNN achieves 3x faster convergence and better predictions compared with other GNN-based architectures. More notably, SplitGNN successfully finds solutions that outperform modern heuristic MaxSAT solvers on much larger and harder weighted MaxSAT benchmarks and demonstrates exceptional generalization abilities on diverse structural instances.
Introduction
Boolean Satisfiability (SAT) is a fundamental problem in computer science. Its optimization variant, Maximum Satisfiability (MaxSAT), seeks an assignment that satisfies the maximum number of clauses. In Weighted MaxSAT, each clause is assigned a weight, and the goal is to maximize the total weight of satisfied clauses. While traditional solvers rely on hand-crafted heuristics and enumerative search, they often struggle with diverse problem structures and large-scale instances.
Recently, Graph Neural Networks (GNNs) have emerged as promising "neural solvers." However, existing GNN architectures often fail on weighted problems and are hampered by redundant information from circular dependencies in standard factor graph representations. We propose SplitGNN, a novel architecture that addresses these challenges through a new graph representation and a hybrid training strategy.
Methodology: Edge-Splitting and Co-Training
SplitGNN introduces two primary innovations to enhance the learning of MaxSAT solutions: the Edge-Splitting Factor Graph and a Co-Training Architecture.
Edge-Splitting Factor Graph
Standard GNNs treat all variable-clause connections uniformly. SplitGNN first generates a spanning tree of the problem graph and then classifies every edge into one of four types: Parent, Child, Non-tree up, or Non-tree down. This hierarchy allows the model to distinguish between core structural connections and conflict edges, reducing noise from circular dependencies and providing the model with better spatial awareness of the problem's structure.
Co-Training Architecture
The model employs a dual-phase training mechanism to refine its predictions:
- Supervised Phase: The GNN learns to predict variable assignments by training on labeled benchmarks.
- Unsupervised Solution Boosting (USB) Layer: A GPU-accelerated layer performs relaxation-based optimization. By treating discrete variables as continuous values, it "nudges" assignments toward better scores using a specialized loss function, enabling refinement without ground-truth labels.
Experimental Evaluation
We evaluated SplitGNN across synthetic distributions (Uniform, Power-Law, Popularity Similarity, Double Power), weighted variants, hard structural benchmarks (e.g., Pigeonhole Principle, Mutilated Chessboard), and industrial instances from the 2023 MaxSAT Evaluation (MSE2023).
Key Results
- Efficiency: SplitGNN achieves 3x faster convergence compared to previous state-of-the-art GNN solvers.
- Accuracy: On weighted benchmarks, SplitGNN consistently outperformed modern heuristic solvers like Loandra and SATLike in terms of minimizing the sum of unsatisfied weights.
- Generalization: The model demonstrates exceptional small-to-large generalization, successfully solving instances with 2,000 variables after being trained on only 60.
- Speed: Large-scale instances were typically solved within 40 seconds, often surpassing traditional solvers that reached their time limits without finding comparable solutions.
Conclusion
SplitGNN represents a significant advancement in neural MaxSAT solvers. By imposing a hierarchical structure on factor graphs and combining supervised learning with unsupervised relaxation, it achieves superior performance and generalization. While it is currently an approximate solver, its ability to find high-quality solutions quickly on complex, weighted instances makes it a powerful tool for combinatorial optimization. Future work will explore different spanning tree strategies and the extension to Partial Weighted MaxSAT.
Summary updated