TL;DR
Proteus is a novel hierarchical portfolio solver that doesn't just pick the best algorithm for a Constraint Satisfaction Problem (CSP)—it decides whether to solve it as a CSP at all. By dynamically choosing between native CSP solvers and various SAT-based encodings, Proteus achieves performance close to a theoretical "Virtual Best Solver," significantly outperforming traditional single-paradigm approaches.
What Problem Does This Paper Address?
In the world of combinatorial optimization, two heavyweights dominate: Constraint Satisfaction Problems (CSP) and Boolean Satisfiability (SAT). While both are NP-complete and theoretically interchangeable, they have very different strengths in practice.
The challenge is that no single solver or problem representation is universally superior. A specific CSP instance might be solved in milliseconds by a dedicated CSP solver but take hours if translated into SAT—or vice versa. Furthermore, even if you decide to translate a CSP into SAT, the way you encode it (e.g., Direct, Support, or Order encoding) drastically changes how a SAT solver performs.
Existing "portfolio" solvers usually stick to one side of the fence, picking the best CSP solver or the best SAT solver. The authors of this paper argue that this ignores a massive opportunity: choosing the right representation and solver in combination.
Methods
The authors introduce Proteus, named after the shape-shifting Greek sea god. Proteus uses a hierarchical decision-making process powered by machine learning to navigate the solving strategy:
- Top-Level Decision: Should we solve this as a CSP or translate it to SAT?
- Mid-Level Decision: If SAT, which encoding should we use (Direct, Support, Order, or a hybrid Direct-Order)?
- Bottom-Level Decision: Which specific solver (from a pool of 4 CSP and 6 SAT solvers) will perform best on this specific representation?
To make these choices, Proteus extracts features from the problem instance (like constraint tightness and domain sizes). It uses these features to train various models—including regression (M5P, Linear Regression) and classification (Random Forests)—to predict which path will minimize the solving time.
Datasets
The researchers evaluated Proteus on 1,493 non-trivial instances from the 2009 CSP solver competitions. These instances cover diverse real-world and combinatorial problems like Timetabling, Job-Shop scheduling, and the Golomb Ruler problem. They specifically focused on challenging instances involving global and intensional constraints that weren't solved instantly during feature computation.
Key Insights and Ideas
-
Representational Complementarity: CSP and SAT solvers are often "orthogonal" in their strengths. As shown in the scatter plot below, many instances that are hard for CSP solvers are easy for SAT-based approaches, and vice versa. Scatter plot comparing Virtual Best SAT vs. Virtual Best CSP. Points below the line favor SAT; points above favor CSP.
-
The Phase Transition Effect: Solver performance is highly sensitive to "constraint tightness." In random binary CSPs, the best encoding for a SAT solver changes abruptly as the problem moves from "easy-satisfiable" to "hard-unsatisfiable" (the phase transition). Performance of MiniSat and Clasp across different encodings as constraint tightness varies.
-
Feature Efficiency: Interestingly, the authors found that using CSP-based features was often sufficient to make good decisions even for the SAT-based path. This saves significant time because you don't have to perform a costly SAT translation just to decide which solver to use.
Key Results
The authors used the PAR10 score (Penalized Average Runtime, where timeouts are counted as 10x the time limit) to measure success.
- Proteus vs. The Field: Proteus achieved a PAR10 score of 1774, solving 1424 instances. This is a massive improvement over the best CSP-only portfolio (PAR10: 3577) and the best SAT-only portfolio (PAR10: 17373).
- Proximity to Oracle: The "Virtual Best Solver" (a theoretical oracle that always picks the perfect solver/encoding) has a PAR10 of 97. While Proteus isn't perfect, it is significantly closer to this ideal than any existing single-paradigm approach.
- Hierarchical Advantage: The hierarchical model outperformed "flattened" portfolios (where all 22 possible encoding/solver combinations are treated as equal choices), proving that structuring the decision process helps the machine learning models learn more effectively.
Limitations and Future Work
- Global Encodings: Currently, Proteus makes a "global" decision to encode the entire problem using one method. The authors suggest that a "hybrid" approach—encoding different constraints within the same problem using different methods—could yield even better results.
- Generalization: While focused on CSP-to-SAT, the hierarchical portfolio concept could be generalized to other domains where multiple problem representations exist (e.g., Integer Programming vs. CSP).
- Feature Overhead: While CSP features are relatively cheap, the system still requires a few seconds of "probing" to gather dynamic features, which might be a significant overhead for very easy problems.
Summary updated