Alleviating the Effect of Data Imbalance on Adversarial Training

Guanlin Li, Guowen Xu, Tianwei Zhang
7/14/2023
cs.LGcs.CRcs.CV

Official code: GuanlinLee/REAT (7 stars, MIT, last commit 2024-05-20).

Abstract

In this paper, we study adversarial training on datasets that obey the long-tailed distribution, which is practical but rarely explored in previous works. Compared with conventional adversarial training on balanced datasets, this process falls into the dilemma of generating uneven adversarial examples (AEs) and an unbalanced feature embedding space, causing the resulting model to exhibit low robustness and accuracy on tail data. To combat that, we theoretically analyze the lower bound of the robust risk to train a model on a long-tailed dataset to obtain the key challenges in addressing the aforementioned dilemmas. Based on it, we propose a new adversarial training framework -- Re-balancing Adversarial Training (REAT). This framework consists of two components: (1) a new training strategy inspired by the effective number to guide the model to generate more balanced and informative AEs; (2) a carefully constructed penalty function to force a satisfactory feature space. Evaluation results on different datasets and model structures prove that REAT can effectively enhance the model's robustness and preserve the model's clean accuracy. The code can be found in https://github.com/GuanlinLee/REAT.

View on arXivView PDF

Code Implementations(1)

GuanlinLee/REATOfficial68%
MIT

Adversarial Training Over Long-Tailed Distribution

70PythonJul 14, 20232 years agoMIT

Cite this paper

@article{li2023alleviating,
  title  = {Alleviating the Effect of Data Imbalance on Adversarial Training},
  author = {Guanlin Li and Guowen Xu and Tianwei Zhang},
  year   = {2023},
  eprint = {2307.10205},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2307.10205v2}
}

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

Discussion