mlrMBO: A Modular Framework for Model-Based Optimization of Expensive Black-Box Functions

Bernd Bischl, Jakob Richter, Jakob Bossek, Daniel Horn, Janek Thomas, Michel LangarXiv 2017 · DOI

Abstract

We present mlrMBO, a flexible and comprehensive R toolbox for model-based optimization (MBO), also known as Bayesian optimization, which addresses the problem of expensive black-box optimization by approximating the given objective function through a surrogate regression model. It is designed for both single- and multi-objective optimization with mixed continuous, categorical and conditional parameters. Additional features include multi-point batch proposal, parallelization, visualization, logging and error-handling. mlrMBO is implemented in a modular fashion, such that single components can be easily replaced or adapted by the user for specific use cases, e.g., any regression learner from the mlr toolbox for machine learning can be used, and infill criteria and infill optimizers are easily exchangeable. We empirically demonstrate that mlrMBO provides state-of-the-art performance by comparing it on different benchmark scenarios against a wide range of other optimizers, including DiceOptim, rBayesianOptimization, SPOT, SMAC, Spearmint, and Hyperopt.

Introduction

In fields ranging from industrial engineering to machine learning, researchers often encounter "black-box" functions: systems where inputs produce outputs without a known internal mathematical structure. These evaluations are frequently costly in terms of time or resources, such as tuning deep neural network hyperparameters or optimizing manufacturing parameters. Standard optimization techniques often fail in these scenarios because they require excessive evaluations or cannot handle complex parameter spaces involving categorical or conditional variables. mlrMBO was developed as a flexible, "plug-and-play" toolbox to handle these complexities efficiently within a limited evaluation budget.

Methodology: Sequential Model-Based Optimization

The core of mlrMBO is the Sequential Model-Based Optimization (SMBO) workflow. This iterative process approximates an expensive objective function using a cheaper mathematical surrogate.

Flowchart of the Sequential Model-Based Optimization (SMBO) loop.

The workflow, as illustrated above, consists of several modular steps:

  1. Initial Design: Generating a set of starting points.
  2. Surrogate Modeling: Fitting a regression model (e.g., Kriging or Random Forests) to the observed data.
  3. Infill Proposal: Using an acquisition function (like Expected Improvement) to propose new points that balance exploration and exploitation.
  4. Evaluation: Evaluating the true objective function at proposed points and updating the design.

mlrMBO leverages the mlr ecosystem, allowing any regression learner to serve as a surrogate. For mixed-type and hierarchical spaces, Random Forests are particularly effective due to their ability to handle categorical and conditional parameters naturally.

Iterative Refinement in Practice

The efficiency of MBO stems from its ability to refine the surrogate model over time, focusing evaluations on the most promising regions of the search space.

Comparison of MBO Iterations 3 and 4, showing the surrogate model (yhat) and expected improvement (ei) updating as new points are evaluated.

As shown in the comparison of iterations, the infill criterion (EI) identifies peaks where the potential for improvement is highest. Evaluating these points refines the surrogate model ($\hat{y}$), eventually converging on the global optimum of the true function ($y$) with minimal evaluations.

Empirical Performance and Results

The authors evaluated mlrMBO across standard numeric functions, the HPOlib suite for machine learning tuning, and the BBOB bi-objective suite:

  • Top-Tier Performance: In single-objective numeric benchmarks, mlrMBO achieved the best average rank (1.95), outperforming established tools like DiceOptim and SPOT.
  • Mixed-Space Superiority: On HPOlib benchmarks, the framework ranked 1st overall, proving particularly effective on complex tasks like tuning Deep Belief Networks with 35 parameters.
  • Multi-Objective Excellence: Implementations like MSPOT and SMS-EGO significantly outperformed baseline evolutionary algorithms (NSGA-II) and specialized packages like GPareto.

Conclusion

mlrMBO stands out through its modularity and integration with the R machine learning ecosystem. By decoupling the surrogate model, infill criterion, and optimizer, it allows researchers to tailor strategies to specific problem geometries. Future development will shift toward the mlr3 framework to take advantage of modern software architectures while maintaining this modular philosophy.

Summary updated

BibTeX
@misc{bischl2017mlrmbo,
  author = {Bernd Bischl and Jakob Richter and Jakob Bossek and Daniel Horn and Janek Thomas and Michel Lang},
  title = {{mlrMBO: A Modular Framework for Model-Based Optimization of Expensive Black-Box Functions}},
  year = {2017},
  eprint = {1703.03373},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1703.03373},
}
Figure