Query-Efficient Hard-Label Black-Box Attack against Vision Transformers

Chao Zhou, Xiaowen Shi, Yuan-Gen Wang
6/29/2024
cs.CV

No confident code implementation found for this paper. 1 possible match can be shown below.

Abstract

Recent studies have revealed that vision transformers (ViTs) face similar security risks from adversarial attacks as deep convolutional neural networks (CNNs). However, directly applying attack methodology on CNNs to ViTs has been demonstrated to be ineffective since the ViTs typically work on patch-wise encoding. This article explores the vulnerability of ViTs against adversarial attacks under a black-box scenario, and proposes a novel query-efficient hard-label adversarial attack method called AdvViT. Specifically, considering that ViTs are highly sensitive to patch modification, we propose to optimize the adversarial perturbation on the individual patches. To reduce the dimension of perturbation search space, we modify only a handful of low-frequency components of each patch. Moreover, we design a weight mask matrix for all patches to further optimize the perturbation on different regions of a whole image. We test six mainstream ViT backbones on the ImageNet-1k dataset. Experimental results show that compared with the state-of-the-art attacks on CNNs, our AdvViT achieves much lower $L_2$-norm distortion under the same query budget, sufficiently validating the vulnerability of ViTs against adversarial attacks.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 1 weaker match is hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{zhou2024queryefficient,
  title  = {Query-Efficient Hard-Label Black-Box Attack against Vision Transformers},
  author = {Chao Zhou and Xiaowen Shi and Yuan-Gen Wang},
  year   = {2024},
  eprint = {2407.00389},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2407.00389v1}
}

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

Discussion