TL;DR
Building effective algorithm portfolios—systems that select the best solver for a specific problem instance—requires high-quality "features" to describe the problem. This paper demonstrates that for domains lacking well-studied features, like Constraint Satisfaction Problems (CSPs), you can simply encode the problem into SAT and use established SAT features to achieve state-of-the-art performance.
What Problem Does This Paper Address?
In the world of NP-complete problems, no single solver is the best for every instance. To solve this, researchers build algorithm portfolios: given a new problem, a "meta-solver" analyzes its features and picks the best tool from a toolbox of solvers.
However, this approach has a bottleneck: it requires a set of informative features that accurately describe the problem's structure. While the Boolean Satisfiability (SAT) community has spent a decade perfecting feature sets (like those used in SATzilla), other domains like Constraint Satisfaction Problems (CSPs) have less mature feature representations. The authors ask: Can we "borrow" the rich feature sets of SAT by transforming our CSP problems into SAT first?
Methods
The authors propose a preprocessing pipeline where a CSP instance is translated into a SAT formula before any features are computed. They test three standard polynomial-time encodings:
- Direct Encoding: Maps each CSP variable-value pair to a SAT variable.
- Support Encoding: Encodes the "support" for a value (which values in other variables are consistent with it).
- Order Encoding: Uses SAT variables to represent whether a CSP variable is less than or equal to a specific value.
Crucially, they also test "No Domain" (ND) variants of these encodings, which omit the clauses defining variable domains to see if the constraints alone provide enough structural information.
Once transformed, they extract 54 standard SAT features (size, graph-based, local search probing, etc.) and use the ISAC (Instance-Specific Algorithm Configuration) methodology to cluster instances and assign the best solver to each cluster.
Datasets
The evaluation uses a pool of 2,433 CSP instances from the international CSP solver competition. These include diverse problem types such as:
- Graph Coloring and Pigeon Hole problems.
- Quasi-group Completion and Langford problems.
- Real-world-style benchmarks like "Black Hole" and "Towers of Hanoi."
The portfolio itself consisted of six diverse solvers: abscon, csp4j, sat4j, pcs, gecode, and sugar.
Key Insights and Ideas
- Structural Preservation: The most significant finding is that polynomial-time transformations between NP-complete problems preserve enough structural "signal" for machine learning models to differentiate between problem classes.
- The "ND" Advantage: Omitting domain clauses (the ND variants) often improved performance. This suggests that the raw constraint structure is sometimes more informative for solver selection than the full, formal logic of the domain.
- Domain-Independent Potential: This serves as a proof-of-concept for "problem-independent" feature computation. Instead of inventing new features for every new domain, we can reduce them to a "canonical" domain like SAT.
Key Results
The authors compared their transformation-based approach against a portfolio using native CSP features and a "Virtual Best Solver" (VBS)—the theoretical ceiling if you always picked the perfect solver.
As seen in the results (Figure 1), the Support ND encoding actually outperformed the native CSP features, solving 2,301 instances compared to 2,297. Furthermore, all portfolio approaches significantly outperformed the "Best Single Solver," which only solved 2,115 instances. The researchers noted that their method closed at least 50% of the performance gap between a single solver and the theoretical VBS.
Limitations and Future Work
- Encoding Overhead: While the results include encoding time, transforming massive instances can be computationally expensive.
- Constraint Scope: The current tool is limited to inequality and binary extensional constraints. Expanding this to "global constraints" (common in industrial CSPs) is a necessary next step.
- Feature Selection: The paper uses a broad set of 54 SAT features; future work could investigate which specific SAT features are most "predictive" of CSP solver performance.
Summary updated