Dynamic Efficient Adversarial Training Guided by Gradient Magnitude

Fu Wang, Yanghao Zhang, Yanbin Zheng, Wenjie Ruan
3/4/2021
cs.LGcs.CR

Official code: TrustAI/DEAT (2 stars, Python, MIT, last commit 2022-11-27).

Abstract

Adversarial training is an effective but time-consuming way to train robust deep neural networks that can withstand strong adversarial attacks. As a response to its inefficiency, we propose Dynamic Efficient Adversarial Training (DEAT), which gradually increases the adversarial iteration during training.

Show full abstract

We demonstrate that the gradient's magnitude correlates with the curvature of the trained model's loss landscape, allowing it to reflect the effect of adversarial training. Therefore, based on the magnitude of the gradient, we propose a general acceleration strategy, M+ acceleration, which enables an automatic and highly effective method of adjusting the training procedure. M+ acceleration is computationally efficient and easy to implement. It is suited for DEAT and compatible with the majority of existing adversarial training techniques. Extensive experiments have been done on CIFAR-10 and ImageNet datasets with various training environments. The results show that the proposed M+ acceleration significantly improves the training efficiency of existing adversarial training methods while achieving similar robustness performance. This demonstrates that the strategy is highly adaptive and offers a valuable solution for automatic adversarial training.

View on arXivView PDF

Code Implementations(1)

TrustAI/DEATOfficial100%
MIT

Dynamic Efficient Adversarial Training Guided by Gradient Magnitude - TEA@NeurIPS 2022

20Python, ShellNov 18, 20214 years agoMIT

Similar Papers

Cite this paper

@article{wang2021dynamic,
  title  = {Dynamic Efficient Adversarial Training Guided by Gradient Magnitude},
  author = {Fu Wang and Yanghao Zhang and Yanbin Zheng and Wenjie Ruan},
  year   = {2021},
  eprint = {2103.03076},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2103.03076}
}

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

Discussion