Efficient Bilevel Optimization with KFAC-Based Hypergradients

Disen Liao, Felix Dangel, Yaoliang Yu
3/31/2026
1 citation
cs.LG

Official code: liaodisen/NeuralBo (0 stars, Python, last commit 2026-03-31).

Abstract

Bilevel optimization (BO) is widely applicable to many machine learning problems. Scaling BO, however, requires repeatedly computing hypergradients, which involves solving inverse Hessian-vector products (IHVPs).

Show full abstract

In practice, these operations are often approximated using crude surrogates such as one-step gradient unrolling or identity/short Neumann expansions, which discard curvature information. We build on implicit function theorem-based algorithms and propose to incorporate Kronecker-factored approximate curvature (KFAC), yielding curvature-aware hypergradients with a better performance efficiency trade-off than Conjugate Gradient (CG) or Neumann methods and consistently outperforming unrolling. We evaluate this approach across diverse tasks, including meta-learning and AI safety problems. On models up to BERT, we show that curvature information is valuable at scale, and KFAC can provide it with only modest memory and runtime overhead. Our implementation is available at https://github.com/liaodisen/NeuralBo.

View on arXivView PDF

Code Implementations(1)

liaodisen/NeuralBoOfficial100%

[AISTATS 2026] code for paper: "Efficient Bilevel Optimization with KFAC-Based Hypergradients"

00PythonFeb 10, 20268 months ago

Similar Papers

Cite this paper

@article{liao2026efficient,
  title  = {Efficient Bilevel Optimization with KFAC-Based Hypergradients},
  author = {Disen Liao and Felix Dangel and Yaoliang Yu},
  year   = {2026},
  eprint = {2603.29108},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2603.29108v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2603.29108.svg)](https://codeofpaper.com/paper/2603.29108)

Discussion