Lune

CVPR2021Top-tier venue

Scaling Local Self-Attention for Parameter Efficient Visual Backbones

Ashish Vaswani, Prajit Ramachandran, Aravind Srinivas, Niki Parmar, Blake A. Hechtman, Jonathon Shlens

Abstract

Self-attention has the promise of improving computer vision systems due to parameter-independent scaling of receptive fields and content-dependent interactions, in contrast to parameter-dependent scaling and content-independent interactions of convolutions. Self-attention models have recently been shown to have encouraging improvements on accuracy-parameter trade-offs compared to baseline convolutional models such as ResNet-50. In this work, we aim to develop self-attention models that can outperform not just the canonical baseline models, but even the high-performing convolutional models. We propose two extensions to selfattention that, in conjunction with a more efficient implementation of self-attention, improve the speed, memory usage, and accuracy of these models. We leverage these improvements to develop a new self-attention model family, HaloNets, which reach state-of-the-art accuracies on the parameterlimited setting of the ImageNet classification benchmark. In preliminary transfer learning experiments, we find that HaloNet models outperform much larger models and have better inference performance. On harder tasks such as object detection and instance segmentation, our simple local self-attention and convolutional hybrids show improvements over very strong baselines. These results mark another step in demonstrating the efficacy of self-attention models on settings traditionally dominated by convolutional models.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

97 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • CoAtNet: Marrying Convolution and Attention for All Data Sizes cites Attention Augmented Convolutional Networks
  • CoAtNet: Marrying Convolution and Attention for All Data Sizes cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • CoAtNet: Marrying Convolution and Attention for All Data Sizes cites RandAugment: Practical Automated Data Augmentation with a Reduced Search Space
  • Uformer: A General U-Shaped Transformer for Image Restoration cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • MLP-Mixer: An all-MLP Architecture for Vision cites On the Relationship between Self-Attention and Convolutional Layers
  • MLP-Mixer: An all-MLP Architecture for Vision cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • MLP-Mixer: An all-MLP Architecture for Vision cites RandAugment: Practical Automated Data Augmentation with a Reduced Search Space
  • On the Relationship between Self-Attention and Convolutional Layers cites Attention Augmented Convolutional Networks
  • Scaling Up Your Kernels to 31×31: Revisiting Large Kernel Design in CNNs cites MLP-Mixer: An all-MLP Architecture for Vision
  • Scaling Up Your Kernels to 31×31: Revisiting Large Kernel Design in CNNs cites Attention Augmented Convolutional Networks
  • Scaling Up Your Kernels to 31×31: Revisiting Large Kernel Design in CNNs cites On the Relationship between Self-Attention and Convolutional Layers
  • Scaling Up Your Kernels to 31×31: Revisiting Large Kernel Design in CNNs cites Local Relation Networks for Image Recognition
  • Scaling Up Your Kernels to 31×31: Revisiting Large Kernel Design in CNNs cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • Scaling Up Your Kernels to 31×31: Revisiting Large Kernel Design in CNNs cites RandAugment: Practical Automated Data Augmentation with a Reduced Search Space
  • An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale cites Attention Augmented Convolutional Networks
  • An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale cites On the Relationship between Self-Attention and Convolutional Layers
  • An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale cites Local Relation Networks for Image Recognition
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers97

  1. MLP-Mixer: An all-MLP Architecture for VisionIlya O. Tolstikhin, Neil Houlsby, Alexander Kolesnikov, Lucas Beyer et al.NeurIPS 2021 · 3,862 citations
  2. Uformer: A General U-Shaped Transformer for Image RestorationZhendong Wang, Xiaodong Cun, Jianmin Bao, Wengang Zhou et al.CVPR 2022 · 1,970 citations
  3. CoAtNet: Marrying Convolution and Attention for All Data SizesZihang Dai, Hanxiao Liu, Quoc V. Le, Mingxing TanNeurIPS 2021 · 1,747 citations
  4. Palette: Image-to-Image Diffusion ModelsChitwan Saharia, William Chan, Huiwen Chang, Chris A. Lee et al.SIGGRAPH 2022 · 1,638 citations
  5. Scaling Up Your Kernels to 31×31: Revisiting Large Kernel Design in CNNsXiaohan Ding, Xiangyu Zhang, Jungong Han, Guiguang DingCVPR 2022 · 1,298 citations

Builds on11

  1. An Image is Worth 16x16 Words: Transformers for Image Recognition at ScaleAlexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn et al.ICLR 2021 · 21,477 citations
  2. RandAugment: Practical Automated Data Augmentation with a Reduced Search SpaceEkin Dogus Cubuk, Barret Zoph, Jonathon Shlens, Quoc LeNeurIPS 2020 · 4,453 citations
  3. Attention Augmented Convolutional NetworksIrwan Bello, Barret Zoph, Quoc Le, Ashish Vaswani et al.ICCV 2019 · 1,149 citations
  4. On the Relationship between Self-Attention and Convolutional LayersJean-Baptiste Cordonnier, Andreas Loukas, Martin JaggiICLR 2020 · 629 citations
  5. Local Relation Networks for Image RecognitionHan Hu, Zheng Zhang, Zhenda Xie, Stephen LinICCV 2019 · 555 citations

Related papers

  1. Bottleneck Transformers for Visual RecognitionAravind Srinivas, Tsung-Yi Lin, Niki Parmar, Jonathon Shlens et al.CVPR 2021
  2. LambdaNetworks: Modeling long-range Interactions without AttentionIrwan BelloICLR 2021 · 48 citations
  3. Explicitly Modeled Attention Maps for Image ClassificationAndong Tan, Duc Tam Nguyen, Maximilian Dax, Matthias Nießner et al.AAAI 2021 · 10 citations
  4. SA-Matching DETR: A Lightweight Transformer Detector with Enhanced Scale Adaptive MatchingChengshan Yang, Pengnian Zhang, Jinjing ZhaoCVPR Findings 2026
  5. Iformer: Integrating ConvNet and Transformer for Mobile ApplicationChuanyang ZhengICLR 2025
Dusk over the sea between two cliffs drawn in fine vertical lines