Hybrid Batch Bayesian Optimization

Javad Azimi, Ali Jalali, Xiaoli Fern

TL;DR

This paper introduces a Hybrid Batch Bayesian Optimization (BO) algorithm that dynamically balances the sample efficiency of sequential optimization with the time efficiency of parallel evaluations. By establishing a rigorous theoretical bound on estimation error, the algorithm automatically adjusts its batch size on the fly, achieving up to a 78% speedup over sequential methods without sacrificing optimization performance.

What Problem Does This Paper Address?

Bayesian Optimization (BO) is a powerful framework for optimizing expensive, black-box functions—such as maximizing the power output of a microbial fuel cell or tuning hyperparameters. Traditionally, BO operates in a sequential mode: it selects one experimental point, waits for the time-consuming result, updates its probabilistic model, and selects the next point. While highly accurate, this is incredibly slow when you have the hardware to run multiple experiments in parallel.

Conversely, batch mode BO selects multiple points at once to run concurrently. While faster in terms of clock time, standard batch methods usually perform worse because later points in a batch are chosen without knowing the true outcomes of the earlier points in the same batch.

The authors address this fundamental trade-off: How can we leverage parallel testing capabilities to speed up optimization without suffering the performance degradation typical of batch BO?

Methods

The authors propose a hybrid approach that dynamically switches between sequential and batch modes with variable batch sizes. They use a Gaussian Process (GP) as the probabilistic model and Expected Improvement (EI) as the selection criterion.

To build a batch without waiting for real-world experimental results, the algorithm simulates the process:

  1. Select the first point using standard sequential EI.
  2. Simulate the outcome of this point using the GP's predicted mean ($\hat{y} = \mu_{x|O}$).
  3. Update the GP prior provisionally with this simulated data point and select a subsequent point using a modified "simulated" EI ($\widehat{EI}$).
  4. Evaluate a stopping criterion: Crucially, the authors derive a theoretical bound that measures how much this simulated hallucination biases the model. If the estimated bias exceeds a predefined threshold ($\epsilon$), the algorithm stops adding points to the batch and submits the current batch for actual parallel evaluation.

This allows the algorithm to naturally behave sequentially in early stages (when uncertainty is high and bias grows quickly) and transit to larger batch sizes in later stages (when the model is more confident).

Datasets

The algorithm was evaluated on eight benchmark problems:

  • Six Synthetic Functions: Cosines (2D), Rosenbrock (2D), Hartman (3D), Hartman (6D), Shekel (4D), and Michalewicz (5D).
  • Two Real-World Engineering Benchmarks:
  • Fuel Cell: Optimizing the surface properties of anodes to maximize electricity generation in nano-enhanced Microbial Fuel Cells.
  • Hydrogen: Optimizing pH and Nitrogen levels to maximize hydrogen production from bacteria.

The complex landscapes of the real-world design spaces are illustrated below:

Figure 1: The contour plot for FuelCell and Hydrogen.

Key Insights and Ideas

  • The "Best Liar" is the Mean: In batch BO, a popular heuristic is the "constant liar" approach, where simulated points are assigned an arbitrary constant value (like the maximum value seen so far). The authors prove mathematically that setting the simulated outcome to the GP's predicted mean ($\hat{y} = \mu_{x|O}$) minimizes the expected estimation error, providing the first solid theoretical justification for this choice.
  • Localized Influence (Hyper-spheres): The authors demonstrate that a selected point's impact on the model's variance and expected value is localized within a hyper-sphere centered around that point. Points outside this sphere remain unaffected, meaning the algorithm can safely sample far-away regions in parallel.
  • Self-Tuning Behavior: The algorithm requires no manual scheduling between batch and sequential modes. The mathematical error bounds automatically enforce sequential behavior when data is sparse and naturally unlock parallel batching as more data is gathered.

Key Results

The hybrid algorithm was tested against pure sequential EI, random sampling, and state-of-the-art batch heuristics (like Simulation Matching and Constant Liar variants) across 100 independent runs.

  • Massive Speedups: The hybrid algorithm achieved up to a 78% speedup over sequential EI on high-dimensional problems (Michalewicz, Shekel, and Hartman 6), coming remarkably close to the theoretical maximum batch speedup of 80% (for a max batch size of 5).
  • No Performance Loss: Despite the high parallelization, the simple regret (optimization error) remained virtually identical to the highly optimized, sample-efficient sequential EI policy.

As seen in the performance curves below, the hybrid approach (represented by $\hat{y} = \mu$) tracks the sequential baseline closely while outperforming other batch strategies:

Figure 2: The performance of different batch algorithms for batch size 5.

Limitations and Future Work

  • Parameter Tuning: The stopping threshold ($\epsilon$) must be manually set and adjusted based on the dimensionality of the problem (e.g., the authors used $\epsilon = 0.02$ for low-dimensional spaces and $\epsilon = 0.2$ for higher dimensions). A method to automatically scale $\epsilon$ would be a valuable extension.
  • Acquisition Function Constraints: The current theoretical framework is tailored specifically to the Expected Improvement (EI) policy. Extending these dynamic error bounds to other popular acquisition functions, such as Upper Confidence Bound (UCB) or Thompson Sampling, remains an open area for future research.

Summary updated

BibTeX
@inproceedings{azimi2012hybrid,
  author = {Javad Azimi and Ali Jalali and Xiaoli Fern},
  title = {{Hybrid Batch Bayesian Optimization}},
  booktitle = {International Conference on Machine Learning},
  year = {2012},
  url = {https://openreview.net/forum?id=ry-fU3-_bH},
}
Figure