Understanding The Robustness in Vision Transformers

Daquan Zhou, Zhiding Yu, Enze Xie, Chaowei Xiao, Anima Anandkumar +2 more
4/26/2022
273 citations
cs.CV
transformer-attention

Official code: NVlabs/FAN (482 stars, Python, last commit 2023-03-31).

Abstract

Recent studies show that Vision Transformers(ViTs) exhibit strong robustness against various corruptions. Although this property is partly attributed to the self-attention mechanism, there is still a lack of systematic understanding.

Show full abstract

In this paper, we examine the role of self-attention in learning robust representations. Our study is motivated by the intriguing properties of the emerging visual grouping in Vision Transformers, which indicates that self-attention may promote robustness through improved mid-level representations. We further propose a family of fully attentional networks (FANs) that strengthen this capability by incorporating an attentional channel processing design. We validate the design comprehensively on various hierarchical backbones. Our model achieves a state-of-the-art 87.1% accuracy and 35.8% mCE on ImageNet-1k and ImageNet-C with 76.8M parameters. We also demonstrate state-of-the-art accuracy and robustness in two downstream tasks: semantic segmentation and object detection. Code is available at: https://github.com/NVlabs/FAN.

View on arXivView PDF

Code Implementations(1)

NVlabs/FANOfficial100%

Official PyTorch implementation of Fully Attentional Networks

48228Python, ShellApr 20, 20223 years agoNOASSERTION
backbonecityscapescococorruptiondeep-learning+11 more

Similar Papers

Cite this paper

@article{zhou2022understanding,
  title  = {Understanding The Robustness in Vision Transformers},
  author = {Daquan Zhou and Zhiding Yu and Enze Xie and Chaowei Xiao and Anima Anandkumar and Jiashi Feng and Jose M. Alvarez},
  year   = {2022},
  eprint = {2204.12451},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2204.12451}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2204.12451.svg)](https://codeofpaper.com/paper/2204.12451)

Discussion