Answers are grounded in this paper and cite their sources.
As the latest architecture, Vision Transformer (ViT) is vulnerable to adversarial attacks, which can cause errors in downstream tasks of the model. Previous defense methods against adversarial attacks tend to introduce significant inference latency or require additional training, resulting in increased defense costs. In this paper, we design a lightweight adversarial example detection framework for ViT, called Detection Token . By adding a pre-trained token called a detection token to the input token sequence, this token automatically collects adversarial information during the inference process and outputs linearly separable detection results along with the model output. Our method introduces only one additional token, requires minimal training overhead (converging within 2 ∼ 3 loops), and achieves high classification accuracy with minimal impact on normal tasks. Experiments on ImageNet demonstrate the effectiveness of our method, achieving an AUC score of 0.99 on three strong attacks (FGSM, PGD, BIM) on three representative ViTs, while the loss for normal tasks is less than 1%.
No takes yet. Share an insight, caveat, or question.
Tang et al. (2025) studied this question.
Synapse has enriched 10 related papers. Consider them for comparative context: