Why Does Little Robustness Help? A Further Step Towards Understanding Adversarial Transferability

Yechao Zhang, Shengshan Hu, Leo Yu Zhang, Junyu Shi, Minghui Li +3 more
7/15/2023
45 citations
cs.LGcs.CRcs.CV

Official code: CGCL-codes/TransferAttackSurrogates (20 stars, Python, MIT, last commit 2024-08-22).

Abstract

Adversarial examples (AEs) for DNNs have been shown to be transferable: AEs that successfully fool white-box surrogate models can also deceive other black-box models with different architectures. Although a bunch of empirical studies have provided guidance on generating highly transferable AEs, many of these findings lack explanations and even lead to inconsistent advice.

Show full abstract

In this paper, we take a further step towards understanding adversarial transferability, with a particular focus on surrogate aspects. Starting from the intriguing little robustness phenomenon, where models adversarially trained with mildly perturbed adversarial samples can serve as better surrogates, we attribute it to a trade-off between two predominant factors: model smoothness and gradient similarity. Our investigations focus on their joint effects, rather than their separate correlations with transferability. Through a series of theoretical and empirical analyses, we conjecture that the data distribution shift in adversarial training explains the degradation of gradient similarity. Building on these insights, we explore the impacts of data augmentation and gradient regularization on transferability and identify that the trade-off generally exists in the various training mechanisms, thus building a comprehensive blueprint for the regulation mechanism behind transferability. Finally, we provide a general route for constructing better surrogates to boost transferability which optimizes both model smoothness and gradient similarity simultaneously, e.g., the combination of input gradient regularization and sharpness-aware minimization (SAM), validated by extensive experiments. In summary, we call for attention to the united impacts of these two factors for launching effective transfer attacks, rather than optimizing one while ignoring the other, and emphasize the crucial role of manipulating surrogate models.

View on arXivView PDF

Code Implementations(1)

MIT

The official code of IEEE S&P 2024 paper "Why Does Little Robustness Help? A Further Step Towards Understanding Adversarial Transferability". We study how to train surrogates model for boosting transfer attack.

202Python, ShellAug 15, 20232 years agoMIT
adversarial-attacksadversarial-trainingblack-box-attackdata-augmentationdistribution-shift+3 more

Similar Papers

Cite this paper

@article{zhang2023does,
  title  = {Why Does Little Robustness Help? A Further Step Towards Understanding Adversarial Transferability},
  author = {Yechao Zhang and Shengshan Hu and Leo Yu Zhang and Junyu Shi and Minghui Li and Xiaogeng Liu and Wei Wan and Hai Jin},
  year   = {2023},
  eprint = {2307.07873},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2307.07873v8}
}

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

Discussion