paper-with-me

홈 › Papers

Do Vision Transformers See Like Convolutional Neural Networks?

2021-08-19 · NeurIPS 2021 12 · Maithra Raghu, Thomas Unterthiner, Simon Kornblith, Chiyuan Zhang, Alexey Dosovitskiy

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.

📄 PDF Abstract BibTeX arXiv:2108.08810

Code (4)

AntixK/PyTorch-Model-Compare pytorch
dmarx/cka_pytorch
roydenwa/cell-centroid-former tf
sayakpaul/probing-vits tf

Tasks

Classificationimage-classificationImage ClassificationTransfer Learning

Methods 이 논문이 사용한 방법론

Multi-Head Attention 설명 없음
Attention 설명 없음
Linear Layer A Linear Layer is a projection $\mathbf{XW + b}$.
Absolute Position Encodings Absolute Position Encodings are a type of position embeddings for [Transformer-based models] where positional encodings are…
Position-Wise Feed-Forward Layer 설명 없음
Average Pooling 설명 없음
Layer Normalization Unlike batch normalization, Layer Normalization directly estimates the normalization statistics from the summed inputs…
Adam 설명 없음

Similar Papers 제목 키워드 기반

Vision Transformers for Dense Prediction

2021-03-24 · ICCV 2021 10 · René Ranftl, Alexey Bochkovskiy, Vladlen Koltun

We introduce dense vision transformers, an architecture that leverages vision transformers in place of convolutional networks as a backbone for dense prediction tasks. We assemble tokens from various stages of the vision…

DecoderDepth EstimationMonocular Depth EstimationPrediction+1

Convolutional Nets Versus Vision Transformers for Diabetic Foot Ulcer Classification

2021-11-12 · Adrian Galdran, Gustavo Carneiro, Miguel A. González Ballester

This paper compares well-established Convolutional Neural Networks (CNNs) to recently introduced Vision Transformers for the task of Diabetic Foot Ulcer Classification, in the context of the DFUC 2021 Grand-Challenge, in…

ClassificationPosition

Conv2Former: A Simple Transformer-Style ConvNet for Visual Recognition

2022-11-22 · Qibin Hou, Cheng-Ze Lu, Ming-Ming Cheng, Jiashi Feng

This paper does not attempt to design a state-of-the-art method for visual recognition but investigates a more efficient way to make use of convolutions to encode spatial features. By comparing the design principles of t…

object-detectionObject DetectionSemantic Segmentation

What do Vision Transformers Learn? A Visual Exploration

2022-12-13 · Amin Ghiasi, Hamid Kazemi, Eitan Borgnia, Steven Reich 외

Vision transformers (ViTs) are quickly becoming the de-facto architecture for computer vision, yet we understand very little about why they work and what they learn. While existing studies visually analyze the mechanisms…

Language Modelling

Searching Intrinsic Dimensions of Vision Transformers

2022-04-16 · Fanghui Xue, Biao Yang, Yingyong Qi, Jack Xin

It has been shown by many researchers that transformers perform as well as convolutional neural networks in many computer vision tasks. Meanwhile, the large computational costs of its attention module hinder further stud…

image-classificationImage Classificationobject-detectionObject Detection