Abstract
This paper introduces parallelized versions of Thompson Sampling (TS) for Bayesian Optimization, enabling efficient function maximization across multiple workers. We prove that distributing evaluations is nearly as effective as sequential processing and demonstrate that an asynchronous approach (asyTS) is significantly faster and more robust than synchronous methods when evaluation times are unpredictable.
Introduction
Optimizing "expensive" black-box functions—such as hyperparameter tuning for deep neural networks or drug discovery experiments—is a core challenge in machine learning. Bayesian Optimization (BO) typically addresses this by sequentially selecting points to evaluate based on a probabilistic surrogate model. However, the rise of parallel computing resources (e.g., GPU clusters) necessitates algorithms that can manage multiple concurrent evaluations.
The primary challenge in parallel BO is maintaining diversity among selected points to avoid redundant evaluations while maximizing worker utilization. Synchronous "batch" methods often lead to idle workers waiting for the slowest evaluation in a set. This paper proposes using Thompson Sampling as a natural mechanism for parallelization, leveraging its inherent stochasticity to ensure diversity without complex heuristics.
Methods: Parallel Thompson Sampling
The authors adapt Thompson Sampling (TS) to parallel settings by utilizing its randomized nature. In standard TS, a sample function is drawn from a Gaussian Process (GP) posterior, and its maximum is selected for evaluation.
Synchronous vs. Asynchronous Execution
Two main parallel strategies are proposed:
- synTS (Synchronous): Dispatches a batch of $M$ points to $M$ workers by drawing $M$ independent samples from the current posterior. The model is updated only after all $M$ results are returned.
- asyTS (Asynchronous): Updates the model immediately whenever any worker finishes and dispatches a new point based on the updated posterior.
The asynchronous approach is particularly robust to "jitter" in evaluation times, as it ensures that no worker remains idle. The randomness of TS acts as a built-in diversity mechanism: because each worker maximizes a different random sample of the function, they naturally explore different promising regions of the search space.
Experimental Evaluation
The algorithms were tested on a variety of benchmarks:
- Synthetic Functions: Standard global optimization benchmarks including Branin, Park1/2, Hartmann6/18, and CurrinExp-14, testing various dimensionalities and noise levels.
- Real-world Task: Hyperparameter tuning for a 6-layer Convolutional Neural Network (CNN) trained on the CIFAR-10 dataset.
Evaluation times were modeled as random variables (e.g., Exponential or Half-Normal) to simulate realistic computing environments where task durations vary.
Key Results and Insights
The experiments yielded several critical findings regarding the efficiency and scalability of parallel TS:
- Superiority of Asynchronicity: In scenarios with variable evaluation times,
asyTSconsistently reached lower regret faster than both synchronous and sequential versions. It effectively balances information gain with high worker utilization. - State-of-the-Art Performance:
asyTSoutperformed popular parallel BO strategies, such as "hallucination" versions of Expected Improvement (EI) and Upper Confidence Bound (UCB).
- Theoretical Soundness: The authors prove that the "Bayes simple regret" for $n$ evaluations spread across $M$ workers is nearly identical to $n$ sequential evaluations. This confirms that parallelization provides a significant speedup in wall-clock time without a substantial loss in search efficiency.
- Scalability: The performance of TS variants remained robust as the number of workers ($M$) increased, making it suitable for large-scale clusters.
Conclusion and Future Work
Parallel Thompson Sampling, particularly in its asynchronous form, provides a simple, theoretically grounded, and highly effective framework for parallel Bayesian Optimization. By treating randomness as a feature for diversity, it avoids the complexity of deterministic batching heuristics.
Future research directions include refining the theoretical regret bounds for asyTS and developing "cost-aware" models that account for evaluations where the time required depends on the input parameters. Additionally, addressing the computational cost of maximizing GP samples in very high-dimensional spaces remains an important practical consideration.
Summary updated