ResNeSt: Split-Attention Networks

Hang Zhang, Chongruo Wu, Zhongyue Zhang, Yi Zhu, Zhi Zhang, Haibin Lin, Yue Sun, Tong He, Jonas Mueller, R. Manmatha, Mu Li, Alexander J. Smola

TL;DR

ResNeSt introduces a novel Split-Attention block that elegantly marries multi-path network topologies with channel-wise attention mechanisms. By organizing feature maps into cardinal groups and further splitting them into architectural branches, ResNeSt achieves state-of-the-art accuracy-latency trade-offs on GPUs, outperforming popular Neural Architecture Search (NAS) models like EfficientNet while serving as an exceptionally strong backbone for downstream tasks like object detection and segmentation.

What Problem Does This Paper Address?

Modern computer vision has seen massive success by augmenting standard Convolutional Neural Networks (CNNs) with two distinct paradigms:

  1. Multi-path representations: Splitting inputs into lower-dimensional embeddings to look at different features independently (e.g., ResNeXt).
  2. Channel-wise attention: Adaptively recalibrating channel responses based on global context (e.g., SE-Net, SK-Net).

However, combining these approaches efficiently has proven difficult. Meanwhile, state-of-the-art models generated via Neural Architecture Search (NAS)—such as EfficientNet—frequently rely on depth-wise convolutions. While depth-wise convolutions look great on paper because they reduce FLOPs and parameter counts, they are notoriously poorly optimized for parallel GPU computing hardware, leading to high inference latency.

The authors of ResNeSt set out to design a simple, modularized architecture that leverages the representational power of both multi-path learning and channel-wise attention, but does so using standard, highly optimized CNN operators to maximize GPU throughput.

Methods

The core innovation is the Split-Attention Block. Instead of applying attention across an entire network block or just two simple branches, ResNeSt introduces a more granular approach:

  • Featuremap Grouping: The input feature map is divided into $K$ cardinal groups. Inside each cardinal group, the feature map is split further into $R$ radix paths (yielding a total of $G = K \times R$ groups). A series of transformations (like $1\times1$ and $3\times3$ convolutions) are applied to each path independently.
  • Split-Attention Fusion: Within each cardinal group, the splits are fused via element-wise summation. The network then applies global average pooling to extract channel-wise statistics. A soft attention mechanism (using fully connected layers and an r-Softmax activation) computes weights for each split, which are then multiplied back into the original splits.
Figure 2: Comparing our ResNeSt block with SE-Net [28] and SK-Net [36]. A detailed view of Split-Attention unit is shown in Figure 3. For simplicity, we show ResNeSt block in cardinality-major view (the featuremap groups with same cardinal group index reside next to each other). We use radix-major in the real implementation, which can be modularized and accelerated by group convolution and standard CNN layers (see supplementary material).
  • Radix-Major Implementation: To make this mathematically complex layout run fast on modern hardware, the authors rearranged the physical layout of the feature maps. By grouping channels with the same radix index together, the entire Split-Attention block can be modularized using standard, highly optimized operations like grouped convolutions and unified CNN layers.
Figure 4: Radix-major implementation of ResNeSt block, where the featuremap groups with same radix index but dif- ferent cardinality are next to each other physically. This implementation can be implemented using unified CNN op- erators. (See details in Section 3.2.)

Additionally, the authors incorporate several modern training strategies and network tweaks, including replacing the initial $7\times7$ convolution with three $3\times3$ convolutions, using average downsampling at transition blocks, and leveraging data augmentations like Mixup and AutoAugment.

Datasets

The authors evaluated ResNeSt across several standard, highly competitive computer vision benchmarks:

  • ImageNet 2012: For image classification (1.28M training images, 50K validation images across 1000 classes).
  • MS-COCO: For object detection and instance segmentation.
  • Cityscapes & ADE20K: For dense semantic segmentation and scene parsing.

Key Insights and Ideas

  • FLOPs vs. Latency Reality Check: A key takeaway is that lower FLOP counts do not automatically mean faster models. EfficientNet models use depth-wise convolutions to minimize FLOPs, but ResNeSt proves that standard/grouped convolutions can achieve lower actual latency on real GPU hardware due to better parallelization.
  • Granular Attention Matters: Instead of treating attention as a monolithic operation over the entire layer, calculating attention within independent cardinal groups allows the network to capture subtle, cross-feature interactions much more effectively.
  • Drop-in Versatility: Because ResNeSt retains the meta-architecture of a standard ResNet, it can be used as a drop-in backbone replacement for existing frameworks (like Faster R-CNN or DeepLabV3) without altering the downstream heads.

Key Results

ImageNet Classification

ResNeSt achieves a superior accuracy-to-latency curve compared to EfficientNet on an NVIDIA V100 GPU. Notably, ResNeSt-269 achieves higher top-1 accuracy than EfficientNet-B7 while exhibiting 32% less inference latency.

Figure 1: ResNeSt outperforms EfficientNet in accuracy- latency trade-offs on GPU. Notably, ResNeSt-269 has achieved better accuracy than EfficientNet-B7 with 32% less latency. (details in Section 5).

Downstream Tasks

When serving as a backbone for other vision tasks, ResNeSt consistently outperforms standard ResNet variants:

  • Instance Segmentation (MS-COCO): A Cascade-RCNN model utilizing a ResNeSt-101 backbone achieved 48.3% box mAP and 41.56% mask mAP, significantly outperforming prior ResNet-101 baselines.
  • Semantic Segmentation (ADE20K): DeepLabV3 paired with ResNeSt-101 achieved a 46.91% mIoU, outperforming the standard ResNet-101 baseline by nearly 3% mIoU.
Semantic segmentation results on the ADE20K validation set.

Limitations and Future Work

While ResNeSt offers excellent scaling properties, the authors note that continuously increasing the radix hyperparameter ($R$) beyond 4 yields diminishing returns—improving accuracy slightly but noticeably increasing latency and memory consumption.

For future work, the authors suggest that the Split-Attention block could be integrated into the search spaces of Neural Architecture Search algorithms, potentially discovering even more optimized, hardware-friendly architectures automatically.

Summary updated

BibTeX
@misc{zhang2020resnest,
  author = {Hang Zhang and Chongruo Wu and Zhongyue Zhang and Yi Zhu and Zhi Zhang and Haibin Lin and Yue Sun and Tong He and Jonas Mueller and R. Manmatha and Mu Li and Alexander J. Smola},
  title = {{ResNeSt: Split-Attention Networks}},
  year = {2020},
  eprint = {2004.08955},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2004.08955},
}
Figure