Shape Defense Against Adversarial Attacks

August 31, 2020 ยท Entered Twilight ยท + Add venue

๐ŸŒ… TWILIGHT: Old Age
Predates the code-sharing era โ€” a pioneer of its time

"Last commit was 5.0 years ago (โ‰ฅ5 year threshold)"

Evidence collected by the PWNC Scanner

Repo contents: .gitignore, BDPA-TinyImg.ipynb, BPDA.py, Foreground, LICENSE, README.md, Visualization, config.py, dataset.py, edge_detector.py, edge_or_gray_only_attack.py, fast_adversarial, frosts, helpers, image_transform.py, lib.py, make_imagenet_64_c.py, model.py, pix2pix-pytorch, requirements.txt, robustness-master, run.sh, runs, sample_pgd40_mnist_results, teaser.jpg, test.py, test_noise_robustness.py, train.py, utils.py

Authors Ali Borji arXiv ID 2008.13336 Category cs.CV: Computer Vision Cross-listed cs.AI, cs.LG Citations 1 Repository https://github.com/aliborji/Shapedefense.git} โญ 4 Last Checked 2 months ago
Abstract
Humans rely heavily on shape information to recognize objects. Conversely, convolutional neural networks (CNNs) are biased more towards texture. This is perhaps the main reason why CNNs are vulnerable to adversarial examples. Here, we explore how shape bias can be incorporated into CNNs to improve their robustness. Two algorithms are proposed, based on the observation that edges are invariant to moderate imperceptible perturbations. In the first one, a classifier is adversarially trained on images with the edge map as an additional channel. At inference time, the edge map is recomputed and concatenated to the image. In the second algorithm, a conditional GAN is trained to translate the edge maps, from clean and/or perturbed images, into clean images. Inference is done over the generated image corresponding to the input's edge map. Extensive experiments over 10 datasets demonstrate the effectiveness of the proposed algorithms against FGSM and $\ell_\infty$ PGD-40 attacks. Further, we show that a) edge information can also benefit other adversarial training methods, and b) CNNs trained on edge-augmented inputs are more robust against natural image corruptions such as motion blur, impulse noise and JPEG compression, than CNNs trained solely on RGB images. From a broader perspective, our study suggests that CNNs do not adequately account for image structures that are crucial for robustness. Code is available at:~\url{https://github.com/aliborji/Shapedefense.git}.
Community shame:
Not yet rated
Community Contributions

Found the code? Know the venue? Think something is wrong? Let us know!

๐Ÿ“œ Similar Papers

In the same crypt โ€” Computer Vision