On the Iteration Complexity of Hypergradient Computation

Riccardo Grazzi, Luca Franceschi, Massimiliano Pontil, Saverio Salzo
6/29/2020
stat.MLcs.LG

Official code: prolearner/hypertorch (127 stars, Python, MIT, last commit 2024-06-03).

Abstract

We study a general class of bilevel problems, consisting in the minimization of an upper-level objective which depends on the solution to a parametric fixed-point equation. Important instances arising in machine learning include hyperparameter optimization, meta-learning, and certain graph and recurrent neural networks.

Show full abstract

Typically the gradient of the upper-level objective (hypergradient) is hard or even impossible to compute exactly, which has raised the interest in approximation methods. We investigate some popular approaches to compute the hypergradient, based on reverse mode iterative differentiation and approximate implicit differentiation. Under the hypothesis that the fixed point equation is defined by a contraction mapping, we present a unified analysis which allows for the first time to quantitatively compare these methods, providing explicit bounds for their iteration complexity. This analysis suggests a hierarchy in terms of computational efficiency among the above methods, with approximate implicit differentiation based on conjugate gradient performing best. We present an extensive experimental comparison among the methods which confirm the theoretical findings.

View on arXivView PDF

Code Implementations(1)

MIT
12717PythonApr 23, 20202 years agoMIT

Similar Papers

Cite this paper

@article{grazzi2020iteration,
  title  = {On the Iteration Complexity of Hypergradient Computation},
  author = {Riccardo Grazzi and Luca Franceschi and Massimiliano Pontil and Saverio Salzo},
  year   = {2020},
  eprint = {2006.16218},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2006.16218}
}

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/2006.16218.svg)](https://codeofpaper.com/paper/2006.16218)

Discussion