Forward and Reverse Gradient-Based Hyperparameter Optimization

Luca Franceschi, Michele Donini, Paolo Frasconi, Massimiliano Pontil
3/6/2017
stat.ML

Official code: lucfra/FAR-HO (191 stars, MIT, TensorFlow, last commit 2020-03-24). 1 more implementation below.

Abstract

We study two procedures (reverse-mode and forward-mode) for computing the gradient of the validation error with respect to the hyperparameters of any iterative learning algorithm such as stochastic gradient descent. These procedures mirror two methods of computing gradients for recurrent neural networks and have different trade-offs in terms of running time and space requirements. Our formulation of the reverse-mode procedure is linked to previous work by Maclaurin et al. [2015] but does not require reversible dynamics. The forward-mode procedure is suitable for real-time hyperparameter updates, which may significantly speed up hyperparameter optimization on large datasets. We present experiments on data cleaning and on learning task interactions. We also present one large-scale experiment where the use of previous gradient-based methods would be prohibitive.

View on arXivView PDF

Code Implementations(2)

lucfra/FAR-HOOfficial100%
TensorFlowMIT

Gradient based hyperparameter optimization & meta-learning package for TensorFlow

19148Python, Jupyter NotebookDec 4, 20176 years agoMIT
gradient-descenthyperparameter-optimizationoptimizationtensorflow
lucfra/RFHOOfficial100%
MIT

Gradient-based hyperparameter optimization package with TensorFlow

5111Shell, PythonApr 20, 20177 years agoMIT

Similar Papers

Cite this paper

@article{franceschi2017forward,
  title  = {Forward and Reverse Gradient-Based Hyperparameter Optimization},
  author = {Luca Franceschi and Michele Donini and Paolo Frasconi and Massimiliano Pontil},
  year   = {2017},
  eprint = {1703.01785},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1703.01785}
}

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

Discussion