Introduction
Many real-world optimization problems involve "black-box" constraints that are expensive to evaluate. For instance, when tuning a neural network, one might seek to minimize classification error (the objective) while ensuring the model's inference time remains under a strict threshold (the constraint). Because both the error and execution time are unknown until the experiment is run, finding the optimal feasible solution is challenging.
Standard Bayesian Optimization (BO) often relies on the Expected Improvement (EI) heuristic. However, EI suffers from several pathologies in constrained settings:
- The Feasibility Trap: EI requires a "current best" feasible point to calculate improvement. If the initial data contains no points satisfying the constraints, EI lacks a coherent strategy to proceed.
- Coupled Evaluations: In many scenarios, constraints can be evaluated independently of the objective (e.g., checking a model's memory footprint is faster than training it). Standard EI methods struggle to decouple these tasks to decide which specific function to evaluate next.
- Scaling Issues: Existing information-theoretic alternatives often rely on expensive numerical grids, rendering them impractical for problems beyond a few dimensions.
The PESC Framework
To overcome these limitations, the authors introduce Predictive Entropy Search with Constraints (PESC). Instead of myopically seeking "improvement," PESC seeks information. It selects the next evaluation point $x$ that maximizes the mutual information between the observation at $x$ and the location of the constrained global minimizer, $x_*$.
PESC models the objective and each constraint as independent Gaussian Processes (GPs). Because the distribution of the global minimum $x_*$ under constraints is mathematically intractable, PESC employs Expectation Propagation (EP)—a sophisticated approximate inference technique—to create a tractable Gaussian approximation of the conditioned predictive distribution.
A key advantage of PESC is its additive acquisition function. The total expected information gain is simply the sum of potential gains from the objective and each individual constraint. This allows the algorithm to naturally handle decoupled tasks, picking the specific evaluation that provides the most information per unit cost. Furthermore, because PESC focuses on reducing uncertainty about $x_*$, it functions perfectly well even before a single feasible point has been discovered, naturally prioritizing the search for feasible regions.
Experiments and Results
The authors evaluated PESC across several benchmarks, ranging from synthetic GP samples to real-world hyperparameter tuning.
Synthetic Benchmarks
In 1D synthetic tests, PESC's acquisition function closely matched the "ground truth" calculated via expensive rejection sampling (RS), demonstrating the accuracy of the EP approximation.
As dimensionality increases, PESC maintains its advantage. In 8D synthetic problems, PESC significantly outperformed the standard Expected Improvement with Constraints (EIC) method, which tends to break down in higher dimensions.
Real-World Applications
PESC was also tested on a fast neural network tuning task, optimizing 12 hyperparameters of a 3-layer MLP on the MNIST dataset, constrained by a 2ms hardware latency limit. PESC successfully navigated the strict latency constraints to find a model with 7.0% error, whereas the standard EIC method stalled at 49% error. Additionally, in an MCMC tuning task, PESC demonstrated its decoupled efficiency by independently choosing to evaluate constraints or objectives based on their relative information gain.
Limitations and Future Work
While highly effective, PESC comes with computational trade-offs. The authors note that the Expectation Propagation step can be prone to numerical instabilities if not handled carefully, making the method relatively difficult to implement from scratch. Furthermore, PESC requires $O(N^3)$ complexity per iteration due to GP matrix inversions, plus additional costs for the EP iterations. This overhead may be excessive for very cheap-to-evaluate functions. To mitigate usage complexity, the authors have integrated PESC into the open-source Spearmint Bayesian optimization package, paving the way for more robust, plug-and-play information-theoretic optimization tools.
Summary updated