Profile

Settings

Loading…

← Papers

Help

FAQ

Which features require signing in?

You can read the commentary, paper info, Model Structure and related papers of public papers without signing in. Sign in to manage your account or contact us about your inquiries.

Can I upload a PDF file?

Upload papers with an arXiv or DOI link; the commentary is public to everyone. Papers whose source and terms of use can't be verified, so the commentary can't be made public, can't be uploaded. Uploading PDF files and keeping papers private are for subscribers only, and a paper uploaded as a file is saved as private only. Searching for official info by title runs only when you press the button.

Are the figures and AI commentary accurate?

Figures come only from the original paper, and only those whose terms of use are verified are shown. The commentary is written by AI and may be wrong. Check important claims, numbers and figure context against the evidence in the original paper.

I want to report a copyright issue.

Terms of use and the source of the original paper are on the Paper info tab. If there's a problem, choose "Paper content, figures and copyright" under Contact us and send the paper link, the part in question, and evidence that you hold the rights. Receiving your report doesn't confirm any rights or remove anything right away. You can see the result of the review under My inquiries.

I forgot my password.

If you signed up with email, use Forgot password in the sign-in window to reset it with your verified email. If you signed up with Google, Naver or Kakao, change your password with that service.

What should I include in an inquiry?

Tell us which screen you were on and what you were doing when the problem happened, along with the paper link. Don't include personal information such as passwords, API keys, verification codes or phone numbers. Inquiries and replies are stored in Refivu and you can see them under My inquiries.

How do I delete my account?

In Settings, under My account, press Delete account. Review what will be deleted and complete identity verification to delete your account. For other requests, choose "Account" under Contact us.

Paper commentary

Neural Ordinary Differential Equations

  • Problem Stacked residual layers fix the depth in advance, and training them by backpropagating through every layer stores intermediate states whose memory grows with depth. Solving the same dynamics with an ODE solver removes the fixed depth but requires gradients through the solver.
  • Method The hidden-state derivative is defined by a neural network and integrated by a black-box ODE solver. Gradients are computed by the adjoint sensitivity method, which solves an augmented ODE backward in time, and the same machinery is applied to density models and a latent-variable time-series model.

From stacked layers to a continuous hidden state

Residual networks, recurrent decoders and normalizing flows all build a complicated map by applying a learned update to a hidden state repeatedly. Each such update has the form h(t+1) = h(t) + f(h(t), θ(t)), which is one Euler step, so a deep stack can be read as a coarse discretization of a continuous transformation. Taking more and smaller steps in the limit gives a model in which a neural network defines the time derivative of the hidden state, dh(t)/dt = f(h(t), t, θ), and the output is the solution of that initial value problem at a chosen end time T.

The network therefore has no fixed layer count. A black-box ODE solver evaluates the dynamics as often as needed to reach a requested accuracy.

The difficulty is training. Backpropagating through each operation of the solver stores intermediate quantities, which costs memory and adds numerical error. Modern adaptive solvers come with guarantees on how approximation error grows and adjust their evaluation strategy to the requested accuracy, so the cost of a forward pass can follow the complexity of the input and accuracy can be lowered after training.

The same construction also gives a change of variables that is easier to compute, and it accepts irregular observation times in time-series models.

Gradients without storing the forward pass

The authors treat the solver as a black box and obtain gradients with the adjoint sensitivity method, which applies to any solver. The output of the solver is z(t1) = z(t0) + ∫ from t0 to t1 of f(z(t), t, θ) dt, and the scalar loss L is a function of that output. The gradient flows through the adjoint state a(t) = ∂L/∂z(t), which tells how the loss depends on the hidden state at each instant.

The adjoint obeys its own ODE, da(t)/dt = -a(t)^T ∂f(z(t), t, θ)/∂z, which is the continuous analogue of the chain rule and is integrated backward from ∂L/∂z(t1). The backward solve needs z(t) along the whole trajectory. The method avoids storing it by recomputing z(t) backward from z(t1) together with the adjoint. The parameter gradient is one more integral, dL/dθ = -∫ from t1 to t0 of a(t)^T ∂f(z(t), t, θ)/∂θ dt, and the vector-Jacobian products in these expressions are computed by automatic differentiation at a cost close to one evaluation of f.

