NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Distributionally Robust Bayesian Optimization with $\varphi$-divergences

Hisham Husain, Vu Nguyen, Anton van den Hengel

Abstract

Bayesian Optimization (BO) is the standard approach for optimizing expensive black-box functions, yet it often fails when the distribution of environmental contexts shifts between training and deployment. This paper introduces a novel framework for Distributionally Robust Bayesian Optimization (DRBO) using φ-divergences. By leveraging duality theory, the authors transform the traditionally intractable minimax problem into a finite-dimensional optimization task. This approach allows for the derivation of robust acquisition functions that are computationally efficient and theoretically grounded. Experimental results across synthetic benchmarks, robotics simulations, and real-world wind power datasets demonstrate that this framework is 5x to 10x faster than previous state-of-the-art methods while maintaining superior performance under distributional shifts.

Introduction

In machine learning research, we frequently operate under the assumption that the data distribution encountered during training remains stationary during deployment. However, real-world environments are rarely static. A medical diagnostic tool may encounter a patient demographic different from its clinical trial population, or an autonomous robot may face wind conditions that deviate from its simulation parameters.

When optimizing these systems using Bayesian Optimization (BO), ignoring these shifts can lead to brittle solutions. While Distributionally Robust Optimization (DRO) offers a mathematical framework to address this by optimizing for the worst-case scenario within a "budget" of distributional shifts, applying DRO to BO has historically been computationally prohibitive. This paper presents a computationally efficient bridge between these two fields using the broad family of φ-divergences.

Problem Formulation

Standard BO seeks to optimize a black-box function $f(x, c)$, where $x$ represents the design variables and $c$ represents a context variable (e.g., environmental factors). Typically, we assume $c$ follows a fixed, known distribution $P$.

In the robust setting, we acknowledge that the true distribution $Q$ may differ from $P$. The goal of DRBO is to find an $x$ that maximizes the expected performance under the worst-case distribution $Q$ within a certain distance of $P$. This distance is measured using φ-divergences, a class of measures that includes Kullback-Leibler (KL) divergence, $χ^2$-divergence, and Total Variation (TV) distance. The resulting minimax problem is often infinite-dimensional and difficult to solve directly in real-time applications.

Methodology: The Duality Advantage

The core contribution of this work is a theoretical result (Theorem 1) demonstrating that for any φ-divergence, the complex minimax problem can be collapsed into a single-level minimization problem. This duality simplifies the optimization landscape significantly.

Robustness as Regularization

The researchers show that being robust to specific distributional shifts is mathematically equivalent to applying specific penalties to the objective function:

  • $χ^2$-divergence robustness: Equivalent to standard BO plus a variance penalty.
  • Total Variation (TV) robustness: Equivalent to standard BO plus a penalty based on the range (maximum minus minimum) of the function across contexts.

By utilizing Gaussian Processes (GPs) as surrogate models, the authors derive robust acquisition functions (such as a robust version of GP-UCB). These functions naturally steer the optimization away from regions where the objective is highly sensitive to context changes, effectively treating robustness as a form of regularization.

Experimental Evaluation

The framework was evaluated against several benchmarks to test both computational efficiency and robustness:

  1. Synthetic Benchmarks: Modified versions of the Branin, Six-hump camel, and Goldstein-Price functions incorporating context variables.
  2. Robot Pushing (3D): A simulation requiring a robot to push an object to a target under uncertainty regarding the duration of the push.
  3. Wind Power Dataset: A real-world application focused on optimizing power output while remaining robust to fluctuating wind conditions.

Key Results

  • Efficiency: The proposed DRBO framework is 5x to 10x faster than the previous state-of-the-art (DRBO-MMD), particularly as the dimensionality of the problem increases. This is because the method scales linearly with the number of context samples, whereas previous methods required solving complex inner optimization loops.
  • Performance: In scenarios where the deployment environment shifted away from the observed distribution, χ² and TV-based methods consistently outperformed vanilla BO and other robust baselines like StableOpt.
  • Theoretical Convergence: The authors provide proofs for sublinear regret, ensuring that the algorithm is theoretically guaranteed to converge to the robust optimum over time.

Discussion and Limitations

While this framework significantly advances the state of robust BO, several areas for future research remain. The choice of which φ-divergence to use (e.g., $χ^2$ vs. KL) remains a hyperparameter, and the paper does not provide a definitive heuristic for this selection. Additionally, selecting the robustness "budget" (ε) is critical; while an adaptive schedule is suggested for convergence, mapping ε to specific real-world safety requirements remains an open challenge. Finally, as a GP-based method, it still inherits the standard cubic scaling limitations of Gaussian Processes, though this is not a limitation unique to the DRBO framework.

Conclusion

By reframing distributionally robust optimization through the lens of φ-divergence duality, this work provides a practical and theoretically sound method for making Bayesian Optimization resilient to real-world shifts. The insight that robustness can be treated as a simple variance or range penalty allows for high-performance optimization in unpredictable environments without the computational overhead previously associated with robust methods.

Summary updated

BibTeX
@inproceedings{husain2023distributionally,
  author = {Hisham Husain and Vu Nguyen and Anton van den Hengel},
  title = {{Distributionally Robust Bayesian Optimization with $\textbackslash\{\}varphi$-divergences}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=bRlEwWd7Vy},
}
Figure