Vision Transformer With Quadrangle Attention
Top Cited Papers
- 8 January 2024
- journal article
- research article
- Published by Institute of Electrical and Electronics Engineers (IEEE) in IEEE Transactions on Pattern Analysis and Machine Intelligence
- Vol. 46 (5) , 3608-3624
Abstract
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 data-agnostic, constrains the flexibility of transformers to adapt to objects of varying sizes, shapes, and orientations. To address this issue, we propose a novel quadrangle attention (QA) method that extends the window-based attention to a general quadrangle formulation. Our method employs an end-to-end learnable quadrangle regression module that predicts a transformation matrix to transform default windows into target quadrangles for token sampling and attention calculation, enabling the network to model various targets with different shapes and orientations and capture rich context information. We integrate QA into plain and hierarchical vision transformers to create a new architecture named QFormer, which offers minor code modifications and negligible extra computational cost. Extensive experiments on public benchmarks demonstrate that QFormer outperforms existing representative vision transformers on various vision tasks, including classification, object detection, semantic segmentation, and pose estimation. The code will be made publicly available at QFormer.Keywords
All Related Versions
Funding Information
- Australian Research Council (FL-170100117)
This publication has 40 references indexed in Scilit:
- ViTAEv2: Vision Transformer Advanced by Exploring Inductive Bias for Image Recognition and BeyondInternational Journal of Computer Vision, 2023
- KVT: k-NN Attention for Boosting Vision Transformers2022
- Exploring Plain Vision Transformer Backbones for Object Detection2022
- DaViT: Dual Attention Vision Transformers2022
- VSA: Learning Varied-Size Window Attention in Vision Transformers2022
- PVT v2: Improved baselines with pyramid vision transformerComputational Visual Media, 2022
- Semantic Understanding of Scenes Through the ADE20K DatasetInternational Journal of Computer Vision, 2018
- Simple Baselines for Human Pose Estimation and Tracking2018
- Unified Perceptual Parsing for Scene Understanding2018
- Microsoft COCO: Common Objects in Context2014