Abstract
Bayesian optimization (BO) is a successful methodology to optimize black-box functions that are expensive to evaluate. While traditional methods optimize each black-box function in isolation, there has been recent interest in speeding up BO by transferring knowledge across multiple related black-box functions. In this work, we introduce a method to automatically design the BO search space by relying on evaluations of previous black-box functions. We depart from the common practice of defining a set of arbitrary search ranges a priori by considering search space geometries that are learned from historical data. This simple, yet effective strategy can be used to endow many existing BO methods with transfer learning properties. Despite its simplicity, we show that our approach considerably boosts BO by reducing the size of the search space, thus accelerating the optimization of a variety of black-box optimization problems. In particular, the proposed approach combined with random search results in a parameter-free, easy-to-implement, robust hyperparameter optimization strategy. We hope it will constitute a natural baseline for further research attempting to warm-start BO.
Introduction
To tune a machine learning model, researchers use Bayesian Optimization (BO) to find the best hyperparameters (HPs), such as learning rate or dropout. However, BO requires a predefined "search space"—the range of values the optimizer is allowed to explore.
If this space is too large, the optimizer wastes time evaluating "junk" configurations. If it's too small, it might miss the global optimum entirely. Currently, these spaces are defined manually by human experts based on intuition. This paper addresses the challenge of automatically learning these search spaces from historical data, effectively transferring knowledge from past experiments to speed up new ones.
Methodology
The authors frame search space design as a volume minimization problem. Given a set of optimal points from $T$ previous tasks, they seek a compact geometry that contains these points. This approach effectively "shrink-wraps" the search space around high-performing regions identified in previous experiments.
- Box (Hyperrectangle): The simplest approach, finding the minimum and maximum values for each hyperparameter across all previous tasks to create a tight bounding box.
- Ellipsoid (Hyperellipsoid): A more sophisticated geometry using the Löwner-John formulation. Unlike a box, an ellipsoid can capture correlations between hyperparameters (e.g., if a high learning rate usually requires a specific range of momentum).
- Handling Outliers (Slack Variables): Real-world data is messy. If one previous task had an outlier optimum, it could stretch the learned search space. The authors introduce "slack variables," allowing the method to ignore a small percentage of historical outliers to keep the search space aggressively compact.
These learned spaces are "plug-and-play," demonstrated by pairing them with Random Search, SMAC (Random Forest-based BO), and Hyperband.
Experimental Setup
The method was evaluated across three distinct settings:
- Synthetic SGD: 30 ridge regression problems where the goal was to tune learning rate, momentum, and regularization.
- OpenML Benchmarks: Tuning Random Forest (5 HPs), SVM (4 HPs), and XGBoost (10 HPs) across 30 different real-world datasets.
- Neural Network Tabular Benchmark: Tuning a 2-layer feedforward network (9 HPs) across 4 datasets using a pre-computed dataset of over 62,000 configurations.
Key Insights and Results
The most surprising finding is that simply narrowing the search space is often more effective than building complex multi-task Gaussian Process models. While boxes are easy to implement, ellipsoids are superior because hyperparameters are rarely independent; the ellipsoidal representation naturally accounts for the "shape" of the high-performance region.
- Significant Speedups: On the OpenML XGBoost task, the learned "Box + Random" approach reached high accuracy in roughly 10 iterations, whereas standard Random Search took over 50.
- Model-Free Transfer: Unlike most transfer learning for BO, this method does not require "meta-features" (like dataset size) to calculate task similarity. It only looks at where previous winners were located, making it easier to deploy.
- Random Search + Learned Space = Strong Baseline: Random Search, when restricted to a learned box or ellipsoid, often beats standard BO. This suggests that "where you look" is sometimes more important than "how you choose the next point."
Limitations and Future Work
The current geometric approach is designed for continuous or integer HPs; categorical variables remain a challenge for future work. Additionally, the search space is currently learned "offline" before optimization starts. A promising direction is to dynamically expand or contract the space during the BO run if the optimizer hits the boundaries. Finally, while the authors used rejection sampling for integration, mathematically incorporating ellipsoidal constraints directly into Gaussian Process acquisition functions remains an open research area.
Summary updated