Scalable Bilevel Optimization via Neumann Series Expansion

This direction is merged into another direction: diagonal Hessian approximation. Its last version stays readable and citable here.

Version 1 of 119 papers21 conceptsfrozen 2026-10-04

Bilevel optimization is often described as the "boss fight" of machine learning. It involves solving two nested optimization problems: an "outer" problem that depends on the optimal solution of an "inner" problem. This structure is the mathematical backbone of meta-learning, hyperparameter optimization, and neural architecture search.

The core challenge in these problems is the hypergradient—the gradient of the outer objective with respect to the outer variables. Calculating this requires differentiating through the entire inner optimization process. As Kaiyi Ji and Junjie Yang point out in Bilevel Optimization: Nonasymptotic Analysis and Faster Algorithms, this calculation typically involves the Implicit Function Theorem (IFT), which demands the inversion of a massive Hessian matrix.

In modern deep learning, where models have millions of parameters, inverting a Hessian is computationally impossible. A recent wave of research has converged on a shared solution: using Neumann series expansions to approximate this inverse through a sequence of efficient matrix-vector products.

The Bottleneck: The Inverse Hessian

To understand why this is necessary, consider the relationship between the levels. The outer objective $F(w, \theta^*)$ depends on $\theta^*$, which is the solution to the inner problem $\min_\theta f(w, \theta)$. When we change the outer variable $w$, the inner solution $\theta^*$ shifts.

The Implicit Function Theorem tells us that the gradient of $\theta^*$ with respect to $w$ involves the term $[\nabla^2_{\theta\theta} f]^{-1}$—the inverse of the inner problem's Hessian. Directly computing this inverse costs $O(d^3)$ time, where $d$ is the number of parameters. For a standard neural network, this is a non-starter.

The Solution: Neumann Series Approximation

The Neumann series provides a way to approximate the inverse of a matrix $A$ using only powers of that matrix: $$A^{-1} = \sum_{k=0}^{\infty} (I - A)^k$$ In the context of bilevel optimization, we don't actually need the full inverse matrix; we only need the Inverse Hessian-Vector Product (iHVP). By truncating the Neumann series to a finite number of terms, researchers can transform a $O(d^3)$ inversion into a series of $O(d)$ Hessian-vector products.

As Miao Zhang and colleagues demonstrate in iDARTS: Differentiable Architecture Search with Stochastic Implicit Gradients, this approach decouples the outer optimization from the specific path taken by the inner optimizer. This leads to more stable gradients and significantly lower memory overhead compared to "unrolling" the optimization steps.

Expanding the Reach of Bilevel Optimization

This approximation trick has enabled bilevel optimization to scale into domains previously considered too complex:

Beyond the Series: Neural Operators

While the Neumann series is the current standard, new frontiers are emerging. Hamidreza Moazzami and Rodrigo Vargas-Hernandez suggest in Meta-Learning Fourier Neural Operators for Hessian Inversion that we can treat Hessian inversion as a learning problem itself. By training a Fourier Neural Operator (FNO) to map gradients directly to state updates, they provide a "warm start" that further reduces the iterations needed for convergence in high-dimensional physics problems.

Why It Works

The intuition behind this research direction is a shift from exact calculation to iterative approximation. By recognizing that the hypergradient doesn't need to be perfect to provide a useful descent direction, researchers like Kaiyi Ji and Yingbin Liang have shown in Bilevel Optimization: Convergence Analysis and Enhanced Design that we can trade off a small amount of accuracy for massive gains in sample efficiency and speed. The Neumann series is the mathematical bridge that makes this trade-off possible.

Papers in this version

History & citationVersion 1 · 2026-10-04

Merged into another direction · Permanent link

View frozen version 1

Cite this direction

Latest version (a living page):

@misc{lacuna_scalable_bilevel_optimization_via_neuman_1f87ee31,
  title = {Scalable Bilevel Optimization via Neumann Series Expansion},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/scalable-bilevel-optimization-via-neumann-series-expansion/rdr_1f87ee3170cc4921874de432198cfde8},
  note = {Latest version of a living research direction; cite a version for a fixed text. Accessed 2026-12-05},
}

This exact version (version 1, frozen text):

@misc{lacuna_scalable_bilevel_optimization_via_neuman_1f87ee31_v1,
  title = {Scalable Bilevel Optimization via Neumann Series Expansion},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/scalable-bilevel-optimization-via-neumann-series-expansion/rdr_1f87ee3170cc4921874de432198cfde8/v/1},
  note = {Version 1, frozen 2026-10-04. Accessed 2026-12-05},
}