Randomized Automatic Differentiation

Deniz Oktay, Nick McGreivy, Joshua Aduol, Alex Beatson, Ryan P. Adams
7/20/2020
cs.LGstat.ML

Official code: PrincetonLIPS/RandomizedAutomaticDifferentiation (67 stars, Python, last commit 2020-07-22).

Abstract

The successes of deep learning, variational inference, and many other fields have been aided by specialized implementations of reverse-mode automatic differentiation (AD) to compute gradients of mega-dimensional objectives. The AD techniques underlying these tools were designed to compute exact gradients to numerical precision, but modern machine learning models are almost always trained with stochastic gradient descent.

Show full abstract

Why spend computation and memory on exact (minibatch) gradients only to use them for stochastic optimization? We develop a general framework and approach for randomized automatic differentiation (RAD), which can allow unbiased gradient estimates to be computed with reduced memory in return for variance. We examine limitations of the general approach, and argue that we must leverage problem specific structure to realize benefits. We develop RAD techniques for a variety of simple neural network architectures, and show that for a fixed memory budget, RAD converges in fewer iterations than using a small batch size for feedforward networks, and in a similar number for recurrent networks. We also show that RAD can be applied to scientific computing, and use it to develop a low-memory stochastic gradient method for optimizing the control parameters of a linear reaction-diffusion PDE representing a fission reactor.

View on arXivView PDF

Code Implementations(1)

Experiment code for "Randomized Automatic Differentiation"

679PythonJul 17, 20206 years ago

Similar Papers

Cite this paper

@article{oktay2020randomized,
  title  = {Randomized Automatic Differentiation},
  author = {Deniz Oktay and Nick McGreivy and Joshua Aduol and Alex Beatson and Ryan P. Adams},
  year   = {2020},
  eprint = {2007.10412},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2007.10412}
}

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

Discussion