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

Bayesian Optimisation for Constrained Problems

Juan Ungredda, Juergen BrankeACM Trans. Model. Comput. Simul 2021 · OpenReview

TL;DR

This paper introduces constrained Knowledge Gradient (cKG), a novel Bayesian optimization acquisition function designed to efficiently handle expensive black-box functions with both objective and constraint evaluations. cKG demonstrably outperforms existing methods on synthetic and real-world (neural network tuning) problems, especially under noisy conditions, and is theoretically proven to converge to the true optimum.

What Problem Does This Paper Address?

Many real-world optimization problems, such as hyperparameter tuning in machine learning or optimizing complex simulations, involve functions that are expensive to evaluate. Furthermore, these problems often come with constraints that must be satisfied. Traditional Bayesian Optimization (BO) methods are highly effective for unconstrained or simply box-constrained problems by building a probabilistic model (usually a Gaussian Process) of the objective function and using an acquisition function to intelligently select the next point to evaluate. However, extending these methods to handle complex, non-linear constraints while maintaining efficiency has been a significant challenge. Existing approaches often struggle with noisy evaluations, computational complexity, or a lack of theoretical guarantees. This paper aims to bridge this gap by proposing a new acquisition function that effectively balances exploration and exploitation in the presence of both objectives and constraints, even with noisy data.

Methods

The core contribution is the constrained Knowledge Gradient (cKG) acquisition function. It's a novel variant of the Knowledge Gradient (KG) method, which is known for its strong theoretical properties in unconstrained settings. cKG extends KG by incorporating the probability of feasibility into its decision-making process.

Here's a breakdown of the key methodological aspects:

  • Statistical Model: Both the objective function and each constraint are modeled independently using Gaussian Processes (GPs). This allows for probabilistic predictions of function values and constraint violations.
  • Acquisition Function Design: cKG quantifies the expected improvement in the feasible objective function value after taking a new sample. It achieves this by considering the current best feasible solution and the potential improvement offered by a new sample, weighted by its probability of being feasible.
  • Efficient Computation: Directly computing cKG can be computationally intensive. The authors adapt a technique proposed by Pearce et al. (2020) which combines discretisation with Monte-Carlo approximation. This hybrid approach leverages the efficiency of discrete optimization for a subset of promising points and the scalability of Monte-Carlo sampling for the rest.
  • Theoretical Guarantees: The paper provides theoretical proofs demonstrating that cKG will sample all design vectors infinitely often in a finite search space (Theorem 1) and will converge to the true optimal solution in the limit (Theorem 2).

Datasets

The paper evaluates cKG on:

  • Synthetic Test Functions: Three functions are used: "Mistery function," "Test function 2," and "New Branin." These functions vary in their complexity and the number of constraints. Experiments are conducted both with and without noise added to the objective function.
  • MNIST Hyperparameter Experiment: This is a real-world application where cKG is used to tune the hyperparameters of a fully connected neural network for MNIST digit classification. The objective is to minimize classification error while adhering to a strict prediction time constraint (1 ms). This is a high-dimensional problem (9 dimensions).

No new benchmark datasets are introduced; instead, existing well-defined synthetic functions and a standard machine learning task are used for evaluation.

Key Insights and Ideas

  • The Power of "Feasibility-Aware" Exploration: The core insight is that simply improving the objective function is insufficient when constraints are present. cKG's success stems from its ability to intelligently balance exploring regions that might yield better objective values with regions that are likely to be feasible.
  • Bridging Deterministic and Noisy Optimization: cKG shows remarkable robustness to noise in both objective and constraint evaluations, outperforming methods designed specifically for deterministic problems or noisy objectives. This is crucial for many real-world applications where perfect measurements are rare.
  • Efficient Computation is Key: The adaptation of the hybrid discretisation-Monte Carlo approach is critical. It allows cKG to be practically applied to problems with a reasonable number of dimensions, overcoming the scalability issues of purely discrete or purely Monte-Carlo methods.
  • Theoretical Foundation Matters: The theoretical guarantees of convergence provide strong confidence in cKG's ability to find the global optimum, even in complex, constrained, and noisy search spaces.

Key Results

  • Synthetic Tests: cKG consistently outperformed other state-of-the-art constrained BO algorithms (cEI, NEI, PESC, TS, pKG) across all three synthetic test functions. The improvement was particularly pronounced when noise was introduced. For example, on the "Mistery" and "New Branin" functions without noise, cKG was superior, with cEI being the second best. On "Test Function 2," cKG and pKG performed similarly. With noise, cKG showed even greater superiority.
  • MNIST Hyperparameter Tuning: cKG achieved the highest validation accuracy compared to other benchmark methods. TS and pKG also performed well, but cKG was the top performer. This demonstrates its effectiveness on a challenging, high-dimensional, real-world machine learning task.

Limitations and Future Work

The authors acknowledge several limitations and suggest future research directions:

  • Deterministic Constraints: The current study primarily focuses on deterministic constraints. While cKG is expected to work with stochastic constraints, further investigation is needed.
  • Penalty for Infeasibility (M): The study set the penalty for infeasible solutions to zero. Exploring the impact of different penalty values (M) on performance could be beneficial.
  • Homoscedastic Noise: The current model assumes homoscedastic noise (constant variance). Future work could explore relaxing this assumption, potentially by drawing inspiration from Stochastic Kriging.
  • Simultaneous Evaluation: The current setup assumes that both objective and constraint evaluations are obtained simultaneously. In practice, these might be independent. Investigating how to handle such scenarios is a potential avenue for future research.

Summary updated

BibTeX
@misc{ungredda2021bayesian,
  author = {Juan Ungredda and Juergen Branke},
  title = {{Bayesian Optimisation for Constrained Problems}},
  year = {2021},
  eprint = {2105.13245},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2105.13245},
}
Figure