Abstract
Since the Lipschitz properties of convolutional neural networks (CNNs) are widely considered to be related to adversarial robustness, we theoretically characterize the L-1 norm and L-infinity norm of 2D multi-channel convolutional layers and provide efficient methods to compute the exact L-1 norm and L-infinity norm. Based on our theorem, we propose a novel regularization method termed norm decay, which can effectively reduce the norms of convolutional layers and fully-connected layers. Experiments show that norm-regularization methods, including norm decay, weight decay, and singular value clipping, can improve generalization of CNNs. However, they can slightly hurt adversarial robustness. Observing this unexpected phenomenon, we compute the norms of layers in the CNNs trained with three different adversarial training frameworks and surprisingly find that adversarially robust CNNs have comparable or even larger layer norms than their non-adversarially robust counterparts. Furthermore, we prove that under a mild assumption, adversarially robust classifiers can be achieved using neural networks, and an adversarially robust neural network can have an arbitrarily large Lipschitz constant. For this reason, enforcing small norms on CNN layers may be neither necessary nor effective in achieving adversarial robustness. The code is available at https://github.com/youweiliang/norm_robustness.
Introduction
Convolutional Neural Networks (CNNs) are notoriously susceptible to adversarial attacks, where imperceptible perturbations to input data lead to incorrect classifications. A prevailing strategy to mitigate this fragility is to control the network's Lipschitz constant, a measure of the output's sensitivity to input changes. The common assumption is that a smaller Lipschitz constant—achieved by regularizing the norms of individual layers—leads to a smoother, more robust network.
However, calculating the exact Lipschitz constant for convolutional layers is computationally intensive, often deemed intractable. This has led researchers to rely on loose upper bounds or approximations that ignore practical implementation details like padding and strides. This paper addresses these gaps by providing exact formulas for layer norms and challenging the fundamental link between small global norms and adversarial robustness.
Theoretical Characterization of Convolutional Norms
The authors derive exact formulas for the $\ell_1$ and $\ell_\infty$ norms of 2D multi-channel convolutional layers. This characterization is significant because it accounts for the specific spatial and channel-wise interactions inherent in modern CNN architectures.
To facilitate efficient computation, the convolution operation is modeled as a matrix multiplication. The resulting matrix is highly structured, reflecting the sliding-window nature of the kernel across input channels. By leveraging this structure, the authors developed a method to compute exact norms that is up to 14,000 times faster than previous state-of-the-art techniques like power iteration.
Norm Decay and the Regularization Paradox
Building on their theoretical work, the authors introduce Norm Decay, a novel regularization algorithm. Unlike standard weight decay, Norm Decay specifically targets the layer norms. Because the gradients of these norms can be non-smooth during training, the algorithm employs a momentum-based approach to stabilize the optimization process.
Experimental results on the CIFAR-10 dataset across architectures like ResNet-18, VGG-11, SENet-18, and RegNetX-200MF reveal a surprising "Regularization Paradox." While norm-regularization methods (including Norm Decay and weight decay) improve generalization on clean data, they often decrease adversarial robustness. For instance, a standard ResNet-18 model achieved 37.0% robust accuracy, but this dropped to 24.5% when heavy $\ell_1$ norm regularization was applied.
Key Insights: Global vs. Local Smoothness
The discrepancy between theory and practice stems from the distinction between global and local Lipschitz constants. Robustness requires a network to be "flat" and stable in the immediate vicinity of actual data points (local smoothness). It does not strictly require the network to be smooth in empty regions of the high-dimensional input space (global smoothness).
Empirical analysis of state-of-the-art robust models (e.g., those trained with TRADES or PGD-AT) shows that they often possess layer norms that are comparable to, or even larger than, their non-robust counterparts. Furthermore, the authors highlight a "coupling effect" where individual layers interact such that the network's overall Lipschitz constant is significantly smaller than the product of individual layer norms. This suggests that the expressive power provided by larger norms may be necessary for the network to adapt and maintain local smoothness around the data manifold.
Conclusion
This work demonstrates that large layer norms do not inherently compromise adversarial robustness. Enforcing small global norms can be counterproductive, potentially stripping a network of the capacity needed to achieve local stability. Future research should prioritize the development of regularization techniques that specifically target local Lipschitzness, allowing for robust models that do not sacrifice clean accuracy.
Summary updated