paper-with-me

홈 › Papers

On Improving Adversarial Transferability of Vision Transformers

2021-06-08 · ICLR 2022 4 · Muzammal Naseer, Kanchana Ranasinghe, Salman Khan, Fahad Shahbaz Khan, Fatih Porikli

Vision transformers (ViTs) process input images as sequences of patches via self-attention; a radically different architecture than convolutional neural networks (CNNs). This makes it interesting to study the adversarial feature space of ViT models and their transferability. In particular, we observe that adversarial patterns found via conventional adversarial attacks show very \emph{low} black-box transferability even for large ViT models. We show that this phenomenon is only due to the sub-optimal attack procedures that do not leverage the true representation potential of ViTs. A deep ViT is composed of multiple blocks, with a consistent architecture comprising of self-attention and feed-forward layers, where each block is capable of independently producing a class token. Formulating an attack using only the last class token (conventional approach) does not directly leverage the discriminative information stored in the earlier tokens, leading to poor adversarial transferability of ViTs. Using the compositional nature of ViT models, we enhance transferability of existing attacks by introducing two novel strategies specific to the architecture of ViT models. (i) Self-Ensemble: We propose a method to find multiple discriminative pathways by dissecting a single ViT model into an ensemble of networks. This allows explicitly utilizing class-specific information at each ViT block. (ii) Token Refinement: We then propose to refine the tokens to further enhance the discriminative capacity at each block of ViT. Our token refinement systematically combines the class tokens with structural information preserved within the patch tokens.

📄 PDF Abstract BibTeX arXiv:2106.04169

Code (3)

Muzammal-Naseer/Improving-Adversarial-Transferability-of-Vision-Transformers pytorch
Muzammal-Naseer/On-Improving-Adversarial-Transferability-of-Vision-Transformers pytorch
Trustworthy-AI-Group/TransferAttack pytorch

Tasks

Adversarial Attack

Similar Papers 제목 키워드 기반

Towards Transferable Adversarial Attacks on Vision Transformers

2021-09-09 · Zhipeng Wei, Jingjing Chen, Micah Goldblum, Zuxuan Wu 외

Vision transformers (ViTs) have demonstrated impressive performance on a series of computer vision tasks, yet they still suffer from adversarial examples. % crafted in a similar fashion as CNNs. In this paper, we posit t…

ViT-EnsembleAttack: Augmenting Ensemble Models for Stronger Adversarial Transferability in Vision Transformers

2025-08-17 · Hanwen Cao, Haobo Lu, Xiaosen Wang, Kun He arxiv

Ensemble-based attacks have been proven to be effective in enhancing adversarial transferability by aggregating the outputs of models with various architectures. However, existing research primarily focuses on refining e…

On the Robustness of Vision Transformers to Adversarial Examples

2021-03-31 · ICCV 2021 10 · Kaleel Mahmood, Rigel Mahmood, Marten van Dijk

Recent advances in attention-based networks have shown that Vision Transformers can achieve state-of-the-art or near state-of-the-art results on many image classification tasks. This puts transformers in the unique posit…

image-classificationImage Classification

Improving the Transferability of Adversarial Examples with Restructure Embedded Patches

2022-04-27 · Huipeng Zhou, Yu-an Tan, Yajie Wang, Haoran Lyu 외

Vision transformers (ViTs) have demonstrated impressive performance in various computer vision tasks. However, the adversarial examples generated by ViTs are challenging to transfer to other networks with different struc…

Specificity

Improving Adversarial Transferability on Vision Transformers via Forward Propagation Refinement

2025-03-19 · CVPR 2025 1 · Yuchen Ren, Zhengyu Zhao, Chenhao Lin, Bo Yang 외

Vision Transformers (ViTs) have been widely applied in various computer vision and vision-language tasks. To gain insights into their robustness in practical scenarios, transferable adversarial examples on ViTs have been…