Neural Controlled Differential Equations for Online Prediction Tasks

James Morrill, Patrick Kidger, Lingyi Yang, Terry Lyons
6/21/2021
62 citations
cs.LG

Official code: patrick-kidger/torchcde (497 stars, Python, Apache-2.0, PyTorch, last commit 2025-09-04). 1 more implementation below.

Abstract

Neural controlled differential equations (Neural CDEs) are a continuous-time extension of recurrent neural networks (RNNs), achieving state-of-the-art (SOTA) performance at modelling functions of irregular time series. In order to interpret discrete data in continuous time, current implementations rely on non-causal interpolations of the data.

Show full abstract

This is fine when the whole time series is observed in advance, but means that Neural CDEs are not suitable for use in \textit{online prediction tasks}, where predictions need to be made in real-time: a major use case for recurrent networks. Here, we show how this limitation may be rectified. First, we identify several theoretical conditions that interpolation schemes for Neural CDEs should satisfy, such as boundedness and uniqueness. Second, we use these to motivate the introduction of new schemes that address these conditions, offering in particular measurability (for online prediction), and smoothness (for speed). Third, we empirically benchmark our online Neural CDE model on three continuous monitoring tasks from the MIMIC-IV medical database: we demonstrate improved performance on all tasks against ODE benchmarks, and on two of the three tasks against SOTA non-ODE benchmarks.

View on arXivView PDF

Code Implementations(2)

Code implementations of this paper
RepositoryTypeStarsLanguageLicenseLast commit
patrick-kidger/torchcdeOfficial497PythonApache-2.02025-09-04
jambo6/online-neural-cdesOfficial42Python–2022-10-19
PyTorchApache-2.0

Differentiable controlled differential equation solvers for PyTorch with GPU support and memory-efficient adjoint backpropagation.

49751PythonMay 8, 20201 years agoApache-2.0
controlled-differential-equationsdeep-learningdeep-neural-networksdifferential-equationsdynamical-systems+5 more

Code for: "Neural Controlled Differential Equations for Online Prediction Tasks"

426PythonJun 21, 20214 years ago
deep-learningmachine-learningmedical-time-seriesneural-cdesneural-networks+3 more

Similar Papers

Cite this paper

@article{morrill2021neural,
  title  = {Neural Controlled Differential Equations for Online Prediction Tasks},
  author = {James Morrill and Patrick Kidger and Lingyi Yang and Terry Lyons},
  year   = {2021},
  eprint = {2106.11028},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2106.11028}
}

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

Discussion