<p>Vision transformer (ViT) architectures use self-attention mechanisms to capture the overall context of images. They often outperform convolutional neural networks (CNNs) in certain tasks. However, their ability to resist adversarial attacks is less studied than that of CNNs. This paper assesses the adversarial strength of vanilla ViTs, hybrid ViTs, and CNNs against various attack scenarios. We performed experiments on 1000 ImageNet-1k images with <InlineEquation ID="IEq1"> <EquationSource Format="TEX">\(L_p\)</EquationSource> </InlineEquation>-norm attacks (<InlineEquation ID="IEq2"> <EquationSource Format="TEX">\(L_0\)</EquationSource> </InlineEquation>, <InlineEquation ID="IEq3"> <EquationSource Format="TEX">\(L_1\)</EquationSource> </InlineEquation>, <InlineEquation ID="IEq4"> <EquationSource Format="TEX">\(L_2\)</EquationSource> </InlineEquation>, and <InlineEquation ID="IEq5"> <EquationSource Format="TEX">\(L_\infty\)</EquationSource> </InlineEquation>), preprocessing-based defenses, and adaptive attacks based on expectation over transformation (EOT) method. We analyzed the results using feature maps, attention maps, perturbation energy spectra, Grad-CAM visualizations, and image quality metrics, such as PSNR, SSIM, and MAD. Our results show that vanilla ViTs are more robust against <InlineEquation ID="IEq6"> <EquationSource Format="TEX">\(L_0\)</EquationSource> </InlineEquation> and some <InlineEquation ID="IEq7"> <EquationSource Format="TEX">\(L_2/L_\infty\)</EquationSource> </InlineEquation> attacks. They require higher-intensity perturbations spread across frequency spectra. Hybrid ViTs provide the best defense against <InlineEquation ID="IEq8"> <EquationSource Format="TEX">\(L_1\)</EquationSource> </InlineEquation>, projected gradient descent-<InlineEquation ID="IEq9"> <EquationSource Format="TEX">\(L_2\)</EquationSource> </InlineEquation>, fast gradient sign method-<InlineEquation ID="IEq10"> <EquationSource Format="TEX">\(L_\infty\)</EquationSource> </InlineEquation>, black-box, and EOT attacks due to their balanced feature processing. Interestingly, smaller vanilla ViT models, such as ViT-S-16, outperform larger models against iterative attacks. Black-box attacks created with ViTs transfer to CNNs, but not the other way around. While vanilla ViTs can resist high-frequency preprocessing-based defenses, such JPEG and spatial smoothing, hybrid ViTs benefit most from thorough preprocessing methods. These results indicate that no single architecture is perfectly robust. The choice of architecture should depend on expected threat models. ViT-based architectures mark an important step forward in defending against adversarial attacks in computer vision tasks.</p>

错误:搜索内容不能为空,请输入英文关键词
错误:关键词超出字数限制,请精简
高级检索

Adversarial threats to vision transformers: evaluating robustness beyond CNNs

  • Ahmed Aldahdooh,
  • Wassim Hamidouche,
  • Olivier Déforges

摘要

Vision transformer (ViT) architectures use self-attention mechanisms to capture the overall context of images. They often outperform convolutional neural networks (CNNs) in certain tasks. However, their ability to resist adversarial attacks is less studied than that of CNNs. This paper assesses the adversarial strength of vanilla ViTs, hybrid ViTs, and CNNs against various attack scenarios. We performed experiments on 1000 ImageNet-1k images with \(L_p\) -norm attacks ( \(L_0\) , \(L_1\) , \(L_2\) , and \(L_\infty\) ), preprocessing-based defenses, and adaptive attacks based on expectation over transformation (EOT) method. We analyzed the results using feature maps, attention maps, perturbation energy spectra, Grad-CAM visualizations, and image quality metrics, such as PSNR, SSIM, and MAD. Our results show that vanilla ViTs are more robust against \(L_0\) and some \(L_2/L_\infty\) attacks. They require higher-intensity perturbations spread across frequency spectra. Hybrid ViTs provide the best defense against \(L_1\) , projected gradient descent- \(L_2\) , fast gradient sign method- \(L_\infty\) , black-box, and EOT attacks due to their balanced feature processing. Interestingly, smaller vanilla ViT models, such as ViT-S-16, outperform larger models against iterative attacks. Black-box attacks created with ViTs transfer to CNNs, but not the other way around. While vanilla ViTs can resist high-frequency preprocessing-based defenses, such JPEG and spatial smoothing, hybrid ViTs benefit most from thorough preprocessing methods. These results indicate that no single architecture is perfectly robust. The choice of architecture should depend on expected threat models. ViT-based architectures mark an important step forward in defending against adversarial attacks in computer vision tasks.