Understanding Adversarial Robustness from Feature Maps of Convolutional Layers
Cong Xu, Wei Zhang, Jun Wang, Min Yang
TL;DR
The paper tackles adversarial robustness by linking it to the anti-perturbation ability encoded in convolutional feature maps. It shows theoretically that larger feature maps before average pooling boost robustness, while max pooling can undermine it, and proposes two simple, practical modifications—upsampling inputs and shrinking downsampling strides—to enlarge feature maps. Empirically, these changes improve both natural accuracy and robustness across a range of CNNs and ViTs, and are complementary to existing defense methods. The work offers a new architectural perspective on robustness, suggesting that careful feature-map design can yield robust and more capable models with minimal modification effort.
Abstract
The adversarial robustness of a neural network mainly relies on two factors: model capacity and anti-perturbation ability. In this paper, we study the anti-perturbation ability of the network from the feature maps of convolutional layers. Our theoretical analysis discovers that larger convolutional feature maps before average pooling can contribute to better resistance to perturbations, but the conclusion is not true for max pooling. It brings new inspiration to the design of robust neural networks and urges us to apply these findings to improve existing architectures. The proposed modifications are very simple and only require upsampling the inputs or slightly modifying the stride configurations of downsampling operators. We verify our approaches on several benchmark neural network architectures, including AlexNet, VGG, RestNet18, and PreActResNet18. Non-trivial improvements in terms of both natural accuracy and adversarial robustness can be achieved under various attack and defense mechanisms. The code is available at \url{https://github.com/MTandHJ/rcm}.
