Certified Robustness for Top-k Predictions against Adversarial Perturbations via Randomized Smoothing

Jinyuan Jia, Xiaoyu Cao, Binghui Wang, Neil Zhenqiang Gong
12/20/2019
cs.LGcs.CRstat.ML

Official code: jinyuan-jia/Certify_Topk (11 stars, Python, last commit 2020-01-02).

Abstract

It is well-known that classifiers are vulnerable to adversarial perturbations. To defend against adversarial perturbations, various certified robustness results have been derived.

Show full abstract

However, existing certified robustnesses are limited to top-1 predictions. In many real-world applications, top-$k$ predictions are more relevant. In this work, we aim to derive certified robustness for top-$k$ predictions. In particular, our certified robustness is based on randomized smoothing, which turns any classifier to a new classifier via adding noise to an input example. We adopt randomized smoothing because it is scalable to large-scale neural networks and applicable to any classifier. We derive a tight robustness in $\ell_2$ norm for top-$k$ predictions when using randomized smoothing with Gaussian noise. We find that generalizing the certified robustness from top-1 to top-$k$ predictions faces significant technical challenges. We also empirically evaluate our method on CIFAR10 and ImageNet. For example, our method can obtain an ImageNet classifier with a certified top-5 accuracy of 62.8\% when the $\ell_2$-norms of the adversarial perturbations are less than 0.5 (=127/255). Our code is publicly available at: \url{https://github.com/jjy1994/Certify_Topk}.

View on arXivView PDF

Code Implementations(1)

112PythonDec 20, 20196 years ago

Similar Papers

Cite this paper

@article{jia2019certified,
  title  = {Certified Robustness for Top-k Predictions against Adversarial Perturbations via Randomized Smoothing},
  author = {Jinyuan Jia and Xiaoyu Cao and Binghui Wang and Neil Zhenqiang Gong},
  year   = {2019},
  eprint = {1912.09899},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1912.09899}
}

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

Discussion