Bag of Tricks for Adversarial Training

Tianyu Pang, Xiao Yang, Yinpeng Dong, Hang Su, Jun Zhu
10/1/2020
319 citations
cs.LGcs.CVstat.ML

Official code: fra31/auto-attack (754 stars, Python, MIT, last commit 2024-05-16). 1 more implementation below.

Abstract

Adversarial training (AT) is one of the most effective strategies for promoting model robustness. However, recent benchmarks show that most of the proposed improvements on AT are less effective than simply early stopping the training procedure.

Show full abstract

This counter-intuitive fact motivates us to investigate the implementation details of tens of AT methods. Surprisingly, we find that the basic settings (e.g., weight decay, training schedule, etc.) used in these methods are highly inconsistent. In this work, we provide comprehensive evaluations on CIFAR-10, focusing on the effects of mostly overlooked training tricks and hyperparameters for adversarially trained models. Our empirical observations suggest that adversarial robustness is much more sensitive to some basic training settings than we thought. For example, a slightly different value of weight decay can reduce the model robust accuracy by more than 7%, which is probable to override the potential promotion induced by the proposed methods. We conclude a baseline training setting and re-implement previous defenses to achieve new state-of-the-art results. These facts also appeal to more concerns on the overlooked confounders when benchmarking defenses.

View on arXivView PDF

Code Implementations(2)

Code implementations of this paper
RepositoryTypeStarsLanguageLicenseLast commit
fra31/auto-attackOfficial754PythonMIT2024-05-16
P2333/Bag-of-Tricks-for-ATOfficial260PythonApache-2.02023-05-25
fra31/auto-attackOfficial100%
MIT

Code relative to "Reliable evaluation of adversarial robustness with an ensemble of diverse parameter-free attacks"

754115PythonFeb 17, 20202 years agoMIT
adversarial-attacksadversarial-defensesadversarial-robustness
Apache-2.0

Empirical tricks for training robust models (ICLR 2021)

26026PythonJun 11, 20203 years agoApache-2.0

Similar Papers

Cite this paper

@article{pang2020tricks,
  title  = {Bag of Tricks for Adversarial Training},
  author = {Tianyu Pang and Xiao Yang and Yinpeng Dong and Hang Su and Jun Zhu},
  year   = {2020},
  eprint = {2010.00467},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2010.00467}
}

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

Discussion