# PatchGuard: A Provably Robust Defense against Adversarial Patches via Small Receptive Fields and Masking

Source: [PatchGuard: A Provably Robust Defense against Adversarial Patches via Small Receptive Fields and Masking](<https://www.sota2.com/research/paper/68fa69b11e209131cea23729>)

Collection index: [llms.txt](<https://www.sota2.com/research/llms.txt>)

Data updated: 2025-10-25T23:05:39.232Z

Authors: Chong Xiang, Arjun Nitin Bhagoji, Vikash Sehwag, Prateek Mittal

Published: 2020-05-17T03:38:34.000Z

## Abstract

Localized adversarial patches aim to induce misclassification in machine learning models by arbitrarily modifying pixels within a restricted region of an image. Such attacks can be realized in the physical world by attaching the adversarial patch to the object to be misclassified, and defending against such attacks is an unsolved/open problem. In this paper, we propose a general defense framework called PatchGuard that can achieve high provable robustness while maintaining high clean accuracy against localized adversarial patches. The cornerstone of PatchGuard involves the use of CNNs with small receptive fields to impose a bound on the number of features corrupted by an adversarial patch. Given a bounded number of corrupted features, the problem of designing an adversarial patch defense reduces to that of designing a secure feature aggregation mechanism. Towards this end, we present our robust masking defense that robustly detects and masks corrupted features to recover the correct prediction. Notably, we can prove the robustness of our defense against any adversary within our threat model. Our extensive evaluation on ImageNet, ImageNette (a 10-class subset of ImageNet), and CIFAR-10 datasets demonstrates that our defense achieves state-of-the-art performance in terms of both provable robust accuracy and clean accuracy.

## Recorded benchmark results

A research result applies to its stated dataset, split, metric and evaluation configuration. Compare like-for-like settings, preserve the metric's unit and direction, and distinguish paper-reported results from independent reproduction. The best result recorded here is not a claim of exhaustive, current global coverage.

- [Image Classification on ILSVRC 2012 (test) with Certified Accuracy](<https://www.sota2.com/research/sota/image-classification-on-ilsvrc-2012-test-with-certified-accuracy.md>): Image Classification; ILSVRC 2012 (test); Clean Accuracy: 55.1.

- [Image Classification on CIFAR10 (test) (Clean & Certified Accuracy)](<https://www.sota2.com/research/sota/image-classification-on-cifar10-test-clean-and-certified-accuracy.md>): Image Classification; CIFAR10 (test); Clean Accuracy: 84.7.

- [Image Classification on ImageNet (Robust Accuracy)](<https://www.sota2.com/research/sota/image-classification-on-imagenet-robust-accuracy.md>): Image Classification; ImageNet; Robust Accuracy: 30.96.

## Original sources and implementation

[Original paper](<https://arxiv.org/abs/2005.10884>)

[PDF](<https://arxiv.org/pdf/2005.10884.pdf>)
