Risk-averse Heteroscedastic Bayesian Optimization

Anastasia Makarova, Ilnura Usmanova, Ilija Bogunovic, Andreas Krause

TL;DR

RAHBO is a new Bayesian Optimization (BO) algorithm designed for high-stakes applications where reliability is as important as performance. Unlike standard BO, which only seeks the highest expected value, RAHBO simultaneously learns the objective function and its input-dependent noise to find solutions that are both high-performing and low-risk.

What Problem Does This Paper Address?

In many real-world optimization tasks—like drug discovery, robotics, or hyperparameter tuning—we aren't just looking for the highest average performance; we also care about consistency. Standard Bayesian Optimization (BO) is typically "risk-neutral," meaning it only tries to maximize the expected value of a black-box function.

However, many systems exhibit heteroscedasticity, where the noise level changes depending on where you query the function. A standard BO algorithm might get "trapped" by a global maximum that is extremely noisy, simply because the high variance looks like high potential for a better result. In a high-stakes setting, deploying such a "jittery" solution could be disastrous. The authors address the challenge of finding a "risk-averse" optimum—a point with a high mean and low variance—when neither the mean nor the noise distribution is known beforehand.

RAHBO prefers stable optima (C) over noisy ones (A).

Methods

The authors propose RAHBO (Risk-averse Heteroscedastic Bayesian Optimization). The core idea is to optimize a Mean-Variance (MV) objective: $$MV(x) = f(x) - \alpha \rho^2(x)$$ where $f(x)$ is the expected return, $\rho^2(x)$ is the noise variance, and $\alpha$ is a risk-tolerance coefficient.

Key technical innovations include:

  • Dual GP Modeling: RAHBO maintains two Gaussian Process models simultaneously: one for the unknown objective function $f$ and another for the unknown variance function $\rho^2$.
  • Repeated Experiments: To estimate the unknown variance at a point $x_t$, the algorithm queries it $k$ times. It uses the sample mean to update the objective GP and the sample variance as a "noisy observation" to update the variance GP.
  • Optimistic Risk-Aware Acquisition: The algorithm selects the next point by maximizing an acquisition function that combines an upper confidence bound for the mean with a lower confidence bound for the variance. This encourages exploring points that are potentially high-performing and low-risk.

Datasets

The researchers evaluated RAHBO on a mix of synthetic benchmarks and real-world engineering tasks:

  • Synthetic Functions: A 1D Sine function with a sharp noise transition and the 2D Branin benchmark modified with heteroscedastic noise.
  • SwissFEL Tuning: A task involving the calibration of the Swiss free-electron laser, using real measurements to simulate a high-stakes scientific instrument optimization.
  • Random Forest Hyperparameter Tuning: Optimizing a classifier on a highly imbalanced credit card fraud detection dataset (285k transactions). Here, "risk" corresponds to high variance in performance across different validation folds.

Key Insights and Ideas

  • Standard BO is "Noise-Seeking": In heteroscedastic settings, standard algorithms like GP-UCB tend to over-query high-noise regions. They mistake high variance for high uncertainty/potential, leading to poor "risk-averse" regret.
  • Learning Variance on the Fly: RAHBO doesn't need a separate phase to learn the noise. It balances learning the objective, learning the noise, and exploiting the best risk-averse regions all at once.
  • The Power of $k$: Using repeated samples ($k > 1$) at each step is essential. It provides the "unbiased but noisy" variance estimates needed to build a reliable model of the system's risk landscape.

Key Results

  • Theoretical Guarantees: The authors prove that RAHBO achieves sublinear cumulative risk-averse regret, meaning it eventually finds the optimal risk-averse solution.
  • Superior Reliability: In the SwissFEL experiment, RAHBO significantly reduced the variance of the reported solutions compared to standard BO, while maintaining nearly identical mean performance.
  • Robustness in ML: For Random Forest tuning, RAHBO identified hyperparameter settings that were more consistent across different data splits, avoiding configurations that might perform well on average but fail catastrophically on specific folds.
RAHBO achieves significantly lower cumulative regret compared to standard GP-UCB.

Limitations and Future Work

  • Sample Cost: RAHBO requires $k$ samples per iteration to estimate variance. If each individual evaluation is extremely expensive, this "repetition tax" might be high, though the authors show it leads to better overall sample complexity for finding risk-averse points.
  • Kernel Assumptions: The theory assumes the variance function belongs to a known Reproducing Kernel Hilbert Space (RKHS). In practice, choosing the right kernel for the noise can be tricky.
  • Future Directions: The authors suggest extending this framework to other risk measures beyond mean-variance, such as Value-at-Risk (VaR) or Conditional Value-at-Risk (CVaR).

Summary updated

BibTeX
@inproceedings{makarova2021risk,
  author = {Anastasia Makarova and Ilnura Usmanova and Ilija Bogunovic and Andreas Krause},
  title = {{Risk-averse Heteroscedastic Bayesian Optimization}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2021},
}
Figure