Skip to main content
QUICK REVIEW

[Paper Review] HorNet: Efficient High-Order Spatial Interactions with Recursive Gated Convolutions

Yongming Rao, Wenliang Zhao|arXiv (Cornell University)|Jul 28, 2022
Advanced Neural Network ApplicationsComputer Science185 citations
TL;DR

HorNet introduces Recursive Gated Convolutions (g^n Conv) to realize high-order, input-adaptive spatial interactions in a convolution-based framework, yielding competitive or superior results to vision Transformers and CNNs across ImageNet, COCO, and ADE20K, with HorFPN for enhanced dense prediction.

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 ($ extit{g}^ extit{n}$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. $ extit{g}^ extit{n}$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 $ extit{g}^ extit{n}$Conv can be applied to task-specific decoders and consistently improve dense prediction performance with less computation. Our results demonstrate that $ extit{g}^ extit{n}$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

Motivation & Objective

  • Motivate the study of high-order spatial interactions in vision models beyond standard convolutions and self-attention.
  • Propose a convolutional mechanism (g^n Conv) to realize arbitrary-order spatial interactions with bounded computation.
  • Build HorNet backbones by replacing self-attention with g^n Conv and validate on classification, detection, and segmentation tasks.

Proposed method

  • Introduce gated convolution (g Conv) to enable input-adaptive spatial mixing.
  • Develop Recursive Gated Convolution (g^n Conv) to achieve n-order spatial interactions with a coarse-to-fine channel allocation and a single depth-wise convolution path (Equation 3.3–3.5).
  • Provide a bounded-FLOPs analysis showing FLOPs(g^n Conv) < HWC(2K^2 + 11/3 C + 2).
  • Support long-range interactions via 7×7 kernels or Global Filter (GF) layers, enabling large receptive fields.
  • Construct HorNet backbones by substituting self-attention blocks with g^n Conv, and build HorFPN variants for feature fusion in dense prediction tasks.

Experimental results

Research questions

  • RQ1Can g^n Conv realize arbitrary-order spatial interactions with bounded computational cost?
  • RQ2Do HorNet backbones outperform Swin Transformer and ConvNeXt under comparable architecture and training setups?
  • RQ3Do HorFPN variants improve dense prediction tasks (semantic segmentation and object detection) with lower FLOPs?
  • RQ4Is the g^n Conv approach scalable with larger data and model sizes (ImageNet-22K pre-training)?

Key findings

  • HorNet variants consistently outperform Swin Transformers and ConvNeXt under similar configurations across ImageNet classification, COCO object detection, and ADE20K segmentation.
  • With ImageNet-22K pre-training, HorNet-L achieves 87.7% top-1 accuracy on ImageNet, 57.9% mIoU on ADE20K val, and 59.2% box AP on COCO val.
  • HorFPN, which replaces standard 3×3 convolutions with g^n Conv for feature fusion, yields improvements in semantic segmentation and object detection with notable FLOPs reductions.
  • HorNet-L 7×7 and HorNet-L GF surpass ConvNeXt-XL while using roughly 25% fewer FLOPs in semantic segmentation benchmarks.
  • GF variants generally attain better performance than 7×7 variants across multiple tasks, highlighting the benefit of incorporating global interactions.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.