CLIP-Guided Generative Networks for Transferable Targeted Adversarial Attacks

Hao Fang, Jiawei Kong, Bin Chen, Tao Dai, Hao Wu +1 more
7/1/2024
37 citations

Official code: ffhibnese/CGNC_Targeted_Adversarial_Attacks (40 stars, Python, last commit 2025-04-23).

Abstract

Transferable targeted adversarial attacks aim to mislead models into outputting adversary-specified predictions in black-box scenarios. Recent studies have introduced \textit{single-target} generative attacks that train a generator for each target class to generate highly transferable perturbations, resulting in substantial computational overhead when handling multiple classes. \textit{Multi-target} attacks address this by training only one class-conditional generator for multiple classes.

Show full abstract

However, the generator simply uses class labels as conditions, failing to leverage the rich semantic information of the target class. To this end, we design a \textbf{C}LIP-guided \textbf{G}enerative \textbf{N}etwork with \textbf{C}ross-attention modules (CGNC) to enhance multi-target attacks by incorporating textual knowledge of CLIP into the generator. Extensive experiments demonstrate that CGNC yields significant improvements over previous multi-target generative attacks, e.g., a 21.46\% improvement in success rate from ResNet-152 to DenseNet-121. Moreover, we propose a masked fine-tuning mechanism to further strengthen our method in attacking a single class, which surpasses existing single-target methods.

View on arXivView PDF

Code Implementations(1)

[ECCV-2024] Transferable Targeted Adversarial Attack, CLIP models, Generative adversarial network, Multi-target attacks

401PythonJul 12, 20241 years ago

Similar Papers

Cite this paper

@article{fang2024clipguided,
  title  = {CLIP-Guided Generative Networks for Transferable Targeted Adversarial Attacks},
  author = {Hao Fang and Jiawei Kong and Bin Chen and Tao Dai and Hao Wu and Shutao Xia},
  year   = {2024},
  eprint = {2407.10179},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2407.10179},
  journal = {ECCV 2024 2024}
}

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

Discussion