Abstract
Propositional Satisfiability (SAT) is a fundamental NP-complete problem with wide-ranging applications in hardware verification, logistics, and cryptography. Despite decades of research, no single solver dominates all types of SAT instances. This paper presents SATzilla, an automated framework that addresses the "Algorithm Selection Problem" by using machine learning to predict the most efficient solver for a given instance. By constructing a portfolio of diverse solvers and employing Empirical Hardness Models (EHMs), SATzilla significantly outperforms individual solvers, as evidenced by its dominant performance in the 2007 SAT Competition.
Introduction
In the field of SAT solving, researchers have traditionally focused on a "winner-take-all" paradigm, seeking a single algorithm that performs best on average across a benchmark. However, the performance of SAT solvers is highly instance-dependent; a solver optimized for industrial circuit verification may perform poorly on random mathematical formulas. This variability creates the Algorithm Selection Problem: given a specific, unseen SAT instance, how can we automatically choose the best algorithm from a library of candidates to minimize runtime?
SATzilla solves this by treating algorithm selection as a regression problem. By extracting structural features from an instance and using machine learning to predict solver runtimes, SATzilla builds a meta-solver that is greater than the sum of its parts.
The SATzilla Framework
The SATzilla framework operates in two distinct phases: an intensive offline training phase and a rapid online selection phase.
Offline Training and Model Building
To build the predictive engine, the authors first identified 48 "cheap" features of SAT instances. These include variable-to-clause ratios, graph-based properties (such as variable-clause incidence graphs), and data from short "probing" runs of DPLL or local search algorithms.
The training process involves:
- Data Collection: Running a suite of high-performance solvers on thousands of training instances to record actual runtimes.
- Empirical Hardness Models (EHMs): Using Ridge Regression to map the 48 instance features to the logarithm of a solver's runtime.
- Hierarchical Modeling: Recognizing that solvers behave differently on satisfiable versus unsatisfiable instances, the system employs a classifier to predict an instance's status first, using that prediction to weight the subsequent runtime models.
Online Selection Process
When presented with a new, unknown SAT instance, SATzilla follows a structured execution pipeline:
- Pre-solving: A very fast solver is run for a few seconds to catch "easy" instances immediately, avoiding the overhead of feature extraction.
- Feature Extraction: If the instance remains unsolved, the system computes the 48 structural features.
- Selection: The EHMs predict the runtime for each solver in the portfolio based on the extracted features. The solver with the lowest predicted runtime is selected and executed.
- Backup: If feature computation fails or exceeds a 60-second timeout, the system falls back to a robust, general-purpose "backup" solver.
Evaluation and Datasets
SATzilla was evaluated using a massive collection of instances from the SAT Competitions (2002–2005) and the 2006 SAT Race. These instances were categorized into three tracks: Random (uniformly generated formulas), Handmade/Crafted (puzzles and mathematical problems), and Industrial (real-world problems like hardware verification). The framework's ability to generalize was tested on the then-new instances of the 2007 SAT Competition.
Key Insights
The Power of Diversity
SATzilla demonstrates that a solver that is mediocre on average but "brilliant" on a small subset of instances is a liability in a winner-take-all context but a massive asset in a portfolio. By leveraging these niche experts, the portfolio achieves higher overall coverage.
Automated Meta-Optimization
The framework introduces a method to automatically determine which solvers should be included in the portfolio and the optimal duration for pre-solvers. This removes human guesswork and allows the system to adapt to new solver libraries automatically.
Managing Overhead
A critical aspect of SATzilla is the management of feature cost. Because feature computation is overhead, the authors limited extraction to 60 seconds. This ensures that the time spent "deciding" does not outweigh the time saved by picking a faster solver.
Results and Impact
SATzilla's performance in the 2007 SAT Competition was a landmark for portfolio-based methods. The system won three gold, one silver, and one bronze medal across various categories.
Key performance metrics included:
- Speedups: In the "Random" category, SATzilla was more than three times faster on average than the best single component solver (March_dl04).
- Success Rate: In the "All" category (a mix of all instance types), SATzilla solved 20% more instances than any non-portfolio solver within a 1,200-second cutoff.
- Oracle Proximity: SATzilla's performance was remarkably close to a "perfect oracle"—a hypothetical system that always picks the best solver with zero overhead.
Limitations and Future Work
Despite its success, SATzilla faces several challenges. The "Cold Start" problem is significant; building a portfolio requires an immense amount of initial computation to train the models. Additionally, the 48 features were manually designed by domain experts. Future iterations might explore deep learning to automatically extract features from raw SAT formulas. Finally, the authors noted that the system's classifier struggled with "Handmade" instances, suggesting that more refined instance-type taxonomies are required to further improve prediction accuracy.
Summary updated