Denoised Smoothing: A Provable Defense for Pretrained Classifiers

Hadi Salman, Mingjie Sun, Greg Yang, Ashish Kapoor, J. Zico Kolter
3/4/2020
cs.LGcs.CRcs.CV

Official code: microsoft/denoised-smoothing (102 stars, MIT, last commit 2021-04-02).

Abstract

We present a method for provably defending any pretrained image classifier against $\ell_p$ adversarial attacks. This method, for instance, allows public vision API providers and users to seamlessly convert pretrained non-robust classification services into provably robust ones. By prepending a custom-trained denoiser to any off-the-shelf image classifier and using randomized smoothing, we effectively create a new classifier that is guaranteed to be $\ell_p$-robust to adversarial examples, without modifying the pretrained classifier. Our approach applies to both the white-box and the black-box settings of the pretrained classifier. We refer to this defense as denoised smoothing, and we demonstrate its effectiveness through extensive experimentation on ImageNet and CIFAR-10. Finally, we use our approach to provably defend the Azure, Google, AWS, and ClarifAI image classification APIs. Our code replicating all the experiments in the paper can be found at: https://github.com/microsoft/denoised-smoothing.

View on arXivView PDF

Code Implementations(1)

MIT

Provably defending pretrained classifiers including the Azure, Google, AWS, and Clarifai APIs

10222Shell, PythonMar 1, 20205 years agoMIT
adversarial-defenseadversarial-examplesadversarial-robustnessaws-rekognitionazure-computer-vision+8 more

Similar Papers

Cite this paper

@article{salman2020denoised,
  title  = {Denoised Smoothing: A Provable Defense for Pretrained Classifiers},
  author = {Hadi Salman and Mingjie Sun and Greg Yang and Ashish Kapoor and J. Zico Kolter},
  year   = {2020},
  eprint = {2003.01908},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2003.01908}
}

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

Discussion