NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

SMAC3: A Versatile Bayesian Optimization Package for Hyperparameter Optimization

Marius Lindauer, Katharina Eggensperger, Matthias Feurer, André Biedenkapp, Difan Deng, Carolin Benjamins, Tim Ruhkopf, Rene Sass, Frank Hutter

TL;DR

This paper introduces SMAC3, a flexible and robust open-source package for Bayesian Optimization (BO) designed to tackle various hyperparameter optimization (HPO) tasks. SMAC3 offers multiple BO approaches and user-friendly "facades" that simplify its application to common problems, making it easier for researchers and engineers to achieve better machine learning model performance with fewer evaluations.

What Problem Does This Paper Address?

Machine learning models often have numerous hyperparameters that significantly influence their performance. Finding the optimal combination of these hyperparameters is a challenging and time-consuming task, often referred to as Hyperparameter Optimization (HPO). While methods like random search exist, they can be inefficient. Bayesian Optimization (BO) has emerged as a more sample-efficient approach, but it can be sensitive to its own design choices and requires careful selection of algorithms and configurations for different problems. This paper addresses the need for a versatile, robust, and easy-to-use tool that can handle diverse HPO scenarios, from optimizing single models to configuring complex systems across multiple problem instances.

Methods

SMAC3 is built upon the principles of Bayesian Optimization and offers a modular framework with several key features:

  • Multiple BO Approaches: SMAC3 implements various BO strategies, allowing users to select the most suitable one for their specific task.
  • Facades for Different Use Cases: The package provides pre-configured "facades" that encapsulate common BO setups for distinct problems. These include:
  • SMAC4BB: For optimizing low-dimensional, continuous black-box functions, often used for basic hyperparameter tuning. It defaults to a Sobol sequence for initial design, a Gaussian Process (GP) with a Matérn kernel as the surrogate model, and Expected Improvement (EI) as the acquisition function.
  • SMAC4HPO: Designed for the Combined Algorithm Selection and Hyperparameter Optimization (CASH) problem, where both the algorithm and its hyperparameters are selected. It utilizes a Random Forest (RF) as the surrogate model and logEI for optimization.
  • SMAC4MF: Addresses multi-fidelity optimization for expensive tasks (like deep learning), where cheaper approximations of the true cost are used. It combines Hyperband for intensification with BO, using RFs for surrogate modeling.
  • SMAC4AC: Focuses on Algorithm Configuration (AC), aiming to find robust configurations across multiple problem instances. It employs RFs and aggressive racing for efficient exploration.
  • Flexibility and Extensibility: SMAC3 supports a Python interface and a Command Line Interface (CLI) for integration with arbitrary processes and languages. It also offers parallelization capabilities via DASK and by running independent SMAC3 instances.
  • Customized Surrogate Models: SMAC3 leverages Random Forests (RFs) as surrogate models, which are particularly effective for higher-dimensional and complex search spaces, outperforming traditional Gaussian Processes in some scenarios.

Datasets

The paper evaluates SMAC3 on several benchmarks, including:

  • NetLetter (6D), NBHPONaval (9D), and Nas1Shot12 (9D): These are tabular or surrogate benchmarks from HPOBench, used to simulate runtime and compare performance.
  • DNNs on the letter dataset: Used for evaluating multi-fidelity optimization.
  • Naval-Propulsion dataset: A joint HPO+NAS benchmark.
  • Pure NAS benchmark: Used for evaluating NAS performance.

The paper does not introduce new datasets but rather uses existing ones to demonstrate SMAC3's capabilities.

Key Insights and Ideas

  • Versatility is Key: The paper highlights that a single BO approach doesn't fit all HPO problems. SMAC3's strength lies in its ability to adapt to different scenarios through its various facades and modular design.
  • Random Forests Shine in High Dimensions: For more complex and higher-dimensional hyperparameter spaces, SMAC3's use of Random Forests as surrogate models proves to be more effective than traditional Gaussian Processes, especially in the context of Algorithm Configuration.
  • Simplifying BO for Users: The introduction of "facades" is a significant contribution, abstracting away much of the complexity of BO and making it more accessible to users who may not be BO experts. This lowers the barrier to entry for applying advanced optimization techniques.
  • Multi-Fidelity Optimization for Expensive Tasks: SMAC4MF demonstrates how SMAC3 can efficiently handle computationally expensive tasks by intelligently leveraging cheaper approximations of the true objective function, a crucial capability for modern deep learning research.

Key Results

SMAC3 demonstrates strong performance across various benchmarks:

  • Competitive Performance: SMAC3's multi-fidelity approach (SMAC4MF) performs comparably to or better than established methods like Hyperband and BOHB on surrogate benchmarks, often achieving better performance in the middle stages of optimization.
  • Outperforms Dragonfly: SMAC3 consistently outperforms the Dragonfly optimizer on the tested benchmarks.
  • Successful in Real-World Applications: SMAC3 has been integrated into successful AutoML tools like auto-sklearn and was part of the winning solution for the latest BBO challenge, underscoring its practical utility beyond academic research.
  • Scalability: SMAC3 has been used to optimize configuration spaces with over 300 hyperparameters for SAT solvers, achieving significant speedups.

Limitations and Future Work

  • Landscape Structure Exploitation: The authors acknowledge that SMAC3, in its current form, does not fully exploit the landscape structure of the optimization problems.
  • Future Directions:
    • Local BO Integration: The team plans to integrate local Bayesian Optimization approaches to better leverage landscape structure.
  • Adaptive SMAC3 Settings: To further simplify usage, they aim to develop mechanisms for adaptively selecting SMAC3's own hyperparameters on the fly, potentially using bandits or reinforcement learning.

Summary updated

BibTeX
@article{lindauer2023smac,
  author = {Marius Lindauer and Katharina Eggensperger and Matthias Feurer and André Biedenkapp and Difan Deng and Carolin Benjamins and Tim Ruhkopf and Rene Sass and Frank Hutter},
  title = {{SMAC3: A Versatile Bayesian Optimization Package for Hyperparameter Optimization}},
  journal = {AutoML (Journal Track)},
  year = {2023},
  url = {https://openreview.net/forum?id=d9pfnSyqQc},
}
Figure