Abstract
Bilevel optimization is a critical framework for various machine learning applications, including hyperparameter tuning and meta-learning. However, traditional methods often rely on computationally expensive second-order derivatives (Hessians) to compute hyper-gradients. This paper introduces F2SA and F3SA, the first fully first-order stochastic algorithms for bilevel optimization that provide rigorous finite-time convergence guarantees. By reformulating the bilevel problem into a single-level constrained problem using a time-varying penalty Lagrangian, these methods achieve competitive performance and enhanced scalability without the need for Hessian information.
Introduction
Bilevel optimization involves a nested structure where an "outer" minimization depends on the optimal solution of an "inner" minimization. This structure is ubiquitous in modern AI, appearing in hyperparameter tuning, meta-learning, and reinforcement learning.
The standard approach to solving these problems is to follow the "hyper-gradient" of the outer objective. However, calculating this hyper-gradient is a computational bottleneck: it requires computing and inverting the Hessian (second-order derivatives) of the inner objective. In large-scale stochastic settings, these second-order terms are not only expensive but also incredibly noisy, often leading to poor performance or requiring complex, unstable approximations.
Methodology: A Fully First-Order Approach
The authors propose a fully first-order approach, meaning it only ever needs gradients, never Hessians. Their core innovation is reformulating the bilevel problem into a single-level constrained problem using a Lagrangian:
$$L_\lambda(x, y) := f(x, y) + \lambda(g(x, y) - g^*(x))$$
Here, $f$ is the outer objective, $g$ is the inner objective, and $g^*$ is the minimum value of the inner problem. Crucially, the gradient of this Lagrangian can be estimated using only first-order information. They introduce two main algorithms:
- F2SA (Fully First-order Stochastic Approximation): A single-loop algorithm that updates variables and gradually increases the penalty parameter $\lambda_k$. This growth of $\lambda$ is the "secret sauce"—it manages the trade-off between the bias of the approximation and the numerical stability of the optimization.
- F3SA (Faster F2SA): An extension that incorporates momentum-assisted gradient estimators to accelerate convergence.
Tracking the Moving Target
A major challenge in bilevel optimization is that as the outer variable $x$ is updated, the optimal inner solution $y^*(x)$ moves. The algorithm's estimate $y_k$ must move fast enough to "chase" this moving target while staying within a controlled distance of the regularized solution.
Key Insights and Results
Theoretical Breakthroughs
This is the first work to establish non-asymptotic convergence rates for stochastic bilevel optimization using only first-order oracles. For an $\epsilon$-stationary solution, F2SA requires $\tilde{O}(\epsilon^{-3.5})$ iterations when noise is present in both objectives. With momentum (F3SA), this improves significantly to $\tilde{O}(\epsilon^{-2.5})$.
Empirical Performance
The method was evaluated on a MNIST data-hypercleaning task. The goal was to learn weights for training images to minimize loss on a clean validation set, effectively "cleaning" a training dataset where labels have been randomly corrupted. In these experiments, F2SA outperformed second-order methods like SOBO (stocBiO). Notably, F2SA was much more robust to small batch sizes, whereas second-order methods suffered from high variance in their Hessian estimates.
Conclusion and Future Work
While F2SA and F3SA prove that Hessians are optional for provably good solutions, several challenges remain. The current analysis assumes the lower-level problem is strongly convex; extending this to general convex or non-convex inner problems is a major open challenge. Additionally, while practically faster in some cases, the theoretical iteration complexity of these first-order methods is still higher than the best second-order methods, suggesting a potential fundamental lower bound for first-order methods in this domain.
Summary updated