Randomized Smoothing of All Shapes and Sizes

Greg Yang, Tony Duan, J. Edward Hu, Hadi Salman, Ilya Razenshteyn +1 more
2/19/2020
cs.LGcs.CVcs.NE

Official code: tonyduan/rs4a (52 stars, Jupyter Notebook, last commit 2020-07-23).

Abstract

Randomized smoothing is the current state-of-the-art defense with provable robustness against $\ell_2$ adversarial attacks. Many works have devised new randomized smoothing schemes for other metrics, such as $\ell_1$ or $\ell_\infty$; however, substantial effort was needed to derive such new guarantees.

Show full abstract

This begs the question: can we find a general theory for randomized smoothing? We propose a novel framework for devising and analyzing randomized smoothing schemes, and validate its effectiveness in practice. Our theoretical contributions are: (1) we show that for an appropriate notion of "optimal", the optimal smoothing distributions for any "nice" norms have level sets given by the norm's *Wulff Crystal*; (2) we propose two novel and complementary methods for deriving provably robust radii for any smoothing distribution; and, (3) we show fundamental limits to current randomized smoothing techniques via the theory of *Banach space cotypes*. By combining (1) and (2), we significantly improve the state-of-the-art certified accuracy in $\ell_1$ on standard datasets. Meanwhile, we show using (3) that with only label statistics under random input perturbations, randomized smoothing cannot achieve nontrivial certified accuracy against perturbations of $\ell_p$-norm $Ω(\min(1, d^{\frac{1}{p} - \frac{1}{2}}))$, when the input dimension $d$ is large. We provide code in github.com/tonyduan/rs4a.

View on arXivView PDF

Code Implementations(1)

tonyduan/rs4aOfficial100%

Randomized Smoothing of All Shapes and Sizes (ICML 2020).

526Jupyter Notebook, PythonMar 2, 20206 years ago
adversarial-examplesmachine-learningrandomized-smoothingrobust-machine-learning

Similar Papers

Cite this paper

@article{yang2020randomized,
  title  = {Randomized Smoothing of All Shapes and Sizes},
  author = {Greg Yang and Tony Duan and J. Edward Hu and Hadi Salman and Ilya Razenshteyn and Jerry Li},
  year   = {2020},
  eprint = {2002.08118},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2002.08118}
}

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

Discussion