Randomized Adversarial Training via Taylor Expansion

Gaojie Jin, Xinping Yi, Dengyu Wu, Ronghui Mu, Xiaowei Huang
3/19/2023
cs.LGcs.AI

Official code: Alexkael/Randomized-Adversarial-Training (31 stars, last commit 2024-05-30).

Abstract

In recent years, there has been an explosion of research into developing more robust deep neural networks against adversarial examples. Adversarial training appears as one of the most successful methods. To deal with both the robustness against adversarial examples and the accuracy over clean examples, many works develop enhanced adversarial training methods to achieve various trade-offs between them. Leveraging over the studies that smoothed update on weights during training may help find flat minima and improve generalization, we suggest reconciling the robustness-accuracy trade-off from another perspective, i.e., by adding random noise into deterministic weights. The randomized weights enable our design of a novel adversarial training method via Taylor expansion of a small Gaussian noise, and we show that the new adversarial training method can flatten loss landscape and find flat minima. With PGD, CW, and Auto Attacks, an extensive set of experiments demonstrate that our method enhances the state-of-the-art adversarial training methods, boosting both robustness and clean accuracy. The code is available at https://github.com/Alexkael/Randomized-Adversarial-Training.

View on arXivView PDF

Code Implementations(1)

313PythonMar 15, 20232 years ago

Similar Papers

Cite this paper

@article{jin2023randomized,
  title  = {Randomized Adversarial Training via Taylor Expansion},
  author = {Gaojie Jin and Xinping Yi and Dengyu Wu and Ronghui Mu and Xiaowei Huang},
  year   = {2023},
  eprint = {2303.10653},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2303.10653v1},
  journal = {CVPR 2023 2023}
}

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

Discussion