Scaling Bilevel Optimization via First-Order Methods

You are reading version 1 of this direction, frozen 2026-10-04. The latest version is version 2.

Version 1 of 2101 papers105 conceptsfrozen 2026-10-04

Bilevel optimization (BLO) is often described as the "Inception" of the machine learning world: it is an optimization problem nested inside another. You encounter it whenever a "leader" must make a decision (the upper-level problem) while anticipating the optimal response of a "follower" (the lower-level problem). This structure is fundamental to meta-learning, hyperparameter tuning, neural architecture search, and reinforcement learning.

Despite its power, BLO has historically been trapped by the Hessian Bottleneck. Standard approaches to updating the leader's parameters require calculating the "hypergradient," a process that traditionally involves computing and inverting the Hessian matrix of the follower's objective. For modern models like Large Language Models (LLMs) with billions of parameters, inverting a Hessian is computationally ruinous.

A recent surge in research has focused on "fully first-order" and "Hessian-free" methods that bypass these second-order requirements, allowing BLO to scale to the highest-dimensional regimes of deep learning.

The Hessian Bottleneck

To understand why BLO is difficult, consider the standard formulation: $$\min_{x} F(x, y^*(x)) \quad \text{subject to} \quad y^*(x) = \arg\min_{y} f(x, y)$$ Here, $F$ is the upper-level objective (e.g., validation loss) and $f$ is the lower-level objective (e.g., training loss). To update the upper-level variable $x$, we need the gradient of $F$ with respect to $x$. By the chain rule, this requires knowing how the optimal follower response $y^*(x)$ changes when $x$ changes—a term called the Jacobian $\nabla_x y^*(x)$.

As noted by Kaiyi Ji, Junjie Yang, and Yingbin Liang in Bilevel Optimization: Convergence Analysis and Enhanced Design, calculating this Jacobian via the Implicit Function Theorem requires inverting the Hessian $\nabla^2_{yy} f$. In a model with $d$ parameters, matrix inversion costs $O(d^3)$, making it impossible for high-dimensional parameter spaces.

Reformulating the Nested Structure

The most intuitive way to avoid the Hessian is to stop treating the problem as nested. Instead of waiting for the lower-level problem to reach a perfect minimum $y^*(x)$, researchers are reformulating BLO into a single-level constrained optimization task.

Bo Liu, Stephen Wright, and colleagues introduced this shift with BOME! Bilevel Optimization Made Easy: A Simple First-Order Approach. Rather than differentiating through an optimization path, BOME treats the lower-level optimality as a constraint. By using a value-function-based approach, they transform the problem into a format that can be solved using only first-order gradients of the upper and lower objectives.

Similarly, Daouda Sow and Kaiyi Ji proposed A Constrained Optimization Approach to Bilevel Optimization with Multiple Inner Minima, which uses a primal-dual framework. This approach is particularly robust because it handles cases where the lower-level problem has multiple global minima—a scenario where traditional implicit differentiation often fails.

Lagrangian and Penalty Methods

Another powerful strategy involves using penalty functions to "soften" the lower-level constraint. Instead of strictly enforcing $y = y^*(x)$, these methods add a penalty term to the objective that encourages $y$ to move toward the lower-level minimum.

Jeongyeol Kwon, Robert D Nowak, and their team developed A Fully First-Order Method for Stochastic Bilevel Optimization, which introduces the F$^2$SA (Fully First-order Stochastic Approximation) algorithm. By iteratively increasing a Lagrangian multiplier, they bypass the need for Hessian-inverse-vector products entirely. This allows the algorithm to remain stable even in the presence of stochastic noise, which typically makes second-order methods fluctuate wildly.

In the distributed setting, Youcheng Niu and Jinming Xu applied a similar logic in Hessian-Free Distributed Bilevel Optimization Via Penalization With Time-Scale Separation. Their algorithm, AHEAD, uses a triple-timescale update strategy to ensure that the leader, the follower, and the penalty terms all converge at compatible rates without ever touching a second-order derivative.

Achieving Theoretical Efficiency

A common concern with first-order approximations is that they might be significantly slower to converge than second-order methods. However, recent work has proven that first-order methods can reach the optimal sample complexity of $O(\epsilon^{-1.5})$.

Yifan Yang and Kaiyi Ji demonstrated this in Achieving $\mathcal{O}(\epsilon^{-1.5})$ Complexity in Hessian/Jacobian-free Stochastic Bilevel Optimization. Their algorithm, FdeHBO, uses a clever combination of momentum and finite-difference approximations. By perturbing the gradients slightly, they can estimate the necessary second-order effects (the "curvature") using only first-order information, achieving peak theoretical efficiency without the memory overhead of a Hessian.

Scaling to Large Language Models

The ultimate test for these methods is their application to massive models. Rui Pan 0002 and colleagues presented ScaleBiO: Scalable Bilevel Optimization for LLM Data Reweighting, the first framework to scale BLO to models with over 30 billion parameters.

By reformulating the data-weighting problem (deciding which training data is most valuable) as a first-order minimax problem, ScaleBiO allows the model to learn its own data curriculum during training. This demonstrates that by removing the Hessian bottleneck, bilevel optimization is no longer just a theoretical tool for small-scale meta-learning, but a practical engine for optimizing the largest models in existence.

Papers in this version

Showing 60 of 101 papers.

History & citationVersion 2 · 2026-10-04

Current · Permanent link

  1. Version 2 (latest) · 2026-10-04 · 97 papers
  2. Version 1 · 2026-10-04 · 101 papers
Cite this direction

Latest version (a living page):

@misc{lacuna_hessian_inversion_bottleneck_d676bae4,
  title = {Hessian inversion bottleneck},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/hessian-inversion-bottleneck/rdr_d676bae4847a4e5189ebbc007cd40eb2},
  note = {Latest version of a living research direction; cite a version for a fixed text. Accessed 2026-11-26},
}

This exact version (version 1, frozen text):

@misc{lacuna_scaling_bilevel_optimization_via_first_o_d676bae4_v1,
  title = {Scaling Bilevel Optimization via First-Order Methods},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/scaling-bilevel-optimization-via-first-order-methods/rdr_d676bae4847a4e5189ebbc007cd40eb2/v/1},
  note = {Version 1, frozen 2026-10-04. Accessed 2026-11-26},
}