[Paper Review] Shift Invariance Can Reduce Adversarial Robustness
This paper demonstrates that shift invariance in convolutional neural networks (CNNs) can reduce adversarial robustness by shrinking the margin between classes to depend only on DC components, leading to significantly smaller adversarial perturbations. Through theoretical analysis and experiments on MNIST, Fashion-MNIST, SVHN, CIFAR-10, and ImageNet, it shows that shift-invariant networks are substantially less robust than fully connected or less invariant architectures, even in real-world settings.
Shift invariance is a critical property of CNNs that improves performance on classification. However, we show that invariance to circular shifts can also lead to greater sensitivity to adversarial attacks. We first characterize the margin between classes when a shift-invariant linear classifier is used. We show that the margin can only depend on the DC component of the signals. Then, using results about infinitely wide networks, we show that in some simple cases, fully connected and shift-invariant neural networks produce linear decision boundaries. Using this, we prove that shift invariance in neural networks produces adversarial examples for the simple case of two classes, each consisting of a single image with a black or white dot on a gray background. This is more than a curiosity; we show empirically that with real datasets and realistic architectures, shift invariance reduces adversarial robustness. Finally, we describe initial experiments using synthetic data to probe the source of this connection.
Motivation & Objective
- To investigate whether shift invariance in CNNs contributes to adversarial vulnerability.
- To theoretically analyze how shift invariance affects the margin in linear classifiers.
- To demonstrate that shift invariance reduces robustness in both simple and real-world neural network architectures.
- To disentangle the effects of increased data dimensionality and reduced margin due to shift invariance on adversarial robustness.
- To provide empirical and synthetic evidence linking shift invariance to decreased robustness in practical deep learning models.
Proposed method
- Theoretical analysis of linear, shift-invariant classifiers shows that the margin depends only on the difference in DC (constant) components of input signals.
- Use of neural tangent kernel (NTK) and convolutional NTK (CNTK) to prove that fully connected and shift-invariant CNNs produce linear decision boundaries in the limit of infinite width.
- Empirical evaluation comparing fully connected and shift-invariant CNNs on MNIST, Fashion-MNIST, SVHN, CIFAR-10, and ImageNet to measure adversarial robustness via $L_2$ distance to adversarial examples.
- Synthetic data experiments with controlled intrinsic dimensionality and margin to isolate the effects of shift invariance on robustness.
- Systematic variation of shift invariance degree in CNNs to observe changes in adversarial robustness.
- Use of DDN attack to generate adversarial examples and measure robustness as the minimal $L_2$ perturbation required to fool the model.
Experimental results
Research questions
- RQ1Does shift invariance in CNNs reduce adversarial robustness, and if so, why?
- RQ2How does shift invariance affect the margin between classes in linear classifiers?
- RQ3Can the reduced robustness in shift-invariant networks be explained by a reduction in the linear margin due to invariance?
- RQ4Does the increase in effective data dimensionality due to shift invariance independently reduce robustness?
- RQ5To what extent does shift invariance degrade robustness in real-world datasets and architectures like ResNet and VGG compared to AlexNet or transformers?
Key findings
- For shift-invariant linear classifiers, the margin depends only on the difference in DC components of the signals, leading to a margin scaling as $1/\sqrt{d}$ with input dimension $d$.
- In a minimal two-class example with a single white or black dot on a gray background, the CNN's adversarial robustness drops to approximately $1/\sqrt{d}$, while the fully connected network remains robust with $L_2$ distance near 1.
- On MNIST and Fashion-MNIST, fully connected networks are significantly more robust than shift-invariant CNNs, with robustness decreasing as shift invariance increases.
- On SVHN, fully connected networks outperform ResNet, suggesting that shift invariance reduces robustness even in standard architectures.
- On CIFAR-10 and ImageNet, ResNet and VGG (highly shift-invariant) show lower robustness than AlexNet, FCNs, and transformer-based models, confirming the trend in real-world settings.
- Synthetic experiments show that robustness decreases when shift invariance increases data dimensionality and reduces margin, but not when margin is preserved, indicating that margin reduction—not just dimensionality—is the key factor.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.