Lune

ICML2026Top-tier venue

A Fully First-Order Layer for Differentiable Optimization

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

2026Year
1Citations

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 about this paper

Your agent reads all of it.

Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.

Questions to start from

Your agent calls

Luneget_paper_fulltext

Ask in Lune

Free to start. No credit card required.

lune papers fulltext 2b753279-c067-4be7-bc8b-c548d2ad8b08

Builds on32

Related papers

Dusk over the sea between two cliffs drawn in fine vertical lines