# ResNeSt: Split-Attention Networks

Split-attention blocks let ResNet branches each get their own channel attention

Hang Zhang, Chongruo Wu, Zhongyue Zhang, Yi Zhu, Haibin Lin, Zhi Zhang and 6 more · arXiv · 2020-4-19

- **Problem** Channel attention such as SE-Net rescales a whole block at once, so the separate branches of a multi-path block cannot be weighted one by one. Multi-path designs therefore miss per-branch attention.
- **Method** ResNeSt stacks blocks that split each cardinal group into radix splits. Instead of one block-wide weighting, it fuses the splits of each group and applies soft attention across them.
- **Results** ResNeSt-101 reaches 46.91 mIoU on ADE20K validation with a DeepLabV3 head. ResNeSt-269 reaches 84.5 top-1 on ImageNet, according to the paper's results.

## Why attention is confined to one block

Convolutional layers aggregate information from neighboring positions and across channels in one operation. Inception-style models take a different route: they split the input into lower dimensional embeddings, transform each with its own filters, and concatenate the results. Channel-wise attention as in SE-Net pools each channel globally and rescales the feature maps with predicted factors.

Because it is applied to the whole block, all branches of a multi-path block are treated alike and cannot be weighted one by one.

SK-Net moves toward branch-level attention by weighting two network streams against each other. The study asks how to keep the multi-path layout, apply channel attention inside every branch, and still express the whole computation with one shared topology. The evaluation covers ImageNet classification and transfer to object detection, instance segmentation and semantic segmentation, with ResNeSt as the backbone in each transfer task.

## Split-Attention block: from groups to weighted fusion

The block divides its input feature maps into K cardinal groups. Each cardinal group passes through transformations that yield R splits, so the block has G = KR feature groups, where R is the radix and K the cardinality. Within a cardinal group, the R splits are added element-wise. Global average pooling over the H and W spatial positions then gives a channel statistic for each cardinal group, \\\[ s^k\_c = \\frac{1}{H \\times W}\\sum\_{i=1}^{H}\\sum\_{j=1}^{W}\\hat{U}^k\_c(i,j) \\\] so the c-th entry averages the fused map over space.

The statistic \\( s^k \\) feeds a mapping \\( G^c\_i \\) that scores each split for each channel. For \\( R \> 1 \\) the scores are normalized by a softmax over the R splits of the same channel, and for \\( R = 1 \\) a sigmoid is used instead. Each cardinal output is then the weighted sum \\\[ V^k\_c = \\sum\_{i=1}^{R} a^k\_i(c)\\, U\_{R(k-1)+i} \\\] so the weights for channel c combine only the splits of cardinal group k.

The K cardinal outputs are concatenated along the channel dimension to form V. The block output is Y = V + X when input and output shapes match. For strided blocks the shortcut uses Y = V + T(X), where T is a strided convolution or a convolution combined with pooling.

With radix equal to 1, the block applies squeeze-and-attention to each cardinal group, while SE-Net applies it over the entire block. With radix equal to 2, the block applies SK-like attention to each cardinal group.

## Radix-major layout for standard operators

The cardinality-major layout places the splits of each cardinal group next to each other. It is easy to read but hard to build from standard operators. The radix-major layout places the groups with the same radix index next to each other. A summation across splits then fuses the groups that share a cardinality index but differ in radix.

Global pooling keeps channels separate, which equals pooling each cardinal group and concatenating the results. Two fully connected layers whose number of groups equals the cardinality predict the split weights, and grouped fully connected layers act as a separate pair per cardinal group. The first 1×1 convolutions merge into one layer, and the 3×3 convolutions become a single grouped convolution with RK groups.

This is how the block is modularized with standard CNN operators.

## Training recipe beyond the block

For dense prediction, the transition blocks use a 3×3 average pooling layer for downsampling instead of strided convolution, because zero-padding at strided convolutions handles feature-map boundaries poorly when transferred. The network also adopts two ResNet-D changes: the first 7×7 convolution becomes three 3×3 convolutions, and a 2×2 average pooling is added to the shortcut before the 1×1 convolution in stride-two blocks.

The gamma of the final batch normalization in each block starts at zero.

