Decision-based Black-box Attack Against Vision Transformers via Patch-wise Adversarial Removal
About
Vision transformers (ViTs) have demonstrated impressive performance and stronger adversarial robustness compared to Convolutional Neural Networks (CNNs). On the one hand, ViTs' focus on global interaction between individual patches reduces the local noise sensitivity of images. On the other hand, the neglect of noise sensitivity differences between image regions by existing decision-based attacks further compromises the efficiency of noise compression, especially for ViTs. Therefore, validating the black-box adversarial robustness of ViTs when the target model can only be queried still remains a challenging problem. In this paper, we theoretically analyze the limitations of existing decision-based attacks from the perspective of noise sensitivity difference between regions of the image, and propose a new decision-based black-box attack against ViTs, termed Patch-wise Adversarial Removal (PAR). PAR divides images into patches through a coarse-to-fine search process and compresses the noise on each patch separately. PAR records the noise magnitude and noise sensitivity of each patch and selects the patch with the highest query value for noise compression. In addition, PAR can be used as a noise initialization method for other decision-based attacks to improve the noise compression efficiency on both ViTs and CNNs without introducing additional calculations. Extensive experiments on three datasets demonstrate that PAR achieves a much lower noise magnitude with the same number of queries.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Adversarial Attack | ILSVRC 2012 (val) | Median L2 Distance2.158 | 112 | |
| Adversarial Attack | ILSVRC 2012 | Median L2 Distance2.51 | 96 | |
| Adversarial Attack | ImageNet-21K (val) | Median L2 Distance0.694 | 80 | |
| Adversarial Attack | ImageNet 21k (test) | Median L2 Distance1.696 | 64 | |
| Adversarial Attack | Tiny ImageNet (val) | Median L2 Distance0.14 | 64 | |
| Adversarial Attack | ImageNet | Time Cost (s)2.22 | 7 | |
| Targeted Adversarial Attack | ILSVRC 2012 | Median Noise Magnitude39.821 | 7 |