Predictive Entropy Search for Bayesian Optimization with Unknown Constraints

José Miguel Hernández-Lobato, Michael A. Gelbart, Matthew D. Hoffman, Ryan P. Adams, Zoubin Ghahramani · DOI

Abstract

Unknown constraints arise in many types of expensive black-box optimization problems. Several methods have been proposed recently for performing Bayesian optimization with constraints, based on the expected improvement (EI) heuristic. However, EI can lead to pathologies when used with constraints. For example, in the case of decoupled constraints—i.e., when one can independently evaluate the objective or the constraints—EI can encounter a pathology that prevents exploration. Additionally, computing EI requires a current best solution, which may not exist if none of the data collected so far satisfy the constraints. By contrast, information-based approaches do not suffer from these failure modes. In this paper, we present a new information-based method called Predictive Entropy Search with Constraints (PESC). We analyze the performance of PESC and show that it compares favorably to EI-based approaches on synthetic and benchmark problems, as well as several real-world examples. We demonstrate that PESC is an effective algorithm that provides a promising direction towards a unified solution for constrained Bayesian optimization.

Introduction

In machine learning and engineering, we often face "black-box" optimization problems where evaluating a setting is expensive in terms of time or resources. Compounding this challenge are unknown constraints. For instance, when tuning a neural network architecture, it must not only be accurate but also meet strict latency requirements on specific hardware. These constraints are often only discoverable through experimentation.

While Bayesian Optimization (BO) is the standard approach for such problems, the widely used Expected Improvement (EI) heuristic suffers from significant limitations in constrained settings. This paper introduces Predictive Entropy Search with Constraints (PESC), an information-theoretic framework designed to overcome these hurdles.

The Pathologies of Expected Improvement

Standard EI-based methods (often referred to as EIC in constrained contexts) exhibit three primary "pathologies":

  1. The Feasibility Trap: EI requires a "current best" feasible point to calculate improvement. If no feasible point has been found yet, the algorithm lacks a reference and essentially searches blindly.
  2. Decoupling Failure: In many scenarios, constraints can be evaluated independently of the objective (e.g., checking latency before training). EI-based methods often fail to exploit this "decoupled" nature, leading to inefficient exploration.
  3. Grid Dependency: Advanced alternatives often rely on rigid grids for calculation, which do not scale well as the dimensionality of the search space increases.

Predictive Entropy Search with Constraints (PESC)

PESC shifts the focus from "improvement" to information gain. Instead of asking how much better a point might be, PESC asks: "How much will observing this point tell me about the location of the true global optimum ($x_*$)?"

PESC mechanism and 1D performance

Information-Theoretic Foundation

PESC maximizes the Mutual Information between a potential observation and the location of the global minimizer. Since direct calculation is intractable, the authors utilize a mathematical symmetry: the information an observation $x$ provides about the optimum $x_*$ is equivalent to the information $x_*$ provides about $x$.

Expectation Propagation (EP)

To manage the non-Gaussian nature of constraints (which act as step functions), PESC employs Expectation Propagation. This iterative algorithm approximates complex distributions with simpler Gaussians, allowing for efficient computation of the conditioned predictive distribution.

Experimental Evaluation

The authors evaluated PESC against synthetic functions and real-world benchmarks, including neural network hyperparameter tuning (MNIST) and MCMC sampler optimization using the UCI German Credit dataset.

Performance in 2D

Key Results

  • Robustness: PESC begins working effectively even before finding a feasible point by purposefully hunting for the boundaries of the feasible region.
  • Natural Decoupling: The mathematical structure of PESC naturally separates the objective and constraints, allowing it to decide which component is most informative to evaluate next.
  • Superior Scaling: In higher-dimensional synthetic problems (e.g., 2D and 8D), PESC significantly outperformed EI-based methods, which often struggle with the "curse of dimensionality."
  • Real-World Success: In tuning a 3-layer neural network with latency constraints, PESC achieved a 7.0% error rate, whereas EIC became trapped by the constraints, ending with a 49% error rate.

Conclusion

PESC represents a significant step toward a unified solution for constrained Bayesian optimization. By prioritizing information gain over myopic improvement, it avoids the common failure modes of EI-based heuristics. While more computationally intensive than simpler methods, the overhead is negligible compared to the cost of the expensive black-box experiments it optimizes. To facilitate adoption, the authors have integrated PESC into the open-source Spearmint package.

Summary updated

BibTeX
@inproceedings{hernandezlobato2015predictive,
  author = {José Miguel Hernández-Lobato and Michael A. Gelbart and Matthew D. Hoffman and Ryan P. Adams and Zoubin Ghahramani},
  title = {{Predictive Entropy Search for Bayesian Optimization with Unknown Constraints}},
  booktitle = {International Conference on Machine Learning},
  year = {2015},
  url = {https://openreview.net/forum?id=BJxHvsZu-H},
}
Figure