All models

ode_func_mlp

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

Time series · 533 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 (392 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
252
Operations
533
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
m7835
Graph hash
3ae7e313f49ee4b9d0b9a0ff0c12eec6bccd85998616f96aeccd8b28eb0840bb
Skeleton hash
8f1040a6a4a3b33c1e9ca5525686c5881d3f56d01a6687156019bb6adc6379c7
Architecture hash
8eaf9674911476f757c094a56a3a3495024d67a2e9bd125a2eb7c4baa84d516f
Diagram SHA-256
88a416cceda1ec6346f0fd077c1c16ec22c01be58d8091e12180b03c2091c72a
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}, 
}