Hybrid Batch Bayesian Optimization

Javad Azimi, Ali Jalali, Xiaoli Zhang Fern

Bayesian Optimization (BO) is the gold standard for optimizing "black-box" functions that are expensive or time-consuming to evaluate. Whether you are tuning a complex machine learning model's hyperparameters or finding the optimal pH level for a chemical reaction, BO helps find the best solution with the fewest possible tests.

However, standard BO faces a practical bottleneck: it is strictly sequential. You run one experiment, wait for the result, update your model, and only then pick the next experiment. While highly intelligent and sample-efficient, this sequential waiting game is slow. Conversely, batch BO runs multiple experiments simultaneously. While much faster in wall-clock time, batching often leads to "wasted" experiments because the later points selected in a batch cannot benefit from the outcomes of the earlier ones.

To bridge this efficiency gap, researchers have introduced a Hybrid Batch Expected Improvement framework. This algorithm dynamically decides when to run experiments in parallel (batch mode) versus one-by-one (sequential mode), achieving up to a 78% speedup in experimental time without sacrificing the optimization accuracy of traditional sequential methods.

The Methodology: Knowing When to Batch

The core innovation of the hybrid approach is to simulate a sequential process and only commit to a batch of experiments if the "guess" about the outcome of the current experiments is mathematically reliable enough.

  1. Probabilistic Foundation: The framework uses Gaussian Processes (GP) to model the unknown function and Expected Improvement (EI) as the criterion for selecting the next experimental point.
  2. The "Liar" Strategy: To pick the second point in a batch before the first experiment has actually finished, the algorithm "lies" to itself. It assumes the first experiment will return the GP's predicted mean ($\hat{\mu}$). The paper theoretically justifies that using the predicted mean is optimal because it minimizes the expected estimation error, unlike previous "Constant Liar" methods that used maximum or minimum observed values.
  3. Dynamic Stopping Criterion: Instead of relying on a fixed, arbitrary batch size, the algorithm calculates a theoretical bound on the estimation error. If adding another point to the batch is likely to deviate too much from what a true sequential policy would have picked, the algorithm stops batching and waits for real data.

This creates a natural transition: early in the optimization process, uncertainty is high, and the algorithm operates mostly sequentially. As more data is collected and the model becomes more confident, it safely scales up to larger batches.

Applications and Benchmarks

The researchers evaluated their approach across a diverse mix of synthetic and real-world problems. Synthetic benchmarks included standard optimization test functions like Cosines, Rosenbrock, Hartman, Shekel, and Michalewicz.

Beyond synthetic math, the framework was tested on complex real-world applications:

  • Microbial Fuel Cells (MFC): Optimizing the surface properties of anodes to maximize power output.
  • Hydrogen Production: Optimizing pH and Nitrogen levels for bacterial hydrogen production.
Contour plots representing the objective functions for the Fuel Cell and Hydrogen production real-world datasets.

Key Results: Speed Without Sacrifice

The hybrid approach yielded impressive results, particularly on high-dimensional problems (like Michalewicz, Shekel, and Hartman 6), achieving massive speedups of 45% to 78%.

Crucially, this speed did not come at the cost of performance. Unlike previous batch methods, the Hybrid method's "simple regret"—a metric measuring how far the algorithm's best guess is from the true optimum—was nearly identical to the much slower sequential EI.

Regret vs. Number of Experiments, demonstrating that using the predicted mean closely matches the performance of the slower Sequential method.

Furthermore, the proposed stopping criterion is computationally efficient. It relies on matrix updates that are significantly faster than retraining the Gaussian Process from scratch for every potential batch point.

Limitations and Future Directions

While highly effective, the framework does have a few limitations. The algorithm relies on a threshold hyperparameter ($\epsilon$) to decide when to stop batching. While the authors provide functional values for their experiments, developing an automated way to set $\epsilon$ across different scales of functions would improve usability. Additionally, the impressive speedup calculations inherently assume that parallel "slots" (e.g., lab equipment or compute nodes) are readily available and that the bottleneck is the experiment time itself.

Looking forward, while this research focuses on Expected Improvement (EI), the theoretical framework and dynamic stopping criterion could potentially be extended to other popular Bayesian Optimization policies, such as Upper Confidence Bound (UCB) or Probability of Improvement (PI), opening the door to even broader applications.

Summary updated

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