Neural Nonmyopic Bayesian Optimization in Dynamic Cost Settings
Sang T. Truong, Duc Q. Nguyen, Willie Neiswanger, Ryan-Rhys Griffiths, Stefano Ermon, Nick Haber, Sanmi Koyejo
TL;DR
This work tackles nonmyopic Bayesian optimization under dynamic, history-dependent costs by introducing LookaHES, which combines a multi-step $H$-Entropy Search framework with pathwise sampling and neural policy optimization to enable long-horizon planning beyond 20 steps. A neural policy amortizes decision variables across lookahead steps, while pathwise sampling curbs trajectory complexity, making scalable planning feasible in large, structured action spaces such as protein sequence edits. The method formalizes dynamic costs via Markovian and non-Markovian models, optimizes an EHIG-based objective with horizon $L$, and leverages autoregressive policies (including LLMs) to predict subsequent queries. Empirical results across nine synthetic benchmarks and real-world tasks (geospatial NASA night-light optimization and protein design) show LookaHES outperforming strong baselines, with notable gains in both continuous and discrete domains. The work provides a general, scalable, and cost-aware approach for robust long-horizon optimization in complex decision spaces, with practical implications for ML, statistics, and applied domains.
Abstract
Bayesian optimization (BO) is a common framework for optimizing black-box functions, yet most existing methods assume static query costs and rely on myopic acquisition strategies. We introduce LookaHES, a nonmyopic BO framework designed for dynamic, history-dependent cost environments, where evaluation costs vary with prior actions, such as travel distance in spatial tasks or edit distance in sequence design. LookaHES combines a multi-step variant of $H$-Entropy Search with pathwise sampling and neural policy optimization, enabling long-horizon planning beyond twenty steps without the exponential complexity of existing nonmyopic methods. The key innovation is the integration of neural policies, including large language models, to effectively navigate structured, combinatorial action spaces such as protein sequences. These policies amortize lookahead planning and can be integrated with domain-specific constraints during rollout. Empirically, LookaHES outperforms strong myopic and nonmyopic baselines across nine synthetic benchmarks from two to eight dimensions and two real-world tasks: geospatial optimization using NASA night-light imagery and protein sequence design with constrained token-level edits. In short, LookaHES provides a general, scalable, and cost-aware solution for robust long-horizon optimization in complex decision spaces, which makes it a useful tool for researchers in machine learning, statistics, and applied domains. Our implementation is available at https://github.com/sangttruong/nonmyopia.
