Deferred Aggregation in Hierarchical Bayesian Optimization

Valentin Margraf, Jonas Hanselle, Julian Rodemann, Marcel Wever, Sebastian Josef Vollmer, Eyke HüllermeierNeurIPS 2026

TL;DR

When optimizing expensive black-box functions using an ensemble of models, averaging those models too early lets a single bad "outlier" model ruin your search. This paper proposes waiting until the very end to combine information: let every model independently vote on the best next experiment to run, and pick the most central vote (the medoid). Both theoretically and empirically, this simple shift makes optimization remarkably resilient to severely flawed models, especially in high dimensions.

What Problem Does This Paper Address?

Imagine you are trying to design a new drug or tune a massive neural network. Each test is painfully expensive, so you use Bayesian Optimization (BO): you fit a probabilistic "surrogate" model (usually a Gaussian Process, or GP) to your data so far, and use an acquisition function (AF)—a mathematical rule balancing exploration and exploitation—to decide where to test next.

GPs are notoriously picky about their own internal settings (hyperparameters). To hedge against picking bad settings, Hierarchical BO samples multiple plausible hyperparameter configurations, creating an ensemble of GPs.

Standard practice combines this ensemble early on—either by averaging the GP predictions directly, or by averaging their acquisition functions. Here's the catch: averages hate outliers. If 15 of your models have a great read on the landscape, and 1 model is wildly wrong (misspecified), averaging lets that single rogue model warp the entire map, steering your expensive next test off a cliff. Furthermore, averaging blurs out disagreement between distinct, competing hypotheses.

Methods

The authors reframe when you combine models as an explicit design choice, identifying three distinct stages:

  1. Model Level (Standard): Average the GPs into one mixture model, then build one AF.
  2. Acquisition Level (Standard/Extended): Let each GP build its own AF, then aggregate those curves (traditionally via the mean, though the authors also test medians and min/max rules).
  3. Decision Level (New): Don't merge the models or their AFs at all. Instead, maximize each GP's acquisition function independently so every model proposes its own ideal next test point $x^*_j$.
Figure 1: In hierarchical BO, information can be aggregated at the model-, the acquisition- or the decision-level.

Once you have $M$ candidate points at the decision level, how do you pick one? The authors select the medoid—the candidate point in the set that minimizes the sum of Euclidean distances to all other proposed candidates. Because the medoid must be one of the actual points proposed, and because it relies on spatial consensus, a minority of wild outlier proposals can't drag the final choice into no-man's-land.

Figure 2: Hierarchical BO with three GPs: GPs 2 and 3 approximate the target function (dotted line) well, while GP 1 is an outlier. At the model and AF level, standard mean aggregation lets GP 1 corrupt the objective used to select the next query, yielding maximizers near x ≈0 and x ≈0.2. At the decision level, each AF is maximized individually and aggregation only chooses among the resulting candidates: GP 1 can only influence which of (good) GP 2’s or GP 3’s candidates is selected; the query lands near the true optimum at x ≈3.5.

Datasets

No new datasets are introduced, as the methods are evaluated on optimization tasks rather than static training sets:

  • 1D Toy Problems: Synthetic functions sampled from known GPs where the authors manually inject outlier models with terrible lengthscales.
  • Synthetic Benchmarks: Low-dimensional functions (Levy 3D, Rosenbrock 4D, Ackley 6D) and high-dimensional functions (Levy 32D, Ackley 50D, Griewank 50D).
  • Real-World High-Dimensional Tasks: Breast Cancer 10D hyperparameter tuning (from LassoBench), Robot Pushing 14D (tuning controllers for two robot hands), and Rover Trajectory Planning 60D (optimizing a 30-point 2D B-spline path over rough terrain).

Key Insights and Ideas

  • Decoupling regret from outliers: The authors prove cumulative regret bounds (a measure of how much sub-optimality you accumulate over time) for misspecified ensembles. With standard mean aggregation, your penalty scales with the average error across all models ($\varepsilon_{\text{avg}}$)—meaning one arbitrarily bad model can blow up your regret. With decision-level medoid aggregation, as long as a strict majority ($> M/2$) of models are accurate, the penalty depends only on the error bound ($\rho$) of that well-behaved majority.
  • Even robust early aggregation leaks: You might think taking the pointwise median of acquisition functions (at the AF level) would fix the outlier issue. Surprisingly, as shown in the paper's analysis, an outlier model can still distort the shape of a median AF curve enough to shift its peak. Deferring to the decision level isolates the optimization step from outliers completely.
  • High dimensions naturally breed outliers: Heavy-tailed hyperpriors used in BO (like log-normal distributions) naturally spit out occasional extreme hyperparameters. As dimensionality grows, the odds of sampling a severely misspecified GP skyrocket—creating the exact environment where deferred aggregation shines brightest.

Key Results

  • Toy Examples: When increasing the fraction of severely misspecified models in a 9-GP ensemble from 0% up to 40%, mean-based methods degrade rapidly and stagnate, while median- and medoid-based methods maintain near-identical performance to the 0%-outlier baseline.
  • High-Dimensional Wins: Using an ensemble of $M=16$ models, the medoid X rule clearly outperforms all baselines and earlier-stage aggregators on Griewank 50D (for both UCB and EI acquisition functions) and Ackley 50D (for UCB).
  • Unmatched Reliability: Across 252 pairwise statistical comparisons (Wilcoxon signed-rank tests) spanning all synthetic and real-world benchmarks, decision-level medoid X achieved the highest number of statistically significant wins and suffered only 1 significant loss. Every other aggregation strategy suffered at least 9 significant losses.

Limitations and Future Work

  • The Majority Rule Catch: The theoretical guarantees require a strict majority ($> 50\%$) of the sampled models to have low misspecification. If the problem is so nasty (like strongly non-stationary landscapes) that most of your models are wrong, no aggregation trick will save you.
  • Computational Overhead: Decision-level aggregation requires optimizing $M$ separate acquisition functions per iteration instead of just one. While modest compared to expensive real-world evaluations—and trivially parallelizable since the $M$ optimizations are independent—it does add compute cost.
  • Future Directions: Because decision-level aggregation only cares about proposed coordinates in input space, the models don't even need to be the same type! Future work could blend completely heterogeneous ensembles (e.g., mixing GPs, random forests, and Bayesian neural networks), incorporate user-specific risk preferences, or adapt to heteroscedastic (input-dependent) noise.

Summary updated

Abstract

To account for uncertainty, hierarchical Bayesian optimization marginalizes over Gaussian process hyperparameters, usually by averaging models or acquisition functions. However, such early aggregation can obscure model disagreement and is sensitive to outliers. We propose to defer aggregation to the decision level: each model independently proposes a candidate, and we aggregate over these candidates using the medoid. We study a misspecified hierarchical Gaussian process setting in which most models have low misspecification error, while a minority are severely misspecified. Theoretically, we derive regret bounds showing that the misspecification penalty depends on the average error across all models for early aggregation, but only on the low-misspecification majority for decision-level aggregation. Empirically, we validate these findings on toy examples and demonstrate competitive performance across synthetic and real-world benchmarks, with particularly strong gains on high-dimensional synthetic problems.
BibTeX
@inproceedings{margraf2026deferred,
  author = {Valentin Margraf and Jonas Hanselle and Julian Rodemann and Marcel Wever and Sebastian Josef Vollmer and Eyke Hüllermeier},
  title = {{Deferred Aggregation in Hierarchical Bayesian Optimization}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=ly7pYI9c0U},
}
Figure