In practice the state, the adjoint and the parameter partial derivatives are concatenated into one augmented state, so a single ODE solve returns all gradients. When the loss depends on states at several observation times, the backward solve is split into segments between consecutive output times, and the adjoint is adjusted at each observation.

Appendix D gives autograd code for scipy.integrate.odeint, and a PyTorch implementation with GPU-based solvers was released later.

MNIST classification against ResNet and RK-Net

The MNIST models share a small residual network that downsamples the input twice and then applies 6 standard residual blocks. ODE-Net replaces those blocks with an ODESolve module, while RK-Net keeps the same architecture and backpropagates directly through a Runge-Kutta integrator. The supervised experiments use the implicit Adams method through scipy.integrate, with the adjoint method implemented in autograd and the hidden-state dynamics evaluated on the GPU with TensorFlow.

The memory column is O(L) for ResNet, where L is the number of layers, and O(1) for ODE-Net. RK-Net's memory is listed in terms of the number of function evaluations per forward pass rather than L.

ODE-Net and RK-Net reach about the same accuracy as the ResNet in this comparison. The result therefore compares one small architecture on MNIST, where the ODE-Net keeps memory constant with respect to depth while its test error sits between the ResNet and RK-Net values.

Solver tolerance and evaluation counts

The solver tolerance controls how close the output is to the true solution, and the authors confirm that error can be controlled this way. Forward time is proportional to the number of function evaluations, so the tolerance sets a trade-off between accuracy and computation, and a model could be trained accurately and evaluated at a lower accuracy.

For a trained ODE-Net, the backward pass needed a median ratio of about 0.8 function evaluations relative to the forward pass for tolerances between 1e-5 and 1e-1. The authors read this as the adjoint method being somewhat cheaper than backpropagating through each forward function evaluation, on top of its memory advantage.

Earlier versions of the paper reported roughly half as many backward evaluations and called that a surprising result. Vanni et al. (2026) traced it to a bug in the experiment logging, and Figure 3c was corrected. The number of function evaluations increases during training, which the authors suggest reflects the growing complexity of the learned model.

Density change without a determinant

A discrete flow applies the change of variables formula, log p(z1) = log p(z0) - log|det ∂f/∂z0|, to an invertible map. The bottleneck is the determinant of the Jacobian, whose cost is cubic in the dimension of z or in the number of hidden units.

The continuous version replaces the determinant with a trace. If f is uniformly Lipschitz continuous in z and continuous in t, then ∂log p(z(t))/∂t = -tr(df/dz(t)). The proof takes the infinitesimal limit of the discrete formula, and the differential equation for f does not itself need to be bijective, since uniqueness makes the whole transformation bijective.

For the planar case with dz(t)/dt = u h(w^T z(t) + b), the log-density changes as ∂log p(z(t))/∂t = -u^T ∂h/∂z(t). Given an initial distribution, samples and density are obtained by solving this combined ODE.

The trace is linear, so when the dynamics are a sum of M functions, the log-density change is a sum of traces, and the cost grows linearly with M. The authors contrast this with O(M^3) for wide standard normalizing flow layers and allow the parameters to depend on t, with a gate σn(t) in (0,1) for each hidden unit. The resulting models are called continuous normalizing flows.

Density matching against planar flows

Density matching trains a flow q to match a target p by minimizing KL(q(x) || p(x)), where p can be evaluated. A planar CNF with M hidden units is compared with a planar NF with K = M layers. The CNF is trained for 10,000 iterations with Adam, while the NF is trained for 500,000 iterations with RMSprop, following the recipe suggested for that model.

Figure 4 shows that the CNF generally reaches a lower loss than the NF.

Maximum likelihood training and sampling

A continuous flow can be reversed at about the same cost as its forward pass, which normalizing flows generally cannot do. This allows training by maximizing E p(x)[log q(x)], with q computed through the change of variables theorem, and generating samples from q afterwards.

