Scalable One-Pass Optimisation of High-Dimensional Weight-Update Hyperparameters by Implicit Differentiation

Ross M. Clarke, Elre T. Oldewage, José Miguel Hernández-Lobato
10/20/2021
cs.LGstat.ML

Official code: rmclarke/OptimisingWeightUpdateHyperparameters (10 stars, Python, last commit 2022-12-05).

Abstract

Machine learning training methods depend plentifully and intricately on hyperparameters, motivating automated strategies for their optimisation. Many existing algorithms restart training for each new hyperparameter choice, at considerable computational cost.

Show full abstract

Some hypergradient-based one-pass methods exist, but these either cannot be applied to arbitrary optimiser hyperparameters (such as learning rates and momenta) or take several times longer to train than their base models. We extend these existing methods to develop an approximate hypergradient-based hyperparameter optimiser which is applicable to any continuous hyperparameter appearing in a differentiable model weight update, yet requires only one training episode, with no restarts. We also provide a motivating argument for convergence to the true hypergradient, and perform tractable gradient-based optimisation of independent learning rates for each model parameter. Our method performs competitively from varied random hyperparameter initialisations on several UCI datasets and Fashion-MNIST (using a one-layer MLP), Penn Treebank (using an LSTM) and CIFAR-10 (using a ResNet-18), in time only 2-3x greater than vanilla training.

View on arXivView PDF

Code Implementations(1)

Code base for the paper "Scalable One-Pass Optimisation of High-Dimensional Weight-Update Hyperparameters by Implicit Differentiation"

103Python, ShellOct 12, 20213 years ago

Similar Papers

Cite this paper

@article{clarke2021scalable,
  title  = {Scalable One-Pass Optimisation of High-Dimensional Weight-Update Hyperparameters by Implicit Differentiation},
  author = {Ross M. Clarke and Elre T. Oldewage and José Miguel Hernández-Lobato},
  year   = {2021},
  eprint = {2110.10461},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2110.10461}
}

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

Discussion