BoTorch: A Framework for Efficient Monte-Carlo Bayesian Optimization
Maximilian Balandat, Brian Karrer, Daniel R. Jiang, Samuel Daulton, Benjamin Letham, Andrew Gordon Wilson, Eytan Bakshy
TL;DR
BoTorch introduces a modular, PyTorch-based framework for Monte Carlo Bayesian optimization that unifies MC acquisition functions with sample-average optimization and auto-differentiation. It provides rigorous SAA convergence guarantees and a novel One-Shot Knowledge Gradient for scalable look-ahead optimization, all within a differentiable, hardware-accelerated infrastructure built atop GPyTorch. The approach yields improved sample efficiency and practical scalability across synthetic benchmarks and real-world HPO tasks, with strong support for multi-objective and asynchronous settings. By enabling easy composition and rapid prototyping of new BO methods, BoTorch offers a versatile platform for advancing Bayesian optimization research and applications.
Abstract
Bayesian optimization provides sample-efficient global optimization for a broad range of applications, including automatic machine learning, engineering, physics, and experimental design. We introduce BoTorch, a modern programming framework for Bayesian optimization that combines Monte-Carlo (MC) acquisition functions, a novel sample average approximation optimization approach, auto-differentiation, and variance reduction techniques. BoTorch's modular design facilitates flexible specification and optimization of probabilistic models written in PyTorch, simplifying implementation of new acquisition functions. Our approach is backed by novel theoretical convergence results and made practical by a distinctive algorithmic foundation that leverages fast predictive distributions, hardware acceleration, and deterministic optimization. We also propose a novel "one-shot" formulation of the Knowledge Gradient, enabled by a combination of our theoretical and software contributions. In experiments, we demonstrate the improved sample efficiency of BoTorch relative to other popular libraries.