The CNF uses 64 hidden units and the NF uses 64 stacked one-hidden-unit layers, fit to the Two Circles and Two Moons densities. Figure 5 shows the transformed distribution after a short time rather than the initial Gaussian, which exposes where the planar units sit. The authors observe that the CNF rotates its planar units so that particles spread evenly into circles, while the NF transformations look less intuitive and struggle to fit Two Moons.

This comparison is visual. The text gives no likelihood values for these two densities.

Latent ODE for irregular observations

Here each series has its own latent initial state z(t0), and one global time-invariant function f defines its trajectory for all series. The generative procedure samples z(t0) from p(z(t0)), solves the ODE to obtain z(t1) to z(tN), and samples each observation as x(ti) from p(x | z(ti), θx). Because f does not depend on time, one latent state fixes the whole trajectory, so predictions can be made at arbitrary times forward or backward.

The model is trained as a variational autoencoder. An RNN reads the observations backward in time and outputs a Gaussian posterior over z(t0), which is sampled and passed to the solver. Figure 6 gives the computation graph of the model, from the encoder through the ODE solve to the decoded observations.

If the rate of events is λ(z(t)), computed from the latent state, the likelihood of event times in [t_start, t_end] is Σ log λ(z(ti)) minus the integral of λ(z(t)) over that interval. Because this likelihood can be evaluated in the same solve as the latent trajectory, event times and data can be modelled jointly.

Spiral extrapolation and latent structure

The bi-directional spiral dataset has 1000 two-dimensional spirals sampled at 100 equally spaced timesteps, with half clockwise and half counter-clockwise, and Gaussian noise is added. Observations are drawn at random without replacement at 30, 50 and 100 points, and RMSE is computed on 100 time points beyond the training range. The latent ODE uses a 4-dimensional latent space, a one-hidden-layer dynamics network with 20 hidden units, an RNN encoder with 25 hidden units and a decoder with one hidden layer of 20 units.

The RNN baseline has 25 hidden units.

The latent ODE has lower RMSE in all three settings, and the absolute gap is widest with 30 observed points.

The authors observe that reconstructions and extrapolations stay consistent with ground truth regardless of the number of observed points and despite the noise. Projected onto their first two latent dimensions, the trajectories form two clusters, one decoding to clockwise and the other to counter-clockwise spirals. Varying one dimension of the initial state changes the decoded spiral direction smoothly.

Relation to earlier adjoint and ODE gradient work

The adjoint method for continuous-time networks was proposed earlier by LeCun et al. (1988) and Pearlmutter (1995), but was not demonstrated in practice.

Viewing residual networks as approximate ODE solvers led to reversible and approximate residual architectures, but the reversible versions need architectures that partition the hidden units. The authors' approach has no such restriction.

The dolfin library backpropagates through the individual operations of the forward solver, and the Stan library uses forward sensitivity analysis, which is quadratic in the number of variables, while the adjoint analysis is linear.

Limitations of the approach

Minibatches can be processed by concatenating the states of batch elements into one combined ODE of dimension D×K.

Uniqueness of the solution follows from Picard's existence theorem when f is uniformly Lipschitz continuous in z and continuous in t. The authors state this holds when the network has finite weights and uses Lipschitz nonlinearities such as tanh or relu.

Paper info

Authors
Ricky T. Q. Chen, Yulia Rubanova, Jesse Bettencourt, David Duvenaud
Venue
arXiv · Preprint
First published
2018-6-19
Added
2026-10-20
Updated
2026-10-9
Version
v6
arXiv
1806.07366
Category
cs.LG · cs.AI · stat.ML
Original paper terms
arXiv non-exclusive 1.0
What we show
Paper info and commentary

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

Quote from the paper

Ricky T. Q. Chen, Yulia Rubanova, Jesse Bettencourt, David Duvenaud (2018). Neural Ordinary Differential Equations. arXiv:1806.07366v6. https://arxiv.org/abs/1806.07366v6

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

See related papersBrowse other papers

Paper preview
Account security

Connect Google account

If you connect a Google account, you can sign in with it too.

Refivu

Delete account

Refivu
Refivu

Sign up