Abstract: Bilevel optimization, a hierarchical mathematical framework where one optimization problem is nested within another, has emerged as a powerful tool for modeling complex decision-making processes in various fields such as economics, engineering, and machine learning. This paper focuses on bilevel optimization where both upper-level and lower-level functions are black boxes and expensive to evaluate. We propose a Bayesian Optimization framework that models the upper and lower-level functions as Gaussian processes over the combined space of upper and lower-level decisions, allowing us to exploit knowledge transfer between different sub-problems. Additionally, we propose a novel acquisition function for this model. Our experimental results demonstrate that the proposed algorithm is highly sample-efficient and outperforms existing methods in finding high-quality solutions.
1. Introduction
Bilevel optimization problems are characterized by a hierarchical structure involving a "Leader" (upper-level) and a "Follower" (lower-level). The Leader seeks to optimize an objective function, but their success is contingent upon the Follower's optimal response to the Leader's decisions. Formally, for every decision $x_u$ made by the Leader, the Follower must solve a secondary optimization problem to determine $x_l$. This structure is prevalent in hyperparameter tuning, adversarial machine learning, and strategic economic modeling.
In many real-world applications, these functions are "black boxes"—complex simulations or processes without available gradients that are computationally expensive to evaluate. Traditional approaches often attempt to solve the Follower's problem from scratch for every new Leader decision. This "start-from-scratch" methodology is highly inefficient as it fails to leverage the smooth relationship between the Leader's strategy and the Follower's response.
2. The BILBAO Framework
To address these inefficiencies, we introduce BILBAO (BILevel BAyesian Optimization). The framework shifts away from nested independent optimizations toward a holistic modeling approach.
2.1 Joint Surrogate Modeling
Instead of treating the lower-level problem as an isolated sub-routine, BILBAO models the lower-level function using a Gaussian Process (GP) defined over the combined decision space of both the Leader ($x_u$) and the Follower ($x_l$). This joint surrogate model enables knowledge transfer: the algorithm utilizes information gathered about the Follower's behavior at one Leader setting to predict responses at different, unseen Leader settings. This significantly reduces the number of function evaluations required to map the Follower's optimal response surface.
2.2 Novel Acquisition Functions
Selecting the next point to sample is critical in Bayesian Optimization. BILBAO utilizes two specialized acquisition functions:
- Regional Expected Value of Improvement (REVI): This function identifies points expected to improve the Follower's response map specifically in regions relevant to the Leader's objective.
- REVITS: A computationally efficient variant of REVI based on Thompson Sampling. REVITS is designed to maintain performance in higher-dimensional spaces where the standard REVI calculation (similar to Knowledge Gradient) becomes computationally prohibitive.
2.3 Alternating Optimization
The algorithm employs an alternating strategy, switching between updating the Leader’s global view and refining the Follower’s response map. This ensures that the search remains focused on the most promising regions of the solution space rather than wasting evaluations on irrelevant Leader decisions.
3. Experimental Evaluation
BILBAO was evaluated against standard synthetic benchmarks designed to test bilevel optimization robustness:
- 2D Synthetic Tests: Combinations of classic functions such as the Six-Hump Camel, Branin, and Dixon-Price, known for their complex landscapes and multiple local optima.
- 4D SMD Benchmark Suite: Functions from the Strategic Multi-objective Decision-making (SMD) suite, representing higher-dimensional bilevel structures.
4. Key Results and Insights
Experimental results indicate that BILBAO offers several advantages over existing state-of-the-art methods:
- Superior Sample Efficiency: In the Camel-Branin benchmarks, BILBAO identified near-optimal solutions within 60-80 evaluations. In contrast, competing benchmark methods failed to reach comparable accuracy even after 180 evaluations.
- Reduced Optimality Gap: Across the SMD1-SMD4 benchmarks, BILBAO consistently achieved a lower optimality gap (the distance between the found solution and the true global optimum) compared to traditional nested Bayesian methods.
- Stability and Robustness: Traditional methods often exhibit high variance, frequently failing to converge if the inner-loop budget is insufficient. By treating the lower level as a noisy surrogate rather than a rigid constraint, BILBAO provides a smoother optimization landscape that leads to more stable and predictable convergence.
5. Discussion and Future Work
While BILBAO demonstrates significant improvements in efficiency, certain challenges remain. The REVI acquisition function involves complex meta-optimization that can become a bottleneck. Additionally, the current reliance on discretization for certain calculations may limit scalability in very high-dimensional spaces.
Future research will focus on applying the BILBAO framework to large-scale real-world problems, such as the optimization of energy markets and the design of adversarial-resistant neural networks, where the cost of black-box evaluations is a primary constraint.
Summary updated