PatchCleanser: Certifiably Robust Defense against Adversarial Patches for Any Image Classifier

Chong Xiang, Saeed Mahloujifar, Prateek Mittal
8/20/2021
cs.CVcs.CR

Official code: inspire-group/PatchCleanser (47 stars, Python, MIT, last commit 2023-05-17).

Abstract

The adversarial patch attack against image classification models aims to inject adversarially crafted pixels within a restricted image region (i.e., a patch) for inducing model misclassification. This attack can be realized in the physical world by printing and attaching the patch to the victim object; thus, it imposes a real-world threat to computer vision systems.

Show full abstract

To counter this threat, we design PatchCleanser as a certifiably robust defense against adversarial patches. In PatchCleanser, we perform two rounds of pixel masking on the input image to neutralize the effect of the adversarial patch. This image-space operation makes PatchCleanser compatible with any state-of-the-art image classifier for achieving high accuracy. Furthermore, we can prove that PatchCleanser will always predict the correct class labels on certain images against any adaptive white-box attacker within our threat model, achieving certified robustness. We extensively evaluate PatchCleanser on the ImageNet, ImageNette, CIFAR-10, CIFAR-100, SVHN, and Flowers-102 datasets and demonstrate that our defense achieves similar clean accuracy as state-of-the-art classification models and also significantly improves certified robustness from prior works. Remarkably, PatchCleanser achieves 83.9% top-1 clean accuracy and 62.1% top-1 certified robust accuracy against a 2%-pixel square patch anywhere on the image for the 1000-class ImageNet dataset.

View on arXivView PDF

Code Implementations(1)

MIT

Code for "PatchCleanser: Certifiably Robust Defense against Adversarial Patches for Any Image Classifier"

476Python, ShellAug 23, 20213 years agoMIT

Similar Papers

Cite this paper

@article{xiang2021patchcleanser,
  title  = {PatchCleanser: Certifiably Robust Defense against Adversarial Patches for Any Image Classifier},
  author = {Chong Xiang and Saeed Mahloujifar and Prateek Mittal},
  year   = {2021},
  eprint = {2108.09135},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2108.09135}
}

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/2108.09135.svg)](https://codeofpaper.com/paper/2108.09135)

Discussion