Label smoothing replaces the one-hot target with \\( p\_i = 1-\\varepsilon \\) for the true class and \\( \\varepsilon/(K-1) \\) for the other classes, with a small \\( \\varepsilon \> 0 \\). The authors motivate this by the hard-label loss \\( -\\log q\_c \\), which keeps pushing the true logit upward and can induce overfitting. Table 1 does not report label smoothing as a separate row, so its effect on accuracy is not measured in the ablation.

Mixup forms \\( \\hat{x} = \\lambda x\_i + (1-\\lambda)x\_j \\) and \\( \\hat{y} = \\lambda y\_i + (1-\\lambda)y\_j \\), with \\( \\lambda \\) sampled from Beta(α = 0.2) for each augmented example. Auto Augment applies learned pairs of transformations, drawn from 16 jitter types and 24 two-step combinations, with a controllable magnitude.

Image classification comparisons use a crop size of 224 against ResNet variants and 256 against other approaches. DropBlock is applied to the convolutional layers in the last two stages, and a dropout layer with probability 0.2 precedes the final fully connected layer for networks deeper than 200 layers.

## ImageNet ablation: tweaks, radix and cardinality

The authors report that increasing the radix from 0 to 4 keeps improving top-1 while also increasing latency and memory use.

## ImageNet accuracy and throughput against EfficientNet

The deeper models use larger training crops: 256 for ResNeSt-200 and 320 for ResNeSt-269, with bicubic upsampling for inputs above 256. The text gives 320 for ResNeSt-269, while Table 2 lists 416 for that model. Throughput was measured with a mini-batch of 16 on a single NVIDIA V100, using the original author implementation of each model.

Figure 1 reports the GPU comparison as average latency in ms, where ResNeSt-269 is said to reach better accuracy than EfficientNet-B7 with 32% less latency. This is a different measurement from the img/sec throughput in Table 2, so the two are not interchangeable.

## Object detection with ResNeSt backbones

Faster-RCNN and Cascade-RCNN are trained on COCO-2017 training images with 118k images, with FPN, synchronized batch normalization, a 1x learning rate schedule and random short-side scale between 640 and 800. The ResNet backbone is replaced by ResNeSt in Detectron2 with default hyper-parameters and heads.

On the validation set, Faster-RCNN reaches 42.33 box mAP with ResNeSt50 and 44.72 with ResNeSt101, against 41.37 for ResNet101. Cascade-RCNN reaches 45.41 with ResNeSt50 and 47.50 with ResNeSt101, against 44.03 for ResNet101, and 49.03 with ResNeSt200. The authors report that the backbone raises box mAP by around 3% for both detectors, and that ResNeSt50 exceeds ResNet101 while using fewer parameters.

A Cascade-RCNN with a deformable ResNeSt101 backbone, trained with a 1x schedule, reaches 49.2 box mAP on the test-dev set with single-scale inference. This number is a test-dev result, while the Table 3 rows are validation results.

## Instance segmentation with Mask-RCNN and Cascade-Mask-RCNN

Mask-RCNN and Cascade-Mask-RCNN use FPN and synchronized batch normalization, with a 1x schedule and random shorter-side scaling to one of 640 to 800 pixels. The baseline is re-trained with the same settings using standard ResNet, and the default ResNet backbone is the MSRA version with stride-2 on the 1x1 convolution.

The authors report box/mask gains of 2.85%/2.09% for ResNeSt50 and 4.03%/3.14% for ResNeSt101 in Mask-RCNN. In Cascade-Mask-RCNN they report 3.13%/2.36% for ResNeSt50 and 3.51%/3.04% for ResNeSt101. In Table 4 on the validation set, Cascade-RCNN with ResNeSt101 reaches 48.30 box mAP and 41.56 mask mAP, against 44.79 and 38.52 for ResNet101.

Mask-RCNN with ResNeSt101 reaches 45.75 and 40.65, against 41.78 and 37.51 for ResNet101.

Table 4 also lists prior-work rows from other papers, and the caption says the ResNeSt-101 models outperform those prior ResNet-101 entries. Those rows are separate from the controlled comparison with the re-trained ResNet baselines. A Cascade-Mask-RCNN with ResNeSt101 and deformable convolution, trained with a 1x schedule, yields 50.0 box mAP and 43.1 mask mAP on test-dev.

