paper-with-me

홈 › Papers

Less is More: Pay Less Attention in Vision Transformers

2021-05-29 · Zizheng Pan, Bohan Zhuang, Haoyu He, Jing Liu, Jianfei Cai

Transformers have become one of the dominant architectures in deep learning, particularly as a powerful alternative to convolutional neural networks (CNNs) in computer vision. However, Transformer training and inference in previous works can be prohibitively expensive due to the quadratic complexity of self-attention over a long sequence of representations, especially for high-resolution dense prediction tasks. To this end, we present a novel Less attention vIsion Transformer (LIT), building upon the fact that the early self-attention layers in Transformers still focus on local patterns and bring minor benefits in recent hierarchical vision Transformers. Specifically, we propose a hierarchical Transformer where we use pure multi-layer perceptrons (MLPs) to encode rich local patterns in the early stages while applying self-attention modules to capture longer dependencies in deeper layers. Moreover, we further propose a learned deformable token merging module to adaptively fuse informative patches in a non-uniform manner. The proposed LIT achieves promising performance on image recognition tasks, including image classification, object detection and instance segmentation, serving as a strong backbone for many vision tasks. Code is available at: https://github.com/zhuang-group/LIT

📄 PDF Abstract BibTeX arXiv:2105.14217

Code (2)

MonashAI/LIT 공식 구현 pytorch
zhuang-group/lit 공식 구현 pytorch

Tasks

image-classificationImage ClassificationInstance Segmentationobject-detectionObject DetectionSemantic Segmentation

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 설명 없음
Vision Transformer The Vision Transformer, or ViT, is a model for image classification that employs a Transformer-like architecture over…
Label Smoothing Label Smoothing is a regularization technique that introduces noise for the labels. This accounts for the fact that datasets may have mistakes in them, so maximizing the…
Layer Normalization Unlike batch normalization, Layer Normalization directly estimates the normalization statistics from the summed inputs…

Similar Papers 제목 키워드 기반

ViT-LCA: A Neuromorphic Approach for Vision Transformers

2024-10-31 · Sanaz Mahmoodi Takaghaj

The recent success of Vision Transformers has generated significant interest in attention mechanisms and transformer architectures. Although existing methods have proposed spiking self-attention mechanisms compatible wit…

You Only Need Less Attention at Each Stage in Vision Transformers

2024-06-01 · CVPR 2024 1 · Shuoxi Zhang, Hanpeng Liu, Stephen Lin, Kun He

The advent of Vision Transformers (ViTs) marks a substantial paradigm shift in the realm of computer vision. ViTs capture the global information of images through self-attention modules, which perform dot product computa…

Learned Queries for Efficient Local Attention

2021-12-21 · CVPR 2022 1 · Moab Arar, Ariel Shamir, Amit H. Bermano

Vision Transformers (ViT) serve as powerful vision models. Unlike convolutional neural networks, which dominated vision research in previous years, vision transformers enjoy the ability to capture long-range dependencies…

Image ClassificationObject Detection

MaiT: integrating spatial locality into image transformers with attention masks

2021-09-29 · Ling Li, Ali Shafiee, Joseph H Hassoun

Though image transformers have shown competitive results with convolutional neural networks in computer vision tasks, lacking inductive biases such as locality still poses problems in terms of model efficiency especially…

Masked Attention as a Mechanism for Improving Interpretability of Vision Transformers

2024-04-28 · Clément Grisi, Geert Litjens, Jeroen van der Laak

Vision Transformers are at the heart of the current surge of interest in foundation models for histopathology. They process images by breaking them into smaller patches following a regular grid, regardless of their conte…

whole slide images