HorNet: Efficient High-Order Spatial Interactions with Recursive Gated Convolutions
Yongming Rao, Wenliang Zhao, Yansong Tang, Jie Zhou, Ser-Nam Lim, Jiwen Lu
Abstract
Recent progress in vision Transformers exhibits great success in various tasks driven by the new spatial modeling mechanism based on dot-product self-attention. In this paper, we show that the key ingredients behind the vision Transformers, namely input-adaptive, long-range and high-order spatial interactions, can also be efficiently implemented with a convolution-based framework. We present the Recursive Gated Convolution (Conv) that performs high-order spatial interactions with gated convolutions and recursive designs. The new operation is highly flexible and customizable, which is compatible with various variants of convolution and extends the two-order interactions in self-attention to arbitrary orders without introducing significant extra computation. Conv can serve as a plug-and-play module to improve various vision Transformers and convolution-based models. Based on the operation, we construct a new family of generic vision backbones named HorNet. Extensive experiments on ImageNet classification, COCO object detection and ADE20K semantic segmentation show HorNet outperform Swin Transformers and ConvNeXt by a significant margin with similar overall architecture and training configurations. HorNet also shows favorable scalability to more training data and larger model sizes. Apart from the effectiveness in visual encoders, we also show Conv can be applied to task-specific decoders and consistently improve dense prediction performance with less computation. Our results demonstrate that Conv can be a new basic module for visual modeling that effectively combines the merits of both vision Transformers and CNNs. Code is available at https://github.com/raoyongming/HorNet
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.
56 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- InceptionNeXt: When Inception Meets ConvNeXt cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- InceptionNeXt: When Inception Meets ConvNeXt cites RandAugment: Practical Automated Data Augmentation with a Reduced Search Space
- InceptionNeXt: When Inception Meets ConvNeXt cites Swin Transformer: Hierarchical Vision Transformer using Shifted Windows
- InceptionNeXt: When Inception Meets ConvNeXt cites Pyramid Vision Transformer: A Versatile Backbone for Dense Prediction without Convolutions
- InceptionNeXt: When Inception Meets ConvNeXt cites Training data-efficient image transformers & distillation through attention
- VMamba: Visual State Space Model cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- VMamba: Visual State Space Model cites Swin Transformer: Hierarchical Vision Transformer using Shifted Windows
- VMamba: Visual State Space Model cites Pyramid Vision Transformer: A Versatile Backbone for Dense Prediction without Convolutions
- VMamba: Visual State Space Model cites Training data-efficient image transformers & distillation through attention
- Vision Transformer Adapter for Dense Predictions cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- Vision Transformer Adapter for Dense Predictions cites Swin Transformer: Hierarchical Vision Transformer using Shifted Windows
- Vision Transformer Adapter for Dense Predictions cites Pyramid Vision Transformer: A Versatile Backbone for Dense Prediction without Convolutions
- Vision Transformer Adapter for Dense Predictions cites Training data-efficient image transformers & distillation through attention
- 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 RandAugment: Practical Automated Data Augmentation with a Reduced Search Space
- Swin Transformer: Hierarchical Vision Transformer using Shifted Windows cites Pyramid Vision Transformer: A Versatile Backbone for Dense Prediction without Convolutions
- Swin Transformer: Hierarchical Vision Transformer using Shifted Windows cites Training data-efficient image transformers & distillation through attention
- Scale-Aware Modulation Meet Transformer cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- Scale-Aware Modulation Meet Transformer cites RandAugment: Practical Automated Data Augmentation with a Reduced Search Space
- Scale-Aware Modulation Meet Transformer cites Swin Transformer: Hierarchical Vision Transformer using Shifted Windows
- Scale-Aware Modulation Meet Transformer cites Pyramid Vision Transformer: A Versatile Backbone for Dense Prediction without Convolutions
- Scale-Aware Modulation Meet Transformer cites Training data-efficient image transformers & distillation through attention
- Pyramid Vision Transformer: A Versatile Backbone for Dense Prediction without Convolutions cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- Pyramid Vision Transformer: A Versatile Backbone for Dense Prediction without Convolutions 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
- Fast Vision Transformers with HiLo Attention cites Swin Transformer: Hierarchical Vision Transformer using Shifted Windows
- Fast Vision Transformers with HiLo Attention cites Pyramid Vision Transformer: A Versatile Backbone for Dense Prediction without Convolutions
- Fast Vision Transformers with HiLo Attention cites Training data-efficient image transformers & distillation through attention
Cited by top-tier papers56
- VMamba: Visual State Space ModelYue Liu, Yunjie Tian, Yuzhong Zhao, Hongtian Yu et al.NeurIPS 2024 · 3,199 citations
- InceptionNeXt: When Inception Meets ConvNeXtWeihao Yu, Pan Zhou, Shuicheng Yan, Xinchao WangCVPR 2024 · 326 citations
- Fast Vision Transformers with HiLo AttentionZizheng Pan, Jianfei Cai, Bohan ZhuangNeurIPS 2022 · 321 citations
- Vision Transformer Adapter for Dense PredictionsZhe Chen, Yuchen Duan, Wenhai Wang, Junjun He et al.ICLR 2023 · 204 citations
- Scale-Aware Modulation Meet TransformerWeifeng Lin, Ziheng Wu, Jiayu Chen, Jun Huang et al.ICCV 2023 · 154 citations
Builds on33
- Swin Transformer: Hierarchical Vision Transformer using Shifted WindowsZe Liu, Yutong Lin, Yue Cao, Han Hu et al.ICCV 2021 · 31,683 citations
- 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
- Training data-efficient image transformers & distillation through attentionHugo Touvron, Matthieu Cord, Matthijs Douze, Francisco Massa et al.ICML 2021 · 8,974 citations
- Pyramid Vision Transformer: A Versatile Backbone for Dense Prediction without ConvolutionsWenhai Wang, Enze Xie, Xiang Li, Deng-Ping Fan et al.ICCV 2021 · 4,909 citations
- RandAugment: Practical Automated Data Augmentation with a Reduced Search SpaceEkin Dogus Cubuk, Barret Zoph, Jonathon Shlens, Quoc LeNeurIPS 2020 · 4,453 citations
Related papers
- A ConvNet for the 2020sZhuang Liu, Hanzi Mao, Chao-Yuan Wu, Christoph Feichtenhofer et al.CVPR 2022 · 6,782 citations
- UniNeXt: Exploring A Unified Architecture for Vision RecognitionFangjian Lin, Jianlong Yuan, Sitong Wu, Fan Wang et al.ACM MM 2023 · 15 citations
- Rethinking Spatial Dimensions of Vision TransformersByeongho Heo, Sangdoo Yun, Dongyoon Han, Sanghyuk Chun et al.ICCV 2021 · 733 citations
- Global Context Vision TransformersAli Hatamizadeh, Hongxu Yin, Greg Heinrich, Jan Kautz et al.ICML 2023 · 213 citations
- GPViT: A High Resolution Non-Hierarchical Vision Transformer with Group PropagationChenhongyi Yang, Jiarui Xu, Shalini De Mello, Elliot J. Crowley et al.ICLR 2023 · 7 citations
