All models

NeuralODE_mlp

An ODE block: a small network defines the derivative of the hidden state and a solver integrates it.

Image classification · 32 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 (13 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
74.1K
Operations
32
Framework
PyTorch
Recurrent
Yes
Published
NeurIPS 2018
Cited by
2,096 (as of 29 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
m1936
Graph hash
b0bfdef722c57422b0d5af9d15f41bdc6164b95cd5201eb78c9ebccc981d71c2
Skeleton hash
e3343f02eb9d2eb17c8306a5ac1a621338f6babaa8158e88025ee28086496e11
Architecture hash
307f784a0e3346afdbb00859d35e11e3610aa44524e2bea3f2af88eb26dbdfd3
Diagram SHA-256
7825d663fb46989016f8f9570cdb104e18a8af49101764833c7d8b5b2439ff28
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

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.

  • Neural ODE
  • Neural Ordinary Differential Equations
  • ODE-Net
  • ODE block
  • continuous-depth network
  • torchdiffeq
  • odeint
  • adjoint method
  • ODE solver

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}, 
}