Diversified Top-k Partial MaxSAT Solving

Junping Zhou, Huanyao Sun, Feifei Ma, Jian Gao, Ke Xu, Minghao YinarXiv 2017

Abstract

We introduce a diversified top-k partial MaxSAT problem, a combination of partial MaxSAT problem and enumeration problem. Given a partial MaxSAT formula $F$ and a positive integer $k$, the diversified top-k partial MaxSAT is to find $k$ maximal solutions for $F$ such that the $k$ maximal solutions satisfy the maximum number of soft clauses of $F$. This problem can be widely used in many applications including community detection, sensor place, motif discovery, and combinatorial testing. We prove the problem is NP-hard and propose an approach for solving the problem. The concrete idea of the approach is to design an encoding EE which reduces diversified top-k partial MaxSAT problem into partial MaxSAT problem, and then solve the resulting problem with state-of-art solvers. In addition, we present an algorithm MEMKC exactly solving the diversified top-k partial MaxSAT. Through several experiments we show that our approach can be successfully applied to the interesting problem.

Introduction

In many real-world optimization scenarios, finding a single optimal solution is insufficient. For applications like community detection in social networks or sensor placement for environmental monitoring, a set of $k$ solutions is required. These solutions must be both high-quality (satisfying maximum constraints) and diverse (covering distinct parts of the problem space).

Standard Partial MaxSAT focuses on finding one assignment that satisfies all hard constraints and the maximum number of soft constraints. Conversely, Enumeration seeks all possible solutions. The Diversified Top-$k$ Partial MaxSAT problem bridges this gap by finding exactly $k$ solutions that collectively satisfy the maximum number of distinct soft clauses, preventing the redundancy of returning $k$ nearly identical optimal solutions.

Methodology

The authors propose two primary strategies to address this NP-hard problem:

1. Expanding Encoding (EE)

This reduction technique transforms the diversified problem into a standard partial MaxSAT problem by "cloning" original variables $k$ times. For a variable $x$, clones $x_1, x_2, \dots, x_k$ are created.

  • Hard Clauses: Each original hard clause is duplicated $k$ times to ensure each of the $k$ assignments remains valid.
  • Soft Clauses: A soft clause $(a \lor b)$ is transformed into a single "diversified" clause $(a_1 \lor b_1 \lor a_2 \lor b_2 \dots \lor a_k \lor b_k)$. This ensures that if any of the $k$ solutions satisfy the clause, it is counted as satisfied for the entire set, incentivizing the solver to find solutions that cover different soft clauses.

2. MEMKC Algorithm

For smaller instances, the authors developed MEMKC, an exact solver that operates in two stages: Model Enumeration (ME) and Max-$k$-Cover (MKC). The ME stage finds every truth assignment satisfying the hard clauses, while the MKC stage treats the soft clauses satisfied by each model as sets and solves a Maximum Coverage problem to select the $k$ models covering the most unique soft clauses.

The MEMKC algorithm for diversified top-k partial MaxSAT.

Experimental Evaluation and Results

The approach was evaluated using random instances, Diversified Top-$k$ Clique instances (including the difficult BHOSLIB benchmark), and Diversified Top-$k$ Covering Arrays for combinatorial testing.

Key findings include:

  • Encoding Effectiveness: The EE encoding allowed approximate solvers like Dist and CCLS to solve instances with up to 100 variables, where the exact MEMKC algorithm became computationally intractable due to the exponential nature of model enumeration.
  • Solver Versatility: As shown in comparative benchmarks, the encoding allows various state-of-the-art MaxSAT solvers to achieve optimal results across different values of $k$.
  • Performance on Specialized Problems: In clique detection and covering array problems, the MaxSAT-based approach often outperformed specialized solvers, particularly on dense graphs or when $k \ge 3$.
Performance comparison of MEMKC and other solvers across different values of k, showing the number of uncovered soft clauses (#UNCOV).

Conclusion

The study demonstrates that by cleverly expanding the variable space, complex diversity requirements can be integrated into standard MaxSAT frameworks. While the exact MEMKC algorithm is limited to smaller scales, the EE encoding provides a scalable path for utilizing powerful general-purpose solvers. Future work will focus on optimizing these encodings and exploring hybrid solvers to handle larger real-world datasets.

Summary updated

BibTeX
@misc{zhou2017diversified,
  author = {Junping Zhou and Huanyao Sun and Feifei Ma and Jian Gao and Ke Xu and Minghao Yin},
  title = {{Diversified Top-k Partial MaxSAT Solving}},
  year = {2017},
  eprint = {1706.00123},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1706.00123},
}
Figure