NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Asynchronous Parallel Bayesian Optimisation via Thompson Sampling

Kirthevasan Kandasamy, Akshay Krishnamurthy, Jeff G. Schneider, Barnabás PóczosarXiv 2017

Introduction

Bayesian Optimisation (BO) has become the standard approach for tuning expensive "black-box" functions, such as the hyperparameters of deep neural networks. Traditionally, BO operates sequentially: an algorithm evaluates a point, waits for the result, updates the model, and then selects the next point. However, in modern cloud computing environments with multiple available workers ($M$), this sequential nature leads to significant underutilization of resources.

Parallelizing BO presents two primary challenges:

  1. Information Lag: When a worker becomes available, other evaluations are often still "in flight." The algorithm must select a new point without the benefit of these pending results.
  2. Variable Evaluation Times: Real-world tasks often have non-uniform durations due to hardware contention or parameter-specific complexity. Synchronous methods, which wait for a full batch of $M$ results, suffer from the "straggler effect," where idle workers wait for the slowest task to complete.

Methodology: Asynchronous Thompson Sampling (asyTS)

To address these issues, this paper introduces Asynchronous Thompson Sampling (asyTS). Thompson Sampling is a randomized algorithm that selects points by drawing a random function from the current Gaussian Process (GP) posterior and finding its maximum.

In the asynchronous setting, as soon as any worker completes a task, the algorithm updates the model with that single observation and immediately dispatches a new task. The inherent stochasticity of Thompson Sampling naturally encourages exploration and diversity among workers, eliminating the need for complex "hallucination" heuristics often required by deterministic methods like Upper Confidence Bound (UCB) or Expected Improvement (EI).

Algorithm 1 (seqTS) and Algorithm 2 (asyTS) pseudocode.

The authors provide a rigorous theoretical framework, proving that $n$ evaluations distributed among $M$ workers yield a regret bound nearly identical to $n$ evaluations performed sequentially. This suggests that the "penalty" for parallelization is minimal compared to the gains in wall-clock time.

Experimental Evaluation

The performance of asyTS was evaluated across two domains:

  • Synthetic Benchmarks: Standard optimization functions (Branin, Hartmann, Park, Currin-exponential) were tested under various simulated time distributions (Uniform, Half-Normal, Exponential, and Pareto).
  • Real-world Application: Hyperparameter tuning for a 6-layer Convolutional Neural Network (CNN) on the CIFAR-10 dataset using 4 GPUs.

Key Results and Insights

The experiments demonstrate that asyTS consistently outperforms both synchronous and sequential methods in time-constrained scenarios.

Performance comparison of various BO methods across synthetic benchmarks. asyTS (blue circles) consistently achieves lower regret over time.

The Advantage of Asynchrony

In scenarios with high variance in evaluation times (e.g., exponential distributions), synchronous methods are significantly slower—often by a factor of $\log(M)$—as they are bottlenecked by the slowest worker in each batch. asyTS avoids this idle time entirely.

Resource Utilization vs. Information Gain

A critical insight is that resource utilization is often more important than having perfectly up-to-date information. While asyTS operates with a slight "information lag," the increased volume of evaluations it can perform within a fixed time window leads to superior optimization results.

CNN Hyperparameter Tuning

On the CIFAR-10 task, asyTS reached high test accuracy (~80%) significantly faster than synchronous alternatives. It proved robust and efficient, finding high-performing models within a strict two-hour budget.

Limitations and Future Work

While asyTS shows strong performance, several areas remain for future exploration:

  • Initialization: Theoretical guarantees currently rely on an initial uncertainty sampling phase; the necessity of this in practice remains an open question.
  • Correlated Evaluation Times: The current model assumes evaluation time is independent of the query point $x$. Future work could incorporate models where certain hyperparameters explicitly influence task duration.
  • Prior Sensitivity: Like all GP-based methods, performance is sensitive to the choice of kernels and priors. Improving "cold start" performance in parallel settings is a valuable direction for research.

Summary updated

BibTeX
@misc{kandasamy2017asynchronous,
  author = {Kirthevasan Kandasamy and Akshay Krishnamurthy and Jeff G. Schneider and Barnabás Póczos},
  title = {{Asynchronous Parallel Bayesian Optimisation via Thompson Sampling}},
  year = {2017},
  eprint = {1705.09236},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1705.09236},
}
Figure