NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Neural Delay Differential Equations

Qunxi Zhu, Yao Guo, Wei Lin

Abstract

Neural Ordinary Differential Equations (NODEs) have emerged as a robust framework for continuous-depth neural networks. However, their reliance on finite-dimensional dynamical systems imposes strict topological constraints, most notably the inability of trajectories to intersect in phase space. This paper presents Neural Delay Differential Equations (NDDEs), an extension that incorporates time delays into the hidden state's evolution. By making the current rate of change dependent on both current and past states, NDDEs effectively operate in an infinite-dimensional space. We demonstrate that NDDEs can represent complex functions that NODEs cannot, achieve superior performance on chaotic dynamical systems like Mackey-Glass, and improve accuracy in image classification tasks.

Introduction

Neural Ordinary Differential Equations (NODEs) model the evolution of a hidden state through a continuous flow. While elegant, they suffer from a significant topological limitation: as finite-dimensional dynamical systems, their trajectories in phase space cannot intersect. This prevents them from modeling simple mappings, such as swapping the positions of two points on a 1D line, without adding extra dimensions (as seen in Augmented NODEs).

Furthermore, many real-world systems—biological, chemical, and physical—exhibit inherent time delays where the past directly influences the present rate of change. Standard NODEs are "memoryless," making them ill-suited for these applications. NDDEs address both the topological constraints and the need for temporal memory by introducing a delay term into the differential equation.

Methodology

In the NDDE framework, the hidden state $h(t)$ evolves according to a delay differential equation:

$$\frac{dh_t}{dt} = f(h_t, h_{t-\tau}, t; w)$$

where $\tau$ represents a fixed time delay. Unlike a standard ODE which starts from a single point $h(0)$, a DDE requires an initial "history" function $\phi(t)$ defined over the interval $[-\tau, 0]$.

Comparison of the architectural flow between standard Neural ODEs (left) and the proposed Neural DDEs (right).

To train these models, the authors introduced several technical innovations:

  • Delayed Adjoint Sensitivity Method: A derivation of the adjoint method for DDEs that enables memory-efficient gradient computation.
  • Piece-wise ODE Solver: An algorithm that transforms the DDE into a sequence of augmented ODEs over intervals of length $\tau$ to simplify computation.
  • NODE+NDDE Hybrid: A variant where the initial history $\phi(t)$ is itself modeled by a standard Neural ODE, providing a learnable starting trajectory.

Overcoming Topological Constraints

A key insight of this work is that while the state $h(t)$ is a finite vector, a DDE is technically an infinite-dimensional system. Its true state at any time $t$ is the function segment over the interval $[t-\tau, t]$. This provides a massive boost in representational capacity.

Standard ODE trajectories (left) are restricted from crossing, whereas NDDE trajectories (right) can intersect in the feature space because their derivatives depend on different histories.

Because the derivative depends on the past, two trajectories can pass through the exact same point in the current feature space but move in different directions because they arrived there from different "histories." This allows NDDEs to model complex mappings that NODEs fundamentally cannot handle. The authors formalize this in a theoretical proof showing that NDDEs are universal approximators.

Experimental Evaluation

The authors evaluated NDDEs across synthetic benchmarks, dynamical systems, and image classification:

  1. Topological Flexibility: On the "Concentric Spheres" task, NDDEs successfully separated data in 2D space, a task where standard NODEs failed due to trajectory crossing requirements.
  2. Dynamical Systems: For the Mackey-Glass chaotic system, NDDEs achieved significantly lower training and test loss compared to both NODEs and ANODEs by capturing the underlying delayed physics of the system.
  3. Image Classification: NDDE variants consistently outperformed standard and augmented NODEs. On CIFAR10, an augmented NODE+NDDE hybrid reached ~59.94% accuracy, compared to ~53.92% for a standard NODE in the same setup.

Discussion and Future Work

While NDDEs offer superior representational power, they come with increased computational costs. Solving DDEs is more expensive than solving ODEs, and the system is "absolutely irreversible," meaning states must be checkpointed during the forward pass for backpropagation.

Future research directions include exploring systems with multiple or distributed delays and investigating time-dependent controllers where network parameters evolve over the "depth" of the network. Despite the complexity, NDDEs provide a powerful new tool for modeling systems where history matters.

Summary updated

BibTeX
@inproceedings{zhu2021neural,
  author = {Qunxi Zhu and Yao Guo and Wei Lin},
  title = {{Neural Delay Differential Equations}},
  booktitle = {International Conference on Learning Representations},
  year = {2021},
  url = {https://openreview.net/forum?id=Q1jmmQz72M2},
}
Figure