Introduction
The Boolean Satisfiability Problem (SAT) is a fundamental challenge in computer science, serving as the prototypical NP-complete problem. While modern SAT solvers have become remarkably efficient at finding a single satisfying assignment for formulas with millions of variables, many real-world applications—such as software verification, logistics, and configuration—require more than just a single "yes." In these contexts, having a set of diverse solutions is critical for robustness, allowing human decision-makers or downstream systems to choose between alternatives that satisfy the same constraints but differ in their structural properties.
The Challenge of Diversity in SAT
Standard Evolutionary Algorithms (EAs) typically navigate search spaces through stochastic operators like mutation and crossover. However, SAT problems are notoriously "brittle." Because constraints are rigid, flipping a single bit in a satisfying assignment almost always results in an unsatisfiable one. This creates a "needle in a haystack" landscape where traditional EAs struggle to maintain feasibility while exploring the search space.
To address this, researchers from the University of Adelaide and the Hasso Plattner Institute have proposed a hybrid Evolutionary Diversity Optimisation (EDO) framework. This approach leverages the strengths of modern SAT solvers to "repair" solutions, ensuring that the evolutionary process stays within the feasible region while maximizing the diversity of the population.
Methodology: Hybridizing EDO and SAT Solvers
The core innovation of this work is the use of a SAT solver (specifically minisat) as a completion operator within the evolutionary loop. Rather than evolving complete assignments, the algorithm evolves a set of "fixed variables."
1. The Repair Mechanism
During each iteration, the algorithm selects a subset of variables to fix to specific Boolean values. This partial assignment is then passed to the SAT solver. The solver attempts to find a completion—a set of values for the remaining variables—that satisfies the entire formula. If the solver succeeds, a new valid individual is added to the population; if it fails, the mutation is discarded. This allows the EA to jump between valid points in the search space without manually navigating the infeasible "voids" between them.
2. Quantifying Diversity via Entropy
To drive the population toward diversity, the authors utilize two entropy-based metrics:
- $H_1$ (Uniform Entropy): This metric treats all variables as equally important, measuring the distribution of True and False assignments across the entire population.
- $H_2$ (Weighted Entropy): This metric weights variables based on their frequency in the problem's clauses. By prioritizing diversity in "hub" variables (those that appear in many constraints), the algorithm focuses on the most structurally significant parts of the problem.
Experimental Design
The framework was evaluated using synthetic SAT instances designed to mimic different structural properties:
- Power-law Instances: These reflect real-world problem structures where a small number of variables are highly connected.
- Uniform Instances: These feature a more homogeneous distribution of variables across constraints.
The researchers also varied the clause-to-variable ratio ($m/n$) to study the impact of constraint density. As the ratio increases, the "feasible region" of the problem shrinks, making it harder to find diverse solutions.
Key Findings
The study yielded several critical insights into the behavior of diverse SAT solving:
- Performance Superiority: The EDO-based hybrid significantly outperformed baseline methods, such as "Basic" solvers that simply exclude previous solutions, and standard bit-flip EAs. In lightly constrained problems ($m/n \leq 3$), the algorithm achieved over 96% of the theoretical maximum diversity.
- Structural Sensitivity: The optimal evolutionary strategy depends on the problem type. Mutation-only approaches were most effective for power-law instances (mimicking real-world structures), while crossover operators provided a significant boost for uniform instances.
- The Diversity Ceiling: There is a predictable "ceiling" on diversity. As the number of constraints increases, the available entropy in the solution space drops. The EDO framework effectively mapped this transition, showing how the "volume" of the feasible region contracts as problems become more complex.
Conclusion and Future Directions
By using a SAT solver as a navigator, the authors have demonstrated that evolutionary algorithms can effectively explore the complex, brittle landscapes of Boolean satisfiability. While the current study focused on instances with 100 variables, it provides a proof-of-concept for a new class of hybrid solvers.
Future work will look toward scaling these methods to industrial-sized instances and extending the framework to MaxSAT. In MaxSAT, the goal is to satisfy the maximum number of clauses possible, a variation that is often more applicable to optimization problems where a perfectly satisfying assignment may not exist.
Summary updated