Auto-WEKA: Automated Selection and Hyper-Parameter Optimization of Classification Algorithms

Chris Thornton, Frank Hutter, Holger H. Hoos, Kevin Leyton-BrownarXiv 2012

Introduction: The CASH Problem

Applying machine learning effectively often requires navigating a "black art" of arbitrary choices. Practitioners must decide between various classification algorithms (e.g., Support Vector Machines vs. Random Forests) and then fine-tune their associated hyperparameters. This challenge is formally known as the Combined Algorithm Selection and Hyperparameter optimization (CASH) problem.

Traditionally, these steps are handled in isolation or through manual trial-and-error, which is inefficient given the massive, hierarchical search space. Auto-WEKA addresses this by treating algorithm selection as a high-level hyperparameter and employing Bayesian optimization to find optimal configurations automatically.

Methodology: Sequential Model-Based Optimization

To solve the CASH problem, the authors leverage Sequential Model-Based Optimization (SMBO). This class of Bayesian optimization algorithms is designed to navigate complex, high-dimensional spaces where evaluations are expensive.

The study compares two primary optimizers:

  • SMAC (Sequential Model-based Algorithm Configuration): Utilizes Random Forests to model the relationship between hyperparameters and performance, excelling at handling categorical and hierarchical dependencies.
  • TPE (Tree-structured Parzen Estimator): Models the distribution of high-performing vs. low-performing configurations using kernel density estimators.

The system integrates the entire WEKA machine learning library, providing access to 39 classifiers and numerous feature selection techniques.

The Hierarchical Search Space

The search space in Auto-WEKA is inherently hierarchical. For instance, parameters like the "number of hidden layers" are only relevant if a Neural Network is selected. By structuring the problem as a single hierarchical optimization task, the system can seamlessly transition between different model families during the search.

Hierarchical structure of the Auto-WEKA search space, including algorithm selection and feature selection parameters.

This unified space encompasses 786 parameters. Given that a simple discretization would result in over $10^{47}$ configurations, the efficiency of SMBO is critical for finding high-performing models within a reasonable timeframe.

Empirical Evaluation and Results

Auto-WEKA was evaluated on 21 benchmark datasets from the UCI repository and various large-scale challenges (e.g., MNIST, CIFAR-10, KDD Cup 09). The results demonstrate that the automated approach consistently outperforms standard baselines.

Frequency of selected classifiers for small and large datasets, demonstrating that no single algorithm is universally optimal.

Key findings include:

  • Superior Performance: The SMAC variant of Auto-WEKA outperformed the best default algorithm on 20 out of 21 datasets, often reducing relative error by more than 15%.
  • Dataset-Specific Adaptation: As shown in the distribution of selected classifiers, no single algorithm dominates across all tasks. Large datasets often favored complex meta-methods, while smaller datasets required simpler models or feature selection to mitigate overfitting.
  • Efficiency: Auto-WEKA achieved these results more efficiently than exhaustive "Random Grid Search" methods, even when the latter were given significantly more computational resources.

Conclusion and Future Work

Auto-WEKA proves that automating the selection and tuning of machine learning models can lead to state-of-the-art performance without manual intervention. While the system is robust, future improvements could include better parameter sharing within ensembles and using the CASH solver to iteratively build heterogeneous ensembles. By lowering the barrier to entry for high-performance machine learning, Auto-WEKA provides a valuable tool for both experts and non-experts alike.

Summary updated

BibTeX
@misc{thornton2012auto,
  author = {Chris Thornton and Frank Hutter and Holger H. Hoos and Kevin Leyton-Brown},
  title = {{Auto-WEKA: Automated Selection and Hyper-Parameter Optimization of Classification Algorithms}},
  year = {2012},
  eprint = {1208.3719},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1208.3719},
}
Figure