paper-with-me

Papers

On the Adversarial Robustness of Vision Transformers

2021-03-29 · Rulin Shao, Zhouxing Shi, JinFeng Yi, Pin-Yu Chen, Cho-Jui Hsieh

Following the success in advancing natural language processing and understanding, transformers are expected to bring revolutionary changes to computer vision. This work provides a comprehensive study on the robustness of vision transformers (ViTs) against adversarial perturbations. Tested on various white-box and transfer attack settings, we find that ViTs possess better adversarial robustness when compared with MLP-Mixer and convolutional neural networks (CNNs) including ConvNeXt, and this observation also holds for certified robustness. Through frequency analysis and feature visualization, we summarize the following main observations contributing to the improved robustness of ViTs: 1) Features learned by ViTs contain less high-frequency patterns that have spurious correlation, which helps explain why ViTs are less sensitive to high-frequency perturbations than CNNs and MLP-Mixer, and there is a high correlation between how much the model learns high-frequency features and its robustness against different frequency-based perturbations. 2) Introducing convolutional or tokens-to-token blocks for learning high-frequency features in ViTs can improve classification accuracy but at the cost of adversarial robustness. 3) Modern CNN designs that borrow techniques from ViTs including activation function, layer norm, larger kernel size to imitate the global attention, and patchify the images as inputs, etc., could help bridge the performance gap between ViTs and CNNs not only in terms of performance, but also certified and empirical adversarial robustness. Moreover, we show adversarial training is also applicable to ViT for training robust models, and sharpness-aware minimization can also help improve robustness, while pre-training with clean images on larger datasets does not significantly improve adversarial robustness.

📄 PDF Abstract BibTeX arXiv:2103.15670

Code (1)

RulinShao/on-the-adversarial-robustness-of-visual-transformer 공식 구현 pytorch

Tasks

Adversarial Robustness

Similar Papers 제목 키워드 기반

On the Robustness of Vision Transformers to Adversarial Examples

2021-03-31 · ICCV 2021 10 · Kaleel Mahmood, Rigel Mahmood, Marten van Dijk

Recent advances in attention-based networks have shown that Vision Transformers can achieve state-of-the-art or near state-of-the-art results on many image classification tasks. This puts transformers in the unique posit…

image-classificationImage Classification

Exploring Adversarial Robustness of Vision Transformers in the Spectral Perspective

2022-08-20 · Gihyun Kim, Juyeop Kim, Jong-Seok Lee

The Vision Transformer has emerged as a powerful tool for image classification tasks, surpassing the performance of convolutional neural networks (CNNs). Recently, many researchers have attempted to understand the robust…

Adversarial Robustnessimage-classificationImage Classification

Exploring Adversarial Attacks and Defenses in Vision Transformers trained with DINO

2022-06-14 · Javier Rando, Nasib Naimi, Thomas Baumann, Max Mathys

This work conducts the first analysis on the robustness against adversarial attacks on self-supervised Vision Transformers trained using DINO. First, we evaluate whether features learned through self-supervision are more…

Adversarial Robustness

Are Vision Transformers Robust to Patch-wise Perturbations?

2021-09-29 · Jindong Gu, Volker Tresp, Yao Qin

The recent advances in Vision Transformer (ViT) have demonstrated its impressive performance in image classification, which makes it a promising alternative to Convolutional Neural Network (CNN). Unlike CNNs, ViT represe…

image-classificationImage Classification

When Adversarial Training Meets Vision Transformers: Recipes from Training to Architecture

2022-10-14 · Yichuan Mo, Dongxian Wu, Yifei Wang, Yiwen Guo 외

Vision Transformers (ViTs) have recently achieved competitive performance in broad vision tasks. Unfortunately, on popular threat models, naturally trained ViTs are shown to provide no more adversarial robustness than co…

Adversarial Robustness