All models

neural_ode_func

Neural ODEs let a solver integrate a learned vector field in place of stacked layers; ANODE adds zero dimensions.

Time series · 508 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (374 KB)

Open in a new tab

Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.

At a glance

Parameters
322
Operations
508
Framework
PyTorch
Recurrent
Yes
Published
NeurIPS 2018
Cited by
2,091 (as of 18 October 2026)
Authors
Ricky T. Q. Chen, Yulia Rubanova, Jesse Bettencourt, David Duvenaud
License
MIT
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m7669
Graph hash
441dc0ce287a091adc859a56b2c3d273b9b716ea028898b466ec78bd3effdad9
Skeleton hash
11be31698d7d73d13b96f20cf1082dd96d2371f9911c565aa162cdc615129595
Architecture hash
f949ec8fa3b5ee8dcde350a0f73ac73dfd7af30bae558a31ae5564f4796b4dcf
Diagram SHA-256
e18d692d395de2ef50acd823eb5aaa62a4f185e3a9676dccda3b4d64d31fe813
TorchLens version
2.36.0
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

What it is

About this model's family

Neural ODEs are a family of deep neural network models that, instead of specifying a discrete sequence of hidden layers, parameterize the derivative of the hidden state using a neural network and compute the output with a black-box differential equation solver. These continuous-depth models have constant memory cost, adapt their evaluation strategy to each input, and can explicitly trade numerical precision for speed. The idea comes from reading the iterative updates of residual networks as an Euler discretization of a continuous transformation and asking what happens as we add more layers and take smaller steps.

Training treats the ODE solver as a black box and computes gradients with the adjoint sensitivity method, which solves a second, augmented ODE backwards in time and is applicable to all ODE solvers. Not storing any intermediate quantities of the forward pass allows the models to train with constant memory cost as a function of depth. On MNIST, the ODE-Net reaches 0.42% test error with 0.22 M parameters, around the same performance as the ResNet at 0.41% with 0.60 M parameters. The same paper constructs continuous normalizing flows, a generative model that can train by maximum likelihood, and continuous-time latent variable models.

Augmented Neural ODEs start from the observation that Neural ODEs learn representations that preserve the topology of the input space, which implies the existence of functions Neural ODEs cannot represent. ANODEs augment the space on which the ODE is solved from d to d+p dimensions, concatenating every data point with a vector of zeros so the flow can lift points into the additional dimensions to avoid trajectories intersecting each other. On MNIST, ANODEs with 10 augmented channels achieve the same loss in roughly 10 times fewer iterations, and on CIFAR10 they are roughly 5 times faster.

The captured members build on torchdiffeq, the authors' PyTorch library of ODE solvers that supports backpropagation through ODE solutions using the adjoint method for constant memory cost, on the augmented-neural-odes code that builds on torchdiffeq, and on torchdyn, a PyTorch library dedicated to numerical deep learning. In torchdiffeq the default solver is dopri5, Runge-Kutta of order 5 of Dormand-Prince-Shampine, with fixed-step options such as rk4, fourth-order Runge-Kutta with the 3/8 rule.

Key idea. Neural ODEs replace a discrete stack of layers with a neural network that parameterizes the derivative of the hidden state, solved by a black-box ODE solver and trained by scalably backpropagating through any ODE solver without access to its internal operations.

  • neural ode
  • neural ordinary differential equations
  • ode-net
  • augmented neural ode
  • anode
  • torchdiffeq
  • torchdyn
  • adjoint sensitivity method
  • odeint
  • dopri5
  • rk4
  • continuous normalizing flow
  • latent ode
  • vector field

AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.

Cite the paper

@misc{chen2026neuralordinarydifferentialequations,
      title={Neural Ordinary Differential Equations}, 
      author={Ricky T. Q. Chen and Yulia Rubanova and Jesse Bettencourt and David Duvenaud},
      year={2026},
      eprint={1806.07366},
      archivePrefix={arXiv},
      primaryClass={cs.LG},
      url={https://arxiv.org/abs/1806.07366}, 
}