TL;DR
This paper introduces MaxSLIM, a novel approach to Maximum Satisfiability (MaxSAT) solving that leverages the graphical structure of problem instances to guide the search for better solutions. By intelligently breaking down large problems into smaller, manageable subproblems based on their structure, MaxSLIM significantly improves upon existing anytime MaxSAT solvers, offering a compelling trade-off between solution quality and computation time.
What Problem Does This Paper Address?
The Maximum Satisfiability (MaxSAT) problem, a generalization of the Boolean Satisfiability (SAT) problem, aims to find an assignment of truth values to variables that satisfies the maximum possible weight of "soft" clauses, while also satisfying all "hard" clauses. MaxSAT solvers are crucial for a wide range of applications, including software analysis, fault localization, and computer-aided design. While exact MaxSAT solvers strive for optimal solutions, they can be computationally expensive. Anytime MaxSAT solvers, on the other hand, aim to provide good solutions quickly and can be interrupted at any time to return the best solution found so far.
A significant challenge in MaxSAT solving, especially for large and complex instances, is efficiently finding high-quality solutions. Traditional approaches often rely on either pure exact solving (which can be too slow) or pure local search (which might get stuck in local optima). This paper addresses the gap by proposing a method that combines the strengths of both: using an exact solver on smaller, strategically chosen subproblems to refine solutions found by an anytime approach. The core challenge is how to intelligently select these subproblems to maximize the chances of finding significant improvements.
Methods
The paper introduces MaxSLIM, a framework that implements a Structure-Guided Local Improvement strategy. The core idea is to iteratively refine an existing solution by:
- Extracting Local Instances: Instead of working on the entire MaxSAT problem, MaxSLIM identifies and extracts smaller subproblems (local instances) based on the graphical structure of the original problem. This extraction is guided by the incidence graph, which represents the relationships between variables and clauses.
- Structure-Guided Selection: MaxSLIM employs various strategies (e.g., Variable Strategy, 5-Adjacency Strategy, Global Strategy) and metrics (e.g., Unit Metric, NuWLS Metric, Satisfying Metric) to pinpoint which variables and clauses should form the local instance. These strategies aim to focus on parts of the problem that are most likely to yield improvements.
- Solving Local Instances: The extracted local instances are then solved using an exact MaxSAT solver (or any other MaxSAT solver). This is done with a local timeout to ensure the process remains efficient.
- Improving Global Solution: If solving a local instance yields a better solution (i.e., a lower cost), this improved solution is used to update the global solution. This process is repeated until a global timeout is reached or no further improvements can be found within a budget.
A key novelty is the use of the incidence graph to guide the selection of local instances, allowing the algorithm to exploit the problem's structure. MaxSLIM also incorporates weighted random sampling to explore diverse local instances and an upper bounding search to help determine when no further improvement is possible.
Datasets
The experiments were conducted using instances from the 2023 MaxSAT Evaluation's anytime track. This dataset comprises 179 unweighted and 160 weighted instances. The paper does not introduce new benchmarks.
Key Insights and Ideas
- Structure is Key: The most significant insight is that exploiting the graphical structure of MaxSAT instances is crucial for effective local improvement. Simply applying local search without considering this structure (as in MaxSAT-LNS) is less effective.
- Complementarity of Solvers: MaxSLIM demonstrates the power of combining anytime heuristics with exact solvers. Anytime solvers provide a good starting point, and exact solvers on carefully selected subproblems drive significant improvements.
- Strategic Subproblem Selection Matters: The choice of strategy and metric for selecting local instances has a substantial impact on performance. Different strategies excel on different types of instances, suggesting that adaptive or portfolio approaches could be beneficial.
- Local Search is Still Valuable: Even though MaxSLIM focuses on extracting subproblems, the paper highlights that not running local search at all severely degrades performance, emphasizing its complementary role.
- Weighted Instances are Harder: Weighted MaxSAT instances are generally more challenging, requiring smaller local instances and longer computation times for construction, which explains some performance differences compared to unweighted instances.
Key Results
- MaxSLIM outperforms MaxSAT-LNS: MaxSLIM consistently performed better than MaxSAT-LNS across various timeouts and scores, demonstrating the advantage of its structured approach.
- Competitive with Anytime Solvers: MaxSLIM showed strong performance compared to state-of-the-art anytime solvers like NuWLS-c, particularly on unweighted instances and at longer timeouts. For instance, on unweighted instances, MaxSLIM achieved better "best scores" than NuWLS-c.
- Impact of Configuration: Disabling features like upper bounding search or weighted random sampling had a noticeable impact, but their removal didn't always lead to better results, indicating their utility.
- Strategy Performance: The "Variable Strategy" was generally the best, but other strategies like "Global Strategy" and "5-Adjacency Strategy" also showed competitive results and found unique improvements on certain instances.
- Metric Performance: For unweighted instances, the "Unit Metric" was the best, while for weighted instances, metrics that incorporate weights performed better.
Limitations and Future Work
- Variance in Results: The authors note a significant variance in results across different runs, suggesting that random elements (like weighted random sampling) play a role and that longer timeouts could lead to further improvements.
- Complementarity of Strategies: While MaxSLIM's strategies are complementary, the paper suggests that interleaving different strategies or metrics within MaxSLIM itself could yield even better results.
- Integration with Other Solvers: The authors propose adapting other anytime solvers to integrate better within MaxSLIM, potentially allowing for more sophisticated interleaving of local improvement phases.
- Automated Configuration: They suggest that automated algorithm configuration, possibly even dynamic parameter adjustment during runtime, could further enhance MaxSLIM's performance.
- Parallelization: While MaxSLIM can be parallelized, its benefits are instance-dependent, indicating room for optimization in parallel execution.
Summary updated