NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Local Lipschitz Bounds of Deep Neural Networks

Calypso Herrera, Florian Krach, Josef TeichmannarXiv 2020

TL;DR

This paper provides the first general framework for estimating local Lipschitz bounds for deep neural networks (DNNs) and their gradients with respect to their parameters. These bounds are crucial for theoretical convergence analysis and for setting guaranteed step sizes in optimization algorithms like SGD and AdaGrad.

What Problem Does This Paper Address?

In the world of deep learning, we train models using gradient-based optimization. A central piece of the theory behind these methods is the Lipschitz constant. If the gradient of a loss function is $L$-Lipschitz, it means the gradient doesn't change too abruptly, allowing us to choose a "safe" step size that guarantees we are actually moving towards a minimum.

However, for complex, multi-layer DNNs, calculating or even estimating this constant is notoriously difficult. Most existing research focuses on Lipschitz constants with respect to the inputs (useful for studying adversarial robustness), but training requires understanding how the network changes with respect to its trainable parameters.

The authors address this gap by providing explicit upper bounds on these constants for both standard feed-forward networks and more exotic "continuously deep" architectures.

Methods

The authors employ a rigorous mathematical approach to derive these bounds:

  • Recursive Estimation: For standard DNNs, they develop recursive formulas that propagate Lipschitz estimates layer-by-layer, starting from the input and moving through the weights, biases, and activation functions.
  • Parameter Constraints: They demonstrate that global Lipschitz bounds for DNNs cannot exist. Consequently, they derive local bounds, assuming that network parameters $\Theta$ stay within a bounded set $\Omega$ (a common scenario in practice due to weight clipping or $L_2$ regularization).
  • Controlled ODE Framework: A major contribution is generalizing the results to "continuously deep" neural networks. By representing a network as a solution to a controlled ordinary differential equation (ODE), they provide a unified theory that covers standard DNNs, Neural ODEs, and even certain types of Recurrent Neural Networks (RNNs) and Stochastic Differential Equations (SDEs).
  • Norm Choice: They utilize the maximum norm ($\infty$-norm) for parameters, which simplifies the optimization problem compared to the standard Frobenius norm while remaining mathematically equivalent in finite dimensions.

Datasets

While primarily a theoretical paper, the authors perform an empirical analysis to validate their findings using the MNIST handwritten digit database. They trained feed-forward networks of varying depths to observe how training dynamics align with their derived bounds.

Key Insights and Ideas

  • Parameters vs. Inputs: The shift in focus from input-Lipschitz to parameter-Lipschitz is the paper's core conceptual contribution, directly impacting how we understand optimization convergence.
  • The Price of Depth: A key finding is that these Lipschitz constants (and their upper bounds) grow exponentially with the number of layers. This provides a theoretical justification for why deeper networks are often significantly harder to optimize.
  • Necessity of Boundedness: The proof that global bounds are impossible highlights why techniques like weight clipping or regularization aren't just good heuristics—they are theoretically necessary for Lipschitz-based convergence guarantees.
  • Unified Continuous Theory: By treating NNs as controlled ODEs, the authors bridge the gap between classical discrete architectures and modern continuous-depth models, providing a single set of tools to analyze both.

Key Results

  • Explicit Bounds: The paper provides concrete (though recursive) formulas for upper bounds on the Lipschitz constants of the network ($L_N$) and the gradient of the loss function ($L_{\nabla \Phi}$).
  • Exponential Growth Confirmed: Corollary 3.2 mathematically shows the exponential dependence on depth. This is empirically supported in Figure 1, which shows that the number of epochs required to reach a specific gradient threshold grows exponentially as layers are added.
Figure 1. Number of epochs needed to achieve a gradient- norm smaller than δ = 0.08 for neural networks with dif- ferent number of layers. Each hidden layer has 40 neurons. We observe an exponential growth, as our theoretical studies imply.
  • Convergence Guarantees: The authors demonstrate how their estimates can be plugged into the AdaGrad optimizer to calculate specific convergence rates, ensuring the algorithm reaches a stationary point in expectation. Figure 2 illustrates the gradient norm evolution during this process for various depths.
Figure 2. Norms of gradients of loss function during training, for neural networks with different number of layers.

Limitations and Future Work

  • Tightness of Bounds: The authors acknowledge that their derived bounds are "crude" and can be very large for deep architectures. While theoretically sound for proving convergence, they might be too conservative for setting optimal step sizes in practical, large-scale engineering tasks.
  • Layer Types: The current work focuses primarily on fully connected and convolutional layers (which can be represented as fully connected). Extending these rigorous bounds to more complex structures like Attention mechanisms or Batch Normalization remains an open challenge.
  • Numerical Optimization: The authors suggest that numerical methods could be used to solve the complex polynomial optimization problems required to find even tighter bounds, which is a promising direction for future research.

Summary updated

BibTeX
@misc{herrera2020local,
  author = {Calypso Herrera and Florian Krach and Josef Teichmann},
  title = {{Local Lipschitz Bounds of Deep Neural Networks}},
  year = {2020},
  eprint = {2004.13135},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2004.13135},
}
Figure