Stability and Generalization in Free Adversarial Training

Xiwei Cheng, Kexin Fu, Farzan Farnia
4/13/2024
cs.LGstat.ML

Official code: Xiwei-Cheng/Stability_FreeAT (3 stars, last commit 2024-04-08).

Abstract

While adversarial training methods have significantly improved the robustness of deep neural networks against norm-bounded adversarial perturbations, the generalization gap between their performance on training and test data is considerably greater than that of standard empirical risk minimization. Recent studies have aimed to connect the generalization properties of adversarially trained classifiers to the min-max optimization algorithm used in their training. In this work, we analyze the interconnections between generalization and optimization in adversarial training using the algorithmic stability framework. Specifically, our goal is to compare the generalization gap of neural networks trained using the vanilla adversarial training method, which fully optimizes perturbations at every iteration, with the free adversarial training method, which simultaneously optimizes norm-bounded perturbations and classifier parameters. We prove bounds on the generalization error of these methods, indicating that the free adversarial training method may exhibit a lower generalization gap between training and test samples due to its simultaneous min-max optimization of classifier weights and perturbation variables. We conduct several numerical experiments to evaluate the train-to-test generalization gap in vanilla and free adversarial training methods. Our empirical findings also suggest that the free adversarial training method could lead to a smaller generalization gap over a similar number of training iterations. The paper code is available at https://github.com/Xiwei-Cheng/Stability_FreeAT.

View on arXivView PDF

Code Implementations(1)

30PythonApr 8, 20242 years ago

Similar Papers

Cite this paper

@article{cheng2024stability,
  title  = {Stability and Generalization in Free Adversarial Training},
  author = {Xiwei Cheng and Kexin Fu and Farzan Farnia},
  year   = {2024},
  eprint = {2404.08980},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2404.08980v2}
}

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

Discussion