Abstract
Partial MaxSAT (PMS) is a critical optimization problem with broad applications in engineering and industrial design. While complete solvers offer optimality guarantees, they often struggle with scaling to large-scale problems. Conversely, local search algorithms provide speed but have historically failed to handle the distinction between hard and soft constraints effectively. This paper presents Dist, a novel local search algorithm that prioritizes hard constraint satisfaction and employs a decoupled scoring mechanism. Experimental results demonstrate that Dist significantly outperforms existing local search solvers on Random and Crafted benchmarks and establishes a new performance baseline for local search in Industrial domains.
Introduction
The Maximum Satisfiability problem (MaxSAT) involves finding a variable assignment that satisfies the maximum number of clauses in a Boolean formula. Partial MaxSAT (PMS) extends this by categorizing clauses into "hard" constraints, which must be satisfied, and "soft" constraints, which are preferred but optional. This structure is ideal for modeling real-world problems like network routing, scheduling, and software verification.
Historically, solving PMS has been a challenge for local search. Traditional solvers often treat hard and soft constraints similarly, typically using a large weight for hard clauses. This approach frequently leads to "stagnation," where the solver fails to find a feasible solution (satisfying all hard clauses) or gets trapped in local optima by over-prioritizing specific soft clauses at the expense of the global optimum.
The Dist Algorithm
The Dist algorithm (short for Distinction) addresses these shortcomings through three primary innovations:
- Selective Clause Weighting: Unlike standard solvers that weight all unsatisfied clauses, Dist only increases the weights of unsatisfied hard clauses. The authors argue that weighting soft clauses is counterproductive; it may force the solver to satisfy a "difficult" soft clause at the expense of many easier ones, leading the search away from the global optimum.
- Decoupled Scoring: Dist calculates two independent metrics for each variable flip: a hard score ($hscore$), representing the net change in satisfied hard clauses, and a soft score ($sscore$), representing the net change in satisfied soft clauses.
- Hierarchical Variable Selection: The algorithm follows a strict priority list to ensure feasibility before optimization:
- Priority 1: Flip a variable that fixes hard clauses ($hscore > 0$).
- Priority 2: If no hard clauses can be fixed, flip a variable that fixes soft clauses without breaking any hard ones ($hscore = 0$ and $sscore > 0$).
- Priority 3: If the search is stuck, update hard clause weights to escape the local optimum.
Experimental Evaluation
The performance of Dist was evaluated against the MaxSAT Evaluation 2013 benchmarks, encompassing Random, Crafted, and Industrial instances.
Crafted Benchmarks
On Crafted benchmarks, which are designed to be difficult for specific algorithmic structures, Dist demonstrated superior robustness. It successfully solved 361 out of 377 instances, significantly higher than the next best solver, ILP-2013, which solved 329.
Industrial Benchmarks
The most significant breakthrough occurred in Industrial benchmarks, which are derived from real-world applications like software verification and bioinformatics. Historically, local search has been non-competitive in this domain. Dist solved 337 instances, a massive improvement over the previous state-of-the-art local search solver, CCLS, which solved only 80. While complete solvers like QMaxSAT2-mt still lead in this category (solving 582), Dist proves that local search is now a viable alternative for large-scale industrial PMS problems.
Conclusion
By strictly distinguishing between hard and soft constraints, the Dist algorithm overcomes the traditional limitations of local search for Partial MaxSAT. Its success on industrial benchmarks suggests that prioritizing feasibility and avoiding the over-weighting of soft constraints are key to solving complex, real-world optimization problems. Future work will focus on extending these principles to Weighted Partial MaxSAT, where soft clauses have varying levels of importance.
Summary updated