Abstract
Bilevel optimization (BLO) is a cornerstone of modern machine learning, underpinning tasks from hyperparameter tuning to meta-learning. However, the field has been characterized by fragmented algorithmic development, with each new stochastic estimator requiring a unique convergence proof. This paper introduces the Plug-and-Play Bilevel Optimization (PnPBO) framework, a unified approach that allows for the independent integration of various stochastic estimators. PnPBO achieves an optimal sample complexity of $O((n+m)^{1/2}\epsilon^{-1})$, matching the lower bounds for single-level non-convex optimization and resolving a long-standing theoretical gap.
Introduction
Bilevel optimization involves an "Upper-Level" (UL) problem nested with a "Lower-Level" (LL) problem. The primary challenge lies in computing the hypergradient, which requires expensive Hessian-inverse-vector products. Historically, researchers faced three major hurdles: fragmentation of theoretical analysis, a complexity gap between BLO and single-level optimization, and algorithmic rigidity. PnPBO addresses these by providing a flexible, single-loop structure that maintains optimal theoretical guarantees across diverse estimator choices.
The PnPBO Framework
The core of PnPBO is a single-loop decoupling strategy. Unlike traditional methods that solve the LL problem to completion before updating the UL, PnPBO updates three variables in parallel: the UL variable $x$, the LL variable $y$, and an implicit variable $z$ used to approximate the Hessian-inverse-vector product.
This decoupling allows users to "plug and play" different stochastic estimators (e.g., SAGA, SARAH, PAGE) independently for each variable. To ensure stability and convergence, the framework incorporates a momentum-based moving average (MA) for unbiased estimators and a variable clipping technique for the implicit variable $z$. This unified analysis framework provides a clear roadmap for proving convergence regardless of the specific estimators used.
Key Results and Optimal Complexity
The authors instantiate the framework with two new algorithms: SFFBA (using ZeroSARAH) and MSEBA (using a combination of PAGE and ZeroSARAH). These algorithms are the first to reach the optimal sample complexity of $O((n+m)^{1/2}\epsilon^{-1})$ in finite-sum settings, effectively proving that the hierarchical nature of BLO does not inherently make it slower than single-level optimization.
Empirical evaluations on benchmarks such as MNIST (data hyper-cleaning) and IJCNN1 (hyperparameter optimization) demonstrate that PnPBO-based algorithms converge faster and achieve lower error rates than previous state-of-the-art methods like SOBA and SRBA. Notably, SFFBA consistently outperformed traditional variance-reduction methods in reaching high-precision solutions.
Conclusion
PnPBO bridges the gap between single-level and bilevel optimization theory. While the framework currently assumes a strongly convex lower-level objective and relies on Hessian-vector products, it sets a new standard for flexibility and efficiency in BLO. Future research will focus on extending these results to non-convex lower-level problems and developing "Hessian-free" variants to further reduce computational overhead.
Summary updated