Understanding Robustness of Transformers for Image Classification

By Srinadh Bhojanapalli, Ayan Chakrabarti, Daniel Glasner, Daliang Li, Thomas Unterthiner, Andreas Veit. 2021

515 citations recorded by the source corpus.

Deep Convolutional Neural Networks (CNNs) have long been the architecture of choice for computer vision tasks. Recently, Transformer-based architectures like Vision Transformer (ViT) have matched or even surpassed ResNets for image classification. However, details of the Transformer architecture –such as the use of non-overlapping patches– lead one to wonder whether these networks are as robust. In this paper, we perform an extensive study of a variety of different measures of robustness of ViT models and compare the findings to ResNet baselines. We investigate robustness to input perturbations as well as robustness to model perturbations. We find that when pre-trained with a sufficient amount of data, ViT models are at least as robust as the ResNet counterparts on a broad range of perturbations. We also find that Transformers are robust to the removal of almost any single layer, and that while activations from later layers are highly correlated with each other, they nevertheless play an important role in classification.

Subfields: Artificial Intelligence, Computer Vision and Pattern Recognition, Safety, Robustness & Interpretability

How researchers see this paper

The researchers whose trusted networks rank it highest, strongest advocate first. Every researcher gets a different order.

In Artificial Intelligence

  1. Dacheng Tao
  2. Luc Van Gool
  3. Fahad Shahbaz Khan
  4. Alan L. Yuille
  5. Quoc V. Le
  6. Dengxin Dai
  7. Salman Hameed Khan
  8. Jing Zhang

In Computer Vision and Pattern Recognition

  1. Luc Van Gool
  2. Dacheng Tao
  3. Ming-Hsuan Yang
  4. Ling Shao
  5. Alan L. Yuille
  6. Xiaogang Wang
  7. Fahad Shahbaz Khan
  8. Trevor Darrell

In Safety, Robustness & Interpretability

  1. Alan L. Yuille
  2. Fahad Shahbaz Khan
  3. Muzammal Naseer
  4. Cihang Xie
  5. Fatih Murat Porikli
  6. Salman Hameed Khan
  7. Kanchana Ranasinghe
  8. Jieru Mei

Citations in the corpus