Abstract
The ability to learn richer network representations generally boosts the performance of deep learning models. To improve representation-learning in convolutional neural networks, we present a multi-branch architecture, which applies channel-wise attention across different network branches to leverage the complementary strengths of both feature-map attention and multi-path representation. Our proposed Split-Attention module provides a simple and modular computation block that can serve as a drop-in replacement for the popular residual block, while producing more diverse representations via cross-feature interactions. Adding a Split-Attention module into the architecture design space of RegNet-Y and FBNetV2 directly improves the performance of the resulting network. Replacing residual blocks with our Split-Attention module, we further design a new variant of the ResNet model, named ResNeSt, which outperforms EfficientNet in terms of the accuracy/latency trade-off.
TL;DR
ResNeSt introduces a novel "Split-Attention" block that integrates channel-wise attention across multiple network branches. By combining the strengths of multi-path representations (like ResNeXt) with attentional mechanisms (like SE-Net), ResNeSt achieves a superior accuracy-latency trade-off on GPUs, outperforming models like EfficientNet while serving as a powerful, drop-in backbone for downstream tasks like object detection and segmentation.
What Problem Does This Paper Address?
In the evolution of Convolutional Neural Networks (CNNs), two major strategies have emerged for improving performance: multi-path representation and feature-map attention.
Multi-path models (e.g., Inception, ResNeXt) split inputs into several branches to learn diverse, independent features. Meanwhile, attention-based models (e.g., SE-Net, SK-Net) use global context to weight the importance of different channels or branches. However, these strategies are often treated separately. Furthermore, many recent high-accuracy models like EfficientNet rely heavily on depthwise convolutions. While depthwise convolutions have low FLOP counts (theoretical complexity), they are often poorly optimized on standard GPU hardware compared to regular convolutions, leading to higher actual latency.
The authors of ResNeSt sought a unified, modular architecture that combines multi-path diversity with cross-channel attention in a way that is both computationally efficient and highly effective for "dense prediction" tasks like object detection and semantic segmentation.
Methods
The core innovation is the Split-Attention Block. This modular block serves as a drop-in replacement for standard residual blocks by integrating attention across parallel feature-map groups.
The block functions through several stages:
- Featuremap Grouping: The input is divided into $K$ groups (cardinality). Each group is further divided into $R$ subgroups (radix).
- Transformation: Each subgroup undergoes transformations, typically $1 \times 1$ and $3 \times 3$ convolutions.
- Split-Attention: Within each cardinal group, subgroups are fused via element-wise summation. A global pooling layer captures global context, which is then processed through fully connected layers to generate attention weights for each subgroup.
- Weighted Fusion: Subgroups are multiplied by their weights and merged.
- Radix-Major Implementation: To ensure efficiency, the authors developed a "radix-major" layout, allowing the block to be implemented using standard grouped convolutions and fully connected layers optimized for modern GPU hardware.
Key Insights and Ideas
- The Power of Integration: Attention is most effective when used to coordinate information between parallel branches rather than just as a global layer at the end of a block.
- FLOPs vs. Latency: Low FLOP counts do not always translate to low latency. By using standard grouped convolutions instead of depthwise ones, ResNeSt achieves better throughput on GPUs than EfficientNet, despite higher theoretical complexity.
- Downstream Versatility: ResNeSt’s design makes it exceptionally good at transfer learning for "dense prediction" tasks like object detection and semantic segmentation, where spatial information preservation is critical.
Key Results
ResNeSt demonstrates state-of-the-art performance across several benchmarks including ImageNet, MS-COCO, and ADE20K.
- ImageNet Performance: ResNeSt-50 achieves 81.13% top-1 accuracy, a significant jump over the standard ResNet-50 (~76-77%).
- Efficiency: ResNeSt-269 achieves higher accuracy than EfficientNet-B7 while being 32% faster in terms of average latency on a V100 GPU.
- Object Detection: Using ResNeSt-101 as a backbone for Cascade R-CNN yields 48.3% box mAP on COCO, outperforming previous ResNet-based versions by a wide margin.
- Semantic Segmentation: On the ADE20K dataset, ResNeSt-101 achieves 46.91% mIoU, surpassing previous best results by more than 1%.
Limitations and Future Work
ResNeSt is highly efficient on GPUs, but its performance on mobile devices or CPUs—where depthwise convolutions are well-optimized—was not the primary focus. Future work could involve combining the Split-Attention block with Neural Architecture Search (NAS) to find even more optimal configurations for specific hardware or tasks.
Summary updated