Research Article

Robustness analysis of Visual Transformer based on adversarial attacks

Yuqi Fan1, Fuzhi He2, Zibang Nie3,*
1. Northeast Forestry University
2. Tianjin University
3. Central South University

* Corresponding author: [email protected]

Abstract

As model architectures deepen, large models (e.g., Visual Transformer) perform increasingly well on vision tasks. Adversarial attack is an important test to measure the robustness of the model. By adding noise information to the data, it interferes with the discriminative ability of the model. Previous studies have found that adversarial attacks significantly impact small models (e.g., VGG16, ResNet18), while further tests are needed for interference on large models. This paper conducts three experiments to examine the performance of Visual Transformer (ViT) models against adversarial attacks. In Experiment 1, this paper uses three different attack methods (FGSM, I-FGSM, and MI-FGSM) to test the performance of ViT and some small models. In Experiment 2, this paper tests whether the ViT could distinguish noisy data successfully attacked on the small models. In Experiment 3, this paper examines the defense performance of the ViT, and VGG16 retrained on noisy data. The results show that (1) compared to small models, ViT does have a more vital ability to resist noisy data; (2) the performance improvement of ViT could be better than that of the small model after retraining.

Keywords: Adversarial Attack; Large Model; Vision Transformer
Published: February 22, 2024
DOI: 10.54254/2755-2721/41/20230737
Volume: ACE Vol.41
pp. 160-170
Download PDF

References

  1. N Akhtar, A Mian, N Kardan and M Shah, “Advances in Adversarial Attacks and Defenses in Computer Vision: A Survey,” in IEEE Access, vol. 9, pp. 155161-155196, 2021, doi: 10.1109/ACCESS.2021.3127960.
  2. Machado G R, Silva E and Goldschmidt R R. 2021. Adversarial Machine Learning in Image Classification: A Survey Toward the Defender’s Perspective. ACM Comput. Surv. 55, 1, Article 8 (January 2023), 38 pages. https://doi.org/10.1145/3485133
  3. Teng L et al. (2022) A survey on adversarial attacks In computer vision: Taxonomy, visualization and future directions. Computers & Security, Volume 121.
  4. Zhou Y, Han M, Liu L, He J and Gao X. “The Adversarial Attacks Threats on Computer Vision: A Survey,” 2019 IEEE 16th International Conference on Mobile Ad Hoc and Sensor Systems Workshops (MASSW), Monterey, CA, USA, 2019, pp. 25-30, doi: 10.1109/MASSW.2019.00012.
  5. Yampolskiy, R V. (Ed.). (2018). Artificial Intelligence Safety and Security (1st ed.). Chapman and Hall/CRC. https://doi.org/10.1201/9781351251389
  6. Aleksander M et al. (2019) Towards Deep Learning Models Resistant to Adversarial Attacks. Available at: https://arxiv.org/abs/1706.06083.
  7. Nicolas P et al. (2016) Distillation as a Defense to Adversarial Perturbations Against Deep Neural Networks. 2016 IEEE Symposium on Security and Privacy (SP), San Jose, CA, USA, 2016, pp. 582-597, doi: 10.1109/SP.2016.41.
  8. Nicolas P et al. (2016) The Limitations of Deep Learning in Adversarial Settings. 2016 IEEE European Symposium on Security and Privacy (EuroS&P), Saarbruecken, Germany, 2016, pp. 372-387, doi: 10.1109/EuroSP.2016.36.
  9. Li X and Zhang B -B (2023) FV-ViT: Vision Transformer for Finger Vein Recognition in IEEE Access, vol. 11,2023, pp. 75451-75461, doi: 10.1109/ACCESS.2023.3297212.
  10. Dierickx P, Van Damme A, Dupuis N and Delaby O (2023) Comparison Between CNN, ViT and CCT for Channel Frequency Response Interpretation and Application to G. Fast in IEEE Access, vol. 11, pp. 24039-24052, 2023, doi: 10.1109/ACCESS.2023.3247877.
  11. Dosovitskiy A, Beyer L, Kolesnikov A et al (2020) An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale.ArXiv, abs/2010.11929.
  12. Lyu C, Huang K and Liang H N (2014) Explaining and Harnessing Adversarial Examples. Retrieved from https://doi.org/10.48550/arXiv.1412.6572
  13. Dong Y et al. (2018) Boosting Adversarial Attacks with Momentum. 2018 IEEE/CVF Conference on Computer Vision and Pattern Recognition, Salt Lake City, UT, USA, 2018, pp. 9185-9193, doi: 10.1109/CVPR.2018.00957.
  14. Kurakin A, Goodfellow I and Bengio S (2016) Adversarial Examples In The Physical World Retrieved from https://doi.org/10.48550/arXiv.1607.02533.
  15. Moosavi-Dezfooli S -M, Fawzi A and Frossard P (2016) DeepFool: A Simple and Accurate Method to Fool Deep Neural Networks 2016 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Las Vegas, NV, USA, 2016, pp. 2574-2582, doi: 10.1109/CVPR.2016.282.
  16. Wang G, Yan H and Wei X(2022) Enhancing Transferability of Adversarial Examples with Spatial Momentum Retrieved from https://doi.org/10.48550/arXiv.2203.13479.
  17. Carlini N and Wagner D (2017) Towards Evaluating the Robustness of Neural Networks 2017 IEEE Symposium on Security and Privacy (SP), San Jose, CA, USA, 2017, pp. 39-57, doi: 10.1109/SP.2017.49.