Adaptive Local Bayesian Optimization Over Multiple Discrete Variables

Taehyeon Kim, Jaeyeon Ahn, Nakyil Kim, Seyoung Yun

TL;DR

Researchers from KAIST OSI developed a robust, four-step enhancement to the Trust Region Bayesian Optimization (TuRBO) framework to tackle black-box optimization involving mixed variable types. By combining adaptive region partitioning with a hybrid approach that uses Gaussian Processes for quantitative variables and Multi-Armed Bandits for qualitative ones, they achieved a performance boost of up to 20.39% over standard baselines.

What Problem Does This Paper Address?

Hyperparameter optimization (HPO) is often the "dark art" of machine learning, requiring experts to manually search for settings that yield the best generalization. While Bayesian Optimization (BO) is a popular tool for automating this, most standard BO methods struggle when the search space is a messy mix of continuous (real numbers), integer, boolean, and categorical variables.

The NeurIPS 2020 Black-Box Optimization (BBO) challenge highlighted this gap, requiring participants to build optimizers that could handle diverse, real-world machine learning tasks under strict time and evaluation budgets. The authors identified that existing local search strategies like TuRBO often fail because they restart from scratch when they get stuck and don't adequately account for the unique mathematical properties of discrete variables.

Methods

The authors proposed a four-step pipeline to evolve the baseline TuRBO algorithm into a more flexible and powerful optimizer:

  1. Hyperparameter Tuning of the Baseline: They first optimized TuRBO itself, specifically finding that a larger "minimum trust region length" acted as a better trigger for restarts in budget-constrained scenarios.
  2. Adaptive Region Partitioning (ARP): Standard TuRBO restarts its local search randomly. ARP uses global data to be smarter: it clusters past observations into "good" and "bad" regions using k-means, then trains a Support Vector Machine (SVM) to learn the boundary. This allows the optimizer to restart only within promising sub-regions.
  3. Mixture of GP Kernels: To handle mixed variables, they designed a composite kernel for the Gaussian Process. This kernel combines a Matèrn kernel (for continuous data), a Linear kernel (for integers), and an Indicator kernel (for categorical/boolean data) using both addition and multiplication to capture complex correlations.
  4. Multi-Armed Bandits (MAB) for Qualitative Variables: They observed that local BO often gets stuck repeating the same categorical values. To fix this, they used a hybrid approach: while real and integer variables are handled by the GP, boolean and categorical variables are selected using a Thompson Sampling-based MAB.
Figure 1: An overview of our algorithm; The baseline consists of local Bayesian modeling which composes a standard Gaussian Process (GP) with matèrn kernel as a surrogate model and Thompson sampling (TS) as an acquisition function. After hyperparameter tuning (Step 1), we compensated for its region partitioning by making it adaptive to different tasks (Step 2). Then, for the discrete variables, we introduced a mixture of different kernels for GP (Step 3) and combined MAB for regeneration of qualitative variables (Step 4).

Datasets

The team evaluated their approach using the bayesmark benchmark package provided by the NeurIPS 2020 BBO challenge. This benchmark includes:

  • Real-world datasets: A variety of standard datasets used in the ML community.
  • Diverse Models: The optimizer had to tune hyperparameters for models like Multi-Layer Perceptrons (MLP), Linear models, and k-Nearest Neighbors (kNN).
  • Multiple Metrics: Performance was measured across different loss functions, including Mean Absolute Error (MAE), Mean Squared Error (MSE), Accuracy, and Negative Log-Likelihood (NLL).

Key Insights and Ideas

  • Integers $\neq$ Categorical: A key insight was treating integer variables as quantitative (similar to continuous variables) rather than qualitative. This allows the GP to leverage the inherent ordering of numbers, which categorical kernels ignore.
  • Smart Restarts: The ARP method (illustrated below) prevents the "wasted effort" of restarting in known bad areas. By using an SVM to "carve out" the search space, the algorithm maintains a global memory even while performing local optimization.
  • Hybridization is Key: The most significant performance jump came from combining the GP's strength in continuous spaces with the MAB's efficiency in exploring discrete, qualitative choices.
Figure 2: An overview of ARP; (a) the dots represent the evaluated observations in the search space, (b) first, we produce labels with k-means clustering, (c) then, we retrain the classifier to learn the new boundary, (d) the trained classifier is used to partition the trust region so that the next sampling is generated within the selected region. Here we select the region that includes the current best point. The clustering and classifier training are held under global observations.

Key Results

The incremental additions consistently improved the validation score:

  • Baseline (TuRBO): 95.307
  • + Tuning: 95.906
  • + ARP: 96.298
  • + Mixture Kernel & Bandit: 96.580

Compared to other popular optimizers like Random Search (+20.39% improvement) and HyperOpt (+9.59%), the KAIST OSI method showed superior robustness. In the final NeurIPS 2020 BBO Challenge leaderboard, their method achieved an official score of 90.875, ranking 8th overall.

Limitations and Future Work

While the empirical results are strong, the authors note a few areas for improvement:

  • Theoretical Analysis: The paper lacks a formal theoretical analysis of the regret bounds for the MAB component and convergence guarantees for the custom mixture kernel.
  • Local Search Dynamics: Further study is needed to understand why local search performs so remarkably well in these high-dimensional, mixed-variable landscapes compared to global strategies.

Summary updated

BibTeX
@misc{kim2020adaptive,
  author = {Taehyeon Kim and Jaeyeon Ahn and Nakyil Kim and Seyoung Yun},
  title = {{Adaptive Local Bayesian Optimization Over Multiple Discrete Variables}},
  year = {2020},
  eprint = {2012.03501},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2012.03501},
}
Figure