Generating Satisfiable Problem Instances

Dimitris Achlioptas, Carla P. Gomes, Henry A. Kautz, Bart Selman

Abstract

Evaluating incomplete search algorithms, such as local search solvers, requires a steady supply of hard, guaranteed-satisfiable problem instances. This paper introduces the "Quasigroups With Holes" (QWH) benchmark, a novel generation method that produces unbiased, computationally intense instances by punching holes into randomly generated Latin squares. The authors demonstrate that the peak in search complexity for these instances coincides with a sharp phase transition in the problem's "backbone"—the set of variables that are invariant across all solutions. Additionally, they propose an empirical scaling law that aligns these hardness transitions across varying problem orders.

Introduction

In Boolean Satisfiability (SAT) and Constraint Satisfaction Problems (CSP), solvers are generally categorized as complete or incomplete. While complete solvers can prove unsatisfiability, incomplete local search methods are often faster at finding solutions for large, satisfiable instances. However, benchmarking local search is challenging because standard random generators often produce unsatisfiable instances, making it difficult to distinguish between solver failure and inherent impossibility. The QWH generator addresses this by ensuring satisfiability through a "construction-by-erasure" approach.

Methodology: Quasigroups With Holes (QWH)

The generation process relies on the Quasigroup Completion Problem (QCP). A quasigroup of order $N$ is an $N \times N$ Latin square. The authors generate a random, complete Latin square using a Markov chain Monte Carlo (MCMC) algorithm. Subsequently, a fraction $p$ of the entries are "punched out" to create holes, resulting in a partial Latin square that is guaranteed to have at least one valid completion. These instances are then encoded into Conjunctive Normal Form (CNF) to be tested against solvers like Satz (complete) and Walksat (local search).

The Backbone Phase Transition

A key contribution of this work is the identification of the "backbone" as a driver of computational hardness. The backbone consists of the variables that must take the same value in every valid solution to the problem. As the number of holes decreases, the problem moves from a state with a negligible backbone to one where nearly all variables are fixed.

Correlation between the backbone size and local search cost.

As shown in the figure above, the computational cost for local search solvers peaks exactly at the point where the backbone size undergoes a sharp transition. This "easy-hard-easy" pattern, previously well-documented for complete solvers at the SAT/UNSAT boundary, is here demonstrated for incomplete solvers using only satisfiable instances.

Scaling and Complexity

As the order $N$ of the quasigroup increases, the location of the hardness peak shifts. To find a universal behavior, the authors explored different re-parameterizations of the hole density. They discovered that scaling the number of holes by $N^{1.55}$ rather than the total number of cells $N^2$ causes the backbone transitions for all problem sizes to collapse onto a single curve.

Alignment of backbone transitions across problem orders using $N^{1.55}$ scaling.

This empirical scaling law suggests a fundamental structural property of the QWH domain and allows researchers to predict the difficulty of instances as they scale up the problem size.

Conclusion

The QWH benchmark provides a rigorous framework for testing local search algorithms on hard, structured, and guaranteed-satisfiable instances. By linking computational hardness to the physical-like phase transition of the backbone, the authors provide both a practical tool for the SAT community and a deeper theoretical understanding of what makes a problem hard to solve. Future work remains in analytically deriving the $N^{1.55}$ scaling factor and extending this methodology to other NP-complete domains.

Summary updated

BibTeX
@inproceedings{achlioptas2000generating,
  author = {Dimitris Achlioptas and Carla P. Gomes and Henry A. Kautz and Bart Selman},
  title = {{Generating Satisfiable Problem Instances}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2000},
}
Figure