ResNeXt
12 memberslucid.models.vision.resnextResNeXt family — backbone + image classification.
Xie, Saining, et al. "Aggregated Residual Transformations for Deep Neural Networks." Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2017, pp. 1492–1500.
ResNeXt augments the ResNet bottleneck with a third axis of network design that the authors term cardinality: the number of parallel transformation branches inside each block. Where ResNet improves accuracy by making the network deeper and Wide ResNet improves it by making each layer wider, ResNeXt improves it by making each block more parallel.
A ResNeXt block of cardinality computes
where each is a low-dimensional bottleneck
( with a small inner
width ). The set of transformations are aggregated by
summation and then added to the residual shortcut, exactly as in
ResNet. By construction this aggregation is equivalent to a
single bottleneck whose convolution is grouped
into groups of channels each — so ResNeXt can
be implemented as a one-line change to ResNet (replace groups=1
with groups=C) without any custom block code.
The empirical claim of the paper is that, holding the parameter and FLOP budget fixed, increasing cardinality is more effective than increasing depth or width. ResNeXt-50 (32×4d: , ) outperforms ResNet-50 by roughly one percentage point on ImageNet top-1 with the same compute budget, and ResNeXt-101 (64×4d) reaches 20.4% top-1 error. The "split- transform-merge" pattern that ResNeXt makes explicit — independent parallel paths combined by aggregation — also turns out to be the structural backbone of every subsequent grouped-convolution architecture, from ShuffleNet to MobileNetV2's expand-project blocks.
Classes
Functions
resnext_50_32x4d→ ResNeXtResNeXt-50 (32x4d) feature-extracting backbone.
resnext_50_32x4d_cls→ ResNeXtForImageClassificationResNeXt-50 (32x4d) image classifier (backbone + GAP + linear head).
resnext_101_32x4d→ ResNeXtResNeXt-101 (32x4d) feature-extracting backbone.
resnext_101_32x4d_cls→ ResNeXtForImageClassificationResNeXt-101 (32x4d) image classifier (backbone + GAP + linear head).
resnext_101_32x8d→ ResNeXtResNeXt-101 (32x8d) feature-extracting backbone.
resnext_101_32x8d_cls→ ResNeXtForImageClassificationResNeXt-101 (32x8d) image classifier (backbone + GAP + linear head).