Best arm identification via Bayesian gap-based exploration

Matthew W. Hoffman, Bobak Shahriari, Nando de FreitasarXiv 2013

Abstract

This paper presents BayesGap, an algorithm designed for fixed-budget best arm identification in high-dimensional spaces. By integrating Bayesian modeling via Gaussian Processes with a gap-based exploration strategy, BayesGap effectively leverages correlations between arms. This approach allows for superior performance in scenarios where the number of potential options significantly exceeds the available trial budget, outperforming both traditional frequentist bandit algorithms and standard Bayesian optimization techniques.

Introduction

In many real-world engineering and data science tasks, the goal is to identify the single best configuration from a large set of candidates under a strict resource constraint. This is known as the fixed-budget best arm identification problem. Unlike standard multi-armed bandit problems that minimize cumulative regret, this setting prioritizes the quality of the final recommendation at the end of the budget.

Traditional algorithms often treat each "arm" (option) as independent, requiring at least one trial per arm to make an informed decision. However, in high-dimensional spaces—such as hyperparameter tuning for machine learning models—the number of arms $K$ often far exceeds the budget $T$. BayesGap addresses this by using Gaussian Processes (GPs) to model correlations, enabling the algorithm to infer the performance of untested options based on similar, tested ones.

The BayesGap Algorithm

BayesGap combines the predictive power of Bayesian Optimization with the strategic exploration of gap-based methods.

Gaussian Process Modeling

The algorithm employs a GP to maintain a posterior distribution over the performance of all arms. This allows for "information sharing" across the search space via a kernel function, making it possible to identify the best arm even with a very limited budget.

Gap-Based Exploration Strategy

At each iteration, BayesGap identifies two key candidates:

  1. The Leader ($J$): The arm with the highest expected value.
  2. The Challenger ($j$): The arm that poses the greatest threat to the leader, determined by the "gap" between its upper confidence bound and the leader's lower confidence bound.

The algorithm then evaluates the candidate with the highest uncertainty. This "two-player" strategy ensures that resources are not wasted on sub-optimal regions, even if they contain high uncertainty.

Exploration patterns of BayesGap vs. Expected Improvement (EI). BayesGap explores more broadly across model classes, whereas EI tends to over-invest in specific regions, potentially missing the global optimum.

Experimental Evaluation

The authors evaluated BayesGap against several baselines, including frequentist methods (UGap, UCBE) and Bayesian methods (Expected Improvement, Probability of Improvement, Thompson Sampling).

Traffic Sensor Network

Using data from 357 sensors on the I-880 highway, the task was to find the least congested location. BayesGap demonstrated a significantly lower probability of error compared to all other tested methods, including those that rely on independent arm assumptions.

Probability of error for various algorithms in the traffic sensor task. BayesGap achieves the lowest error rate, demonstrating its effectiveness in identifying the best arm under budget constraints.

Automatic Machine Learning (Auto-ML)

In a search space of 160 scikit-learn models for the UCI Wine Quality dataset, BayesGap was tasked with finding the best model within a budget of only 10 to 40 trials. While frequentist methods failed due to the small budget, BayesGap and Thompson Sampling emerged as top performers. Notably, standard Bayesian Optimization methods like Expected Improvement (EI) often became trapped in local optima, over-evaluating mediocre models while missing superior alternatives.

Conclusion

BayesGap represents a significant advancement in best arm identification for high-dimensional, resource-constrained environments. By exploiting correlations through Gaussian Processes and focusing exploration on the most critical "gaps" in knowledge, it provides a robust and efficient solution for complex optimization tasks like Auto-ML and sensor network management. Future work may involve extending this logic to continuous search spaces and optimizing the computational scaling of the underlying Gaussian Processes.

Summary updated

BibTeX
@misc{hoffman2013best,
  author = {Matthew W. Hoffman and Bobak Shahriari and Nando de Freitas},
  title = {{Best arm identification via Bayesian gap-based exploration}},
  year = {2013},
  eprint = {1303.6746},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1303.6746},
}
Figure