Query-Efficient Hard-Label Black-Box Attack against Vision Transformers
Chao Zhou, Xiaowen Shi, Yuan-Gen Wang
TL;DR
The paper tackles the problem of adversarial vulnerability in Vision Transformers (ViTs) under hard-label black-box settings. It introduces AdvViT, a query-efficient attack that targets patch-level perturbations by operating on low-frequency components of each patch through a block DCT transform and a variance-based weight mask to guide perturbations, achieving lower $L_2$ distortion than CNN-based attacks under the same query budget. The approach combines a three-step low-frequency optimization in the DCT domain with a Sign-OPT-based baseline (AdvViT uses Sign-OPT, AdvViT+ uses Sign-OPT+), and demonstrates effectiveness across multiple ViT backbones on ImageNet-1K, with improvements in PSNR/SSIM indicating high perceptual stealth. These results challenge prior claims of ViT robustness and provide a ViT-specific adversarial framework that informs both attack strategies and robustness evaluations in transformer-based vision models.
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.
