Lune

ICML2026Top-tier venue

A Fully First-Order Layer for Differentiable Optimization

Zihao Zhao, Kai-Chia Mo, Shing-Hei Ho, Brandon Amos, Kai Wang

Abstract

Differentiable optimization studies how to embed a mathematical program as a differentiable layer in machine learning pipelines. However, existing approaches typically rely on implicit differentiation, involving expensive Hessian computation while differentiating through optimality conditions. To address this challenge, we formulate the differentiable optimization problem as a bilevel optimization instance. We construct a new active-set Lagrangian as a proxy to compute an ϵ\epsilon-approximate hypergradient using only near-constant O(log⁡(1/ϵ))O(\log (1/\epsilon)) first-order information. We also show that applying this efficient hypergradient oracle to constrained bilevel optimization improves the overall gradient complexity to O~(δ−1ϵ−3)\tilde{O}(\delta^{-1}\epsilon^{-3}) to reach a (δ,ϵ)(\delta, \epsilon)-Goldstein stationary point. We implement our method FFOLayer, as a drop-in Python library compatible with existing differentiable optimization solvers. Our algorithm shows significantly faster computation with similar convergence compared to other existing solvers. Our code is available here.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

Questions to start from

Lune can draw on

the full paper · related work

Get the answer

Free to start. No credit card required.

Lineage

  • A Fully First-Order Method for Stochastic Bilevel Optimization cites BOME! Bilevel Optimization Made Easy: A Simple First-Order Approach
  • A Fully First-Order Method for Stochastic Bilevel Optimization cites Provably Faster Algorithms for Bilevel Optimization
  • BOME! Bilevel Optimization Made Easy: A Simple First-Order Approach cites Provably Faster Algorithms for Bilevel Optimization
  • Theseus: A Library for Differentiable Nonlinear Optimization cites Efficient and Modular Implicit Differentiation
Builds onCited byLeft to right by year; the more cited, the higher.

Builds on32

  1. Efficient and Modular Implicit DifferentiationMathieu Blondel, Quentin Berthet, Marco Cuturi, Roy Frostig et al.NeurIPS 2022 · 386 citations
  2. Provably Faster Algorithms for Bilevel OptimizationJunjie Yang, Kaiyi Ji, Yingbin LiangNeurIPS 2021 · 175 citations
  3. BOME! Bilevel Optimization Made Easy: A Simple First-Order ApproachBo Liu, Mao Ye, Stephen Wright, Peter Stone et al.NeurIPS 2022 · 170 citations
  4. Theseus: A Library for Differentiable Nonlinear OptimizationLuis Pineda, Taosha Fan, Maurizio Monge, Shobha Venkataraman et al.NeurIPS 2022 · 124 citations
  5. A Fully First-Order Method for Stochastic Bilevel OptimizationJeongyeol Kwon, Dohyun Kwon, Stephen Wright, Robert D. NowakICML 2023 · 123 citations

Related papers

  1. First-Order Methods for Linearly Constrained Bilevel OptimizationGuy Kornowski, Swati Padmanabhan, Kai Wang, Zhe Zhang et al.NeurIPS 2024 · 21 citations
  2. Communication-Efficient Federated Hypergradient Computation via Aggregated Iterative DifferentiationPeiyao Xiao, Kaiyi JiICML 2023 · 17 citations
  3. Efficient Curvature-Aware Hypergradient Approximation for Bilevel OptimizationYouran Dong, Junfeng Yang, Wei Yao, Jin ZhangICML 2025
  4. On the Iteration Complexity of Hypergradient ComputationRiccardo Grazzi, Luca Franceschi, Massimiliano Pontil, Saverio SalzoICML 2020 · 241 citations
  5. A Fully Single Loop Algorithm for Bilevel Optimization without Hessian InverseJunyi Li, Bin Gu, Heng HuangAAAI 2022 · 89 citations
Dusk over the sea between two cliffs drawn in fine vertical lines