Continuous Depth Networks through Neural Ordinary Differential Equations

This direction is merged into another direction: neural ordinary differential equations (ODE-based residual interpretation). Its last version stays readable and citable here.

Version 1 of 118 papers18 conceptsfrozen 2026-10-04

In traditional deep learning, we think of a neural network as a discrete sequence of transformations. Data enters at layer 1, is modified, and passes to layer 2, continuing until it reaches the output. Mathematically, this is often represented as a Residual Network (ResNet), where each layer computes $h_{n+1} = h_n + f(h_n, \theta_n)$.

However, a growing body of research suggests that we should stop thinking of "layers" as discrete steps and instead view the evolution of data as a continuous flow. By treating the network as a continuous-time dynamical system, we can replace the stack of layers with a single Ordinary Differential Equation (ODE).

From Discrete Steps to Continuous Trajectories

The intuition begins with the ResNet formula. If we imagine the steps between layers becoming infinitesimally small, the discrete difference equation transforms into a continuous derivative: $\frac{dh}{dt} = f(h(t), t, \theta)$. Here, the "depth" of the network is reimagined as a time variable, $t$.

As Lars Ruthotto explains in Differential Equations for Continuous-Time Deep Learning, this perspective allows us to use numerical ODE solvers to compute the output of a network. Instead of a fixed number of layers, we define the "velocity" of the data’s transformation and let a solver integrate that velocity from $t=0$ to $t=T$.

This shift has a profound implication: the depth of the network is no longer a structural constraint decided at design time, but a resolution parameter that can be adjusted during inference. As Eric C Cyr, Stefanie Günther, and Jacob B. Schroder demonstrate in their work on Multilevel Initialization, we can train a "coarse" version of a network and then refine it into a deeper, more accurate version by simply increasing the solver's precision.

Deep Learning as an Optimal Control Problem

Once we view a neural network as a dynamical system, the act of training changes its mathematical identity. It is no longer just "minimizing a loss function" via gradient descent; it becomes an Optimal Control Problem.

In this framework, the weights of the network are "controls" that steer the input data along a trajectory toward a desired target state. Martin Benning and Elena Celledoni argue in Deep learning as optimal control problems that this allows us to apply a century of control theory to neural network design. For instance, by using symplectic numerical methods—which preserve certain physical properties in dynamical systems—we can create architectures that are inherently more stable and interpretable.

This control-theoretic view also explains why deep networks generalize. Borjan Geshkovski explores Large-time asymptotics, showing that as "time" (depth) increases, the network's ability to steer data into separable configurations improves, provided the "control" (the weights) is optimized correctly.

Solving the Bottlenecks of Discrete Models

Why go through the trouble of this mathematical re-framing? The continuous approach solves several fundamental problems in modern AI:

  1. The Softmax Bottleneck: Standard language models are limited by the rank of their final discrete layer. Jovan Andonov and Thomas Hofmann show in Explicit Word Density Estimation that using Neural ODEs and Continuous Normalizing Flows (CNFs) allows for much more expressive probability distributions, capturing nuances that discrete models miss.
  2. Memory Efficiency: Training very deep models usually requires storing all intermediate activations for backpropagation. However, because ODEs are continuous, we can often recompute the forward pass in reverse during the backward pass. Guoqiang Zhang and W. Bastiaan Kleijn leverage this in their BDIA-transformer, achieving bit-level reversibility and massive memory savings.
  3. Irregular Data: In fields like medicine, data (such as heart rates or lab results) often arrives at irregular intervals. Discrete layers struggle with this, but as Hao Niu and Junjie Hu highlight in their review of medical image analysis, Neural ODEs handle continuous-time data naturally, making them ideal for longitudinal studies and topology-preserving transformations.

Bridging the Gap with Modern Architectures

The transition to continuous models is not just theoretical; it is being integrated into the most successful modern architectures. The OT-Transformer, introduced by Kelvin Kan and Stanley Osher in Optimal Control for Transformer Architectures, treats the attention mechanism as a velocity field. By applying an Optimal Transport regularizer, they achieved a 46% reduction in test loss while using 42% fewer parameters.

To make these ideas accessible, libraries like TorchDyn, developed by Michael Poli and Stefano Massaroli, provide modular components to swap standard layers for ODE-based ones. This democratization of "Neural Differential Equations" allows researchers to experiment with depth-variant layers where weights evolve smoothly across the integration domain.

By moving from discrete stacks to continuous flows, the field is moving toward a more robust, efficient, and mathematically grounded foundation for deep learning—one where the "depth" of a thought is a matter of time and precision, not just a count of layers.

Papers in this version

History & citationVersion 1 · 2026-10-04

Merged into another direction · Permanent link

View frozen version 1

Cite this direction

Latest version (a living page):

@misc{lacuna_continuous_depth_networks_through_neural_b275515b,
  title = {Continuous Depth Networks through Neural Ordinary Differential Equations},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/continuous-depth-networks-through-neural-ordinary-differential-equations/rdr_b275515bd608421e8a0122e40329cb95},
  note = {Latest version of a living research direction; cite a version for a fixed text. Accessed 2026-11-23},
}

This exact version (version 1, frozen text):

@misc{lacuna_continuous_depth_networks_through_neural_b275515b_v1,
  title = {Continuous Depth Networks through Neural Ordinary Differential Equations},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/continuous-depth-networks-through-neural-ordinary-differential-equations/rdr_b275515bd608421e8a0122e40329cb95/v/1},
  note = {Version 1, frozen 2026-10-04. Accessed 2026-11-23},
}