paper-with-me

Papers

DaViT: Dual Attention Vision Transformers

2022-04-07 · Mingyu Ding, Bin Xiao, Noel Codella, Ping Luo, Jingdong Wang, Lu Yuan

In this work, we introduce Dual Attention Vision Transformers (DaViT), a simple yet effective vision transformer architecture that is able to capture global context while maintaining computational efficiency. We propose approaching the problem from an orthogonal angle: exploiting self-attention mechanisms with both "spatial tokens" and "channel tokens". With spatial tokens, the spatial dimension defines the token scope, and the channel dimension defines the token feature dimension. With channel tokens, we have the inverse: the channel dimension defines the token scope, and the spatial dimension defines the token feature dimension. We further group tokens along the sequence direction for both spatial and channel tokens to maintain the linear complexity of the entire model. We show that these two self-attentions complement each other: (i) since each channel token contains an abstract representation of the entire image, the channel attention naturally captures global interactions and representations by taking all spatial positions into account when computing attention scores between channels; (ii) the spatial attention refines the local representations by performing fine-grained interactions across spatial locations, which in turn helps the global information modeling in channel attention. Extensive experiments show our DaViT achieves state-of-the-art performance on four different tasks with efficient computations. Without extra data, DaViT-Tiny, DaViT-Small, and DaViT-Base achieve 82.8%, 84.2%, and 84.6% top-1 accuracy on ImageNet-1K with 28.3M, 49.7M, and 87.9M parameters, respectively. When we further scale up DaViT with 1.5B weakly supervised image and text pairs, DaViT-Gaint reaches 90.4% top-1 accuracy on ImageNet-1K. Code is available at https://github.com/dingmyu/davit.

📄 PDF Abstract BibTeX arXiv:2204.03645

Code (4)

dingmyu/davit 공식 구현 pytorch
leondgarse/keras_cv_attention_models/tree/main/keras_cv_attention_models/davit tf
rwightman/pytorch-image-models pytorch
https://gitlab.com/birder/birder pytorch

Tasks

Computational EfficiencyImage ClassificationInstance SegmentationMedical Image ClassificationObject DetectionSemantic Segmentation

Methods 이 논문이 사용한 방법론

Attention 설명 없음
Linear Layer A Linear Layer is a projection $\mathbf{XW + b}$.
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$…
Residual Connection 설명 없음
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…
Multi-Head Attention 설명 없음
Layer Normalization Unlike batch normalization, Layer Normalization directly estimates the normalization statistics from the summed inputs…
Vision Transformer The Vision Transformer, or ViT, is a model for image classification that employs a Transformer-like architecture over…

Similar Papers 제목 키워드 기반

AdaViT: Adaptive Vision Transformers for Efficient Image Recognition

2021-11-30 · CVPR 2022 1 · Lingchen Meng, Hengduo Li, Bor-Chun Chen, Shiyi Lan 외

Built on top of self-attention mechanisms, vision transformers have demonstrated remarkable performance on a variety of vision tasks recently. While achieving excellent performance, they still require relatively intensiv…

Detecção da Psoríase Utilizando Visão Computacional: Uma Abordagem Comparativa Entre CNNs e Vision Transformers

2025-06-11 · Natanael Lucena, Fábio S. da Silva, Ricardo Rios

This paper presents a comparison of the performance of Convolutional Neural Networks (CNNs) and Vision Transformers (ViTs) in the task of multi-classifying images containing lesions of psoriasis and diseases similar to i…

image-classificationImage ClassificationMedical Image Classification

RailTrack-DaViT: A Vision Transformer-Based Approach for Automated Railway Track Defect Detection

2024-08-07 · Journal of Imaging 2024 8 · Aniwat Phaphuangwittayakul, Napat Harnpornchai, Fangli Ying, Jinming Zhang

Railway track defects pose significant safety risks and can lead to accidents, economic losses, and loss of life. Traditional manual inspection methods are either time-consuming, costly, or prone to human error. This pap…

Defect Detection

Multi-Class Abnormality Classification Task in Video Capsule Endoscopy

2024-10-25 · Dev Rishi Verma, Vibhor Saxena, Dhruv Sharma, Arpan Gupta

In this work for Capsule Vision Challenge 2024, we addressed the challenge of multiclass anomaly classification in video capsule Endoscopy (VCE)[1] with a variety of deep learning models, ranging from custom CNNs to adva…

Anomaly ClassificationDiagnostic

AdaViT: Adaptive Tokens for Efficient Vision Transformer

2021-12-14 · CVPR 2022 1 · Hongxu Yin, Arash Vahdat, Jose Alvarez, Arun Mallya 외

We introduce A-ViT, a method that adaptively adjusts the inference cost of vision transformer (ViT) for images of different complexity. A-ViT achieves this by automatically reducing the number of tokens in vision transfo…

Efficient ViTsimage-classificationImage ClassificationToken Reduction