An Alternating Optimization Method for Bilevel Problems under the Polyak-Łojasiewicz Condition

Quan Xiao, Songtao Lu, Tianyi Chen

TL;DR

The authors introduce GALET, a novel alternating optimization algorithm for bilevel problems where the inner (lower-level) task satisfies the Polyak-Łojasiewicz (PL) condition rather than the stricter requirement of strong convexity. GALET achieves an optimal $\tilde{\cal O}(\epsilon^{-1})$ convergence rate, matching the efficiency of single-level gradient descent and significantly outperforming previous methods for this broader class of problems.

What Problem Does This Paper Address?

Bilevel Optimization (BLO) is a hierarchical framework where one optimization problem (the "upper-level") contains another optimization problem as a constraint (the "lower-level"). Think of hyperparameter tuning: the upper level tries to find the best learning rate, while the lower level tries to minimize training loss using that rate.

Most existing BLO research assumes the lower-level problem is strongly convex, which guarantees a single, unique solution. However, modern machine learning models (like overparameterized neural networks) are rarely strongly convex; they often have many "best" solutions.

When the lower-level problem has multiple solutions, standard optimization metrics break down. The authors address two main challenges:

  1. Defining Stationarity: How do we define a "good enough" solution when the inner problem doesn't have a unique answer?
  2. Efficiency: Can we create an algorithm that alternates between the two levels (which is computationally cheap) while maintaining the fast convergence rates seen in simpler problems?

Methods

The researchers propose GALET (Generalized ALternating mEthod for bilevel opTimization). Its key components include:

  • A New Stationary Metric: They prove that the common "value function" approach to BLO is mathematically unstable (it lacks "calmness") when the inner problem is non-strongly convex. Instead, they use a gradient-based reformulation and derive a new set of necessary conditions for optimality.
  • Alternating Updates: Unlike "double-loop" algorithms that solve the inner problem to completion every time the outer variable changes, GALET alternates:
  • Update $y$ (Inner): Perform $N$ steps of gradient descent on the lower-level objective.
  • Update $w$ (Shadow): Introduce a "shadow" variable $w$ to track the implicit gradient. This step uses a specific fixed-point iteration involving an extra Hessian term, which the authors show is "inevitable" for handling the PL condition.
  • Update $x$ (Outer): Update the upper-level variable using the information from $y$ and $w$.
  • PL Condition: They assume the lower-level objective satisfies the Polyak-Łojasiewicz condition. This is a "relaxed" version of convexity that allows for multiple global minimizers but ensures the landscape is still well-behaved enough for gradients to lead to a solution.

Datasets

The paper evaluates GALET using:

  • Synthetic Toy Problem: A custom-designed non-convex bilevel problem ("Example 1") used to prove that standard KKT conditions fail where their new metric succeeds.
  • Hyper-cleaning Task: A real-world application where the goal is to train a classifier on corrupted data.
  • MNIST: The classic handwritten digit dataset.
  • FashionMNIST: A dataset of clothing articles.
  • Models: They tested both linear models and 2-layer Multi-Layer Perceptrons (MLPs).

Key Insights and Ideas

  • The "Calmness" Requirement: A major theoretical contribution is showing that the gradient-based reformulation of BLO inherits a property called "calmness" under the PL condition. This makes the problem solvable via standard KKT-like conditions, whereas other reformulations are too sensitive to small perturbations.
  • The Necessity of the Extra Hessian: The authors demonstrate that simpler alternating methods used for strongly convex problems fail on PL problems. The inclusion of a second-order term in the $w$ update is the "secret sauce" that allows GALET to find the global optimizer in non-singleton solution sets.
  • Optimal Complexity: GALET is the first algorithm for this class of problems to reach the $\tilde{\cal O}(\epsilon^{-1})$ iteration complexity, which is the theoretical lower bound for smooth non-convex optimization.

Key Results

  • Convergence Speed: In the hyper-cleaning experiments, GALET converged significantly faster than competing methods like BOME, IAPTT-GM, and V-PBGD.
  • Accuracy: On the MNIST hyper-cleaning task with a 2-layer MLP, GALET achieved 91.48% accuracy, outperforming BOME (90.01%) and IAPTT-GM (90.86%).
  • Robustness: The algorithm proved robust to the choice of inner loop iterations ($N$) and shadow gradient steps ($T$), making it easier to tune in practice than previous "warm-start" methods.

Limitations and Future Work

  • Deterministic Focus: The current analysis is for deterministic BLO. The authors note that extending this to stochastic settings (where we only have noisy samples of the gradient) is a vital next step.
  • Second-Order Information: GALET requires Hessian-vector products. While these can be computed efficiently via auto-differentiation, they are still more expensive than pure first-order methods.
  • Assumption 2: The proof relies on the lower bound of positive singular values of the Hessian being bounded away from zero. While common in theory, this might not hold for all neural network architectures in the wild.

Summary updated

BibTeX
@inproceedings{xiao2023alternating,
  author = {Quan Xiao and Songtao Lu and Tianyi Chen},
  title = {{An Alternating Optimization Method for Bilevel Problems under the Polyak-Łojasiewicz Condition}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=zn5ihqknGj},
}
Figure