ResNeXt

Machine Learning
Introduced by
Xie, S.; Girshick, R.; Dollár, P.; Tu, Z.; He, K.
Year
2017
Type
Convolutional neural network with grouped/cardinality-based residual blocks

What does it do?

ResNeXt is a deep convolutional neural network architecture introduced by Xie, Girshick, Dollár, Tu, and He at CVPR 2017.

It extends the residual network (ResNet) design with a new architectural dimension, cardinality: the number of parallel transformation paths within each residual block. The source reports that, at maintained complexity, increasing cardinality improves ImageNet-1K classification accuracy.

The intuition behind the method

ResNet showed that stacking residual blocks, which add the input directly to the transformed output, allows very deep networks to train reliably. ResNeXt asks whether, rather than making each block wider or deeper, one could run several identical smaller transformations in parallel and sum their outputs. This number of parallel paths is the cardinality. By splitting the computation into C independent paths (groups), the design is meant to gain accuracy while keeping total complexity roughly fixed. The idea resembles the multi-branch philosophy of Inception, but the branches are homogeneous and implemented as one grouped convolution, which makes the block easier to design and tune.

History

ResNeXt was proposed by Saining Xie, Ross Girshick, Piotr Dollár, Zhuowen Tu, and Kaiming He and presented at CVPR 2017. It builds directly on ResNet (He et al., 2016) by adding cardinality as an architectural dimension alongside depth and width. The authors entered ResNeXt models in the ILSVRC 2016 classification task, where they placed 2nd. The source also reports that ResNeXt gives better results than its ResNet counterpart on ImageNet-5K and on COCO detection. The contribution of ResNeXt is to formulate the multi-path residual block as a repeatable, homogeneous design.

When to use it

Choose ResNeXt for image classification, object detection, segmentation, and feature extraction when a convolutional backbone is needed and a ResNet baseline is the current reference. It is a reasonable step when the goal is a modest accuracy gain at similar complexity rather than a different architecture family. Training from scratch requires a large labelled image dataset; fine-tuning a pretrained checkpoint is the practical option when labelled data is limited. Avoid ResNeXt where global attention over the whole image is central to the task, as in many settings where Vision Transformers are used, and where the deployment budget requires a very lightweight model such as MobileNet.

Limitations and considerations

  • Like other large convolutional networks, ResNeXt needs substantial GPU memory and training time when trained from scratch.
  • The benefit of higher cardinality is reported at fixed complexity; if C and the per-group width d are changed without rebalancing total FLOPs and parameters, gains over a ResNet baseline cannot be attributed to cardinality.
  • Tasks that depend on long-range spatial dependencies may favour Vision Transformer architectures over ResNeXt.
  • It has no built-in channel attention (unlike SE-ResNeXt), which may limit performance on fine-grained classification without additional modules.

Source conditions do not replace independent scientific review or validation by an analysis engine.

Strengths

  • Cardinality is a distinct scaling dimension: the source reports that, at maintained complexity, increasing the number of parallel paths improves accuracy, and that increasing cardinality is more effective than going deeper or wider when capacity is increased.
  • Simpler and more uniform than Inception: all parallel branches within a block are identical, so there is no need to hand-tune heterogeneous branch configurations.
  • The parallel paths are expressed as one grouped convolution, which maps onto a single operator in common deep learning frameworks.
  • The source reports better COCO detection results than the ResNet counterpart, so the backbone is not limited to classification.
  • Pretrained ImageNet checkpoints are widely available, which makes fine-tuning straightforward.

Applications

  • Image classification on large datasets such as ImageNet-1K, where ResNeXt models were evaluated in the source.
  • Object detection as a feature-extraction backbone, with COCO detection results reported in the source.
  • Instance and semantic segmentation tasks that need rich spatial feature representations.
  • Transfer learning: fine-tuning a pretrained ResNeXt checkpoint for a domain-specific image classification task with limited labelled data.

How it works

How it works

1

Every ResNeXt block inherits the residual shortcut from ResNet: the input x is added directly to the block's output, producing y = F(x) + x. This skip connection enables gradients to flow cleanly through very deep networks and is the foundation on which ResNeXt builds.

Formula
\mathbf{y} = \mathcal{F}(\mathbf{x}, \{W_i\}) + \mathbf{x}
2

