MaiT: Leverage Attention Masks for More Efficient Image Transformers
Not on the map. Why?
Abstract (arXiv)
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 for embedded applications. In this work, we address this issue by introducing attention masks to incorporate spatial locality into self-attention heads. Local dependencies are captured efficiently with masked attention heads along with global dependencies captured by unmasked attention heads. With Masked attention image Transformer - MaiT, top-1 accuracy increases by up to 1.7% compared to CaiT with fewer parameters and FLOPs, and the throughput improves by up to 1.5X compared to Swin. Encoding locality with attention masks is model agnostic, and thus it applies to monolithic, hierarchical, or other novel transformer architectures.
Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 32 of its 39 references that are in the map. First posted on arXiv 6 Jul 2022.
Builds on
32 of 39 references.
References · 32
- 2017Attention Is All You Needcited by 59,932
- 2015Deep Residual Learning for Image Recognitioncited by 51,809
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,082
- 2019EfficientNet: Rethinking Model Scaling for Convolutional Neural Networkscited by 6,415
- 2020Training data-efficient image transformers & distillation through attentioncited by 4,560
- 2020Longformer: The Long-Document Transformercited by 3,362
- 2021Pyramid Vision Transformer: A Versatile Backbone for Dense Prediction without Convolutionscited by 1,960
- 2019Generating Long Sequences with Sparse Transformerscited by 1,523
- 2021Tokens-to-Token ViT: Training Vision Transformers from Scratch on ImageNetcited by 1,096
- 2021Perceiver: General Perception with Iterative Attentioncited by 1,089
- 2021CvT: Introducing Convolutions to Vision Transformerscited by 946
20 more
- 2017Revisiting Unreasonable Effectiveness of Data in Deep Learning Eracited by 916
- 2021CrossViT: Cross-Attention Multi-Scale Vision Transformer for Image Classificationcited by 806
- 2021Going deeper with Image Transformerscited by 759
- 2021MobileViT: Light-weight, General-purpose, and Mobile-friendly Vision Transformercited by 636
- 2021Transformer in Transformercited by 632
- 2021Twins: Revisiting the Design of Spatial Attention in Vision Transformerscited by 565
- 2019Stand-Alone Self-Attention in Vision Modelscited by 542
- 2021LeViT: a Vision Transformer in ConvNet's Clothing for Faster Inferencecited by 475
- 2021Conditional Positional Encodings for Vision Transformerscited by 402
- 2021Bottleneck Transformers for Visual Recognitioncited by 364
- 2020Visual Transformers: Token-based Image Representation and Processing for Computer Visioncited by 333
- 2021CMT: Convolutional Neural Networks Meet Vision Transformerscited by 310
- 2021Incorporating Convolution Designs into Visual Transformerscited by 248
- 2021LocalViT: Analyzing Locality in Vision Transformerscited by 228
- 2021Co-Scale Conv-Attentional Image Transformerscited by 224
- 2019Local Relation Networks for Image Recognitioncited by 210
- 2021Efficient Self-supervised Vision Transformers for Representation Learningcited by 149
- 2021Lite Vision Transformer with Enhanced Self-Attentioncited by 64
- 2021BossNAS: Exploring Hybrid CNN-transformers with Block-wisely Self-supervised Neural Architecture Searchcited by 63
- 2021Centroid Transformers: Learning to Abstract with Attentioncited by 20
Built on by
Not cited yet.