Near-Optimal Fully First-Order Algorithms for Finding Stationary Points in Bilevel Optimization

Lesi Chen, Yaohua Ma, Jingzhao ZhangarXiv 2023 · DOI

Abstract

Bilevel optimization is a critical framework for modern machine learning, yet traditional second-order methods involving Hessian-vector products (HVPs) are often computationally prohibitive. This paper introduces the Fully First-order Bilevel Approximation ($F^2BA$), a novel algorithm that achieves near-optimal complexity for finding stationary points using only first-order information. By employing a two-time-scale update strategy and a value-function reformulation, $F^2BA$ matches the $\tilde{O}(\epsilon^{-2})$ deterministic complexity of HVP-based methods. We further extend this framework to stochastic and accelerated settings, demonstrating superior performance on large-scale tasks including GPT-2 data hyper-cleaning.

Introduction

Bilevel optimization—where one optimization problem is nested within another—underpins many advanced machine learning paradigms, including hyperparameter tuning, meta-learning, and neural architecture search. Traditionally, these problems are solved using methods that require Hessian-vector products (HVPs) to capture how the inner solution responds to changes in outer variables. While theoretically efficient, HVP-based methods are often memory-intensive, computationally expensive, and numerically unstable, particularly when the inner problem's Hessian is near-singular.

Previous attempts to develop "first-order only" methods (using only gradients) resulted in significantly slower convergence rates, typically $\tilde{O}(\epsilon^{-3})$ compared to the $\tilde{O}(\epsilon^{-2})$ achieved by HVP methods. This paper bridges that gap, proving that first-order methods can indeed achieve near-optimal efficiency.

The $F^2BA$ Framework

The authors propose the Fully First-order Bilevel Approximation ($F^2BA$), which circumvents the need for second-order derivatives through three primary innovations:

  1. Value-Function Reformulation: The bilevel problem is transformed into a single-level problem via a penalty (Lagrangian) approach. This creates a proxy objective that is differentiable using only first-order information.
  2. Two-Time-Scale Updates: A critical insight of this work is that the landscape of the outer variable ($x$) is smoother than the penalty-laden landscape of the inner variable ($y$). By taking larger steps in $x$ and smaller steps in $y$, $F^2BA$ accelerates convergence significantly.
  3. Algorithmic Extensions: The framework is extended to handle stochastic gradients (Stochastic $F^2BA$), escape saddle points (Perturbed $F^2BA$), and utilize Nesterov’s momentum for faster rates (Accelerated $F^2BA$).

Theoretical Complexity

The primary theoretical contribution is the proof that $F^2BA$ matches the deterministic complexity of HVP-based methods. As shown in Figure 1, $F^2BA$ achieves a rate of $\tilde{O}(\epsilon^{-2})$, refuting the previous conjecture that first-order methods are inherently slower.

Comparison of deterministic oracle complexity for finding stationary points. $F^2BA$ matches the near-optimal $\tilde{O}(\epsilon^{-2})$ rate of HVP-based methods.

In the stochastic regime, $F^2BA$ also sets new benchmarks. For partially stochastic settings, it achieves $\tilde{O}(\epsilon^{-4})$, and for fully stochastic settings, it reaches $\tilde{O}(\epsilon^{-6})$, representing a significant improvement over prior first-order baselines.

Comparison of stochastic oracle complexity. $F^2BA$ (Algorithm 2) improves upon existing first-order methods in both partially and fully stochastic settings.

Empirical Evaluation

The effectiveness of $F^2BA$ was validated across several diverse datasets:

  • Abalone: Linear regression hyperparameter tuning.
  • 20 Newsgroups: Large-scale "learnable regularization" with over 100,000 parameters.
  • Alpaca: Data hyper-cleaning for a GPT-2 model (124M parameters).

In these experiments, $F^2BA$ not only converged faster than previous first-order methods like PBGD and F2SA but also exhibited greater numerical robustness than HVP-based methods, which occasionally failed due to Hessian singularities.

Conclusion

$F^2BA$ represents a significant step forward in bilevel optimization, providing a robust, efficient, and purely first-order alternative to complex second-order methods. By closing the theoretical gap between these two classes of algorithms, this work paves the way for more scalable and stable optimization in large-scale machine learning applications. Future work may focus on removing remaining logarithmic factors and extending these near-optimal rates to constrained bilevel problems.

Summary updated

BibTeX
@misc{chen2023near,
  author = {Lesi Chen and Yaohua Ma and Jingzhao Zhang},
  title = {{Near-Optimal Fully First-Order Algorithms for Finding Stationary Points in Bilevel Optimization}},
  year = {2023},
  eprint = {2306.14853},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2306.14853},
}
Figure