
ode_func_mlp
Time series533 ops252 params
Neural ODEs let a solver integrate a learned vector field in place of stacked layers; ANODE adds zero dimensions.
Time series · 508 operations Checked
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.
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
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.
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
@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},
}