paper-with-me

홈 › Papers

ConViT: Improving Vision Transformers with Soft Convolutional Inductive Biases

2021-03-19 · Stéphane d'Ascoli, Hugo Touvron, Matthew Leavitt, Ari Morcos, Giulio Biroli, Levent Sagun

Convolutional architectures have proven extremely successful for vision tasks. Their hard inductive biases enable sample-efficient learning, but come at the cost of a potentially lower performance ceiling. Vision Transformers (ViTs) rely on more flexible self-attention layers, and have recently outperformed CNNs for image classification. However, they require costly pre-training on large external datasets or distillation from pre-trained convolutional networks. In this paper, we ask the following question: is it possible to combine the strengths of these two architectures while avoiding their respective limitations? To this end, we introduce gated positional self-attention (GPSA), a form of positional self-attention which can be equipped with a ``soft" convolutional inductive bias. We initialise the GPSA layers to mimic the locality of convolutional layers, then give each attention head the freedom to escape locality by adjusting a gating parameter regulating the attention paid to position versus content information. The resulting convolutional-like ViT architecture, ConViT, outperforms the DeiT on ImageNet, while offering a much improved sample efficiency. We further investigate the role of locality in learning by first quantifying how it is encouraged in vanilla self-attention layers, then analysing how it is escaped in GPSA layers. We conclude by presenting various ablations to better understand the success of the ConViT. Our code and models are released publicly at https://github.com/facebookresearch/convit.

📄 PDF Abstract BibTeX arXiv:2103.10697

Code (9)

facebookresearch/convit 공식 구현 pytorch
MS-Mind/MS-Code-02/tree/main/configs/convit mindspore
Mind23-2/MindCode-20 mindspore
SforAiDl/vformer pytorch
facebookresearch/vissl pytorch
lyqcom/convit mindspore
mindspore-courses/External-Attention-MindSpore/blob/main/model/backbone/ConViT.py mindspore
mindspore-ecosystem/mindcv/blob/main/mindcv/models/convit.py mindspore
rwightman/pytorch-image-models pytorch

Tasks

image-classificationImage ClassificationInductive Bias

Methods 이 논문이 사용한 방법론

Linear Layer A Linear Layer is a projection $\mathbf{XW + b}$.
Residual Connection 설명 없음
Layer Normalization Unlike batch normalization, Layer Normalization directly estimates the normalization statistics from the summed inputs…
GPSA Gated Positional Self-Attention (GPSA) is a self-attention module for vision transformers, used in the ConViT architecture, that…
ConViT ConViT is a type of vision transformer that uses a gated positional self-attention module…
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…
Multi-Head Attention 설명 없음
Dense Connections Dense Connections, or Fully Connected Connections, are a type of layer in a deep neural network that use a linear operation where every input is connected to every output…

Similar Papers 제목 키워드 기반

Deepfake Video Detection Using Generative Convolutional Vision Transformer

2023-07-13 · Deressa Wodajo, Solomon Atnafu, Zahid Akhtar

Deepfakes have raised significant concerns due to their potential to spread false information and compromise digital media integrity. In this work, we propose a Generative Convolutional Vision Transformer (GenConViT) for…

DeepFake DetectionFace Swapping

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

Conviformers: Convolutionally guided Vision Transformer

2022-08-17 · Mohit Vaishnav, Thomas Fel, Ivań Felipe Rodríguez, Thomas Serre

Vision transformers are nowadays the de-facto choice for image classification tasks. There are two broad categories of classification tasks, fine-grained and coarse-grained. In fine-grained classification, the necessity …

Fine-Grained Image Classificationimage-classificationImage Classification

IBiT: Utilizing Inductive Biases to Create a More Data Efficient Attention Mechanism

2025-09-24 · Adithya Giri arxiv

In recent years, Transformer-based architectures have become the dominant method for Computer Vision applications. While Transformers are explainable and scale well with dataset size, they lack the inductive biases of Co…

Knowledge Distillation

A comparative study between vision transformers and CNNs in digital pathology

2022-06-01 · Luca Deininger, Bernhard Stimpel, Anil Yuce, Samaneh Abbasi-Sureshjani 외

Recently, vision transformers were shown to be capable of outperforming convolutional neural networks when pretrained on sufficient amounts of data. In comparison to convolutional neural networks, vision transformers hav…

Inductive Biaswhole slide images