Abstract
In this work, we propose a dissipativity-based method for Lipschitz constant estimation of 1D convolutional neural networks (CNNs). In particular, we analyze the dissipativity properties of convolutional, pooling, and fully connected layers making use of incremental quadratic constraints for nonlinear activation functions and pooling operations. The Lipschitz constant of the concatenation of these mappings is then estimated by solving a semidefinite program which we derive from dissipativity theory. To make our method as efficient as possible, we exploit the structure of convolutional layers by realizing these finite impulse response filters as causal dynamical systems in state space and carrying out the dissipativity analysis for the state space realizations. The examples we provide show that our Lipschitz bounds are advantageous in terms of accuracy and scalability.
Introduction
The Lipschitz constant of a neural network is a fundamental measure of its robustness, representing the maximum possible change in output relative to a change in input. A small Lipschitz constant indicates a stable network that is less likely to be fooled by small perturbations or adversarial attacks. However, calculating the exact Lipschitz constant for deep networks is an NP-hard problem.
Existing high-quality estimation methods, such as those based on Semidefinite Programming (SDP), often struggle with CNNs. These methods typically convert convolutional layers into massive, redundant "Toeplitz" matrices to treat them like standard fully connected layers. This approach leads to a computational explosion: as the input signal grows longer, the matrices expand, and solvers become prohibitively slow. Furthermore, standard methods often ignore or poorly approximate pooling layers, which are staple components of CNN architectures.
Methodology
This research moves away from the "giant matrix" approach and instead draws from control theory to treat the network as a sequence of dynamical systems. The architecture analyzed typically includes alternating layers of convolution, activation, and pooling, as shown below.
State-Space Realization
A key innovation is recognizing that a 1D convolution is essentially a causal, finite impulse response (FIR) filter. By representing these filters as dynamical systems in state space, the complexity of the analysis becomes independent of the input signal's length. It only scales with the number of channels and the kernel size. This allows the use of Kalman-Yakubovich-Popov (KYP) lemma logic to check system properties without unrolling the system over time.
Dissipativity and Quadratic Constraints
The authors use "incremental dissipativity" to characterize the input-output behavior of each layer, searching for a "storage function" that describes how signal perturbations move through the network. To handle non-linearities, the framework derives new incremental quadratic constraints (QCs) for both activation functions (like ReLU) and pooling operations (average and max pooling). This formalization allows pooling layers to be rigorously included in the SDP, making the resulting Lipschitz bound more realistic for actual CNN architectures.
Layer-wise LMIs
Instead of solving one massive Linear Matrix Inequality (LMI), the problem is broken down into smaller, layer-wise LMIs. These are then combined into a single, efficient Semidefinite Program (SDP) to find the global Lipschitz bound.
Results
The method was evaluated using synthetic 1D CNNs with varying channel dimensions and input dimensions ranging from 1 to 60.
- Superior Scalability: In tests on fully convolutional networks, the proposed method outperformed existing state-of-the-art tools like LipSDP-Layer once the input dimension exceeded 15. While other methods saw exponential increases in computation time, this method's cost remained relatively flat.
- Tight Bounds: The method provides much tighter upper bounds than the trivial method of simply multiplying the spectral norms of each layer's weights.
- Accuracy vs. Speed: While slightly less accurate than the most computationally expensive "neuron-wise" SDP methods, it offers a significantly better trade-off for practical, large-scale networks where those methods would fail to run.
Conclusion and Future Work
This work introduces a highly scalable method for estimating the Lipschitz constant of 1D CNNs by treating convolutional layers as dynamical systems. While currently designed for 1D signals (like audio or sensor data), the authors acknowledge that the most impactful next step is extending this state-space approach to 2D convolutions used in image processing. Additionally, improving the tightness of the max-pooling QC remains an open challenge for future research.
Summary updated