Lipschitz Properties for Deep Convolutional Networks

Radu Balan, Maneesh Singh, Dongmian ZouarXiv 2017

Abstract

In this paper we discuss the stability properties of convolutional neural networks. Convolutional neural networks are widely used in machine learning. In classification they are mainly used as feature extractors. Ideally, we expect similar features when the inputs are from the same class. That is, we hope to see a small change in the feature vector with respect to a deformation on the input signal. This can be established mathematically, and the key step is to derive the Lipschitz properties. Further, we establish that the stability results can be extended for more general networks. We give a formula for computing the Lipschitz bound, and compare it with other methods to show it is closer to the optimal value.

Introduction

In the field of deep learning, convolutional neural networks (CNNs) are often viewed as effective but opaque "black boxes." However, for critical applications, understanding the sensitivity of these models to input perturbations—such as minor rotations, noise, or adversarial examples—is essential. This sensitivity is mathematically characterized by the Lipschitz constant, which defines the maximum ratio between the change in output and the change in input. A high Lipschitz constant indicates potential instability, where small input changes lead to drastic output variations.

While previous research, notably by Stéphane Mallat, established stability for specific "scattering networks" using wavelets, these proofs often relied on strict conditions that do not apply to the diverse range of CNN architectures used in modern industry. The work by Balan, Singh, and Zou bridges this gap by providing a rigorous framework for calculating stability bounds across a wider variety of network components, including general filters and complex pooling strategies.

The Architecture of Stability

The authors model a CNN as a multi-stage process consisting of convolution (filtering), detection (non-linear activation), and pooling (aggregation). To ensure stability, they generalize the requirements for these layers.

General structure of a deep convolutional network analyzed for Lipschitz stability.

Instead of restricting filters to wavelets, the framework requires them to form a "semi-discrete Bessel sequence." This broader mathematical category encompasses most filters used in practical deep learning. The core theoretical contribution is the "Product of Layers" rule: the Lipschitz constant of the entire network is essentially the product of the square roots of the "Bessel bounds" of each individual layer. By maintaining each layer's bound near unity, the global stability of the network is preserved.

Handling Non-Lipschitz Activations

A significant finding of this research is that networks can remain stable even when employing non-Lipschitz activations, such as the square function ($| \cdot |^2$), provided the input signals are bounded (e.g., pixel values within a fixed range like 0 to 1).

Network architecture utilizing the square activation function, demonstrating stability under bounded input conditions.

This extension is particularly relevant for gating operations found in Long Short-Term Memory (LSTM) networks and other architectures that utilize pointwise multiplication. While multiplication is not globally Lipschitz, the authors demonstrate that stability holds under realistic constraints on input data norms.

Numerical Validation and Results

The practical utility of the proposed formula is demonstrated through a comparison of different estimation methods for the Lipschitz constant ($\Gamma$) of a 3-layer network. Traditional "naive" methods, which propagate bounds backward through the chain rule, often result in excessively large and uninformative values.

In a numerical simulation, the authors compared three approaches:

  1. Naive Backpropagation: Estimated $\Gamma \approx 98.3$.
  2. The Authors' Formula: Calculated $\Gamma = \sqrt{2} \approx 1.41$.
  3. Brute-Force Simulation: Testing one million random iterations yielded an actual ratio of approximately $1.19$.

The authors' method provided a bound nearly two orders of magnitude tighter than the naive approach, closely approximating the "real" simulated value. This suggests that their mathematical framework captures the intrinsic stability of the network far more accurately than standard tools.

Conclusion

By extending stability theory to include $p$-norm aggregation and gating mechanisms, this research provides a mathematical recipe for ensuring deep networks remain robust. While the current framework focuses on finite-depth networks and bounded inputs, it offers a significant step toward moving deep learning away from "black box" heuristics and toward theoretically grounded, stable architectures. Future work may further refine these bounds to reach the optimal Lipschitz constant for even more complex signal processing tasks.

Summary updated

BibTeX
@misc{balan2017lipschitz,
  author = {Radu Balan and Maneesh Singh and Dongmian Zou},
  title = {{Lipschitz Properties for Deep Convolutional Networks}},
  year = {2017},
  eprint = {1701.05217},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1701.05217},
}
Figure