Abstract
Estimating the Lipschitz constant of neural networks is critical for certifying robustness against adversarial perturbations. However, existing Semidefinite Programming (SDP) approaches scale poorly with the input dimension of Convolutional Neural Networks (CNNs) due to the need to unroll convolutions into large, sparse matrices. This paper introduces a scalable, dissipativity-based method for estimating the Lipschitz constant of 1D CNNs. By modeling convolutional layers as causal dynamical systems in state space and deriving novel constraints for pooling layers, the authors formulate an SDP that decouples computational cost from input signal length. The resulting method provides tight robustness bounds significantly faster than state-of-the-art approaches.
Introduction
In safety-critical machine learning applications, such as medical signal processing or autonomous control, neural networks must be robust against small input perturbations. The Lipschitz constant serves as a fundamental metric for this robustness, providing a strict upper bound on how much a network's output can change relative to a change in its input.
Despite its importance, accurately calculating the Lipschitz constant for deep networks is a significant challenge. While recent SDP-based methods like LipSDP offer tight estimates, they struggle with the architectural structure of CNNs. Standard approaches unroll convolutions into massive "Toeplitz matrices," causing computational overhead to explode as the input signal length increases. This paper addresses this scalability bottleneck by leveraging robust control theory to analyze CNNs.
Methods
The proposed framework views a 1D CNN as a cascaded interconnection of dynamical systems. The methodology is built upon three primary innovations:
State-Space Representation of Convolutions
Instead of the traditional matrix unrolling, the authors model 1D convolutions as Finite Impulse Response (FIR) filters represented as causal dynamical systems in state space. This shift is pivotal: it ensures the mathematical description of the layer depends only on the kernel size and the number of channels, making the analysis invariant to the length of the input signal.
Native Constraints for Pooling Layers
Previous verification methods often struggled with pooling operations, either ignoring them or treating average pooling as inefficient linear layers. This work derives novel Incremental Quadratic Constraints (IQCs) to natively bound both average and max pooling. While average pooling is bounded using full multiplier matrices, max pooling—a nonlinear operation—is handled via diagonal multiplier matrices to maintain mathematical validity.
Layer-wise Dissipativity
Each component of the network—convolutional, pooling, fully connected, and activation layers—is treated as an energy-dissipating system. By using IQCs to capture the slope restrictions of activation functions (like ReLU) and the behavior of pooling, the authors stitch these properties into a single block-tridiagonal SDP. This program outputs a certified upper bound on the entire network's Lipschitz constant.
Results and Evaluation
The algorithm was evaluated using randomly generated 1D CNN architectures with varying depths, channel sizes, and input dimensions. The primary focus was benchmarking computation time and the tightness of the resulting Lipschitz bounds.
Performance and Scalability
The proposed method demonstrates massive speedups compared to existing state-of-the-art SDP methods (such as LipSDP-Neuron and LipSDP-Layer). For fully convolutional networks, the computational advantage becomes apparent as soon as the input dimension exceeds 15. Because the cost does not scale with input length, the method successfully analyzes deep CNNs that cause traditional Toeplitz-based methods to run out of memory.
Bound Tightness
The computed Lipschitz bounds are significantly more accurate than the "trivial" approach of multiplying the spectral norms of individual weight matrices. While LipSDP can produce slightly tighter bounds for very small networks due to more flexible parameterization, the proposed method offers a superior trade-off between accuracy and scalability for realistic network sizes.
Discussion and Conclusion
This research highlights that control theory maps effectively to deep learning verification. Treating feed-forward networks as dynamical systems allows for the application of optimized mathematical tools like dissipativity theory.
Limitations and Future Work
Despite its strengths, the method has some limitations. The parameterization used to reduce decision variables can lead to slightly looser bounds in fully connected networks compared to LipSDP. Additionally, the diagonal multiplier restriction for max pooling results in some information loss regarding the "worst-case direction" of inputs.
Currently, the framework is specialized for 1D convolutions, which are highly relevant for audio and medical time-series data. Future work aims to extend this approach to 2D convolutions, enabling the same high-scalability verification for standard image-based CNNs.
Summary updated