Shift Invariance Can Reduce Adversarial Robustness

Songwei Ge, Vasu Singla, Ronen Basri, David Jacobs
3/3/2021
cs.LG

Official code: songweige/shift-invariance-adv-robustness (2 stars, Python, last commit 2021-06-05).

Abstract

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations(1)

20Python, Jupyter NotebookJun 5, 20215 years ago

Similar Papers

Cite this paper

@article{ge2021shift,
  title  = {Shift Invariance Can Reduce Adversarial Robustness},
  author = {Songwei Ge and Vasu Singla and Ronen Basri and David Jacobs},
  year   = {2021},
  eprint = {2103.02695},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2103.02695}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2103.02695.svg)](https://codeofpaper.com/paper/2103.02695)

Discussion