Approximation Strategies for Incomplete MaxSAT

Saurabh Joshi, Prateek Kumar, Ruben Martins, Sukrut Rao

TL;DR

This paper introduces two novel approximation strategies—weight clustering and subproblem decomposition—to enhance "incomplete" MaxSAT solvers. By simplifying complex constraints, these methods allow solvers to find high-quality solutions significantly faster, outperforming state-of-the-art competitors from the 2017 MaxSAT Evaluation.

What Problem Does This Paper Address?

Maximum Satisfiability (MaxSAT) is the optimization version of the classic SAT problem. In a weighted partial MaxSAT problem, we have "hard" clauses that must be satisfied and "soft" clauses with associated weights; the goal is to find an assignment that minimizes the total weight of unsatisfied soft clauses.

While finding an exact optimal solution is NP-hard and often computationally prohibitive for large-scale industrial problems, many applications (like software bug localization or circuit design) can tolerate a "good enough" solution if it arrives quickly. This is the domain of incomplete MaxSAT solvers. The challenge is that standard techniques for encoding these problems into SAT formulas often result in massive, complex constraints (pseudo-Boolean constraints) that bog down the solver. The authors seek to bridge the gap between speed and solution quality.

Methods

The authors propose two primary strategies implemented within the Open-WBO-Inc framework:

  1. Weight-based Approximation (apx-weight): Standard solvers struggle when a problem has many distinct weights. The authors use a clustering algorithm (similar to single-link agglomerative clustering) to group soft clauses with similar weights into $m$ clusters. Every clause in a cluster is then assigned a single "representative weight" (the arithmetic mean). This drastically reduces the number of distinct weights, which in turn simplifies the pseudo-Boolean constraints and shrinks the resulting CNF formula size.

  2. Subproblem Minimization (apx-subprob): Instead of trying to minimize the global sum of weights all at once, this strategy breaks the problem into a sequence of subproblems based on the weight clusters. The solver processes clusters greedily, starting from the highest representative weight and moving to the lowest. Within each cluster, it only needs to solve a simpler "cardinality constraint" problem (minimizing the number of unsatisfied clauses), which is much easier for SAT solvers to handle than weighted sums.

Datasets

The strategies were evaluated using 156 benchmarks from the MaxSAT Evaluation 2017 (MSE2017) incomplete track. These benchmarks are derived from real-world industrial problems and are known to be challenging, often with unknown optimal solutions.

Key Insights and Ideas

  • Formula Size vs. Precision: There is a clear trade-off between the number of clusters ($m$) and solver performance. As seen in Figure 1(c), increasing clusters initially makes the formula much larger. However, Figure 1(a) shows that a small amount of clustering (e.g., $m=2$) actually improves the score by making the problem tractable enough for the solver to find better solutions within the time limit.
Effect of clustering on formula size
  • The Power of Greed: The subproblem approach (apx-subprob) is inspired by Boolean Multilevel Optimization (BMO). While it loses the guarantee of finding a global optimum (because it might "spend" its budget on high-weight clauses in a way that hurts the overall total), in practice, this greedy prioritization is highly effective for industrial instances.
  • Speed is a Feature: The authors tested a very short 10-second timeout. In these "emergency" scenarios, their approximation strategies were significantly more effective than standard solvers, which often hadn't even finished their first iteration.

Key Results

The authors compared their tool, Open-WBO-Inc, against top-tier solvers like maxroster (MSE2017 winner), WPM3 (MSE2016 winner), and QMaxSAT.

  • Superior Performance: apx-subprob consistently achieved the highest scores across all tested timeouts (10s, 60s, and 300s).
  • Winning the Sprint: At the 10-second mark, both apx-weight and apx-subprob outperformed all other solvers.
  • Clustering Benefits: Even the simpler apx-weight strategy outperformed the standard QMaxSAT solver once clustering was applied, proving that weight relaxation is a viable path for optimization.
Comparison of solvers across different timeouts

Limitations and Future Work

The primary limitation is that these strategies are non-optimal by design. Even with infinite time, they may never find the true global minimum because the underlying weights or the search order have been modified.

For future work, the authors suggest:

  • Hybrid Approaches: Using these approximation strategies to find a "warm start" (a good initial upper bound) for complete solvers.
  • Dynamic Clustering: Progressively increasing the number of clusters ($m$) during the search to slowly refine the approximation toward the exact problem.
  • Alternative Representatives: Exploring different ways to choose representative weights beyond the arithmetic mean.

Summary updated

BibTeX
@inproceedings{joshi2018approximation,
  author = {Saurabh Joshi and Prateek Kumar and Ruben Martins and Sukrut Rao},
  title = {{Approximation Strategies for Incomplete MaxSAT}},
  booktitle = {CP},
  year = {2018},
  doi = {10.1007/978-3-319-98334-9\_15},
}
Figure