A memory-efficient neural ODE framework based on high-level adjoint differentiation
Not on the map. Why?
Abstract (arXiv)
Neural ordinary differential equations (neural ODEs) have emerged as a novel network architecture that bridges dynamical systems and deep learning. However, the gradient obtained with the continuous adjoint method in the vanilla neural ODE is not reverse-accurate. Other approaches suffer either from an excessive memory requirement due to deep computational graphs or from limited choices for the time integration scheme, hampering their application to large-scale complex dynamical systems. To achieve accurate gradients without compromising memory efficiency and flexibility, we present a new neural ODE framework, PNODE, based on high-level discrete adjoint algorithmic differentiation. By leveraging discrete adjoint time integrators and advanced checkpointing strategies tailored for these integrators, PNODE can provide a balance between memory and computational costs, while computing the gradients consistently and accurately. We provide an open-source implementation based on PyTorch and PETSc, one of the most commonly used portable, scalable scientific computing libraries. We demonstrate the performance through extensive numerical experiments on image classification and continuous normalizing flow problems. We show that PNODE achieves the highest memory efficiency when compared with other reverse-accurate methods. On the image classification problems, PNODE is up to two times faster than the vanilla neural ODE and up to 2.3 times faster than the best existing reverse-accurate method. We also show that PNODE enables the use of the implicit time integration methods that are needed for stiff dynamical systems.
Key facts. Cited by 3 papers in the map (data through 13 Oct 2026). Builds on 20 of its 44 references that are in the map. First posted on arXiv 2 Jun 2022.
Builds on
20 of 44 references.
References · 20
- 2018Neural Ordinary Differential Equationscited by 3,750
- 2019Hamiltonian Neural Networkscited by 705
- 2017Masked Autoregressive Flow for Density Estimationcited by 680
- 2019Augmented Neural ODEscited by 396
- 2020Universal Differential Equations for Scientific Machine Learningcited by 350
- 2017Stable Architectures for Deep Neural Networkscited by 340
- 2020How to train your neural ODE: the world of Jacobian and kinetic regularizationcited by 228
- 2017Beyond Finite Layer Neural Networks: Bridging Deep Architectures and Numerical Differential Equationscited by 203
- 2018Deep Neural Networks Motivated by Partial Differential Equationscited by 187
- 2019Neural Jump Stochastic Differential Equationscited by 147
- 2019Implicit Deep Learningcited by 124
- 2019ANODE: Unconditionally Accurate Memory-Efficient Gradients for Neural ODEscited by 84
8 more
- 2021Stiff Neural Ordinary Differential Equationscited by 77
- 2020Adaptive Checkpoint Adjoint Method for Gradient Estimation in Neural ODEcited by 76
- 2018SqueezeNext: Hardware-Aware Neural Network Designcited by 61
- 2020STEER: Simple Temporal Regularization For Neural ODEscited by 58
- 2021MALI: A memory efficient and reverse accurate integrator for Neural ODEscited by 42
- 2020Discretize-Optimize vs. Optimize-Discretize for Time-Series Regression and Continuous Normalizing Flowscited by 37
- 2019Learning Dynamical Systems from Partial Observationscited by 36
- 2020Toward Performance-Portable PETSc for GPU-based Exascale Systemscited by 5
Built on by
Citing papers per year: 2023: 2; 2024: 1.
3 papers.
- 2023Generalized Neural Closure Models with Interpretabilitycited by 8
- 2024Semi-Implicit Neural Ordinary Differential Equationscited by 2
- 2023OS-net: Orbitally Stable Neural Networkscited by 0
- 2024Semi-Implicit Neural Ordinary Differential Equations15 Dec 2024
- 2023OS-net: Orbitally Stable Neural Networks26 Sep 2023
- 2023Generalized Neural Closure Models with Interpretability15 Jan 2023