paper-with-me

홈 › Papers

What do Vision Transformers Learn? A Visual Exploration

2022-12-13 · Amin Ghiasi, Hamid Kazemi, Eitan Borgnia, Steven Reich, Manli Shu, Micah Goldblum, Andrew Gordon Wilson, Tom Goldstein

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 of convolutional neural networks, an analogous exploration of ViTs remains challenging. In this paper, we first address the obstacles to performing visualizations on ViTs. Assisted by these solutions, we observe that neurons in ViTs trained with language model supervision (e.g., CLIP) are activated by semantic concepts rather than visual features. We also explore the underlying differences between ViTs and CNNs, and we find that transformers detect image background features, just like their convolutional counterparts, but their predictions depend far less on high-frequency information. On the other hand, both architecture types behave similarly in the way features progress from abstract patterns in early layers to concrete objects in late layers. In addition, we show that ViTs maintain spatial information in all layers except the final layer. In contrast to previous works, we show that the last layer most likely discards the spatial information and behaves as a learned global pooling operation. Finally, we conduct large-scale visualizations on a wide range of ViT variants, including DeiT, CoaT, ConViT, PiT, Swin, and Twin, to validate the effectiveness of our method.

📄 PDF Abstract BibTeX arXiv:2212.06727

Code (1)

hamidkazemi22/vit-visualization 공식 구현 pytorch

Tasks

Language Modelling

Methods 이 논문이 사용한 방법론

Multi-Head Attention 설명 없음
Attention 설명 없음
Linear Layer A Linear Layer is a projection $\mathbf{XW + b}$.
Attention Dropout Attention Dropout is a type of dropout used in attention-based architectures, where elements are randomly dropped out of the…
Residual Connection 설명 없음
Softmax The Softmax output function transforms a previous layer's output into a vector of probabilities. It is commonly used for multiclass classification. Given an input vector $x$…
Layer Normalization Unlike batch normalization, Layer Normalization directly estimates the normalization statistics from the summed inputs…
Dropout Dropout is a regularization technique for neural networks that drops a unit (along with connections) at training time with a specified probability $p$ (a common value is…

Similar Papers 제목 키워드 기반

A ConvNet for the 2020s

2022-01-10 · CVPR 2022 1 · Zhuang Liu, Hanzi Mao, Chao-yuan Wu, Christoph Feichtenhofer 외

The "Roaring 20s" of visual recognition began with the introduction of Vision Transformers (ViTs), which quickly superseded ConvNets as the state-of-the-art image classification model. A vanilla ViT, on the other hand, f…

ClassificationDomain Generalizationimage-classificationImage Classification+3

Attending Self-Attention: A Case Study of Visually Grounded Supervision in Vision-and-Language Transformers

2021-08-01 · ACL 2021 5 · Jules Samaran, Noa Garcia, Mayu Otani, Chenhui Chu 외

The impressive performances of pre-trained visually grounded language models have motivated a growing body of research investigating what has been learned during the pre-training. As a lot of these models are based on Tr…

Language ModelingLanguage ModellingVisual Grounding

Beyond Grids: Exploring Elastic Input Sampling for Vision Transformers

2023-09-23 · Adam Pardyl, Grzegorz Kurzejamski, Jan Olszewski, Tomasz Trzciński 외

Vision transformers have excelled in various computer vision tasks but mostly rely on rigid input sampling using a fixed-size grid of patches. It limits their applicability in real-world problems, such as active visual e…

Sidekick Policy Learning for Active Visual Exploration

2018-07-29 · ECCV 2018 9 · Santhosh K. Ramakrishnan, Kristen Grauman

We consider an active visual exploration scenario, where an agent must intelligently select its camera motions to efficiently reconstruct the full environment from only a limited set of narrow field-of-view glimpses. Whi…

TORE: Token Recycling in Vision Transformers for Efficient Active Visual Exploration

2023-11-26 · Jan Olszewski, Dawid Rymarczyk, Piotr Wójcik, Mateusz Pach 외

Active Visual Exploration (AVE) optimizes the utilization of robotic resources in real-world scenarios by sequentially selecting the most informative observations. However, modern methods require a high computational bud…

Decision MakingDecoderImputationMissing Values+1