pith. machine review for the scientific record.
sign in

arxiv: 1902.10298 · v3 · pith:TRA6JABRnew · submitted 2019-02-27 · 💻 cs.LG

ANODE: Unconditionally Accurate Memory-Efficient Gradients for Neural ODEs

classification 💻 cs.LG
keywords neuralmemorytimeanodecostgradientsnetworksproblems
0
0 comments X
read the original abstract

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 [8], claimed that this memory overhead can be reduced from O(LN_t), where N_t 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, an Adjoint based Neural ODE framework which avoids the numerical instability related problems noted above, and provides unconditionally accurate gradients. ANODE has a memory footprint of O(L) + O(N_t), with the same computational cost as reversing ODE solve. We furthermore, discuss a memory efficient algorithm which can further reduce this footprint with a trade-off of additional computational cost. We show results on Cifar-10/100 datasets using ResNet and SqueezeNext neural networks.

This paper has not been read by Pith yet.

discussion (0)

Sign in with ORCID, Apple, or X to comment. Anyone can read and Pith papers without signing in.

Forward citations

Cited by 2 Pith papers

Reviewed papers in the Pith corpus that reference this work. Sorted by Pith novelty score.

  1. Universal Differential Equations for Scientific Machine Learning

    cs.LG 2020-01 unverdicted novelty 7.0

    Universal Differential Equations unify scientific models with machine learning by embedding flexible approximators into differential equations, enabling applications from biological mechanism discovery to high-dimensi...

  2. Zero-Shot Function Encoder-Based Differentiable Predictive Control

    eess.SY 2025-11 unverdicted novelty 4.0

    A differentiable framework integrates function encoder-based neural ODEs with predictive control to enable zero-shot adaptation of explicit policies across families of nonlinear systems.