TL;DR
Standard Bayesian optimization algorithms are risk-neutral, focusing solely on maximizing expected performance while ignoring how noisy or unpredictable an outcome might be. This paper introduces RAHBO (Risk-averse Heteroscedastic Bayesian Optimization), a novel algorithm that maps out both the expected reward and unknown, input-dependent noise on the fly, allowing users to safely balance high performance with low risk.
What Problem Does This Paper Address?
Bayesian optimization (BO) is a popular framework for optimizing expensive black-box functions, such as tuning machine learning hyperparameters or configuring robotic controllers. However, classical BO assumes that the noise in system evaluations is homoscedastic—meaning it has a constant variance across the entire search space.
In high-stakes real-world applications (like drug discovery or physical experiments), noise is often heteroscedastic (input-dependent). If two different system configurations yield the same average performance, but one fluctuates wildly while the other is rock-solid, a risk-averse practitioner will always prefer the stable one. Standard BO algorithms fail here: because they only optimize for the expected value, they often aggressively sample highly volatile, risky regions simply because the high noise inflates their optimistic upper confidence bounds.
The authors tackle the challenge of optimizing a mean-variance trade-off when both the objective function and the input-dependent noise variance are completely unknown a priori.
Methods
The authors propose RAHBO, which optimizes a Mean-Variance (MV) objective defined as: $$MV(x) = f(x) - \alpha \rho^2(x)$$ where $f(x)$ is the mean reward, $\rho^2(x)$ is the input-dependent noise variance proxy, and $\alpha \ge 0$ is the user's risk-aversion coefficient.
To optimize this without knowing $f(x)$ or $\rho^2(x)$ beforehand, RAHBO introduces a few clever strategies:
- RKHS Modeling: Both the mean objective and the noise variance are modeled as unknown functions belonging to a Reproducing Kernel Hilbert Space (RKHS), allowing them to be estimated using Gaussian Processes (GPs).
- Repeated Experiment Strategy: At each iteration, RAHBO queries the chosen point $x_t$ a total of $k$ times ($k > 1$). This allows the algorithm to compute an empirical sample mean and sample variance on the fly, providing the raw data needed to update both GP models simultaneously.
- Optimistic Risk-Averse Acquisition: RAHBO selects the next point by maximizing a novel acquisition function: $$ucb^{MV}_t(x) = ucb^f_t(x) - \alpha \cdot lcb^{var}_t(x)$$ To remain "optimistic in the face of uncertainty," the algorithm combines the upper confidence bound of the reward with the lower confidence bound of the risk penalty.
The authors also provide rigorous theoretical proofs showing that RAHBO achieves sublinear cumulative regret and bounds the number of samples needed to find an $\epsilon$-optimal risk-averse solution.
Datasets
The algorithm was evaluated on both synthetic benchmarks and real-world engineering problems:
- Synthetic Functions: A 1D Sine function with sigmoid-shaped noise variance, and the classic 2D Branin benchmark function modified with heteroscedastic noise.
- SwissFEL Tuning: A simulator for the Swiss X-ray free-electron laser, where the objective is to maximize pulse energy. The simulator uses a neural network surrogate trained on real physical measurements.
- Random Forest Tuning: Hyperparameter tuning for a fraud detection classifier using the highly imbalanced Kaggle Credit Card Fraud Detection dataset (285k transactions).
Key Insights and Ideas
- The GP-UCB Trap: Standard risk-neutral algorithms like GP-UCB actively hunt out high-noise areas because they mistake random noise for epistemic uncertainty (lack of knowledge). As seen in the paper's experiments, this causes standard BO to repeatedly query unreliable, high-risk optima.
- Optimism via Subtraction: When dealing with a penalty (like variance), being "optimistic" means hoping the penalty is as small as possible. Therefore, subtracting the Lower Confidence Bound ($lcb^{var}$) of the variance is the mathematically correct way to maintain optimism in risk-averse optimization.
Key Results
- Avoiding Volatility: On synthetic benchmarks, standard GP-UCB consistently got trapped querying the noisiest local optima. RAHBO successfully identified and stuck to the low-variance global optimum.
- Physical System Robustness: When tuning the SwissFEL laser, RAHBO drastically reduced the variance of the reported solutions compared to GP-UCB while maintaining a high mean energy output, leading to much safer operation.
- Stable Machine Learning: In the Random Forest tuning task, RAHBO yielded classifiers that maintained stable performance across time-shifted validation folds, proving highly robust against data drift.
Limitations and Future Work
- The Cost of Repetition: RAHBO relies on querying each selected point $k$ times per iteration to calculate sample variance. If a single evaluation is extraordinarily expensive, destructive, or time-consuming, this repeated-sampling requirement could become a bottleneck.
- Fixed Risk Tolerance: The risk-aversion parameter $\alpha$ must be fixed and known beforehand. The authors note that dynamically adjusting or learning the user's risk tolerance during the optimization process remains an open and promising direction for future research.
Summary updated