Large-time asymptotics in deep learning

Carlos Esteve, Borjan Geshkovski, Dario Pighin, Enrique ZuazuaarXiv 2020 · arXiv

Abstract

In the field of deep learning, the empirical success of deep architectures is often attributed to their capacity to learn complex representations. This paper investigates the mathematical foundations of this success by treating Residual Networks (ResNets) as continuous-time Neural Ordinary Differential Equations (Neural ODEs). By analyzing the large-time asymptotics—where the final time $T$ represents network depth—the authors establish a rigorous link between depth, training efficiency, and model simplicity. Through the lens of optimal control and turnpike theory, the study demonstrates that training error decays as depth increases and proposes an augmented loss function that ensures exponential convergence to stable, simplified internal representations.

Introduction

The mantra "deeper is better" has dominated deep learning for a decade, yet the precise mathematical relationship between a network's depth and its training dynamics remains an active area of research. This paper, authored by Carlos Esteve-Yagüe and colleagues, approaches this problem by viewing ResNets as discretizations of dynamical systems. In this framework, the depth of the network is mapped to the time horizon $T$ of an ODE. This perspective allows the authors to apply tools from optimal control theory to analyze how networks behave as they become infinitely deep ($T \to \infty$).

The Neural ODE Framework

The core of the analysis rests on the Neural ODE model, where the state of a data point $x$ evolves according to the differential equation: $$\dot{x}(t) = \sigma(w(t)x(t) + b(t))$$ Here, $w(t)$ and $b(t)$ represent the time-varying weights and biases (the "controls"), and $\sigma$ is the activation function. Training the network is framed as an optimal control problem: finding the parameters that minimize a loss function at the final time $T$, subject to regularization constraints.

Depth as a Regularizer

One of the paper's primary theoretical insights is that increasing the depth $T$ is mathematically analogous to decreasing the regularization parameter $\lambda$. This establishes a direct connection between the "large depth" limit and the "overparametrized regime," providing a formal basis for why deeper networks can achieve lower training errors even with fixed regularization.

Asymptotic Behavior and the Turnpike Property

The authors investigate how the training error behaves as $T$ grows. For standard empirical risk minimization (ERM) with $L^2$-regularization, they prove that the training error decays at a rate of $O(1/T)$ for 1-homogeneous activation functions like ReLU. For cross-entropy losses, the decay follows $O(1/T^\alpha)$.

The Augmented Loss Function

To improve these rates, the authors introduce an "augmented" loss function inspired by turnpike theory in economics and control. Standard training only penalizes the error at the final layer. The proposed augmented loss adds an integral tracking term: $$\frac{1}{N} \sum_{i=1}^N \int_0^T \|x_i(t) - \bar{x}_i\|^2 dt$$ This term forces the internal representations of the data to stay near their target states throughout the network's evolution.

Exponential Stability

By utilizing the turnpike property—which suggests that optimal trajectories for long-horizon problems spend most of their time near a steady state—the authors prove that under this augmented loss, both the training error and the optimal parameters $w(t)$ decay exponentially ($O(e^{-\mu t})$). This implies that after a certain depth, the network reaches a "steady state" where the weights become very small and the data flow becomes stationary. This stability is a strong indicator of model simplicity and improved generalization.

Handling Variable Widths

Traditional Neural ODEs often assume a constant width across layers. To address real-world architectures where width changes, the authors propose a continuous space-time model. By treating width as a continuous spatial variable in a scalar integro-differential equation, they provide a framework for ResNets with variable-width layers, discretized via time-dependent grids.

Experimental Validation

The theoretical findings were validated using synthetic datasets (XOR, concentric spheres) and benchmark datasets (MNIST, Fashion MNIST).

  • Training Dynamics: Experiments confirmed that training error stabilizes rapidly as depth increases.
  • Representation Flow: Visualizations of data trajectories (e.g., transformed digits in MNIST) showed the network "diffusing" input signals into stationary configurations before the final classification layer.
  • Generalization: Despite the additional constraints imposed by the augmented loss, the models maintained high test accuracy. The "simple flow" induced by the turnpike property appears to prevent the chaotic oscillations often found in deep, overparametrized models, leading to more robust generalization.

Conclusion and Future Directions

This research provides a rigorous mathematical justification for the efficacy of deep networks, showing that depth leads to simpler, more stable dynamical flows when properly regularized. While the current work focuses on basic ResNets and assumes certain levels of system controllability, it opens the door for several future avenues:

  1. Complex Architectures: Extending the turnpike analysis to Batch Normalization, Attention mechanisms, and Transformers.
  2. Greedy Pre-training: Developing algorithms that iteratively increase depth based on the observed decay of the tracking error.
  3. Large Data Limits: Investigating how the constants in these error bounds scale with the number of training samples $N$.

By framing deep learning as a large-time asymptotic problem, this work moves us closer to a predictive theory of neural network design, where depth is not just a hyperparameter, but a fundamental tool for ensuring mathematical stability and simplicity.

Summary updated

Abstract

We consider the neural ODE perspective of supervised learning and study the impact of the final time $T$ (which may indicate the depth of a corresponding ResNet) in training. For the classical $L^2$--regularized empirical risk minimization problem, whenever the neural ODE dynamics are homogeneous with respect to the parameters, we show that the training error is at most of the order $\mathcal{O}\left(\frac{1}{T}\right)$. Furthermore, if the loss inducing the empirical risk attains its minimum, the optimal parameters converge to minimal $L^2$--norm parameters which interpolate the dataset. By a natural scaling between $T$ and the regularization hyperparameter $λ$ we obtain the same results when $λ\searrow0$ and $T$ is fixed. This allows us to stipulate generalization properties in the overparametrized regime, now seen from the large depth, neural ODE perspective. To enhance the polynomial decay, inspired by turnpike theory in optimal control, we propose a learning problem with an additional integral regularization term of the neural ODE trajectory over $[0,T]$. In the setting of $\ell^p$--distance losses, we prove that both the training error and the optimal parameters are at most of the order $\mathcal{O}\left(e^{-μt}\right)$ in any $t\in[0,T]$. The aforementioned stability estimates are also shown for continuous space-time neural networks, taking the form of nonlinear integro-differential equations. By using a time-dependent moving grid for discretizing the spatial variable, we demonstrate that these equations provide a framework for addressing ResNets with variable widths.
BibTeX
@misc{esteve2020large,
  author = {Carlos Esteve and Borjan Geshkovski and Dario Pighin and Enrique Zuazua},
  title = {{Large-time asymptotics in deep learning}},
  year = {2020},
  eprint = {2008.02491},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2008.02491},
}

Loading related content...

Figure