Searching in the Forest for Local Bayesian Optimization

Difan Deng, Marius Lindauer

Abstract: Because of its sample efficiency, Bayesian optimization (BO) has become a popular approach in dealing with expensive black-box optimization problems, such as hyperparameter optimization (HPO). Recent empirical experiments showed that the loss landscapes of HPO problems tend to be more benign than previously assumed, i.e. in the best case uni-modal and convex, such that a BO framework could be more efficient if it can focus on those promising local regions. In this paper, we propose BOinG, a two-stage approach that is tailored toward HPO problems. In the first stage, we build a scalable global surrogate model with a random forest to describe the overall landscape structure. Further, we choose a promising subregion via a bottom-up approach to the upper-level tree structure. In the second stage, a local model in this subregion is utilized to suggest the point to be evaluated next. Empirical experiments show that BOinG is able to exploit the structure of typical HPO problems and performs particularly well on various problems from synthetic functions and HPO.

Introduction

Hyperparameter optimization (HPO) is a critical yet computationally expensive component of modern machine learning. While Bayesian Optimization (BO) has emerged as a leading strategy due to its sample efficiency, it faces a fundamental trade-off in surrogate model selection. Standard Gaussian Processes (GPs) offer excellent uncertainty quantification but suffer from $O(n^3)$ scaling, becoming computationally prohibitive as data grows. Conversely, Random Forests (RFs) scale efficiently at $O(n \log n)$ but often provide unreliable variance estimates and poor extrapolation.

Recent empirical studies suggest that HPO loss landscapes are often "benign"—exhibiting unimodal or convex structures in promising regions. This observation motivates a strategy that focuses computational resources on these local areas rather than exhaustive global exploration.

Typical HPO landscapes for AdaBoost on Iris and Linear Regression on Wine datasets, illustrating the benign, relatively smooth structures often found in HPO problems.

Methodology: BOinG

We introduce BOinG (Bayesian Optimization inside a Grove), a hierarchical approach designed to exploit the benign structure of HPO landscapes. BOinG operates in two distinct stages:

  1. Global Partitioning: A Random Forest is trained on all available data points. A standard acquisition function identifies a global candidate. The algorithm then traverses the RF's tree structure to isolate a subregion containing this candidate and a minimum number of points ($n_{min}$).
  2. Local Optimization: A Gaussian Process is fitted exclusively on the data within the identified subregion. This local model guides the selection of the next evaluation point.
The BOinG search process. The left panel shows global samples and minima, while the right panel illustrates the identification of nested subregions for focused local search.

To prevent the local GP from over-focusing on subregion boundaries, we employ LGPGA (Local GP with Global Augmentation). This technique incorporates a sparse GP to provide a global prior, grounding the local search with broader landscape context without the full $O(n^3)$ cost. For extended budgets, BOinG+ incorporates a probabilistic switch to trust-region methods (like TuRBO) to maintain exploration.

Experimental Evaluation

BOinG was benchmarked against synthetic functions (e.g., 10D Ackley, 10D Levy) and real-world HPO tasks including ParamNet on the Adult dataset and PPO on Cartpole. For high-budget scenarios, we utilized RL tasks such as Lunar Lander and Robot Pushing.

Key Results

  • High-Dimensional Robustness: BOinG significantly outperforms standard GP-BO on complex 10D functions where global models often struggle to capture fine-grained details.
  • Efficiency in HPO: On HPOBench tasks, BOinG identifies optimal regions rapidly, outperforming RF, GP, and TuRBO baselines within the first 60 evaluations.
  • Long-Horizon Scalability: In 10,000-evaluation RL tasks, BOinG+ demonstrates superior performance over time, effectively avoiding local optima that trap simpler local search methods.

Discussion and Conclusion

The success of BOinG highlights three key insights: combining the scalability of RFs with the precision of GPs mitigates the inherent weaknesses of each model; Random Forests serve as efficient, data-driven tools for defining local search regions; and providing local models with global context is essential for maintaining accuracy at subregion boundaries.

While BOinG is highly effective for high-dimensional and complex landscapes, standard GP-BO remains preferable for very low-dimensional problems where the hierarchical overhead is unnecessary. Future work will investigate non-axis-aligned splits and parallel evaluation strategies using Thompson sampling.

Summary updated

BibTeX
@inproceedings{deng2022searching,
  author = {Difan Deng and Marius Lindauer},
  title = {{Searching in the Forest for Local Bayesian Optimization}},
  booktitle = {Meta-Knowledge Transfer @ ECML/PKDD},
  year = {2022},
  url = {https://openreview.net/forum?id=WjJcRavEDa},
}
Figure