Lune

AAAI2022Top-tier venue

Vision Transformers Are Robust Learners

Sayak Paul, Pin-Yu Chen

Abstract

Transformers, composed of multiple self-attention layers, hold strong promises toward a generic learning primitive applicable to different data modalities, including the recent breakthroughs in computer vision achieving state-of-the-art (SOTA) standard accuracy. What remains largely unexplored is their robustness evaluation and attribution. In this work, we study the robustness of the Vision Transformer (ViT) (Dosovitskiy et al. 2021) against common corruptions and perturbations, distribution shifts, and natural adversarial examples. We use six different diverse ImageNet datasets concerning robust classification to conduct a comprehensive performance comparison of ViT (Dosovitskiy et al. 2021) models and SOTA convolutional neural networks (CNNs), Big-Transfer (Kolesnikov et al. 2020). Through a series of six systematically designed experiments, we then present analyses that provide both quantitative and qualitative indications to explain why ViTs are indeed more robust learners. For example, with fewer parameters and similar dataset and pre-training combinations, ViT gives a top-1 accuracy of 28.10% on ImageNet-A which is 4.3x higher than a comparable variant of BiT. Our analyses on image masking, Fourier spectrum sensitivity, and spread on discrete cosine energy spectrum reveal intriguing properties of ViT attributing to improved robustness. Code for reproducing our experiments is available at https://git.io/J3VO0 .

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

74 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Emerging Properties in Self-Supervised Vision Transformers cites Training data-efficient image transformers & distillation through attention
  • Do Vision Transformers See Like Convolutional Neural Networks? cites Emerging Properties in Self-Supervised Vision Transformers
  • Do Vision Transformers See Like Convolutional Neural Networks? cites Intriguing Properties of Vision Transformers
  • Scaling Up Your Kernels to 31×31: Revisiting Large Kernel Design in CNNs cites Emerging Properties in Self-Supervised Vision Transformers
  • Scaling Up Your Kernels to 31×31: Revisiting Large Kernel Design in CNNs cites Do Vision Transformers See Like Convolutional Neural Networks?
  • Scaling Up Your Kernels to 31×31: Revisiting Large Kernel Design in CNNs cites RandAugment: Practical Automated Data Augmentation with a Reduced Search Space
  • Scaling Up Your Kernels to 31×31: Revisiting Large Kernel Design in CNNs cites Swin Transformer: Hierarchical Vision Transformer using Shifted Windows
  • Scaling Up Your Kernels to 31×31: Revisiting Large Kernel Design in CNNs cites Training data-efficient image transformers & distillation through attention
  • Swin Transformer: Hierarchical Vision Transformer using Shifted Windows cites RandAugment: Practical Automated Data Augmentation with a Reduced Search Space
  • Swin Transformer: Hierarchical Vision Transformer using Shifted Windows cites Learning Transferable Visual Models From Natural Language Supervision
  • Swin Transformer: Hierarchical Vision Transformer using Shifted Windows cites Training data-efficient image transformers & distillation through attention
  • How Do Vision Transformers Work? cites Do Vision Transformers See Like Convolutional Neural Networks?
  • How Do Vision Transformers Work? cites RandAugment: Practical Automated Data Augmentation with a Reduced Search Space
  • How Do Vision Transformers Work? cites Swin Transformer: Hierarchical Vision Transformer using Shifted Windows
  • How Do Vision Transformers Work? cites Intriguing Properties of Vision Transformers
  • How Do Vision Transformers Work? cites Training data-efficient image transformers & distillation through attention
  • DAFormer: Improving Network Architectures and Training Strategies for Domain-Adaptive Semantic Segmentation cites Swin Transformer: Hierarchical Vision Transformer using Shifted Windows
  • DAFormer: Improving Network Architectures and Training Strategies for Domain-Adaptive Semantic Segmentation cites Intriguing Properties of Vision Transformers
  • DAFormer: Improving Network Architectures and Training Strategies for Domain-Adaptive Semantic Segmentation cites Training data-efficient image transformers & distillation through attention
  • Intriguing Properties of Vision Transformers cites Emerging Properties in Self-Supervised Vision Transformers
  • Intriguing Properties of Vision Transformers cites Swin Transformer: Hierarchical Vision Transformer using Shifted Windows
  • Intriguing Properties of Vision Transformers cites Training data-efficient image transformers & distillation through attention
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers74

  1. Do Vision Transformers See Like Convolutional Neural Networks?Maithra Raghu, Thomas Unterthiner, Simon Kornblith, Chiyuan Zhang et al.NeurIPS 2021 · 1,553 citations
  2. Scaling Up Your Kernels to 31×31: Revisiting Large Kernel Design in CNNsXiaohan Ding, Xiangyu Zhang, Jungong Han, Guiguang DingCVPR 2022 · 1,298 citations
  3. Intriguing Properties of Vision TransformersMuzammal Naseer, Kanchana Ranasinghe, Salman Khan, Munawar Hayat et al.NeurIPS 2021 · 863 citations
  4. How Do Vision Transformers Work?Namuk Park, Songkuk KimICLR 2022 · 653 citations
  5. DAFormer: Improving Network Architectures and Training Strategies for Domain-Adaptive Semantic SegmentationLukas Hoyer, Dengxin Dai, Luc Van GoolCVPR 2022 · 562 citations

Builds on17

  1. Learning Transferable Visual Models From Natural Language SupervisionAlec Radford, Jong Wook Kim, Chris Hallacy, Aditya Ramesh et al.ICML 2021 · 47,906 citations
  2. Swin Transformer: Hierarchical Vision Transformer using Shifted WindowsZe Liu, Yutong Lin, Yue Cao, Han Hu et al.ICCV 2021 · 31,683 citations
  3. Training data-efficient image transformers & distillation through attentionHugo Touvron, Matthieu Cord, Matthijs Douze, Francisco Massa et al.ICML 2021 · 8,974 citations
  4. Emerging Properties in Self-Supervised Vision TransformersMathilde Caron, Hugo Touvron, Ishan Misra, Hervé Jégou et al.ICCV 2021 · 8,921 citations
  5. RandAugment: Practical Automated Data Augmentation with a Reduced Search SpaceEkin Dogus Cubuk, Barret Zoph, Jonathon Shlens, Quoc LeNeurIPS 2020 · 4,453 citations

Related papers

  1. Towards Robust Vision TransformerXiaofeng Mao, Gege Qi, Yuefeng Chen, Xiaodan Li et al.CVPR 2022 · 185 citations
  2. Understanding Robustness of Transformers for Image ClassificationSrinadh Bhojanapalli, Ayan Chakrabarti, Daniel Glasner, Daliang Li et al.ICCV 2021 · 501 citations
  3. Are Transformers more robust than CNNs?Yutong Bai, Jieru Mei, Alan L. Yuille, Cihang XieNeurIPS 2021 · 365 citations
  4. An Image is Worth 16x16 Words: Transformers for Image Recognition at ScaleAlexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn et al.ICLR 2021 · 21,477 citations
  5. Generating Transferable Adversarial Examples against Vision TransformersYuxuan Wang, Jiakai Wang, Zixin Yin, Ruihao Gong et al.ACM MM 2022 · 25 citations
Dusk over the sea between two cliffs drawn in fine vertical lines