Once-for-All Adversarial Training: In-Situ Tradeoff between Robustness and Accuracy for Free

Haotao Wang, Tianlong Chen, Shupeng Gui, Ting-Kuei Hu, Ji Liu +1 more
10/22/2020
cs.CVcs.LG

Official code: VITA-Group/Once-for-All-Adversarial-Training (44 stars, Python, MIT, last commit 2021-12-30).

Abstract

Adversarial training and its many variants substantially improve deep network robustness, yet at the cost of compromising standard accuracy. Moreover, the training process is heavy and hence it becomes impractical to thoroughly explore the trade-off between accuracy and robustness.

Show full abstract

This paper asks this new question: how to quickly calibrate a trained model in-situ, to examine the achievable trade-offs between its standard and robust accuracies, without (re-)training it many times? Our proposed framework, Once-for-all Adversarial Training (OAT), is built on an innovative model-conditional training framework, with a controlling hyper-parameter as the input. The trained model could be adjusted among different standard and robust accuracies "for free" at testing time. As an important knob, we exploit dual batch normalization to separate standard and adversarial feature statistics, so that they can be learned in one model without degrading performance. We further extend OAT to a Once-for-all Adversarial Training and Slimming (OATS) framework, that allows for the joint trade-off among accuracy, robustness and runtime efficiency. Experiments show that, without any re-training nor ensembling, OAT/OATS achieve similar or even superior performance compared to dedicatedly trained models at various configurations. Our codes and pretrained models are available at: https://github.com/VITA-Group/Once-for-All-Adversarial-Training.

View on arXivView PDF

Code Implementations(1)

MIT

[NeurIPS 2020] "Once-for-All Adversarial Training: In-Situ Tradeoff between Robustness and Accuracy for Free" by Haotao Wang*, Tianlong Chen*, Shupeng Gui, Ting-Kuei Hu, Ji Liu, and Zhangyang Wang

4410PythonSep 25, 20204 years agoMIT

Similar Papers

Cite this paper

@article{wang2020onceforall,
  title  = {Once-for-All Adversarial Training: In-Situ Tradeoff between Robustness and Accuracy for Free},
  author = {Haotao Wang and Tianlong Chen and Shupeng Gui and Ting-Kuei Hu and Ji Liu and Zhangyang Wang},
  year   = {2020},
  eprint = {2010.11828},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2010.11828}
}

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

Discussion