"Hey, that's not an ODE": Faster ODE Adjoints via Seminorms

Patrick Kidger, Ricky T. Q. Chen, Terry Lyons
9/20/2020
64 citations
cs.LGmath.CA

Official code: patrick-kidger/FasterNeuralDiffEq (93 stars, Python, Apache-2.0, PyTorch, last commit 2022-10-19).

Abstract

Neural differential equations may be trained by backpropagating gradients via the adjoint method, which is another differential equation typically solved using an adaptive-step-size numerical differential equation solver. A proposed step is accepted if its error, \emph{relative to some norm}, is sufficiently small; else it is rejected, the step is shrunk, and the process is repeated.

Show full abstract

Here, we demonstrate that the particular structure of the adjoint equations makes the usual choices of norm (such as $L^2$) unnecessarily stringent. By replacing it with a more appropriate (semi)norm, fewer steps are unnecessarily rejected and the backpropagation is made faster. This requires only minor code modifications. Experiments on a wide range of tasks -- including time series, generative modeling, and physical control -- demonstrate a median improvement of 40% fewer function evaluations. On some problems we see as much as 62% fewer function evaluations, so that the overall training time is roughly halved.

View on arXivView PDF

Code Implementations(1)

PyTorchApache-2.0

Code for "'Hey, that's not an ODE:' Faster ODE Adjoints via Seminorms" (ICML 2021)

9310PythonAug 13, 20204 years agoApache-2.0
controlled-differential-equationsdeep-learningdeep-neural-networksdifferential-equationsdynamical-systems+6 more

Similar Papers

Cite this paper

@article{kidger2020hey,
  title  = {"Hey, that's not an ODE": Faster ODE Adjoints via Seminorms},
  author = {Patrick Kidger and Ricky T. Q. Chen and Terry Lyons},
  year   = {2020},
  eprint = {2009.09457},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2009.09457}
}

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

Discussion