
ode_func_mlp
Time series533 ops252 params
An ODE block: a small network defines the derivative of the hidden state and a solver integrates it.
Image classification · 32 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.
This model calls odeint_adjoint, which wraps odeint and uses only O(1) memory in exchange for solving an adjoint ODE in the backward call.
About this model's family
A Neural ODE does not specify a discrete sequence of hidden layers; a neural network parameterizes the derivative of the hidden state instead. The output is computed by a black-box differential equation solver, which evaluates the hidden-unit dynamics wherever it needs to in order to reach the desired accuracy. The paper's starting point is that the layer-by-layer updates of models such as residual networks can be seen as an Euler discretization of a continuous transformation.
In the paper's ODE-Net, the residual blocks of a small residual network are replaced by an ODESolve module. The number of function evaluations the solver requests in a single forward pass can be interpreted as an implicit number of layers. On MNIST, the paper finds that ODE-Nets can achieve around the same performance as the ResNet.
Training treats the ODE solver as a black box and computes gradients with the adjoint sensitivity method. That method solves a second, augmented ODE backwards in time and applies to all ODE solvers. The authors released a PyTorch implementation with GPU-based implementations of several standard ODE solvers. In the torchdiffeq library, the odeint_adjoint interface wraps odeint and uses only O(1) memory in exchange for solving an adjoint ODE in the backward call.
Key idea. The paper parameterizes the hidden state's derivative with a neural network, computes the output with a black-box differential equation solver, and shows how to backpropagate through any ODE solver.
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},
}