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

Optimistic Bayesian Optimization with Unknown Constraints

Quoc Phong Nguyen, Wan Theng Ruth Chew, Le Song, Bryan Kian Hsiang Low, Patrick JailletICLR 2024

TL;DR

This paper introduces UCB-D, the first Bayesian Optimization (BO) algorithm for the "decoupled" setting—where objective functions and constraints are evaluated independently—that comes with a provable theoretical performance guarantee. By balancing "vertical exploration" (uncertainty in values) with "horizontal exploration" (uncertainty in the feasible boundary), the authors provide a principled way to decide not just where to sample, but what to sample.

The Challenge of Decoupled Evaluations

Bayesian Optimization is the gold standard for optimizing expensive "black-box" functions, like tuning the hyperparameters of a massive neural network or designing new materials. However, real-world problems are rarely unconstrained. You might want the highest accuracy (objective) but only if the model fits on a mobile device (constraint).

Most existing research assumes a coupled setting: evaluating a point $x$ gives you both the objective value $f(x)$ and the constraint status $c(x)$ simultaneously. In reality, these evaluations are often decoupled. For example, you might be able to run a quick simulation to check if a bridge will collapse (constraint) much faster than measuring its long-term durability (objective).

The challenge in the decoupled setting is twofold:

  1. Where should I sample next?
  2. Which function should I evaluate (the objective or one of the constraints)?

Prior methods for this were mostly heuristic or lacked a theoretical "no-regret" guarantee—meaning there was no proof they would eventually find the true optimum.

Introducing UCB-D

The authors propose UCB-D (Upper Confidence Bound for Decoupled queries). The algorithm works in two main steps at each iteration:

  1. Input Selection ($x_t$): It identifies an "optimistic feasible region" $O_t$—the set of points that could be feasible based on current data. It then picks the point $x_t$ within this region that maximizes the Upper Confidence Bound (UCB) of the objective function.
  2. Function Selection ($h_t$): This is the novel part. The algorithm decides whether to query the objective $f$ or a constraint $c$.
Vertical vs. Horizontal Exploration

As illustrated above, UCB-D compares the "vertical exploration bonus" (uncertainty about the objective's value) against the "horizontal exploration bonus" (risk of a constraint violation). If the risk of violating a constraint is higher than the potential gain in objective knowledge, it queries the "most-violated" constraint. Otherwise, it queries the objective. This approach effectively treats function selection as a form of uncertainty sampling, a classic paradigm in active learning.

Key Insights and Empirical Validation

The researchers evaluated UCB-D against state-of-the-art baselines using synthetic benchmarks and real-world engineering problems (like Gas Transmission Compressor Design and Quantum Chip Design).

  • Vertical vs. Horizontal Exploration: The authors provide a beautiful intuition for constrained BO. "Vertical" exploration deals with the $y$-axis (how high is the objective?), while "horizontal" exploration deals with the $x$-axis (where exactly is the boundary of the feasible region?).
  • Self-Tuning Relaxation: The algorithm uses a parameter $\nu_t$ to define the "uncharted" region. Crucially, they tie this parameter to the objective's uncertainty. As the algorithm becomes more certain about the objective, it becomes stricter about exploring constraint boundaries.
  • Efficiency through Sparsity: UCB-D dynamically allocates queries based on necessity, avoiding redundant evaluations.
Query Distribution over Time

In scenarios where constraints are far from the optimum, UCB-D "realizes" this and spends very few queries on the constraint, focusing almost entirely on the objective. Conversely, in highly constrained environments (like a 5D CNN hyperparameter tuning task with 10 constraints), it successfully navigates the complex feasible region by initially focusing on constraints to find any feasible point before switching to optimizing the objective.

Key Results and Limitations

  • Theoretical Guarantee: The authors prove that UCB-D achieves sublinear cumulative regret. This is a mathematical guarantee that the algorithm's average error goes to zero as the number of samples increases.
  • Superior Convergence: In both synthetic and real-world tasks, UCB-D converged to the optimal solution faster (with fewer total queries) than existing methods.

Limitations and Future Work: * Finite Domain Assumption: The theoretical proof assumes a finite (though potentially very large) input domain, which is a common simplification in BO theory but doesn't perfectly match continuous real-world spaces. * Cost Sensitivity: While the paper mentions that the algorithm can be adapted for different evaluation costs (e.g., if the objective is 10x more expensive than the constraint), the primary theoretical results assume unit costs. * Prior Sensitivity: The algorithm's performance can be sensitive to the Gaussian Process prior, particularly for the constraints. Specific initialization strategies are recommended to ensure the "optimistic feasible region" isn't empty at the start.

Summary updated

BibTeX
@inproceedings{nguyen2024optimistic,
  author = {Quoc Phong Nguyen and Wan Theng Ruth Chew and Le Song and Bryan Kian Hsiang Low and Patrick Jaillet},
  title = {{Optimistic Bayesian Optimization with Unknown Constraints}},
  booktitle = {International Conference on Learning Representations},
  year = {2024},
  url = {https://openreview.net/forum?id=D4NJFfrqoq},
}
Figure