## Semantic segmentation on ADE20K and Cityscapes

On Cityscapes, the models use 2,975 training images and 500 validation images across 19 categories, without coarse labels or extra data. ResNeSt-50 reaches 79.87 mIoU, above 79.42 for ResNet101, and ResNeSt-101 reaches 80.42 and ResNeSt-200 reaches 82.7.

ADE20K has 150 classes, with 20K training, 2K validation and 3K test images, and models are trained for 120 epochs. On the validation set, DeepLabV3 with ResNet101 reaches 81.11 pixAcc and 44.14 mIoU, while ResNeSt-101 reaches 82.07 and 46.91, and ResNeSt-200 reaches 82.45 and 48.36. ResNeSt-50 reaches 81.17 pixAcc and 45.12 mIoU, above the ResNet101 row.

The authors call the ResNeSt-101 model the best single model presented for ADE20K, and the highest prior mIoU in Table 5 is 45.90 from ACNet.

## Limitations

The authors note that large mini-batch training did not improve network accuracy and often degraded the results. The ResNeSt training recipe nevertheless uses mini-batches of 8192 for ResNeSt-50, 4096 for ResNeSt-101 and 2048 for ResNeSt-200 and ResNeSt-269.

The radix sweep reaches only radix 4, and the one variant with cardinality 2 is at width 40. Greater radix and cardinality are expected to help, but the paper does not test them. The speed comparison uses one NVIDIA V100 at mini-batch 16, and the compared models use different crop sizes, such as 256 for ResNeSt-101 against 380 for EfficientNet-B4.

## Paper info

