Do Vision Transformers See Like Convolutional Neural Networks?

By Maithra Raghu, Thomas Unterthiner, Simon Kornblith, Chiyuan Zhang, Alexey Dosovitskiy. 2021

1,440 citations recorded by the source corpus.

Convolutional neural networks (CNNs) have so far been the de-facto model for visual data. Recent work has shown that (Vision) Transformer models (ViT) can achieve comparable or even superior performance on image classification tasks. This raises a central question: how are Vision Transformers solving these tasks? Are they acting like convolutional networks, or learning entirely different visual representations? Analyzing the internal representation structure of ViTs and CNNs on image classification benchmarks, we find striking differences between the two architectures, such as ViT having more uniform representations across all layers. We explore how these differences arise, finding crucial roles played by self-attention, which enables early aggregation of global information, and ViT residual connections, which strongly propagate features from lower to higher layers. We study the ramifications for spatial localization, demonstrating ViTs successfully preserve input spatial information, with noticeable effects from different classification methods. Finally, we study the effect of (pretraining) dataset scale on intermediate features and transfer learning, and conclude with a discussion on connections to new architectures such as the MLP-Mixer.

Subfields: Artificial Intelligence, Computer Vision and Pattern Recognition, Model Architectures

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. Jiashi Feng
  2. Dacheng Tao
  3. Quoc V. Le
  4. Shuicheng Yan
  5. Xinchao Wang
  6. Trevor Darrell
  7. Zhangyang Wang
  8. Jiaya Jia

In Computer Vision and Pattern Recognition

  1. Luc Van Gool
  2. Dacheng Tao
  3. Ming-Hsuan Yang
  4. Jiashi Feng
  5. Trevor Darrell
  6. Xiaogang Wang
  7. Jitendra Malik
  8. Chen Change Loy

In Model Architectures

  1. Jiashi Feng
  2. Shuicheng Yan
  3. Xinchao Wang
  4. Weihao Yu
  5. Zhangyang Wang
  6. Xiaohua Zhai
  7. Jiaya Jia
  8. Guiguang Ding

Citations in the corpus