NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Optimal Hessian/Jacobian-Free Nonconvex-PL Bilevel Optimization

Feihu Huang

Optimal Hessian/Jacobian-Free Nonconvex-PL Bilevel Optimization

Introduction

Bilevel optimization (BO) has emerged as a powerful tool for modeling hierarchical structures in artificial intelligence, including meta-learning, hyper-parameter optimization, and reinforcement learning. A standard BO problem consists of an upper-level (UL) objective that depends on the optimal solution of a lower-level (LL) objective. Historically, solving these problems has been computationally intensive due to two primary factors: the requirement for LL strong convexity and the "second-order bottleneck" associated with hyper-gradient estimation.

The Second-Order Bottleneck

To update UL variables, one must compute hyper-gradients, which typically involve the inverse of the LL Hessian matrix. For high-dimensional models, calculating, storing, and inverting these matrices is computationally prohibitive, often reaching $O(d^2)$ or $O(d^3)$ complexity. While recent research has explored relaxing the LL requirement to the Polyak-Łojasiewicz (PL) condition—allowing for nonconvexity—existing PL-based methods often still rely on expensive second-order operations or exhibit suboptimal convergence rates.

Methodology: HJFBiO

The proposed algorithm, HJFBiO (Hessian/Jacobian-Free Bilevel Optimization), addresses these challenges through three key innovations:

  1. Finite-Difference Estimators: Instead of exact second-order derivatives, HJFBiO approximates Hessian-vector and Jacobian-vector products using the difference between first-order gradients at perturbed points. This reduces the computational complexity per iteration to $O(d)$, making it scalable for large-scale deep learning.
  2. Novel Projection Operator ($M_{r_h}$): To ensure stability without matrix inversion, the authors introduce a projection operator that constrains auxiliary variables used in hyper-gradient estimation. This keeps the iterative process within a reliable numerical range.
  3. Single-Loop Architecture: Unlike "double-loop" methods that require multiple LL steps for each UL update, HJFBiO updates UL, LL, and auxiliary variables simultaneously in a single loop, drastically improving wall-clock efficiency.

Theoretical Contributions

The authors prove that the PL condition is sufficient for achieving optimal convergence in nonconvex bilevel optimization. Specifically, HJFBiO is shown to reach an $\epsilon$-stationary solution with a gradient complexity of $O(\epsilon^{-1})$. This matches the theoretical lower bound for nonconvex optimization, establishing HJFBiO as the first Hessian-free method to achieve this rate for nonconvex-PL problems.

Key Results

The performance of HJFBiO was evaluated against several state-of-the-art baselines, including BOME, MGBiO, and GALET, on benchmarks such as the "Bilevel PL Game" and "Hyper-Representation Learning."

Convergence of distance to the optimal solution across iterations for various bilevel optimization methods.

Empirical results demonstrate that HJFBiO consistently outperforms existing methods. In the PL Game experiment, HJFBiO achieved faster convergence in terms of both distance to the optimal solution and the norm of the gradient.

Comparison of gradient norm reduction over iterations, highlighting the efficiency of HJFBiO in reaching stationary points.

As shown in the figures, HJFBiO (red) exhibits a rapid decline in the norm of the gradient, reaching near-zero values significantly faster than competing methods like GALET or SLM, which often plateau or converge more slowly. Furthermore, while MGBiO shows similar iteration-wise convergence in some metrics, HJFBiO's per-iteration cost is substantially lower due to the avoidance of explicit second-order calculations, making it more scalable for high-dimensional tasks.

Conclusion

HJFBiO represents a significant advancement in bilevel optimization, providing a theoretically optimal and computationally efficient framework for nonconvex-PL problems. By eliminating the need for second-order matrix operations, it opens the door for applying bilevel frameworks to much larger models. Future work will focus on extending these results to stochastic settings and evaluating the algorithm on massive-scale meta-learning benchmarks.

Summary updated

BibTeX
@inproceedings{huang2024optimal,
  author = {Feihu Huang},
  title = {{Optimal Hessian/Jacobian-Free Nonconvex-PL Bilevel Optimization}},
  booktitle = {International Conference on Machine Learning},
  year = {2024},
  url = {https://openreview.net/forum?id=eZiQWM5U0E},
}
Figure