- **Authors**: Hang Zhang, Chongruo Wu, Zhongyue Zhang, Yi Zhu, Haibin Lin, Zhi Zhang, Yue Sun, Tong He, Jonas Mueller, R. Manmatha, Mu Li, Alexander Smola
- **Venue**: arXiv · Preprint
- **First published**: 2020-4-19
- **Added**: 2026-11-12
- **Updated**: 2020-12-30
- **Version**: v2
- **arXiv**: 2004.08955
- **Category**: cs.CV
- **Original paper terms**: [arXiv non-exclusive 1.0](https://arxiv.org/licenses/nonexclusive-distrib/1.0/)
- **What we show**: Paper info and commentary

[Original paper ↗](https://arxiv.org/abs/2004.08955v2) · [PDF ↗](https://arxiv.org/pdf/2004.08955v2)

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

## Quote from the paper

Hang Zhang, Chongruo Wu, Zhongyue Zhang, Yi Zhu, Haibin Lin, Zhi Zhang, Yue Sun, Tong He, Jonas Mueller, R. Manmatha, Mu Li, Alexander Smola (2020). ResNeSt: Split-Attention Networks. arXiv:2004.08955v2. https://arxiv.org/abs/2004.08955v2

**BibTeX**

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

## Related papers

- [Cascade R-CNN: High Quality Object Detection and Instance Segmentation](https://refivu.com/en/papers/484c94a6-ca7a-4e4d-a933-9ea5ec919a68-cascade-r-cnn-high-quality-object-detection-and.md)
- [mixup: Beyond Empirical Risk Minimization](https://refivu.com/en/papers/cc1e3261-af7e-47fa-99d8-0806fbe6afcf-mixup-beyond-empirical-risk-minimization.md)
- [Learning Deep Features for Discriminative Localization](https://refivu.com/en/papers/6bdcd2a6-8c81-46b4-95d2-9560f97fd427-learning-deep-features-for-discriminative-localization.md)
- [Coordinate Attention for Efficient Mobile Network Design](https://refivu.com/en/papers/dfcb6641-7770-48f4-826a-22a20dca2f0b-coordinate-attention-for-efficient-mobile-network-design.md)
- [Swin Transformer: Hierarchical Vision Transformer using Shifted Windows](https://refivu.com/en/papers/d2c6b7fa-f256-44cf-9328-c55d713768da-swin-transformer-hierarchical-vision-transformer-using.md)
- [Masked-attention Mask Transformer for Universal Image Segmentation](https://refivu.com/en/papers/50cd7b17-dd9f-4dc4-9cef-f0a5bc0e4924-masked-attention-mask-transformer-for-universal-image.md)

## Other paper commentary

- [A Time Series is Worth 64 Words: Long-term Forecasting with Transformers](https://refivu.com/en/papers/15822929-13f1-40c7-8503-ce263dcf1639-a-time-series-is-worth-64-words-long.md)
- [Learning Bayesian Networks with the bnlearn R Package](https://refivu.com/en/papers/bdeeb8df-cd3a-419f-af61-f58819af852d-learning-bayesian-networks-with-the-bnlearn-r-package.md)
- [4D Spatio-Temporal ConvNets: Minkowski Convolutional Neural Networks](https://refivu.com/en/papers/bb10cb3b-b1cc-4119-9de1-8503fdbd27ff-4d-spatio-temporal-convnets-minkowski-convolutional-neural.md)
- [Designing Network Design Spaces](https://refivu.com/en/papers/37f6e2ac-519b-4565-a6cb-673b7ed0265a-designing-network-design-spaces.md)
- [Deep metric learning using Triplet network](https://refivu.com/en/papers/f6dd7198-0b7a-4f6a-a88a-eb7bbe1ff7ee-deep-metric-learning-using-triplet-network.md)
- [Autoformer: Decomposition Transformers with Auto-Correlation for Long-Term Series Forecasting](https://refivu.com/en/papers/d52df827-0d8c-42c3-97e1-3063d2cc1256-autoformer-decomposition-transformers-with-auto-correlation.md)
- [Deep Learning for Image Super-resolution: A Survey](https://refivu.com/en/papers/32a6ff3a-537c-439a-86c3-7db381a355bd-deep-learning-for-image-super-resolution-a-survey.md)
- [NIPS 2016 Tutorial: Generative Adversarial Networks](https://refivu.com/en/papers/3bddac01-a39c-4985-8cda-7d40f3279d07-nips-2016-tutorial-generative-adversarial-networks.md)
- [PaLM 2 Technical Report](https://refivu.com/en/papers/9930c339-e7c2-4330-9ea3-867aad7f3368-palm-2-technical-report.md)
- [Structure-measure: A New Way to Evaluate Foreground Maps](https://refivu.com/en/papers/66f23442-e0d8-4496-ab4e-14cc3ce84c90-structure-measure-a-new-way-to-evaluate-foreground.md)
- [Deep Learning for Anomaly Detection: A Survey](https://refivu.com/en/papers/f19cac5f-c77b-441b-b92c-d53cb0d82935-deep-learning-for-anomaly-detection-a-survey.md)
- [Deep Learning Based Text Classification: A Comprehensive Review](https://refivu.com/en/papers/f32bf8ee-1bca-48a8-92cd-28ac97a169bd-deep-learning-based-text-classification-a-comprehensive.md)

## Terms in this paper

- [ImageNet](https://refivu.com/en/terms/5eadad128667-imagenet)
- [Top-1 accuracy](https://refivu.com/en/terms/653c0b9eaa58-top-1-accuracy)
- [mIoU](https://refivu.com/en/terms/901dcc5384c2-miou)
- [Cityscapes](https://refivu.com/en/terms/1067bb006500-cityscapes)
- [global average pooling](https://refivu.com/en/terms/f70116a971b4-global-average-pooling)
- [mixup](https://refivu.com/en/terms/62023d7e891b-mixup)
- [throughput](https://refivu.com/en/terms/f064ae564aec-throughput)
- [DeepLabv3](https://refivu.com/en/terms/e29269572e23-deeplabv3)
- [label smoothing](https://refivu.com/en/terms/92ff7104c813-label-smoothing)
- [ResNeXt](https://refivu.com/en/terms/c4180a9c183c-resnext)
- [DropBlock](https://refivu.com/en/terms/8bf96bbc3f3f-dropblock)
- [cardinality](https://refivu.com/en/terms/f6ea2186ccba-cardinality)

---

AI-written text can contain mistakes. [Refivu](https://refivu.com/en/papers/7bce75cd-ce67-4d10-8c3b-89c0b6a895bd-resnest-split-attention-networks)
