Double Sampling Randomized Smoothing

Linyi Li, Jiawei Zhang, Tao Xie, Bo Li
6/16/2022
31 citations
cs.LGcs.CRmath.ST

Official code: llylly/DSRS (9 stars, Python, BSD-3-Clause, last commit 2023-05-16).

Abstract

Neural networks (NNs) are known to be vulnerable against adversarial perturbations, and thus there is a line of work aiming to provide robustness certification for NNs, such as randomized smoothing, which samples smoothing noises from a certain distribution to certify the robustness for a smoothed classifier. However, as shown by previous work, the certified robust radius in randomized smoothing suffers from scaling to large datasets ("curse of dimensionality").

Show full abstract

To overcome this hurdle, we propose a Double Sampling Randomized Smoothing (DSRS) framework, which exploits the sampled probability from an additional smoothing distribution to tighten the robustness certification of the previous smoothed classifier. Theoretically, under mild assumptions, we prove that DSRS can certify $Θ(\sqrt d)$ robust radius under $\ell_2$ norm where $d$ is the input dimension, implying that DSRS may be able to break the curse of dimensionality of randomized smoothing. We instantiate DSRS for a generalized family of Gaussian smoothing and propose an efficient and sound computing method based on customized dual optimization considering sampling error. Extensive experiments on MNIST, CIFAR-10, and ImageNet verify our theory and show that DSRS certifies larger robust radii than existing baselines consistently under different settings. Code is available at https://github.com/llylly/DSRS.

View on arXivView PDF

Code Implementations(1)

llylly/DSRSOfficial100%
BSD-3-Clause

Code for Double Sampling Randomized Smoothing [ICML 2022]

92PythonJun 3, 20223 years agoBSD-3-Clause
certificationdeep-learningicml-2022

Similar Papers

Cite this paper

@article{li2022double,
  title  = {Double Sampling Randomized Smoothing},
  author = {Linyi Li and Jiawei Zhang and Tao Xie and Bo Li},
  year   = {2022},
  eprint = {2206.07912},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2206.07912}
}

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

Discussion