A Single-Loop First-Order Algorithm for Linearly Constrained Bilevel Optimization

Wei Shen, Jiawei Zhang, Minhui Huang, Cong Shen

Overview

This paper tackles bilevel optimization problems with coupled linear constraints—a notoriously tricky setup where the lower-level problem's constraints depend on upper-level variables. The authors propose SFLCB, a single-loop, first-order algorithm that avoids expensive Hessian (second-derivative) computations and improves the theoretical convergence rate from $O(\epsilon^{-3}\log(\epsilon^{-1}))$ to $O(\epsilon^{-3})$.

The Challenge of Constrained Bilevel Optimization

Bilevel Optimization (BLO) involves two nested optimization tasks: an upper-level "leader" problem and a lower-level "follower" problem. A common analogy is hyperparameter tuning, where the upper level evaluates validation loss, and the lower level trains the model weights.

While unconstrained BLO is well-studied, constrained BLO is significantly harder. The complexity peaks when constraints are coupled, meaning the feasible region of the lower-level problem shifts depending on the upper-level variables. In these scenarios, the upper-level objective often becomes non-smooth and mathematically hostile.

Existing methods to solve this usually fall into two traps:

  1. Hessian Dependency: Computing second-order derivatives is computationally massive and scales poorly for large machine learning models.
  2. Nested Loops: Many algorithms require double or triple loops (e.g., fully solving the lower-level problem before taking a single step in the upper-level problem), making them slow and difficult to implement in practice.

The SFLCB Approach

To escape the nested-loop and Hessian traps, the authors propose SFLCB (Single-Loop First-Order algorithm for Linearly Constrained Bilevel optimization). Their methodology relies on a three-part recipe:

  1. Penalty Reformulation: Instead of solving the nested problem directly, they merge the upper and lower-level objectives into a single-level minimax problem using a penalty parameter ($\delta$). The authors mathematically prove that the stationary points and gradients of this reformulated function are bounded by $O(\delta)$ relative to the original hyper-objective, justifying the shortcut.
  2. Augmented Lagrangian: To handle coupled linear constraints (e.g., $Bx + Ay - b \le 0$), they introduce slack variables to turn inequalities into equalities. They then apply an Augmented Lagrangian method, adding penalty terms to make the objective function strongly convex with respect to one set of variables and strongly concave with respect to the other.
  3. Single-Loop GDA: With the problem reformulated into a friendly convex-concave minimax shape, they apply Gradient Descent Ascent (GDA). This allows them to update both upper and lower variables simultaneously in a single loop using only first-order gradients, bypassing the need for nested loops and Hessian inversions.

Theoretical and Practical Results

Faster Theoretical Convergence

The authors rigorously prove that SFLCB achieves an $\epsilon$-stationary point with an iteration complexity of $O(\epsilon^{-3})$. This shaves off a logarithmic factor from the previous state-of-the-art rate of $O(\epsilon^{-3}\log(\epsilon^{-1}))$ for this specific problem setting, while simultaneously reducing the algorithmic structure to a single loop.

Comparison of iteration complexity and loop structures for various bilevel optimization methods.

Empirical Performance

The algorithm was evaluated across several tasks, demonstrating strong practical efficiency:

  • 1D Toy Example: Visually verified that the algorithm successfully navigates complex landscapes to find true local minima.
  • SVM Hyperparameter Tuning (Diabetes Dataset): SFLCB converged significantly faster and achieved higher test accuracy in less time compared to recent baseline algorithms like BLOCC, GAM, and LV-HBA.
  • Transportation Network Design: On both 3-node and 9-node synthetic graphs, SFLCB found solutions with higher upper-level utility (operator profit) much faster than the BLOCC baseline.

Limitations and Future Work

The authors note that their current theoretical analysis is restricted to deterministic settings (assuming no noise in the gradients) and linearly constrained lower-level problems.

Future research directions include:

  1. Extending the framework to stochastic environments (e.g., using mini-batch SGD), which is essential for scaling to massive deep learning datasets.
  2. Adapting the method to handle more general, non-linear constraint structures.
  3. Investigating whether the optimal $O(\epsilon^{-2})$ convergence rate—currently the gold standard for unconstrained BLO—can eventually be achieved in this constrained setting.

Summary updated

BibTeX
@inproceedings{shen2025single,
  author = {Wei Shen and Jiawei Zhang and Minhui Huang and Cong Shen},
  title = {{A Single-Loop First-Order Algorithm for Linearly Constrained Bilevel Optimization}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=IMzol5Ywsr},
}
Figure