Certified Patch Robustness via Smoothed Vision Transformers

Hadi Salman, Saachi Jain, Eric Wong, Aleksander Mądry
10/11/2021
cs.CVcs.AIcs.LG
transformer-attention

Official code: MadryLab/smoothed-vit (42 stars, Python, MIT, last commit 2021-12-17).

Abstract

Certified patch defenses can guarantee robustness of an image classifier to arbitrary changes within a bounded contiguous region. But, currently, this robustness comes at a cost of degraded standard accuracies and slower inference times.

Show full abstract

We demonstrate how using vision transformers enables significantly better certified patch robustness that is also more computationally efficient and does not incur a substantial drop in standard accuracy. These improvements stem from the inherent ability of the vision transformer to gracefully handle largely masked images. Our code is available at https://github.com/MadryLab/smoothed-vit.

View on arXivView PDF

Code Implementations(1)

MIT

Certified Patch Robustness via Smoothed Vision Transformers

424PythonOct 7, 20214 years agoMIT

Similar Papers

Cite this paper

@article{salman2021certified,
  title  = {Certified Patch Robustness via Smoothed Vision Transformers},
  author = {Hadi Salman and Saachi Jain and Eric Wong and Aleksander Mądry},
  year   = {2021},
  eprint = {2110.07719},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2110.07719}
}

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

Discussion