Saved in:
Bibliographic Details
Main Authors: Wu, Jialin, Pan, Kaikai, Chen, Yanjiao, Deng, Jiangyi, Pang, Shengyuan, Xu, Wenyuan
Format: Preprint
Published: 2025
Subjects:
Online Access:https://arxiv.org/abs/2501.07044
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866912185664405504
author Wu, Jialin
Pan, Kaikai
Chen, Yanjiao
Deng, Jiangyi
Pang, Shengyuan
Xu, Wenyuan
author_facet Wu, Jialin
Pan, Kaikai
Chen, Yanjiao
Deng, Jiangyi
Pang, Shengyuan
Xu, Wenyuan
contents Transformer models have excelled in natural language tasks, prompting the vision community to explore their implementation in computer vision problems. However, these models are still influenced by adversarial examples. In this paper, we investigate the attack capabilities of six common adversarial attacks on three pretrained ViT models to reveal the vulnerability of ViT models. To understand and analyse the bias in neural network decisions when the input is adversarial, we use two visualisation techniques that are attention rollout and grad attention rollout. To prevent ViT models from adversarial attack, we propose Protego, a detection framework that leverages the transformer intrinsic capabilities to detection adversarial examples of ViT models. Nonetheless, this is challenging due to a diversity of attack strategies that may be adopted by adversaries. Inspired by the attention mechanism, we know that the token of prediction contains all the information from the input sample. Additionally, the attention region for adversarial examples differs from that of normal examples. Given these points, we can train a detector that achieves superior performance than existing detection methods to identify adversarial examples. Our experiments have demonstrated the high effectiveness of our detection method. For these six adversarial attack methods, our detector's AUC scores all exceed 0.95. Protego may advance investigations in metaverse security.
format Preprint
id arxiv_https___arxiv_org_abs_2501_07044
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Protego: Detecting Adversarial Examples for Vision Transformers via Intrinsic Capabilities
Wu, Jialin
Pan, Kaikai
Chen, Yanjiao
Deng, Jiangyi
Pang, Shengyuan
Xu, Wenyuan
Computer Vision and Pattern Recognition
Machine Learning
Transformer models have excelled in natural language tasks, prompting the vision community to explore their implementation in computer vision problems. However, these models are still influenced by adversarial examples. In this paper, we investigate the attack capabilities of six common adversarial attacks on three pretrained ViT models to reveal the vulnerability of ViT models. To understand and analyse the bias in neural network decisions when the input is adversarial, we use two visualisation techniques that are attention rollout and grad attention rollout. To prevent ViT models from adversarial attack, we propose Protego, a detection framework that leverages the transformer intrinsic capabilities to detection adversarial examples of ViT models. Nonetheless, this is challenging due to a diversity of attack strategies that may be adopted by adversaries. Inspired by the attention mechanism, we know that the token of prediction contains all the information from the input sample. Additionally, the attention region for adversarial examples differs from that of normal examples. Given these points, we can train a detector that achieves superior performance than existing detection methods to identify adversarial examples. Our experiments have demonstrated the high effectiveness of our detection method. For these six adversarial attack methods, our detector's AUC scores all exceed 0.95. Protego may advance investigations in metaverse security.
title Protego: Detecting Adversarial Examples for Vision Transformers via Intrinsic Capabilities
topic Computer Vision and Pattern Recognition
Machine Learning
url https://arxiv.org/abs/2501.07044