AutoFolio: An Automatically Configured Algorithm Selector

Marius Lindauer, Holger H. Hoos, Frank Hutter, Torsten SchaubJAIR 2015 · DOI

Introduction

In computational fields such as Boolean Satisfiability (SAT) and Constraint Programming (CSP), the performance of solvers is often highly instance-dependent. While one algorithm might excel at industrial logic problems, another may dominate random formulas. This has led to the development of Algorithm Selection (AS), a technique that extracts features from a problem instance to predict which solver in a portfolio will be the fastest. However, designing an effective algorithm selector is itself a complex task, traditionally requiring manual tuning and expert knowledge.

The Challenge of Algorithm Selection

Algorithm selection involves numerous design choices, including which features to compute, how to preprocess data (e.g., PCA, imputation), and which machine learning model (e.g., Random Forests, SVMs) to employ. Each of these components has its own set of hyperparameters. Historically, researchers have manually selected and tuned these strategies, a process that is time-consuming, prone to bias, and often results in sub-optimal performance because the ideal strategy varies significantly across different problem domains.

The AutoFolio Approach

AutoFolio addresses this by treating the design of an algorithm selector as an Automated Algorithm Configuration (AC) problem. It functions as a "meta-algorithm" that automatically builds the best possible selector for any given dataset.

AutoFolio combines two primary tools:

  1. claspfolio 2: A flexible framework implementing a wide array of AS strategies and preprocessing techniques.
  2. SMAC (Sequential Model-based Algorithm Configuration): An optimizer that searches the massive configuration space of claspfolio 2 to minimize runtime for a specific scenario.
The AutoFolio framework distinguishes between the offline training phase, where the selection model is optimized using SMAC, and the online solving phase.

By automating this process, AutoFolio configures everything from feature selection to "pre-solving schedules"—briefly running a few solvers to catch easy instances before committing to a final selection.

Evaluation and Datasets

The system was evaluated using the Algorithm Selection Library (ASlib) 1.0, which includes 13 diverse scenarios spanning SAT, Answer Set Programming (ASP), CSP, Max-SAT, Quantified Boolean Formulas (QBF), and Container Pre-marshalling. These meta-datasets provide solver performance data and pre-calculated features for thousands of instances, allowing for rigorous benchmarking.

Key Insights

  • Adaptability: The optimal selection strategy varies wildly between datasets. AutoFolio’s strength lies in its ability to adapt its internal architecture—switching between regression, classification, or pairwise voting—based on the specific data.
  • Efficiency Capping: AutoFolio automatically learns to cap feature calculation time (max-feature-time). This ensures that the overhead of "thinking" about which solver to use does not exceed the time saved by the selection itself.
  • Robustness via Pre-solving: The system frequently employs short pre-solving schedules as a safety net, providing a performance floor even if the primary machine learning model fails to make an ideal prediction.

Results

AutoFolio achieved significant performance gains, establishing new state-of-the-art results on 7 of the 13 scenarios and matching top performers on the rest. Compared to using the single best algorithm for each scenario, AutoFolio delivered average speedup factors ranging from 1.3 to 15.4.

Speedup factors of AutoFolio compared to other state-of-the-art selectors across 13 ASlib scenarios. Higher values indicate better performance relative to the single best algorithm.

Notably, on the "SAT12-RAND" scenario, AutoFolio was nearly 4x faster than the previous best specialized selector, SATzilla'11. It also improved upon the manually-tuned defaults of claspfolio 2 in 10 out of 13 cases.

Conclusion and Future Work

AutoFolio demonstrates that automated configuration can replace manual expert tuning in algorithm selection, leading to more robust and higher-performing systems. While the current implementation requires approximately 2 CPU days of training per scenario, this is a one-time cost that is often small compared to the initial data generation. Future work aims to extend AutoFolio to handle stochastic solvers and to configure parallel portfolios for multi-core environments.

Summary updated

BibTeX
@article{lindauer2015autofolio,
  author = {Marius Lindauer and Holger H. Hoos and Frank Hutter and Torsten Schaub},
  title = {{AutoFolio: An Automatically Configured Algorithm Selector}},
  journal = {J. Artif. Intell. Res.},
  year = {2015},
  doi = {10.1613/jair.4726},
}
Figure