Lookahead Bayesian Optimization with Inequality Constraints

Rémi Lam, Karen WillcoxNeurIPS 2017

In many engineering and scientific fields, optimizing a system—such as maximizing fuel efficiency while maintaining structural integrity—requires running massive, expensive computer simulations. Bayesian Optimization (BO) is the standard tool for this task, utilizing a statistical surrogate like a Gaussian Process (GP) to intelligently guess where the optimal design points lie.

However, when dealing with expensive inequality constraints, traditional Constrained Bayesian Optimization (CBO) algorithms often fall short due to their "myopic" nature. This paper introduces a novel "lookahead" strategy that moves beyond greedy, one-step-at-a-time decision-making, demonstrating how planning for a finite evaluation budget can significantly improve the search for global optima in complex design spaces.

The Limitations of Greedy Optimization

Most existing CBO methods are inherently greedy. They select the next point to evaluate based solely on the immediate expected reward, typically using an acquisition function like Expected Improvement.

The problem with this approach arises in constrained spaces where the "feasible" region (where all constraints are met) might be tiny, disconnected, or feature highly complex boundaries. A greedy algorithm might avoid exploring near a constraint boundary because it fears an immediate "fail" (an infeasible result). However, learning the exact location of that boundary is often crucial for finding the true global optimum later in the optimization process.

A Dynamic Programming Approach to CBO

To overcome myopic behavior, the authors frame CBO as a Dynamic Programming (DP) problem. Instead of maximizing immediate reward, the objective is to maximize the cumulative reward over a remaining budget of $N$ evaluations.

Because solving an exact DP problem is computationally intractable—involving infinite nested integrals and optimizations—the authors employ an approximation technique called Rollout:

  • One-Step Lookahead: The algorithm considers a candidate point and simulates potential outcomes for future steps of the optimization.
  • Heuristic Policy: To simulate the future without falling into an infinite computational loop, the algorithm uses a known, cheaper "heuristic" policy (such as Constrained Expected Improvement) to act as a proxy for future decisions.
  • Approximation: Gauss-Hermite quadrature is used to handle the uncertainty of future evaluations, and a rolling horizon ($h$) limits how many steps into the future the algorithm looks.
  • Utility Function: The final utility function combines the immediate expected improvement with the discounted expected rewards of the subsequent $h$ steps.
Illustration of the Rollout algorithm using a heuristic policy to simulate future steps.

Key Insights and Experimental Results

The authors evaluated their approach on four distinct problems, ranging from 2D and 4D multi-modal objectives to a real-world engineering problem involving a reacting flow combustion simulation governed by complex Partial Differential Equations (PDEs).

The lookahead approach (referred to as "Rollout") was compared against state-of-the-art greedy methods, including Constrained Expected Improvement (EIC) and Predictive Entropy Search with Constraints (PESC).

  • Budget Awareness: Unlike greedy methods, the lookahead approach is "aware" of its remaining evaluation budget. It strategically "invests" evaluations to learn constraint boundaries early on, switching to exploitation when the budget dwindles.
  • The Value of Infeasibility: The strategy recognizes that evaluating an infeasible point can be highly valuable if it helps define the edge of the feasible space, paving the way for better points in future iterations.
  • Superior Performance: In almost all test cases, the Rollout algorithm matched or outperformed the greedy baselines. Even with a short horizon ($h=1$), the lookahead strategy often provided a significant performance boost.
  • Breaking Plateaus: In complex scenarios like the Reacting Flow problem, greedy methods like EIC often hit a performance plateau. The Rollout approach continued to improve, eventually achieving a significantly lower utility gap (error from the true optimum).
Performance comparison showing the Rollout algorithm achieving a lower median utility gap compared to greedy baselines.

Limitations and Future Work

While highly effective, the lookahead strategy comes with trade-offs:

  1. Computational Overhead: Although the lookahead calculation is much cheaper than running a heavy PDE simulation, it is still more computationally intensive than evaluating simple greedy metrics.
  2. Model Dependency: The quality of the "lookahead" is strictly bound to the accuracy of the underlying Gaussian Process model. If the GP hyperparameters are not updated accurately, the simulated future steps can be misleading. Increasing the lookahead horizon ($h$) exacerbates this dependency.
  3. Heuristic Selection: The performance of the rollout heavily depends on the choice of the heuristic policy used to simulate the future. Identifying the optimal heuristic for different classes of problems remains an open area for future research.

Summary updated

BibTeX
@inproceedings{lam2017lookahead,
  author = {Rémi Lam and Karen Willcox},
  title = {{Lookahead Bayesian Optimization with Inequality Constraints}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2017},
}
Figure