Adaptive Checkpoint Adjoint Method for Gradient Estimation in Neural ODE

Juntang Zhuang, Nicha Dvornek, Xiaoxiao Li, Sekhar Tatikonda, Xenophon Papademetris +1 more
6/3/2020
140 citations
stat.MLcs.LG

Official code: juntang-zhuang/torch_ACA (57 stars, Python, last commit 2021-03-13).

Abstract

Neural ordinary differential equations (NODEs) have recently attracted increasing attention; however, their empirical performance on benchmark tasks (e.g. image classification) are significantly inferior to discrete-layer models. We demonstrate an explanation for their poorer performance is the inaccuracy of existing gradient estimation methods: the adjoint method has numerical errors in reverse-mode integration; the naive method directly back-propagates through ODE solvers, but suffers from a redundantly deep computation graph when searching for the optimal stepsize.

Show full abstract

We propose the Adaptive Checkpoint Adjoint (ACA) method: in automatic differentiation, ACA applies a trajectory checkpoint strategy which records the forward-mode trajectory as the reverse-mode trajectory to guarantee accuracy; ACA deletes redundant components for shallow computation graphs; and ACA supports adaptive solvers. On image classification tasks, compared with the adjoint and naive method, ACA achieves half the error rate in half the training time; NODE trained with ACA outperforms ResNet in both accuracy and test-retest reliability. On time-series modeling, ACA outperforms competing methods. Finally, in an example of the three-body problem, we show NODE with ACA can incorporate physical knowledge to achieve better accuracy. We provide the PyTorch implementation of ACA: \url{https://github.com/juntang-zhuang/torch-ACA}.

View on arXivView PDF

Code Implementations(1)

repo for paper: Adaptive Checkpoint Adjoint (ACA) method for gradient estimation in neural ODE

576PythonJun 3, 20205 years ago

Similar Papers

Cite this paper

@article{zhuang2020adaptive,
  title  = {Adaptive Checkpoint Adjoint Method for Gradient Estimation in Neural ODE},
  author = {Juntang Zhuang and Nicha Dvornek and Xiaoxiao Li and Sekhar Tatikonda and Xenophon Papademetris and James Duncan},
  year   = {2020},
  eprint = {2006.02493},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2006.02493}
}

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

Discussion