Smooth Adversarial Training

Cihang Xie, Mingxing Tan, Boqing Gong, Alan Yuille, Quoc V. Le
6/25/2020
cs.LGcs.CVcs.NE

Official code: cihangxie/SmoothAdversarialTraining (68 stars, Python, MIT, last commit 2020-11-16).

Abstract

It is commonly believed that networks cannot be both accurate and robust, that gaining robustness means losing accuracy. It is also generally believed that, unless making networks larger, network architectural elements would otherwise matter little in improving adversarial robustness.

Show full abstract

Here we present evidence to challenge these common beliefs by a careful study about adversarial training. Our key observation is that the widely-used ReLU activation function significantly weakens adversarial training due to its non-smooth nature. Hence we propose smooth adversarial training (SAT), in which we replace ReLU with its smooth approximations to strengthen adversarial training. The purpose of smooth activation functions in SAT is to allow it to find harder adversarial examples and compute better gradient updates during adversarial training. Compared to standard adversarial training, SAT improves adversarial robustness for "free", i.e., no drop in accuracy and no increase in computational cost. For example, without introducing additional computations, SAT significantly enhances ResNet-50's robustness from 33.0% to 42.3%, while also improving accuracy by 0.9% on ImageNet. SAT also works well with larger networks: it helps EfficientNet-L1 to achieve 82.2% accuracy and 58.6% robustness on ImageNet, outperforming the previous state-of-the-art defense by 9.5% for accuracy and 11.6% for robustness. Models are available at https://github.com/cihangxie/SmoothAdversarialTraining.

View on arXivView PDF

Code Implementations(1)

MIT

Smooth Adversarial Training

685Python, Jupyter NotebookSep 25, 20206 years agoMIT

Similar Papers

Cite this paper

@article{xie2020smooth,
  title  = {Smooth Adversarial Training},
  author = {Cihang Xie and Mingxing Tan and Boqing Gong and Alan Yuille and Quoc V. Le},
  year   = {2020},
  eprint = {2006.14536},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2006.14536}
}

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

Discussion