Neural Rough Differential Equations for Long Time Series

James Morrill, Cristopher Salvi, Patrick Kidger, James Foster, Terry Lyons
9/17/2020
cs.LGcs.AImath.DS

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

Abstract

Neural controlled differential equations (CDEs) are the continuous-time analogue of recurrent neural networks, as Neural ODEs are to residual networks, and offer a memory-efficient continuous-time way to model functions of potentially irregular time series. Existing methods for computing the forward pass of a Neural CDE involve embedding the incoming time series into path space, often via interpolation, and using evaluations of this path to drive the hidden state. Here, we use rough path theory to extend this formulation. Instead of directly embedding into path space, we instead represent the input signal over small time intervals through its \textit{log-signature}, which are statistics describing how the signal drives a CDE. This is the approach for solving \textit{rough differential equations} (RDEs), and correspondingly we describe our main contribution as the introduction of Neural RDEs. This extension has a purpose: by generalising the Neural CDE approach to a broader class of driving signals, we demonstrate particular advantages for tackling long time series. In this regime, we demonstrate efficacy on problems of length up to 17k observations and observe significant training speed-ups, improvements in model performance, and reduced memory requirements compared to existing approaches.

View on arXivView PDF

Code Implementations(2)

PyTorchApache-2.0

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

49650PythonMay 8, 20201 years agoApache-2.0
controlled-differential-equationsdeep-learningdeep-neural-networksdifferential-equationsdynamical-systems+5 more
jambo6/neuralRDEsOfficial100%
PyTorch

Code for: "Neural Rough Differential Equations for Long Time Series", (ICML 2021)

12515Python, Jupyter NotebookSep 11, 20205 years ago
controlled-differential-equationsdeep-learningmachine-learningneural-cdesnumerical-methods+5 more

Similar Papers

Cite this paper

@article{morrill2020neural,
  title  = {Neural Rough Differential Equations for Long Time Series},
  author = {James Morrill and Cristopher Salvi and Patrick Kidger and James Foster and Terry Lyons},
  year   = {2020},
  eprint = {2009.08295},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2009.08295}
}

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

Discussion