Achieving Hierarchy-Free Approximation for Bilevel Programs with Equilibrium Constraints

Jiayang Li, Jing Yu, Boyi Liu, Yu Nie, Zhaoran Wang

Bilevel optimization is notoriously difficult because it requires differentiating through a "hierarchy"—calculating how a leader’s actions affect a lower-level equilibrium. This paper introduces a "hierarchy-free" approximation scheme that sandwiches the complex bilevel problem between two simpler models: a $T$-step Cournot game (upper bound) and a $T$-step monopoly model (lower bound). These bounds converge exponentially as the step parameter $T$ increases, allowing researchers to solve massive bilevel problems using efficient first-order methods without the computational nightmare of inverting large matrices.

The Bottleneck of Bilevel Programs

Bilevel programs model scenarios where a "leader" optimizes an objective subject to the "followers" reaching an equilibrium (for example, a traffic planner setting tolls for self-interested drivers). Mathematically, these are known as Programs with Equilibrium Constraints (MPECs).

The core challenge in solving MPECs is the gradient calculation. To update the leader’s variables, one must calculate the derivative of the followers' equilibrium with respect to the leader's decision. Traditional methods fall into two computationally difficult camps:

  1. Implicit Differentiation (ID): Requires inverting a Jacobian matrix that scales quadratically with the number of variables, which is prohibitive for large-scale systems.
  2. Automatic Differentiation (AD): Requires "unrolling" the followers' optimization steps. If the followers take many steps to reach equilibrium, the computational graph becomes too deep to store or process efficiently.

The authors seek a way to bypass the hierarchy entirely, turning the nested problem into a single-level approximation that is easier to compute.

A Hierarchy-Free "Sandwich" Approach

To bypass the gradient bottleneck, the authors draw inspiration from classic economics to create two "hierarchy-free" models that bound the true Stackelberg (leader-follower) solution:

  • $T$-step Cournot Game (Upper Bound): In a standard Cournot game, players move simultaneously. Here, the leader and followers update simultaneously, but the leader "looks ahead" $T$ steps into the followers' future dynamical adjustments. This limits the leader's power, providing an upper bound on the objective.
  • $T$-step Monopoly Model (Lower Bound): The leader is given "dictator" powers to set the followers' initial state, but the followers are allowed $T$ steps of "freedom" to adjust toward their own interests. This overestimates the leader's power, providing a lower bound.

Because both models are single-level equilibrium or optimization problems, they can be solved using standard first-order methods (like gradient descent). They do not require differentiating through a fully converged lower-level equilibrium, successfully avoiding the hierarchy problem.

Instead of struggling to find the exact solution to a bilevel program, it is much more efficient to find these upper and lower bounds. If the gap between the $T$-step Cournot and $T$-step Monopoly models is small, any feasible point between them is a high-quality approximation. The authors prove that the gap between these bounds shrinks at an exponential rate ($\eta^{T/2}$) as $T$ increases.

Convergence of T-step Cournot and Monopoly bounds as T increases.

As demonstrated in the theoretical bounds, a very small $T$ (often less than 10, and sometimes as small as 4) is sufficient to reach an acceptable solution where the upper and lower bounds effectively meet.

Experimental Validation

The researchers evaluated their approach on three primary benchmarks: a classic Stackelberg Duopoly, the Braess Network (to test if the algorithm can navigate the "Braess Paradox"), and the Sioux Falls Network (a real-world-inspired transportation benchmark with 24 nodes, 76 arcs, and 638 origin-destination pairs).

The experiments revealed massive speedups. On the Sioux Falls network, the proposed $T$-step Cournot approach was approximately 400 times faster per iteration than exact methods like Implicit Differentiation. While exact methods (ID and full AD) provide the most accurate gradients, the $T$-step approximation achieved nearly identical optimality gaps with a fraction of the total CPU time. Furthermore, because the method avoids deep unrolling, it significantly reduces the memory overhead typically associated with AD-based bilevel solvers. The authors also noted that "warm-starting" the $T$-step iterations using the results from the previous step drastically accelerates convergence.

Limitations and Future Directions

While the $T$-step approximation offers a powerful new tool for bilevel optimization, it comes with certain theoretical constraints:

  • Convexity Requirements: The theoretical proof of convergence relies on the upper-level objective being strongly convex. Many machine learning problems are non-convex, meaning the bounds might not behave as predictably in those settings.
  • Lower-Level Uniqueness: The current theory assumes the followers have a unique equilibrium. A rigorous theoretical treatment for non-unique lower levels remains future work.
  • Hyperparameter Tuning: Performance still depends on choosing an appropriate step size and the parameter $T$. Automating the selection of these parameters would make the scheme more robust for non-experts.

Summary updated

BibTeX
@inproceedings{li2023achieving,
  author = {Jiayang Li and Jing Yu and Boyi Liu and Yu Nie and Zhaoran Wang},
  title = {{Achieving Hierarchy-Free Approximation for Bilevel Programs with Equilibrium Constraints}},
  booktitle = {International Conference on Machine Learning},
  year = {2023},
  url = {https://openreview.net/forum?id=CeNkvR00rT},
}
Figure