Heteroscedastic Treed Bayesian Optimisation

John-Alexander M. Assael, Ziyu Wang, Bobak Shahriari, Nando de FreitasarXiv 2014

TL;DR

Heteroscedastic Treed Bayesian Optimisation (HTBO) overcomes a major limitation of standard Bayesian optimization: the assumption that a function's "wiggliness" and noise levels are uniform across the entire search space. By partitioning the input space with a decision tree and fitting local Gaussian Processes to the leaves, HTBO efficiently optimizes complex, non-stationary functions found in real-world machine learning tuning and mineral exploration.

What Problem Does This Paper Address?

Bayesian Optimisation (BO) is the gold standard for optimizing "black-box" functions that are expensive to evaluate, such as the hyperparameter tuning of a deep neural network that takes days to train. Traditionally, BO relies on Gaussian Processes (GPs) to model the objective function.

However, standard GPs typically assume stationarity—the idea that the function’s smoothness and noise characteristics are the same everywhere. In practice, many functions are heteroscedastic: they might be smooth and predictable in one region but jagged and noisy in another. When a standard GP encounters this, it often over-smooths the jagged parts or over-oscillates in the smooth parts, leading the optimizer to get stuck in local optima or waste evaluations in unpromising areas.

Methods

The authors introduce HTBO, which combines the structural flexibility of decision trees with the probabilistic power of GPs.

  1. Treed Partitioning: The algorithm uses a Classification and Regression Tree (CART) to recursively divide the input space into regions (leaves). Each leaf represents a local neighborhood where the function is more likely to behave stationarily.
  2. Overlapping Splits: A key innovation is how the tree is split. Standard CART splits at the midpoint between data points, which can create high-uncertainty "gaps" at the boundaries. HTBO splits exactly at an existing data point and includes that point in both resulting child nodes. This "point-sharing" strategy prevents variance explosion at the boundaries, ensuring a smoother transition between local models. Comparison of standard CART splitting vs. the proposed overlapping approach to reduce boundary variance.

  3. Hierarchical Hyper-parameter Learning: Estimating GP hyperparameters (like length scales) for a leaf with only a few data points is prone to overfitting. The authors propose a weighted marginal pseudo-likelihood approach. A leaf "borrows" information from its ancestors in the tree, with weights decreasing harmonically as you move up toward the root. This allows local flexibility while maintaining global robustness.

  4. Integration with Warping: The framework is flexible enough to use Warped GPs as leaf models (HTBO WARP), further improving the ability to handle non-stationary inputs.
Comparison of standard CART splitting vs. the proposed overlapping approach to reduce boundary variance.

Datasets

The authors evaluated HTBO against standard BO and Input Warping across three domains:

  • Synthetic Functions: The RKHS function (smooth on the left, jagged on the right) and the 2-D Exp function (mostly flat with a sharp, easily missed peak).
  • Automatic Machine Learning: Tuning Online Latent Dirichlet Allocation (LDA) on Wikipedia articles and a Structured SVM for protein DNA sequence classification.
  • Geostatistics/Mining: Two real-world datasets from kriging.com: Agromet (gold grade exploration in South Africa) and Brenda Mines (copper concentrations in British Columbia). These surfaces are notoriously rugged and heteroscedastic.

Key Insights and Ideas

  • Localization is Key: By treating the global optimization problem as a collection of local ones, the model can adapt its "search resolution" to the complexity of different regions.
  • Solving the "Boundary Problem": The simple trick of sharing a data point across a split significantly stabilizes the acquisition function. Without this, the optimizer might falsely believe the boundaries are highly uncertain and waste samples there.
  • Robustness through Hierarchy: The hierarchical prior acts as a form of shrinkage, preventing the model from making wild predictions in leaves where data is scarce—a common occurrence in the early stages of optimization.

Key Results

HTBO consistently outperformed standard BO and warped GPs, particularly on the most challenging non-stationary tasks.

  • Convergence Speed: On the RKHS synthetic function, HTBO WARP found the global optimum in roughly 40 iterations, while standard BO and BO Warp often failed to converge entirely. Performance comparison showing HTBO finding the maximum in 16 iterations while standard BO over-samples a local maximum.

  • Mining Exploration: In the Agromet and Brenda Mines datasets, HTBO achieved significantly lower (better) minimum function values compared to competitors, demonstrating its utility for physical exploration where every "sample" (drill hole) is extremely costly.

  • Competitive in Simple Cases: Even on problems that weren't highly heteroscedastic (like the Structured SVM), HTBO remained competitive with state-of-the-art methods, suggesting it is a safe "default" choice.
Figure 1: Comparison between standard BO (a-c) and the proposed HTBO method (d-f). HTBO is able to find the maximum in 16 iterations, while BO is not able to overcome heteroscedasticity and over-samples one of the local maxima.

Limitations and Future Work

  • Computational Overhead: Reconstructing the tree and performing MCMC sampling for hyperparameters at every iteration adds computational cost. While negligible for expensive black-box functions (where the function evaluation takes minutes or hours), it might be overkill for very fast-to-evaluate functions.
  • Minimum Data Requirements: The authors enforced a minimum of 5 data points per leaf. In very high-dimensional spaces, reaching this threshold in multiple leaves might require a larger initial design or more iterations.
  • Future Directions: The authors suggest that the framework could be extended to handle categorical variables more naturally through the tree structure, which is a common challenge in Bayesian optimization.

Summary updated

BibTeX
@misc{assael2014heteroscedastic,
  author = {John-Alexander M. Assael and Ziyu Wang and Bobak Shahriari and Nando de Freitas},
  title = {{Heteroscedastic Treed Bayesian Optimisation}},
  year = {2014},
  eprint = {1410.7172},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1410.7172},
}
Figure