paper-with-me

Papers

VSA: Learning Varied-Size Window Attention in Vision Transformers

2022-04-18 · Qiming Zhang, Yufei Xu, Jing Zhang, DaCheng Tao

Attention within windows has been widely explored in vision transformers to balance the performance, computation complexity, and memory footprint. However, current models adopt a hand-crafted fixed-size window design, which restricts their capacity of modeling long-term dependencies and adapting to objects of different sizes. To address this drawback, we propose \textbf{V}aried-\textbf{S}ize Window \textbf{A}ttention (VSA) to learn adaptive window configurations from data. Specifically, based on the tokens within each default window, VSA employs a window regression module to predict the size and location of the target window, i.e., the attention area where the key and value tokens are sampled. By adopting VSA independently for each attention head, it can model long-term dependencies, capture rich context from diverse windows, and promote information exchange among overlapped windows. VSA is an easy-to-implement module that can replace the window attention in state-of-the-art representative models with minor modifications and negligible extra computational cost while improving their performance by a large margin, e.g., 1.1\% for Swin-T on ImageNet classification. In addition, the performance gain increases when using larger images for training and test. Experimental results on more downstream tasks, including object detection, instance segmentation, and semantic segmentation, further demonstrate the superiority of VSA over the vanilla window attention in dealing with objects of different sizes. The code will be released https://github.com/ViTAE-Transformer/ViTAE-VSA.

📄 PDF Abstract BibTeX arXiv:2204.08446

Code (2)

vitae-transformer/vitae-vsa 공식 구현 pytorch
vitae-transformer/qformer pytorch

Tasks

Instance SegmentationObject DetectionSemantic Segmentation

Similar Papers 제목 키워드 기반

Advancing Plain Vision Transformer Towards Remote Sensing Foundation Model

2022-08-08 · Di Wang, Qiming Zhang, Yufei Xu, Jing Zhang 외

Large-scale vision foundation models have made significant progress in visual tasks on natural images, with vision transformers being the primary choice due to their good scalability and representation ability. However, …

Aerial Scene ClassificationFew-Shot LearningObject Detection In Aerial ImagesSemantic Segmentation

Vision Transformer with Quadrangle Attention

2023-03-27 · Qiming Zhang, Jing Zhang, Yufei Xu, DaCheng Tao

Window-based attention has become a popular choice in vision transformers due to its superior performance, lower computational complexity, and less memory footprint. However, the design of hand-crafted windows, which is …

object-detectionObject DetectionPose EstimationSemantic Segmentation

Beyond Fixation: Dynamic Window Visual Transformer

2022-03-24 · CVPR 2022 1 · Pengzhen Ren, Changlin Li, Guangrun Wang, Yun Xiao 외

Recently, a surge of interest in visual transformers is to reduce the computational cost by limiting the calculation of self-attention to a local window. Most current work uses a fixed single-scale window for modeling by…

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

Segmented Recurrent Transformer: An Efficient Sequence-to-Sequence Model

2023-05-24 · Yinghan Long, Sayeed Shafayet Chowdhury, Kaushik Roy

Transformers have shown dominant performance across a range of domains including language and vision. However, their computational cost grows quadratically with the sequence length, making their usage prohibitive for res…

Abstractive Text SummarizationText Summarization