Lune

NeurIPS2021Top-tier venue

ResT: An Efficient Transformer for Visual Recognition

Qinglong Zhang, Yu-Bin Yang

Abstract

This paper presents an efficient multi-scale vision Transformer, called ResT, that capably served as a general-purpose backbone for image recognition. Unlike existing Transformer methods, which employ standard Transformer blocks to tackle raw images with a fixed resolution, our ResT have several advantages: (1) A memory-efficient multi-head self-attention is built, which compresses the memory by a simple depth-wise convolution, and projects the interaction across the attention-heads dimension while keeping the diversity ability of multi-heads; (2) Position encoding is constructed as spatial attention, which is more flexible and can tackle with input images of arbitrary size without interpolation or fine-tune; (3) Instead of the straightforward tokenization at the beginning of each stage, we design the patch embedding as a stack of overlapping convolution operation with stride on the 2D-reshaped token map. We comprehensively validate ResT on image classification and downstream tasks. Experimental results show that the proposed ResT can outperform the recently state-of-the-art backbones by a large margin, demonstrating the potential of ResT as strong backbones. The code and models will be made publicly available at https://github.com/wofmanaf/ResT.

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.

21 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

  • Correlation-Aware Deep Tracking cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • Correlation-Aware Deep Tracking cites Swin Transformer: Hierarchical Vision Transformer using Shifted Windows
  • Correlation-Aware Deep Tracking cites Training data-efficient image transformers & distillation through attention
  • CrossFormer: A Versatile Vision Transformer Hinging on Cross-scale Attention cites CutMix: Regularization Strategy to Train Strong Classifiers With Localizable Features
  • CrossFormer: A Versatile Vision Transformer Hinging on Cross-scale Attention cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • CrossFormer: A Versatile Vision Transformer Hinging on Cross-scale Attention cites Swin Transformer: Hierarchical Vision Transformer using Shifted Windows
  • CrossFormer: A Versatile Vision Transformer Hinging on Cross-scale Attention cites Training data-efficient image transformers & distillation through attention
  • Rethinking Mobile Block for Efficient Attention-based Models cites CutMix: Regularization Strategy to Train Strong Classifiers With Localizable Features
  • Rethinking Mobile Block for Efficient Attention-based Models cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • Rethinking Mobile Block for Efficient Attention-based Models cites Swin Transformer: Hierarchical Vision Transformer using Shifted Windows
  • Rethinking Mobile Block for Efficient Attention-based Models cites Training data-efficient image transformers & distillation through attention
  • Swin Transformer: Hierarchical Vision Transformer using Shifted Windows cites CutMix: Regularization Strategy to Train Strong Classifiers With Localizable Features
  • Swin Transformer: Hierarchical Vision Transformer using Shifted Windows cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • Swin Transformer: Hierarchical Vision Transformer using Shifted Windows cites Training data-efficient image transformers & distillation through attention
  • Swin Transformer: Hierarchical Vision Transformer using Shifted Windows cites Deformable DETR: Deformable Transformers for End-to-End Object Detection
  • Self-Training Multi-Sequence Learning with Transformer for Weakly Supervised Video Anomaly Detection cites Training data-efficient image transformers & distillation through attention
  • Training data-efficient image transformers & distillation through attention cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • On the Connection between Local Attention and Dynamic Depth-wise Convolution cites CutMix: Regularization Strategy to Train Strong Classifiers With Localizable Features
  • On the Connection between Local Attention and Dynamic Depth-wise Convolution cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • On the Connection between Local Attention and Dynamic Depth-wise Convolution cites Swin Transformer: Hierarchical Vision Transformer using Shifted Windows
  • On the Connection between Local Attention and Dynamic Depth-wise Convolution cites Training data-efficient image transformers & distillation through attention
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers21

  1. CrossFormer: A Versatile Vision Transformer Hinging on Cross-scale AttentionWenxiao Wang, Lu Yao, Long Chen, Binbin Lin et al.ICLR 2022 · 367 citations
  2. Self-Training Multi-Sequence Learning with Transformer for Weakly Supervised Video Anomaly DetectionShuo Li, Fang Liu, Licheng JiaoAAAI 2022 · 282 citations
  3. Rethinking Mobile Block for Efficient Attention-based ModelsJiangning Zhang, Xiangtai Li, Jian Li, Liang Liu et al.ICCV 2023 · 223 citations
  4. Correlation-Aware Deep TrackingFei Xie, Chunyu Wang, Guangting Wang, Yue Cao et al.CVPR 2022 · 189 citations
  5. On the Connection between Local Attention and Dynamic Depth-wise ConvolutionQi Han, Zejia Fan, Qi Dai, Lei Sun et al.ICLR 2022 · 144 citations

Builds on15

  1. Swin Transformer: Hierarchical Vision Transformer using Shifted WindowsZe Liu, Yutong Lin, Yue Cao, Han Hu et al.ICCV 2021 · 31,683 citations
  2. 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
  3. Training data-efficient image transformers & distillation through attentionHugo Touvron, Matthieu Cord, Matthijs Douze, Francisco Massa et al.ICML 2021 · 8,974 citations
  4. Deformable DETR: Deformable Transformers for End-to-End Object DetectionXizhou Zhu, Weijie Su, Lewei Lu, Bin Li et al.ICLR 2021 · 7,353 citations
  5. CutMix: Regularization Strategy to Train Strong Classifiers With Localizable FeaturesSangdoo Yun, Dongyoon Han, Sanghyuk Chun, Seong Joon Oh et al.ICCV 2019 · 5,843 citations

Related papers

  1. ResT V2: Simpler, Faster and StrongerQinglong Zhang, Yu-Bin YangNeurIPS 2022 · 36 citations
  2. ViTAE: Vision Transformer Advanced by Exploring Intrinsic Inductive BiasYufei Xu, Qiming Zhang, Jing Zhang, Dacheng TaoNeurIPS 2021 · 429 citations
  3. CrossViT: Cross-Attention Multi-Scale Vision Transformer for Image ClassificationChun-Fu (Richard) Chen, Quanfu Fan, Rameswar PandaICCV 2021 · 2,072 citations
  4. Orthogonal Transformer: An Efficient Vision Transformer Backbone with Token OrthogonalizationHuaibo Huang, Xiaoqiang Zhou, Ran HeNeurIPS 2022 · 35 citations
  5. UniNeXt: Exploring A Unified Architecture for Vision RecognitionFangjian Lin, Jianlong Yuan, Sitong Wu, Fan Wang et al.ACM MM 2023 · 15 citations
Dusk over the sea between two cliffs drawn in fine vertical lines