Global Convergence in Neural ODEs: Impact of Activation Functions

Tianxiang Gao, Siyuan Sun, Hailiang Liu, Hongyang Gao

Introduction

Neural Ordinary Differential Equations (ODEs) represent a significant shift in deep learning architecture, conceptualizing hidden state transitions as continuous-time dynamics rather than discrete layers. While this approach offers advantages in parameter efficiency and flexibility—particularly for modeling continuous-time data—the theoretical foundations of their optimization have remained elusive. Specifically, the "infinite-depth" nature of Neural ODEs complicates standard convergence analysis. This paper provides the first rigorous proof of global convergence for Neural ODEs under gradient descent, identifying the specific properties of activation functions that enable stable training in overparameterized regimes.

Bridging the Gap: The Double Limit Approach

Traditional deep learning theory utilizes the Neural Tangent Kernel (NTK) to describe network evolution during training. However, extending NTK to Neural ODEs requires addressing the limit of both infinite width ($n \to \infty$) and infinite depth ($L \to \infty$).

The authors bridge this gap using a "Double Limit" approach. By analyzing a sequence of finite-depth ResNets that approximate the Neural ODE and applying the Moore-Osgood theorem, they prove that these limits commute. This allows the transfer of well-known NTK properties from discrete architectures to the continuous regime. Furthermore, the authors derive an explicit integral form for the limiting NTK of a Neural ODE, providing a mathematical framework to study the kernel's spectral properties directly.

The Necessity of Smoothness and Non-Polynomiality

A central finding of the research is the critical role of the activation function $\phi$. The authors identify two primary requirements for convergence:

  1. Smoothness for Well-posedness: For the forward and backward (adjoint) ODEs to have unique, stable solutions, the activation function $\phi$ and its derivative $\phi'$ must be Lipschitz continuous. This explains why smooth activations like Softplus often exhibit superior stability compared to non-smooth functions like ReLU in the context of Neural ODEs.
  2. Non-Polynomiality for Convergence: Global convergence requires the NTK to be Strictly Positive Definite (SPD). The authors demonstrate that if the activation function is non-polynomial (e.g., Sigmoid, Tanh, or Softplus), the resulting NTK remains SPD even at infinite depth, ensuring the model can reach a global minimum.

Global Convergence and Stability

Under the conditions of smoothness, non-polynomiality, and sufficient overparameterization, the authors prove that the training loss of a Neural ODE decreases at an exponential rate.

To maintain this stability over long time horizons, the paper suggests scaling the dynamics by $\sigma_w \sim O(1/T)$. This scaling prevents the common failure modes of exploding or vanishing gradients (adjoint states) in continuous-time models. Effectively, Neural ODEs act as "structure-preserving smoothers," maintaining the correlation patterns of input data while reducing variance to aid in stable feature extraction.

Empirical Validation

The theoretical framework was validated across multiple benchmarks, including MNIST, CIFAR-10, AG News, and Daily Climate data. Key experimental observations include:

  • Activation Performance: Softplus consistently provided more accurate gradient estimates and faster, more stable convergence than ReLU.
  • Width Scaling: As the network width $n$ increases, the empirical NTK converges rapidly to the deterministic limiting NTK, leading to improved generalization and lower test loss.
  • Solver Independence: In the presence of smooth activation functions, the choice of ODE solver (Euler, RK4, or Dopri5) had a negligible impact on final accuracy, though fixed-step solvers (Euler, RK4) scaled more efficiently with network width.

Conclusion and Limitations

While this work establishes a rigorous foundation for Neural ODE convergence, it relies on the assumption of high overparameterization. Like much of NTK theory, the proofs require the network to be very wide, and real-world "slim" Neural ODEs might not strictly follow these dynamics. Future research is needed to tighten the theoretical bounds for practical applications and to extend these proofs to more complex architectures, such as Graph Neural ODEs or Neural Stochastic Differential Equations (SDEs). Nevertheless, this study clarifies the "secret sauce" of Neural ODEs: the synergy between continuous dynamics and smooth, non-polynomial activation functions.

Summary updated

BibTeX
@inproceedings{gao2025global,
  author = {Tianxiang Gao and Siyuan Sun and Hailiang Liu and Hongyang Gao},
  title = {{Global Convergence in Neural ODEs: Impact of Activation Functions}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=AoraWUmpLU},
}
Figure