Learning to Solve Bilevel Programs with Binary Tender

Bo Zhou, Ruiwei Jiang, Siqian Shen

Abstract / TL;DR This paper introduces a deep learning framework to solve bilevel programs (BPs) where the upper and lower levels are linked by binary variables. By training a novel Input Supermodular Neural Network (ISNN) to approximate the follower's optimal value function, the authors transform computationally intractable bilevel problems into single-level mixed-integer programs that can be solved efficiently by standard optimization software.

Introduction: The Challenge of Discrete Bilevel Programs

Bilevel Programming (BP) models hierarchical decision-making where a "leader" makes a move, and a "follower" reacts optimally. These models are ubiquitous in fields ranging from power grid expansion to hyperparameter tuning in machine learning.

The primary challenge is that BPs are notoriously difficult to solve, often classified as NP-hard. If the follower’s problem is continuous and convex, classical mathematical techniques (like KKT conditions) can collapse the two levels into one. However, if the follower involves discrete or integer decisions, these classical methods break down. Gradient-based approaches fail because discrete variables create step-like landscapes rather than smooth slopes. Consequently, existing exact solvers for these problems often struggle to scale beyond very small instances.

Proposed Methodology

To address these computational bottlenecks, the authors propose a "Learning to Solve" approach focused on binary tenders—scenarios where the linking variables between the leader and follower are binary. Their pipeline consists of three main stages:

Overview of the proposed learning framework
  1. Enhanced Sampling: Random sampling in high-dimensional spaces often yields infeasible or uninformative data. Instead, the authors use "sampling via optimization." They solve random quadratic programs constrained to the feasible region to find high-quality data points near the optimal solution.
  2. Value Function Approximation: The core idea is to train a neural network to learn the follower’s optimal value function, $\phi(x)$. To do this effectively, they introduce the Input Supermodular Neural Network (ISNN). Many bilevel problems exhibit "supermodularity" (a discrete analog to convexity). The ISNN architecture enforces this property through non-negative weights and convex activation functions, ensuring the learned model respects the underlying mathematical structure of the problem.
  3. MILP Reformulation: Once the network is trained, its ReLU-based architecture is converted into a set of linear constraints using "Big-M" notation. This allows the entire bilevel problem to be solved as a single-level Mixed-Integer Linear Program (MILP) using off-the-shelf solvers like Gurobi.

Experimental Setup

Because there is no standard benchmark dataset for bilevel optimization, the authors generated their own comprehensive test beds:

  • Illustrative Examples: Small-scale problems with non-convex, nonlinear lower levels to demonstrate that the method can capture complex value functions.
  • Randomly Generated Instances: Six classes of problems with varying dimensions ($n=10$ to $60$, and up to $120$ in the appendix), including both Linear Program (LP) and Mixed-Integer Linear Program (MILP) lower-level problems.
  • Baselines: The proposed approach was compared against MiBS, a state-of-the-art exact solver for mixed-integer bilevel programs.

Key Insights and Results

A crucial insight from the research is that structure matters. General neural networks (GNNs) often struggle to generalize in optimization tasks because they are agnostic to the mathematical properties of the function they approximate. By enforcing supermodularity via the ISNN architecture, the model requires fewer samples and provides a much tighter approximation of the follower's behavior.

Comparison of exact value function, GNN approximation, and ISNN approximation
  • Superior Accuracy: The ISNN consistently outperformed standard GNNs. In high-dimensional cases, using the ISNN reduced the "objective difference" (the gap from the true optimum) by more than 10% compared to standard architectures. The visual comparison confirms that ISNN captures the true shape of the value function far better than a GNN.
  • Scalability and Speed: For larger problems ($n \ge 40$), the proposed learning-based method significantly outperformed the exact solver MiBS in computational time. While MiBS frequently hit the 1-hour time limit without converging, the neural network approach found high-quality solutions in minutes.
  • Robustness: The method proved highly effective even when the lower-level problem was a MILP—a scenario that typically causes significant computational explosions for traditional solvers.

Limitations and Future Work

While promising, the framework has a few limitations that pave the way for future research:

  • Binary Restriction: The current formulation is specifically designed for binary linking variables. Extending this to general integer or continuous variables while maintaining a tractable MILP reformulation is a logical next step.
  • Big-M Parameters: The single-level reformulation relies on "Big-M" constants. Poorly chosen values can lead to numerical instability, suggesting a need for automated parameter selection.
  • Sampling Overhead: Although the final solving phase is fast, the initial data generation and sampling phase consumes the majority of the total time. Advanced sampling techniques, such as active learning, could further accelerate the end-to-end process.

Summary updated

BibTeX
@inproceedings{zhou2024learning,
  author = {Bo Zhou and Ruiwei Jiang and Siqian Shen},
  title = {{Learning to Solve Bilevel Programs with Binary Tender}},
  booktitle = {International Conference on Learning Representations},
  year = {2024},
  url = {https://openreview.net/forum?id=PsDFgTosqb},
}
Figure