BILBO: BILevel Bayesian Optimization

Ruth Wan Theng Chew, Quoc Phong Nguyen, Bryan Kian Hsiang Low

Abstract

Bilevel optimization problems, characterized by nested decision-making structures, are prevalent in fields ranging from hyperparameter tuning to industrial process control. Traditional nested Bayesian Optimization (BO) approaches suffer from extreme sample inefficiency due to the requirement of solving the lower-level problem for every upper-level candidate. We present BILBO (BILevel Bayesian Optimization), a novel algorithm that optimizes both levels simultaneously. By utilizing Gaussian Process-based trusted sets and a decoupled query strategy, BILBO achieves superior sample efficiency and provides the first theoretical sublinear regret guarantees for black-box bilevel problems.

Introduction

Bilevel optimization involves a hierarchical structure where one optimization task (the upper level) is nested inside another (the lower level). This is often modeled as a game between a "leader" and a "follower." The leader makes a decision, and the follower responds optimally to that decision. The leader’s objective is to select a move that maximizes their own utility, accounting for the follower's optimal response.

While bilevel structures are ubiquitous in machine learning, economics, and engineering, they are notoriously difficult to solve. Standard approaches typically employ a nested framework: for every upper-level point evaluated, a complete optimization must be performed at the lower level. When the underlying functions are "black boxes"—lacking analytical forms and providing only noisy observations—this nested approach becomes computationally prohibitive and highly sample-inefficient.

The BILBO Algorithm

BILBO (BILevel Bayesian Optimization) breaks the traditional nested loop by treating the upper and lower levels as a joint search space, optimizing them simultaneously rather than sequentially. This approach is built upon three core innovations:

1. Trusted Sets

To manage the search space effectively, BILBO maintains two "trusted sets" derived from Gaussian Process (GP) confidence bounds. The first set filters for feasibility, ensuring points meet the necessary constraints. The second set identifies points likely to be lower-level optima. By focusing the search on these high-probability regions, BILBO drastically reduces the number of function evaluations required to find the global optimum without discarding the true solution.

2. Decoupled Function Querying

In many practical applications, the upper-level objective, the lower-level objective, and the constraints can be queried independently. BILBO leverages this by using a regret-based strategy to determine which specific function will yield the most information in a given iteration. This prevents wasting expensive evaluations on functions that are already well-understood in a specific region.

3. Conditional Reassignment

When the algorithm chooses to query the lower-level objective, it may "reassign" the query point to the current estimated optimum. This mechanism encourages the model to refine its accuracy specifically where the follower is most likely to act, effectively replacing the need for repeated, exhaustive global optimizations of the lower-level task.

Experimental Evaluation

The researchers evaluated BILBO against standard Nested BO and "TrustedRand" (a baseline using trusted sets with random sampling) across several benchmarks:

  • Synthetic Benchmarks: The SMD suite (SMD2, SMD6, SMD12) and a multimodal BraninHoo+GoldsteinPrice function were used to test performance against conflicting interactions and complex landscapes.
  • Energy Market Simulation: A PyPSA-based model where energy providers (leaders) set prices and consumers (followers) optimize demand.
  • Chemical Process Optimization: A high-fidelity simulation of Methyl Acetate production using COCO/ChemSep simulators, involving four variables and multiple complex constraints.

Key Results and Insights

BILBO demonstrates significant improvements in both efficiency and robustness:

  • Sample Efficiency: On the BraninHoo+GoldsteinPrice benchmark, BILBO converged to the optimum in approximately 150 queries, a point at which the nested approach remained far from the solution.
  • Robustness to Multimodality: BILBO handles "multimodal" lower levels—where the follower may have multiple optimal responses—more effectively than nested methods, which frequently converge to local optima.
  • Theoretical Grounding: BILBO provides the first proof of sublinear regret for this class of problems. This mathematical guarantee ensures that the algorithm will eventually converge to the global bilevel optimum as the number of iterations increases.
  • Real-World Utility: In chemical process simulations, BILBO identified superior operating parameters for Methyl Acetate production compared to all baselines, highlighting its potential for industrial engineering applications.

Limitations and Future Work

Despite its advantages, BILBO faces challenges related to the "curse of dimensionality." The current implementation relies on search space discretization, which can become memory-intensive as the number of variables increases. Additionally, while BILBO is sample-efficient, the computational cost per iteration is higher due to the maintenance and searching of trusted sets. Future research will focus on adaptive discretization and scaling trusted set representations to higher-dimensional continuous spaces using advanced sampling techniques.

Summary updated

BibTeX
@inproceedings{chew2025bilbo,
  author = {Ruth Wan Theng Chew and Quoc Phong Nguyen and Bryan Kian Hsiang Low},
  title = {{BILBO: BILevel Bayesian Optimization}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=8S5rzd08FI},
}
Figure