Abstract
Standard Bayesian optimization (BO) is effective for black-box optimization but often assumes constraints are known or evaluated jointly with the objective. This paper presents a framework for constrained BO that handles unknown, noisy, and decoupled constraints. By modeling both the objective and constraints with Gaussian Processes and utilizing a constraint-weighted acquisition function alongside Entropy Search, the proposed method efficiently navigates feasible regions even when evaluation costs vary across tasks. We demonstrate the effectiveness of this approach on synthetic benchmarks and real-world machine learning tasks, including hyperparameter tuning for deep neural networks and Hamiltonian Monte Carlo.
Introduction
Standard Bayesian optimization is a powerful technique for optimizing expensive black-box functions. However, it often struggles when real-world problems involve constraints that are unknown, noisy, or evaluated separately from the objective. For instance, in food science, minimizing calories (objective) is subject to a taste constraint (at least 95% approval). While calorie calculation is cheap, taste tests are expensive and noisy.
This paper addresses the challenge of constrained Bayesian optimization where constraints are unknown a priori, observations can be noisy, and the objective and constraints can be evaluated independently (decoupled) with different costs.
Methodology
The proposed framework utilizes independent Gaussian Processes (GPs) to model both the objective function and the constraint functions.
Probabilistic Constraints
To handle noise, constraints are formulated probabilistically. Instead of a hard boundary, the user specifies a confidence threshold, such as $Pr(\text{Constraint Satisfied}) \ge 1 - \delta$. For non-Gaussian observations (e.g., binary pass/fail), a latent function is mapped through a sigmoid, allowing the GP to handle discrete data.
Constraint-Weighted Expected Improvement
To select the next evaluation point, the standard Expected Improvement (EI) acquisition function is modified by multiplying it by the probability of constraint satisfaction: $$a(x) = EI(x) \times Pr(C(x))$$
Decoupled Evaluations via Entropy Search
When objectives and constraints can be evaluated separately, standard myopic acquisition functions like EI can fail due to a "chicken and egg" pathology: evaluating only the constraint doesn't improve the objective, and evaluating only the objective doesn't prove feasibility. To solve this, the authors use a two-step process:
- Select the best input location $x$ using the Constraint-Weighted EI.
- Decide which task (objective or constraint) to evaluate at $x$ using Entropy Search. This selects the task providing the most information gain about the true constrained minimum, scaled by the evaluation cost.
Experimental Evaluation
The method was evaluated on synthetic benchmarks and real-world machine learning tasks, including the Branin-Hoo function, Latent Dirichlet Allocation (LDA) hyperparameter tuning, and deep neural network optimization on MNIST.
Key Results
- HMC Tuning: Constrained BO found a configuration yielding 97,000 effective samples in a fixed time, compared to 1,100 for a manually-configured baseline.
- Neural Network Tuning: The method significantly outperformed standard BO baselines that used simple penalties for divergent runs, demonstrating that treating "crashes" as probabilistic constraints is more effective than objective penalties.
- Online LDA: Successfully maximized performance while maintaining topic sparsity (entropy < $\log_2 200$).
Discussion
A key insight is that decoupling saves massive compute. By evaluating cheap constraints (e.g., parameter counts) before expensive objectives (e.g., training), the optimizer avoids unfeasible regions. Furthermore, the authors highlight the "Chicken and Egg" pathology of decoupled BO, where non-myopic approaches like Entropy Search are necessary to value information gain about feasibility. Finally, treating training "crashes" as binary constraints rather than objective penalties avoids sharp discontinuities that hinder GP modeling.
Conclusion and Future Work
While effective, the current formulation guarantees individual rather than joint constraint satisfaction thresholds. Additionally, the Entropy Search step involves computational overhead due to the need for Monte Carlo sampling to estimate the distribution of the minimum ($p_{min}$). Future work may focus on improving the efficiency of these inner-loop approximations and extending the framework to joint probabilistic guarantees.
Summary updated