Introduction
Boolean Satisfiability (SAT) is a foundational NP-complete problem with numerous practical applications. Over time, several specialized variants have emerged to handle different constraints: MaxSAT (maximizing satisfied clauses), Weighted MaxSAT (maximizing total weight), Partial MaxSAT (handling hard and soft constraints), and Weighted Partial MaxSAT (WPMS). While specialized solvers exist for each, they often lack generality—a solver optimized for standard SAT may perform poorly on WPMS. This paper introduces DCSAT, a unified framework designed to solve all four types efficiently within a single mathematical and algorithmic structure.
The DCSAT Framework
The authors propose a three-stage pipeline that transforms diverse SAT problems into a reinforcement learning (RL) task.
- Unified Mathematical Encoding: All SAT variants are converted into Binary Linear Programming (BLP). By adjusting objective function coefficients, the framework represents weights and hard/soft constraints in a consolidated format.
- SAT Tableaux (State Representation): To facilitate RL, the current state of variable assignments is represented using "SAT Tableaux." This compact format, inspired by the simplex method, serves as the input for the search algorithm.
- Monte Carlo Tree Search (MCTS): The search space is navigated as a binary tree of variable assignments. DCSAT uses a modified Upper Confidence Bound for Trees (UCT) with a "soft max" relaxation ($\alpha$) to balance exploration and exploitation.
Encoding and Representation
The core of DCSAT's generality lies in its ability to map raw SAT instances into a structured state representation suitable for sequential decision-making.
As shown in the figure above, the input instance (e.g., in .wcnf format) is first translated into a BILP. This model is then converted into a matrix-based state representation ($z, w, b, A_y, y^T$) that captures the relationships between variables and constraints, allowing the MCTS agent to evaluate the potential reward of different assignment paths.
Key Results and Insights
DCSAT was evaluated against specialized solvers like sat4j and CCEHC2akms on benchmarks including SATLIB and the 2016 Max-SAT Evaluation.
- Superior Generality: On the Max-SAT Evaluation, while
sat4jsolved only 10 instances, DCSAT solved all 1,166. It also outperformedCCEHC2akms, which solved 865 instances. - Theoretical Guarantees: Using the Wiener-Khinchin law of large numbers, the authors prove that DCSAT will identify every optimal Boolean assignment as the number of explorations approaches infinity.
- Multi-Solution Discovery: Unlike many solvers that stop at the first optimal solution, DCSAT can discover multiple diverse "pivot paths" that yield the same maximum objective value, which is useful for generating high-quality training data for other models.
Limitations and Future Work
While DCSAT offers unprecedented generality, the computational overhead of MCTS can be higher than hand-tuned local search heuristics for specific instances. Future work aims to integrate Deep Neural Networks (DNNs) to approximate search policies and value functions, potentially accelerating the decision-making process. Additionally, the authors plan to extend this BLP-to-RL approach to other combinatorial optimization domains.
Summary updated