Towards Gradient-based Bilevel Optimization with Non-convex Followers and Beyond

Risheng Liu, Yaohua Liu, Shangzhi Zeng, Jin Zhang

Bi-Level Optimization (BLO) is a fundamental framework in machine learning, underlying tasks such as hyperparameter optimization, meta-learning, and neural architecture search. However, most existing gradient-based BLO algorithms rely on the assumption of Lower-Level Convexity (LLC)—the idea that the follower's optimization landscape is a simple, convex bowl. In modern deep learning, where the follower is often a non-convex neural network, this assumption fails, leading to poor convergence or total failure of standard methods.

Presented at NeurIPS 2021, this research introduces IAPTT-GM, a novel framework designed to tackle BLO problems with non-convex followers, providing the first strict convergence guarantees for this challenging class of problems.

The IAPTT-GM Framework

The authors propose the Initialization Auxiliary and Pessimistic Trajectory Truncated Gradient Method (IAPTT-GM). This framework introduces two core innovations to handle the chaotic relationship between upper-level (UL) and lower-level (LL) variables in non-convex landscapes:

  1. Initialization Auxiliary (IA): In non-convex optimization, the starting point determines the final local minimum. IA introduces a learnable auxiliary variable, $z$, which serves as the starting point for the LL iterations. By jointly optimizing the UL variable and this initialization, the leader can effectively "guide" the follower toward regions of the search space that are globally beneficial for the UL objective.
  2. Pessimistic Trajectory Truncation (PTT): Rather than simply taking the final output of the LL solver, PTT examines the entire optimization trajectory and selects the "worst-case" (pessimistic) step—the one that maximizes the UL objective. While counter-intuitive, this strategy acts as a mathematical safeguard, allowing the construction of a reliable lower-bound approximation that ensures stable convergence.

Theoretical Convergence and Numerical Verification

A key contribution of this work is moving beyond heuristic approaches to provide rigorous mathematical proof of convergence. The authors validated these theoretical claims using synthetic non-convex "numerical toys" designed to trap standard algorithms.

Convergence of IAPTT-GM vs. baselines on synthetic non-convex problems.

As shown in the numerical experiments, IAPTT-GM (represented by the red line) consistently converges to the optimal solution across various initializations, whereas established methods like LS, NS, RHG, and BDA fail to reach the global optimum in these non-convex settings.

Computational Efficiency

Beyond theoretical rigor, IAPTT-GM offers significant practical advantages. The PTT strategy often selects an earlier step in the LL trajectory ($k < K$), which reduces the depth of the "backpropagation through time" required to calculate gradients.

PTT step selection and iteration speed comparison.

Experimental data indicates that IAPTT-GM frequently utilizes approximately half the total available LL steps while maintaining a competitive or superior execution speed per iteration compared to the full-trajectory IA-GM baseline.

Empirical Performance on Machine Learning Tasks

The framework was evaluated on several high-stakes machine learning benchmarks, demonstrating superior accuracy and robustness:

  • Few-Shot Classification: On the miniImageNet (1-shot) task, IAPTT-GM achieved 56.69% accuracy, significantly outperforming MAML (48.70%) and BDA (49.08%).
  • Data Hyper-Cleaning: In tasks involving corrupted labels on FashionMNIST, IAPTT-GM reached a test accuracy of 83.67%, surpassing competing methods which typically hovered between 79% and 81%.
  • Nesterov Acceleration: The authors further demonstrated that their framework is compatible with Nesterov’s accelerated dynamics, combining theoretical rigor with high-speed optimization.

Conclusion and Future Directions

IAPTT-GM represents a significant milestone in bilevel optimization by successfully removing the crutch of lower-level convexity. While the method is computationally more intensive than single-level training, its ability to provide convergence guarantees in non-convex landscapes opens new doors for meta-learning and hyperparameter tuning in deep neural networks. Future work will likely focus on extending these deterministic proofs to stochastic (mini-batch) settings to better accommodate large-scale applications like Large Language Models.

Summary updated

BibTeX
@inproceedings{liu2021towards,
  author = {Risheng Liu and Yaohua Liu and Shangzhi Zeng and Jin Zhang},
  title = {{Towards Gradient-based Bilevel Optimization with Non-convex Followers and Beyond}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2021},
  url = {https://openreview.net/forum?id=b83ibRX55T},
}
Figure