Stability Analysis and Generalization Bounds of Adversarial Training

Jiancong Xiao, Yanbo Fan, Ruoyu Sun, Jue Wang, Zhi-Quan Luo
10/3/2022
cs.LG

Official code: JiancongXiao/Stability-of-Adversarial-Training (2 stars, last commit 2023-07-01).

Abstract

In adversarial machine learning, deep neural networks can fit the adversarial examples on the training dataset but have poor generalization ability on the test set. This phenomenon is called robust overfitting, and it can be observed when adversarially training neural nets on common datasets, including SVHN, CIFAR-10, CIFAR-100, and ImageNet.

Show full abstract

In this paper, we study the robust overfitting issue of adversarial training by using tools from uniform stability. One major challenge is that the outer function (as a maximization of the inner function) is nonsmooth, so the standard technique (e.g., hardt et al., 2016) cannot be applied. Our approach is to consider $η$-approximate smoothness: we show that the outer function satisfies this modified smoothness assumption with $η$ being a constant related to the adversarial perturbation $ε$. Based on this, we derive stability-based generalization bounds for stochastic gradient descent (SGD) on the general class of $η$-approximate smooth functions, which covers the adversarial loss. Our results suggest that robust test accuracy decreases in $ε$ when $T$ is large, with a speed between $Ω(ε\sqrt{T})$ and $\mathcal{O}(εT)$. This phenomenon is also observed in practice. Additionally, we show that a few popular techniques for adversarial training (e.g., early stopping, cyclic learning rate, and stochastic weight averaging) are stability-promoting in theory.

View on arXivView PDF

Code Implementations(1)

20Jun 8, 20223 years ago

Similar Papers

Cite this paper

@article{xiao2022stability,
  title  = {Stability Analysis and Generalization Bounds of Adversarial Training},
  author = {Jiancong Xiao and Yanbo Fan and Ruoyu Sun and Jue Wang and Zhi-Quan Luo},
  year   = {2022},
  eprint = {2210.00960},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2210.00960}
}

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

Discussion