TL;DR
This paper introduces PLAYBOOK, a novel asynchronous Bayesian Optimization (BO) method that significantly improves resource utilization in parallel hyperparameter tuning. By intelligently penalizing acquisition functions, PLAYBOOK achieves better or equal performance compared to synchronous methods in terms of both speed and sample efficiency, especially with larger batch sizes.
What Problem Does This Paper Address?
Bayesian Optimization (BO) is a powerful technique for optimizing expensive-to-evaluate functions, commonly used for hyperparameter tuning in machine learning. When multiple workers are available, "batch" BO methods can evaluate several configurations in parallel. However, traditional synchronous batch BO suffers from inefficiency: if one task in a batch takes much longer than others, all workers must wait for the slowest one to finish, leaving idle resources. Asynchronous BO aims to solve this by assigning new tasks to workers as soon as they become free, thus maximizing resource utilization. The challenge with asynchronous BO is that it might make decisions with less information than its synchronous counterpart, potentially leading to reduced sample efficiency. This paper addresses the trade-off between efficiency and sample efficiency in asynchronous BO, proposing a method that aims to achieve the best of both worlds.
Methods
The core contribution is the PLAYBOOK (Penalising Locally for Asynchronous Bayesian Optimisation on k workers) algorithm. PLAYBOOK builds upon the idea of Local Penalisation (LP), a technique used in synchronous BO to encourage diversity in batch selection by reducing the acquisition function's value in the neighborhood of already selected points.
Key methodological innovations include:
- Asynchronous Implementation: PLAYBOOK is designed for asynchronous parallel execution, where workers are reassigned tasks as soon as they complete their current ones, without waiting for the entire batch.
- Hard Local Penaliser (HLP): This is a novel penaliser function that aims to prevent redundant sampling. It incorporates beliefs about the objective function's Lipschitz continuity to define penalization regions. Crucially, HLP satisfies three properties: it shrinks with increasing uncertainty or decreasing expected function value, it shrinks with increasing Lipschitz constant, and it penalizes harder near busy locations (setting the acquisition function to zero at the busy point itself). This is an improvement over existing LP methods that might not penalize hard enough.
- Local Estimated Lipschitz Constants: Instead of using a single global Lipschitz constant for all penalizers, PLAYBOOK proposes using locally estimated constants. This allows for more adaptive penalization, creating larger exclusion zones in areas of high uncertainty and smaller ones in areas of high variability, leading to better exploration.
- Efficient Computation: The proposed methods are designed to be computationally efficient, allowing them to scale well to larger batch sizes.
Datasets
The paper evaluates its methods on:
- Synthetic Tasks: Several standard global optimization test functions are used, including:
- Ackley function (in R5 and R10)
- Michalewicz function (in R5 and R10)
- Eggholder function (in R2)
- Matérn-52 kernel-based functions (in R2 and R6)
- Real-World Application: The authors tune hyperparameters for a 6-layer Convolutional Neural Network (CNN) for an image classification task on the CIFAR-10 dataset. The hyperparameters optimized include learning rate, momentum, batch size, and the number of filters in convolutional layers.
Key Insights and Ideas
- Asynchronous BO is not inherently less sample-efficient: Contrary to some prior guidance, the paper demonstrates that asynchronous BO, particularly with PLAYBOOK, can be as good as or even better than synchronous BO in terms of sample efficiency, especially as batch sizes increase.
- Local penalization is key for asynchronous efficiency: The core idea of penalizing acquisition functions locally around busy tasks is crucial for making asynchronous BO effective. This prevents workers from picking points too close to tasks that are still being evaluated, thus promoting diversity and better exploration.
- Local Lipschitz constants offer better adaptability: Using locally estimated Lipschitz constants for penalization provides more nuanced control over exploration compared to a single global constant. This allows the algorithm to adapt better to the varying uncertainty and curvature of the objective function across the search space.
- PLAYBOOK excels with larger batch sizes: The performance gains of asynchronous PLAYBOOK over its synchronous counterparts become more pronounced as the batch size ($k$) increases, suggesting its suitability for scenarios with many parallel workers.
Key Results
- Wall-clock time: Asynchronous PLAYBOOK consistently outperforms synchronous BO in terms of wall-clock time, meaning it can find better solutions faster. This is attributed to better resource utilization.
- Number of evaluations (Sample Efficiency): For larger batch sizes ($k=16$), asynchronous PLAYBOOK methods show superior sample efficiency compared to their synchronous counterparts, achieving better regret with fewer function evaluations. This is a significant finding that challenges previous assumptions.
- Real-world performance: On the CIFAR-10 CNN hyperparameter tuning task, PLAYBOOK methods achieved superior performance compared to other asynchronous methods (Thompson Sampling and Kriging Believer), with PLAYBOOK-LL and PLAYBOOK-HL showing particularly strong results for larger batch sizes.
- Competitive performance: PLAYBOOK methods are shown to be competitive with, and often outperform, existing state-of-the-art asynchronous BO methods like Thompson Sampling (TS) and Kriging Believer (KB) on various benchmark functions.
Limitations and Future Work
- Approximation of Global Minimum: The paper notes that in practice, the global minimum $M$ is unknown and approximated by the best observed value. This approximation can lead to underestimation of the penalization region's extent. The HLP method is designed to mitigate this, but it's an inherent challenge in BO.
- Kernel Choice: While the paper uses a Matérn-52 kernel, the performance of BO methods can be sensitive to the choice of kernel and its hyperparameters.
- Future Work: The authors suggest further exploration of different penalizer functions and their properties, as well as investigating the application of PLAYBOOK to more complex, high-dimensional, and real-world optimization problems. The paper also hints at the potential for PLAYBOOK's asynchronous nature to be more inherently suited to penalization-based methods than synchronous approaches.
Summary updated