Revisiting and Advancing Fast Adversarial Training Through The Lens of Bi-Level Optimization

Yihua Zhang, Guanhua Zhang, Prashant Khanduri, Mingyi Hong, Shiyu Chang +1 more
12/23/2021
119 citations
cs.LG

Official code: OPTML-Group/Fast-BAT (64 stars, Shell, last commit 2022-10-25). 1 more implementation below.

Abstract

Adversarial training (AT) is a widely recognized defense mechanism to gain the robustness of deep neural networks against adversarial attacks. It is built on min-max optimization (MMO), where the minimizer (i.e., defender) seeks a robust model to minimize the worst-case training loss in the presence of adversarial examples crafted by the maximizer (i.e., attacker).

Show full abstract

However, the conventional MMO method makes AT hard to scale. Thus, Fast-AT (Wong et al., 2020) and other recent algorithms attempt to simplify MMO by replacing its maximization step with the single gradient sign-based attack generation step. Although easy to implement, Fast-AT lacks theoretical guarantees, and its empirical performance is unsatisfactory due to the issue of robust catastrophic overfitting when training with strong adversaries. In this paper, we advance Fast-AT from the fresh perspective of bi-level optimization (BLO). We first show that the commonly-used Fast-AT is equivalent to using a stochastic gradient algorithm to solve a linearized BLO problem involving a sign operation. However, the discrete nature of the sign operation makes it difficult to understand the algorithm performance. Inspired by BLO, we design and analyze a new set of robust training algorithms termed Fast Bi-level AT (Fast-BAT), which effectively defends sign-based projected gradient descent (PGD) attacks without using any gradient sign method or explicit robust regularization. In practice, we show our method yields substantial robustness improvements over baselines across multiple models and datasets. Codes are available at https://github.com/OPTML-Group/Fast-BAT.

View on arXivView PDF

Code Implementations(2)

Code implementations of this paper
RepositoryTypeStarsLanguageLicenseLast commit
OPTML-Group/Fast-BATOfficial64Shell–2022-10-25
NormalUhr/FastBATCommunity6Shell–2022-04-07

[ICML22] "Revisiting and Advancing Fast Adversarial Training through the Lens of Bi-level Optimization" by Yihua Zhang*, Guanhua Zhang*, Prashant Khanduri, Mingyi Hong, Shiyu Chang, and Sijia Liu

647Shell, PythonMar 4, 20224 years ago
NormalUhr/FastBATCommunity100%

This is the official repository for paper "Revisiting and Advancing Fast Adversarial Training Through The Lens of Bi-Level Optimization".

61Shell, PythonDec 24, 20214 years ago

Similar Papers

Cite this paper

@article{zhang2021revisiting,
  title  = {Revisiting and Advancing Fast Adversarial Training Through The Lens of Bi-Level Optimization},
  author = {Yihua Zhang and Guanhua Zhang and Prashant Khanduri and Mingyi Hong and Shiyu Chang and Sijia Liu},
  year   = {2021},
  eprint = {2112.12376},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2112.12376}
}

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

Discussion