Efficient Nonmyopic Bayesian Optimization via One-Shot Multi-Step Trees

Shali Jiang, Daniel R. Jiang, Maximilian Balandat, Brian Karrer, Jacob R. Gardner, Roman Garnett

Bayesian Optimization (BO) is the go-to framework for optimizing expensive-to-evaluate black-box functions, such as tuning massive neural networks or designing new drugs where every test costs significant time or money.

Traditionally, BO is "short-sighted" or myopic. Most practitioners rely on policies like Expected Improvement (EI), which ask, "What is the best point to sample right now?" while ignoring how that sample might improve decisions two or three steps down the line. While nonmyopic (lookahead) policies are theoretically superior, they are notoriously difficult to implement. They require solving a stochastic dynamic program—a mathematical nightmare involving nested expectations and optimizations that grow exponentially more complex with every step you look ahead.

This paper introduces a way to efficiently look multiple steps ahead by transforming a complex, nested decision tree into a single "one-shot" optimization problem, achieving state-of-the-art performance without the prohibitive computational costs usually associated with long-term planning.

Methodology: Making Lookahead Practical

The authors propose three main innovations to make multi-step lookahead computationally tractable:

  1. One-Shot Multi-Step Trees: Instead of solving the lookahead problem recursively (solving the last step, then the second-to-last, etc.), they treat all future decisions in the scenario tree as variables in one giant, joint optimization problem.
Scenario tree illustrating the multi-step lookahead process
  1. The Reparameterization Trick: To make this giant tree "trainable" via gradient descent, they use the reparameterization trick (common in Variational Autoencoders). This allows them to compute gradients through the "fantasized" future outcomes of the Gaussian Process (GP).
  2. Fast-Fantasies & Linear Algebra: Conditioning a GP on new data is usually slow ($O(n^3)$). The authors developed a novel method to update "LOVE caches" (Lanczos Variance Estimates), allowing them to "fantasize" future scenarios up to 16x faster than standard methods.

They also explore two simplified versions to further reduce complexity:

  • Multi-Step Path: Only considering a single "average" future path rather than a full branching tree.
  • ENO (Efficient Nonmyopic Optimization): Approximating future adaptive decisions with a simpler "batch" decision.

Key Insights and Results

The researchers evaluated their method on synthetic mathematical benchmarks and a real-world application (tuning a classification neural network on a breast cancer dataset).

  • Joint Optimization is Key: The "One-Shot" formulation is the breakthrough. By optimizing the current decision and all future "fantasized" decisions simultaneously, they bypass the need for expensive nested loops.
  • Efficiency: While looking ahead is naturally slower than myopic BO, the "One-Shot" approach is orders of magnitude faster than previous lookahead attempts. For example, the "4-path" variant achieved top-tier results with an average time of only ~17 seconds per iteration.
  • Nonmyopic Behavior: On the "12-ENO" variant, the researchers observed a classic "nonmyopic" curve. The algorithm initially performs worse than short-sighted methods (like EI) as it "invests" in exploration, but eventually surpasses them to find a much better final solution.
Performance gap showing 12-ENO's nonmyopic behavior compared to EI

Interestingly, the authors noted diminishing returns for lookahead depth: looking 3 or 4 steps ahead provides a massive boost over 1 step, but the benefit starts to plateau after that, likely because the GP model's uncertainty makes very distant "fantasies" less reliable.

Limitations and Future Work

Even with these optimizations, a full scenario tree still grows exponentially. Looking 10+ steps ahead remains computationally out of reach for the "full tree" version. Furthermore, nonmyopic BO relies heavily on the GP surrogate model being accurate. If the model is poorly specified, looking ahead might just mean "hallucinating" a future that won't happen.

Currently, the number of samples used at each level of the tree is chosen heuristically. Automating this choice could further improve efficiency. Finally, the authors suggest applying these "One-Shot" and "Fast-Fantasy" techniques to other fields, such as Bayesian Quadrature or active learning.

Summary updated

BibTeX
@inproceedings{jiang2020efficient,
  author = {Shali Jiang and Daniel R. Jiang and Maximilian Balandat and Brian Karrer and Jacob R. Gardner and Roman Garnett},
  title = {{Efficient Nonmyopic Bayesian Optimization via One-Shot Multi-Step Trees}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2020},
  url = {https://openreview.net/forum?id=ENVdX4p0zg},
}
Figure