Asynchronous Batch Bayesian Optimisation with Improved Local Penalisation

Ahsan S. Alvi, Bin Xin Ru, Jan-Peter Calliess, Stephen J. Roberts, Michael A. Osborne

Overview

Batch Bayesian Optimization (BO) is a standard technique for parallel hyperparameter tuning, but traditional synchronous approaches suffer from a major bottleneck: they waste valuable compute time waiting for the slowest job in a batch to finish. This paper introduces PLAyBOOK (Penalising Locally for Asynchronous Bayesian Optimisation on k workers), an asynchronous batch BO method. By using improved local penalization, PLAyBOOK immediately assigns new tasks to idle workers without redundantly sampling near currently running jobs. Surprisingly, PLAyBOOK not only speeds up wall-clock time but also improves sample efficiency compared to synchronous methods.

The Problem: Synchronous vs. Asynchronous BO

Bayesian Optimization is a popular strategy for optimizing expensive black-box functions, such as training machine learning models or testing chemical compounds. To accelerate this process, practitioners use "batch BO" to evaluate multiple configurations in parallel across k workers.

However, standard batch BO is synchronous: it waits for all k workers to finish their tasks before selecting the next batch of configurations. Because evaluation times often vary—for instance, training a large neural network takes longer than a small one—faster workers sit idle waiting for the slowest worker to finish.

Synchronous vs. Asynchronous execution timelines. Synchronous batches waste compute time (red) waiting for the slowest worker, whereas asynchronous execution immediately assigns new tasks.

Asynchronous BO solves this by assigning a new task to a worker the moment it becomes free. The challenge lies in figuring out where to send that free worker. The algorithm must account for the data already collected, plus the "busy" locations currently being evaluated by other workers, to avoid redundant sampling. Existing asynchronous methods either scale poorly computationally or rely too heavily on surrogate uncertainty, leading to suboptimal exploration.

Methods: Introducing PLAyBOOK

PLAyBOOK builds on the concept of "Local Penalisation," which artificially depresses the acquisition function around points currently being evaluated so the algorithm looks elsewhere. PLAyBOOK introduces two major improvements to this mechanism:

1. Hard Local Penaliser (HLP)

The original local penalizer can sometimes fail to penalize a busy region enough, leading to redundant samples. HLP is a more aggressive penalization function that forces the acquisition function to exactly zero at the busy location. This guarantees the algorithm will not sample the exact same spot twice.

2. Local Lipschitz Constants

To determine how wide the "exclusion zone" around a busy point should be, penalization methods use a Lipschitz constant (a measure of the function's maximum slope). Previous methods used a single global estimate. If the function has one very spiky region, the global constant becomes huge, making the exclusion zones tiny everywhere else.

PLAyBOOK estimates the Lipschitz constant locally for each busy point. This allows for large exclusion zones in flat, unexplored regions and small, precise exclusion zones in highly variable regions.

Comparison of global versus local Lipschitz constants. Using a global constant (left) creates overly broad exclusion zones, while local constants (right) adapt to the function's local variability.

Key Insights and Results

The authors evaluated PLAyBOOK on synthetic global optimization benchmarks (Eggholder, Ackley, and Michalewicz functions) and a real-world task: tuning a 6-layer Convolutional Neural Network (CNN) on the CIFAR-10 dataset.

  • Asynchronous is More Sample-Efficient: Conventional wisdom suggested asynchronous BO might be faster in wall-clock time but less data-efficient because it makes decisions with "incomplete" batches. The authors found the exact opposite. Asynchronous penalization-based BO actually requires fewer evaluations to find the optimum than synchronous BO, especially as batch sizes grow. In synchronous BO, penalizing k-1 points all at once can flatten out all the high-utility peaks of the acquisition function, forcing the algorithm to pick sub-optimal points just to fill the batch. Asynchronous BO updates the surrogate and penalizes sequentially, preserving better high-utility regions.
  • Superior Real-World Performance: When tuning 9 hyperparameters of a CNN on CIFAR-10 using 4 parallel workers (k=4), the variant using local Lipschitz constants (PLAyBOOK-LL) achieved the highest test accuracy (84.2%), beating out state-of-the-art baselines like Thompson Sampling (81.2%) and Kriging Believer (82.8%).
  • Better Exploration: Using local instead of global Lipschitz constants prevents the algorithm from getting trapped. In tests, a global constant caused the algorithm to waste time in flat boundary regions, while local constants correctly guided the search toward informative central peaks.

Limitations and Future Work

While highly effective, estimating local Lipschitz constants requires computing the posterior mean of the derivative Gaussian Process, which adds some computational overhead compared to simpler heuristics. Furthermore, the penalization logic inherently assumes the underlying objective function is Lipschitz continuous.

Despite these minor limitations, the advantages in resource utilization and sample efficiency are clear. The authors strongly recommend that practitioners currently using synchronous Local Penalisation switch to PLAyBOOK for parallel hyperparameter tuning.

Summary updated

BibTeX
@inproceedings{alvi2019asynchronous,
  author = {Ahsan S. Alvi and Bin Xin Ru and Jan-Peter Calliess and Stephen J. Roberts and Michael A. Osborne},
  title = {{Asynchronous Batch Bayesian Optimisation with Improved Local Penalisation}},
  booktitle = {International Conference on Machine Learning},
  year = {2019},
  url = {https://openreview.net/forum?id=ry-r0iZOWr},
}
Figure