ANODE: Unconditionally Accurate Memory-Efficient Gradients for Neural ODEs

By A. Gholami, Kurt Keutzer, George Biros. 2019

202 citations recorded by the source corpus.

Residual neural networks can be viewed as the forward Euler discretization of an Ordinary Differential Equation (ODE) with a unit time step. This has recently motivated researchers to explore other discretization approaches and train ODE based networks. However, an important challenge of neural ODEs is their prohibitive memory cost during gradient backpropogation. Recently a method proposed in arXiv:1806.07366, claimed that this memory overhead can be reduced from LNt, where Nt is the number of time steps, down to O(L) by solving forward ODE backwards in time, where L is the depth of the network. However, we will show that this approach may lead to several problems: (i) it may be numerically unstable for ReLU/non-ReLU activations and general convolution operators, and (ii) the proposed optimize-then-discretize approach may lead to divergent training due to inconsistent gradients for small time step sizes. We discuss the underlying problems, and to address them we propose ANODE, a neural ODE framework which avoids the numerical instability related problems noted above. ANODE has a memory footprint of O(L) + O(Nt), with the same computational cost as reversing ODE solve. We furthermore, discuss a memory efficient algorithm which can further reduce this footprint with a tradeoff of additional computational cost. We show results on Cifar-10/100 datasets using ResNet and SqueezeNext neural networks.

Subfields: Computational Mechanics, Statistical and Nonlinear Physics

How researchers see this paper

The researchers whose trusted networks rank it highest, strongest advocate first. Every researcher gets a different order.

In Computational Mechanics

  1. Wotao Yin
  2. Stanley J. Osher
  3. N. Benjamin Erichson
  4. Julius Martensen
  5. K. Zubov
  6. Samy Wu Fung
  7. Michael W. Mahoney
  8. Daniela Rus

In Statistical and Nonlinear Physics

  1. Jonas Köhler
  2. Frank No'e
  3. Lars Ruthotto
  4. Leon Klein
  5. Michael W. Mahoney
  6. N. Benjamin Erichson
  7. Dane Taylor
  8. A. Queiruga

Citations in the corpus