Back to paper library
arXiv 2016CVPR 2017Classic CNNsPaper notes

ResNeXt

Exploring the Next Dimension

Original paper

Aggregated Residual Transformations for Deep Neural Networks

Paper authors

Saining Xie · Ross Girshick · Piotr Dollár · Zhuowen Tu · Kaiming He

Publication
CVPR 2017Conference
First submitted to arXiv
arXiv:1611.05431
Cite this paper · BibTeX

The citation identifies the linked source version. It cites the original paper and its authors.

@misc{classiccnnsresnext2016,
  title = {{Aggregated Residual Transformations for Deep Neural Networks}},
  author = {Saining Xie and Ross Girshick and Piotr Dollár and Zhuowen Tu and Kaiming He},
  year = {2016},
  eprint = {1611.05431},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1611.05431}
}
On this page

Remember the Inception model we discussed earlier?

That intricate branching structure must have left quite an impression, right?

Problem Definition

Inception demonstrated that well-designed network architectures could achieve superior performance with lower theoretical complexity.

However, this design approach introduces several issues:

Generalization to Downstream Tasks

In the Inception model, different sizes of convolutional kernels (e.g., 1x1, 3x3, 5x5) are used simultaneously to extract features at different scales.

The kernel sizes, channel counts and branch connections must be chosen for each module. Different datasets may call for different choices: larger kernels capture more context, while smaller ones capture finer details. That makes redesigning or scaling Inception demanding, even though using a pretrained model for a downstream task does not require a new architecture search every time.

Not Conducive to Model Design

Current neural network research has gradually shifted from "feature engineering" to "model design engineering," i.e., how to design a good neural network.

The design of the Inception model requires a lot of human labor and time and is not easy to scale to larger models.

However, the "split-transform-merge" design philosophy is still very valuable.

Solution

Network Architecture

As shown in the above image, the left side is the original ResNet structure, and the right side is the ResNeXt structure proposed by the authors.

The authors borrowed design methods from VGG and ResNet, adopting a highly modular design, making the model consist of a stack of residual blocks. Then, they introduced a new dimension: cardinality, which serves as an important factor besides depth and width.

Cardinality is the number of parallel transformations being aggregated. In the equivalent grouped-convolution implementation, it is the group count of the middle 3×3 convolution, after a 1×1 input projection. Here, 32×4d means 32 groups of four intermediate channels, rather than splitting the original input directly into four-channel groups.

Furthermore, the authors simplified the design space through two simple rules, making the entire network design more straightforward and unified:

  • Rule 1: If the same size of feature maps is produced, these blocks share the same hyperparameters (width and filter size).
  • Rule 2: Each time the feature map is down-sampled by 2 times, the module's width is multiplied by 2 times.

Finally, the concept of Aggregated Transformations was introduced, extending the basic operations of neurons to more complex transformations and using bottleneck architecture and grouped convolutions to simplify implementation and improve model performance.

This architecture exists in several equivalent forms, as shown below:

  • (a) in the above image is the structure proposed in this paper.
  • (b) concatenates the outputs of the separate 3×3 branches, then shares one 128→256 1×1 convolution.
  • (c) implements those branches with a 32-group 3×3 convolution, followed by the same 128→256 1×1 convolution.

Model Configuration

Grouped convolution makes the middle 3×3 operation cheaper, so the authors increase the intermediate total width from 64 to 128 channels and use 32 groups. Table 1 reports about 25.5M/25.0M parameters and 4.1G/4.2G FLOPs for ResNet-50/ResNeXt-50: similar, rather than identical, complexity.

Discussion

Training Performance on ImageNet-1K

The above image shows the validation and training errors of different models as the number of training epochs increases.

Compared to ResNet-50, the 32×4d ResNeXt-50 achieves a validation error of 22.2%, which is 1.7 percentage points lower than ResNet-50's 23.9%.

As the cardinality CC increases from 1 to 32 while maintaining the same model complexity, the error rate continuously decreases. The training error of the 32×4d ResNeXt is significantly lower than that of ResNet-50, indicating that the performance improvement mainly comes from the enhanced model representation capability rather than regularization effects.

For ResNet-101, the 32×4d ResNeXt-101 lowers top-1 validation error by 0.8 percentage points relative to ResNet-101. Although the validation error improvement is smaller than that of ResNet-50, the training error improvement is still significant (ResNet-101 has 20%, while 32×4d ResNeXt-101 has 16%).

Increasing Model Complexity

To test the impact of the number of groups on model performance, the authors conducted the following experiments:

  1. Doubling the Complexity

    • Compared to the ResNet-101 baseline (22.0% top-1 validation error), the higher-complexity variants tested in this experiment reduce that error.
    • But the effect is limited:
      • Increasing depth (ResNet-200) lowers top-1 validation error by 0.3 percentage points.
      • Increasing width (wider ResNet-101) lowers top-1 validation error by 0.7 percentage points.
  2. Increasing Cardinality is More Effective

    Experiments show that increasing the cardinality CC shows better results than increasing depth or width.

    • 2×64d ResNeXt-101 reduces top-1 error to 20.7%.
      • Doubling CC on the 1×64d ResNet-101 baseline while maintaining width
    • 64×4d ResNeXt-101 reduces top-1 error to 20.4%.
      • Doubling CC on the 32×4d ResNeXt-101 while maintaining width
  3. Performance at Lower Complexity

    32×4d ResNeXt-101 (21.2%) outperforms deeper ResNet-200 and wider ResNet-101, despite having only about 50% of their complexity. This indicates that cardinality CC is a more effective dimension than depth and width.

ImageNet-1K Model Performance

The above table shows the single-crop test results on the ImageNet validation set.

ResNeXt-101 (64×4d) reports 4.4% top-5 error with a 320×320 single crop, versus 5.3% for the same model at 224×224. The Inception rows use 299×299 crops, so input sizes differ across the comparison. These are ImageNet-1K validation results, not matched-setting speed measurements.

Moreover, ResNeXt's architectural design is much simpler than all Inception models, with significantly fewer manually set hyperparameters.

Conclusion

This paper proposes a simple and highly modular network architecture, ResNeXt, built by repeatedly aggregating a set of transformations with the same topology, forming a homogeneous, multi-branch architecture with only a few hyperparameters.

The authors introduced a new dimension: cardinality, as an important factor besides depth and width.

Experimental results show that increasing cardinality significantly improves classification accuracy while maintaining model complexity.

Increasing cardinality is more effective than simply increasing model depth or width.