Inside each block, the transformation F(x) is replaced by an aggregated transformation: C independent functions T_i, each operating on x, whose outputs are summed. C is the cardinality hyperparameter. The source reports that, on ImageNet-1K and under a fixed complexity budget, increasing C improves classification accuracy (Xie et al., 2017).

Formula
\mathcal{F}(\mathbf{x}) = \sum_{i=1}^{C} \mathcal{T}_i(\mathbf{x})
3

The C parallel transformations are commonly implemented as a grouped convolution: the input channels are partitioned into C groups of equal width d, a separate convolution is applied to each group, and the group outputs are concatenated. Grouped convolution runs all C paths as a single operator in common deep learning frameworks, which makes the block straightforward to implement and tune. Each ResNeXt block uses a bottleneck structure (1×1 → 3×3 grouped → 1×1) analogous to ResNet's bottleneck.

Formula
\text{GroupConv}(\mathbf{x}; C, d) \;:\; C \text{ groups, each of width } d
4

The final block output y is the element-wise sum of the aggregated transformation and the shortcut. Because the aggregated transform is a sum of C parallel paths, cardinality and width are separate design choices: changing one while adjusting the other to keep FLOPs and parameter counts roughly constant is how the source compares configurations.

Formula
\mathbf{y} = \sum_{i=1}^{C} \mathcal{T}_i(\mathbf{x}) + \mathbf{x}

Common pitfalls

  • Changing cardinality without holding total parameters and FLOPs roughly constant, then attributing the accuracy difference to cardinality alone; the reported gains are under a fixed complexity budget.
  • Setting cardinality so high that each group's width d becomes too narrow (e.g., d = 1), which removes representational capacity within each path.
  • Training ResNeXt from scratch on a small dataset; with insufficient data this leads to overfitting, so transfer learning from a pretrained checkpoint is the usual choice.
  • Replacing the 1×1–3×3–1×1 bottleneck with a single 3×3 grouped convolution changes the block's FLOPs and parameter count, so the comparison with the baseline no longer holds at equal complexity.
  • Reporting only top-1 accuracy without also evaluating top-5 and transfer-learning performance, which are the standard benchmarks for comparing backbone architectures.
  • Assuming that a lower FLOP count means faster training or inference: grouped convolutions often achieve lower hardware utilisation than dense convolutions, so wall-clock speed can differ from FLOP-based comparisons. Also, the reported gains come from the source's training recipe, so retrain the ResNet baseline under the same recipe before concluding that cardinality is responsible for an improvement.

Frequently asked questions

What is cardinality, and why does it matter?

Cardinality C is the number of independent, parallel transformation paths (groups) within each residual block. Xie et al. (2017) report that, while maintaining complexity, increasing C improves ImageNet-1K accuracy, and that increasing cardinality is more effective than going deeper or wider when capacity is increased. This establishes cardinality as a third scaling dimension alongside depth and width.

How is ResNeXt different from ResNet?

ResNet applies a single transformation per residual block. ResNeXt replaces that single transformation with an aggregated sum of C parallel, identical transformations implemented as a grouped convolution. The shortcut connection and overall block structure remain the same; the key change is inside the transformation path.

How does ResNeXt relate to Inception networks?

Both architectures use multiple parallel branches within a block. The key difference is homogeneity: Inception blocks use heterogeneous branches (different kernel sizes, pooling, etc.) that must be tuned independently, whereas ResNeXt uses identical branches that differ only in their channel group, making the design simpler to scale.

Which ResNeXt variant should I start with?

ResNeXt-50 (32×4d) is a practical starting point: it has a similar parameter count to ResNet-50 and pretrained weights are widely available. Larger variants such as ResNeXt-101 (64×4d) cost more computation and are often used when a stronger backbone is needed.

Related methods

Sources

  1. Xie, S., Girshick, R., Dollár, P., Tu, Z., & He, K. (2017). Aggregated Residual Transformations for Deep Neural Networks. Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 5987–5995.

    Open DOI reference
  2. He, K., Zhang, X., Ren, S., & Sun, J. (2016). Deep Residual Learning for Image Recognition. Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 770–778.

    Open DOI reference
  3. Goodfellow, I., Bengio, Y., & Courville, A. (2016). Deep Learning. MIT Press.

    ISBN: 978-0-26-203561-3