{"notes":[{"id":"classic-cnns/resnext","category":"classic-cnns","legacyPath":"classic-cnns/1611-resnext","legacySlug":"1611-resnext","legacyPaths":[],"title":"ResNeXt","subtitle":"Exploring the Next Dimension","author":"Z. Yuan","paperDate":"2016-11-16","publishedOn":"2024-07-12","paperTitle":"Aggregated Residual Transformations for Deep Neural Networks","paperUrl":"https://arxiv.org/abs/1611.05431","bibliography":{"title":"Aggregated Residual Transformations for Deep Neural Networks","authors":["Saining Xie","Ross Girshick","Piotr Dollár","Zhuowen Tu","Kaiming He"],"url":"https://arxiv.org/abs/1611.05431","pdfUrl":"https://arxiv.org/pdf/1611.05431","codeUrl":"https://github.com/facebookresearch/ResNeXt","preprint":{"id":"1611.05431","submittedOn":"2016-11-16","url":"https://arxiv.org/abs/1611.05431"},"publication":{"venue":"CVPR","year":2017,"kind":"conference","url":"https://arxiv.org/abs/1611.05431"},"citation":"@misc{classiccnnsresnext2016,\n  title = {{Aggregated Residual Transformations for Deep Neural Networks}},\n  author = {Saining Xie and Ross Girshick and Piotr Dollár and Zhuowen Tu and Kaiming He},\n  year = {2016},\n  eprint = {1611.05431},\n  archivePrefix = {arXiv},\n  url = {https://arxiv.org/abs/1611.05431}\n}\n","citationPath":"/content/papers/citations/classic-cnns/resnext.4945bb6b3dae.bib"},"thumbnail":{"src":"/content/papers/assets/268f5b641a1a85d929d88f2aa0d636902dd9d101824284c32266668493563672.jpg","width":1224,"height":576},"locale":"en","path":"/content/papers/en/classic-cnns/resnext.6dc90fbd49fc.md","headings":[{"id":"problem-definition","text":"Problem Definition","depth":2},{"id":"generalization-to-downstream-tasks","text":"Generalization to Downstream Tasks","depth":3},{"id":"not-conducive-to-model-design","text":"Not Conducive to Model Design","depth":3},{"id":"solution","text":"Solution","depth":2},{"id":"network-architecture","text":"Network Architecture","depth":3},{"id":"model-configuration","text":"Model Configuration","depth":3},{"id":"discussion","text":"Discussion","depth":2},{"id":"training-performance-on-imagenet-1k","text":"Training Performance on ImageNet-1K","depth":3},{"id":"increasing-model-complexity","text":"Increasing Model Complexity","depth":3},{"id":"imagenet-1k-model-performance","text":"ImageNet-1K Model Performance","depth":3},{"id":"conclusion","text":"Conclusion","depth":2}],"anchorAliases":{},"guide":null,"relatedReading":[{"id":"classic-cnns/inception-v1","relation":"comparison","topic":"Branches, grouped convolutions and feature reuse"},{"id":"classic-cnns/cspnet","relation":"comparison","topic":"Branches, grouped convolutions and feature reuse"}]},{"id":"classic-cnns/inception-v1","category":"classic-cnns","legacyPath":"classic-cnns/1409-inception-v1","legacySlug":"1409-inception-v1","legacyPaths":[],"title":"GoogLeNet","subtitle":"Also Known as Inception-V1","author":"Z. Yuan","paperDate":"2014-09-17","publishedOn":"2024-09-22","paperTitle":"Going Deeper with Convolutions","paperUrl":"https://arxiv.org/abs/1409.4842","bibliography":{"title":"Going Deeper with Convolutions","authors":["Christian Szegedy","Wei Liu","Yangqing Jia","Pierre Sermanet","Scott Reed","Dragomir Anguelov","Dumitru Erhan","Vincent Vanhoucke","Andrew Rabinovich"],"url":"https://arxiv.org/abs/1409.4842","pdfUrl":"https://arxiv.org/pdf/1409.4842","codeUrl":null,"preprint":{"id":"1409.4842","submittedOn":"2014-09-17","url":"https://arxiv.org/abs/1409.4842"},"publication":{"venue":"CVPR","year":2015,"kind":"conference","url":"https://doi.org/10.1109/cvpr.2015.7298594"},"citation":"@misc{classiccnnsinceptionv12014,\n  title = {{Going Deeper with Convolutions}},\n  author = {Christian Szegedy and Wei Liu and Yangqing Jia and Pierre Sermanet and Scott Reed and Dragomir Anguelov and Dumitru Erhan and Vincent Vanhoucke and Andrew Rabinovich},\n  year = {2014},\n  eprint = {1409.4842},\n  archivePrefix = {arXiv},\n  url = {https://arxiv.org/abs/1409.4842}\n}\n","citationPath":"/content/papers/citations/classic-cnns/inception-v1.3d20e0e32bcd.bib"},"thumbnail":{"src":"/content/papers/assets/254b970b1374c24267b60c2d684338760e9ba8b10dad761a5fa15f1bb8bcf6ef.jpg","width":1330,"height":394},"locale":"en","path":"/content/papers/en/classic-cnns/inception-v1.41dca1189319.md","headings":[{"id":"problem-solved","text":"Problem Solved","depth":2},{"id":"the-inception-module","text":"The Inception Module","depth":3},{"id":"configuration-parameters","text":"Configuration Parameters","depth":3},{"id":"model-architecture","text":"Model Architecture","depth":3},{"id":"discussion","text":"Discussion","depth":2},{"id":"performance-at-ilsvrc-2014","text":"Performance at ILSVRC 2014","depth":3},{"id":"conclusion","text":"Conclusion","depth":2}],"anchorAliases":{},"guide":null,"relatedReading":[{"id":"classic-cnns/resnext","relation":"comparison","topic":"Branches, grouped convolutions and feature reuse"},{"id":"classic-cnns/cspnet","relation":"comparison","topic":"Branches, grouped convolutions and feature reuse"}]},{"id":"classic-cnns/cspnet","category":"classic-cnns","legacyPath":"classic-cnns/1911-cspnet","legacySlug":"1911-cspnet","legacyPaths":[],"title":"CSPNet","subtitle":"Half-Half-Half Plugin","author":"Z. Yuan","paperDate":"2019-11-27","publishedOn":"2024-09-29","paperTitle":"CSPNet: A New Backbone that can Enhance Learning Capability of CNN","paperUrl":"https://arxiv.org/abs/1911.11929","bibliography":{"title":"CSPNet: A New Backbone that can Enhance Learning Capability of CNN","authors":["Chien-Yao Wang","Hong-Yuan Mark Liao","I-Hau Yeh","Yueh-Hua Wu","Ping-Yang Chen","Jun-Wei Hsieh"],"url":"https://arxiv.org/abs/1911.11929","pdfUrl":"https://arxiv.org/pdf/1911.11929","codeUrl":null,"preprint":{"id":"1911.11929","submittedOn":"2019-11-27","url":"https://arxiv.org/abs/1911.11929"},"publication":{"venue":"CVPR Workshops","year":2020,"kind":"workshop","url":"https://doi.org/10.1109/cvprw50498.2020.00203"},"citation":"@misc{classiccnnscspnet2019,\n  title = {{CSPNet: A New Backbone that can Enhance Learning Capability of CNN}},\n  author = {Chien-Yao Wang and Hong-Yuan Mark Liao and I-Hau Yeh and Yueh-Hua Wu and Ping-Yang Chen and Jun-Wei Hsieh},\n  year = {2019},\n  eprint = {1911.11929},\n  archivePrefix = {arXiv},\n  url = {https://arxiv.org/abs/1911.11929}\n}\n","citationPath":"/content/papers/citations/classic-cnns/cspnet.2914b9492a0c.bib"},"thumbnail":{"src":"/content/papers/assets/2602af8b5f92cba820e545c84abd94943cab1fe2631cf83834972b54b374ed20.jpg","width":2809,"height":1911},"locale":"en","path":"/content/papers/en/classic-cnns/cspnet.9c6ad42be111.md","headings":[{"id":"problem-definition","text":"Problem Definition","depth":2},{"id":"solution","text":"Solution","depth":2},{"id":"model-architecture","text":"Model Architecture","depth":3},{"id":"transition-layer","text":"Transition Layer","depth":3},{"id":"exact-fusion-model","text":"Exact Fusion Model","depth":3},{"id":"discussion","text":"Discussion","depth":2},{"id":"effectiveness-of-the-csp-architecture","text":"Effectiveness of the CSP Architecture","depth":3},{"id":"effectiveness-of-the-efm-architecture","text":"Effectiveness of the EFM Architecture","depth":3},{"id":"performance-on-imagenet","text":"Performance on ImageNet","depth":3},{"id":"performance-on-ms-coco","text":"Performance on MS COCO","depth":3},{"id":"inference-speed","text":"Inference Speed","depth":3},{"id":"conclusion","text":"Conclusion","depth":2}],"anchorAliases":{},"guide":null,"relatedReading":[{"id":"classic-cnns/inception-v1","relation":"comparison","topic":"Branches, grouped convolutions and feature reuse"},{"id":"classic-cnns/resnext","relation":"comparison","topic":"Branches, grouped convolutions and feature reuse"}]}],"text":"Remember the Inception model we discussed earlier?\n\n- [**Going Deeper with Convolutions**](https://arxiv.org/abs/1409.4842)\n\nThat intricate branching structure must have left quite an impression, right?\n\n## Problem Definition\n\nInception demonstrated that well-designed network architectures could achieve superior performance with lower theoretical complexity.\n\nHowever, this design approach introduces several issues:\n\n### Generalization to Downstream Tasks\n\nIn the Inception model, different sizes of convolutional kernels (e.g., 1x1, 3x3, 5x5) are used simultaneously to extract features at different scales.\n\nThe 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.\n\n\n> [!TIP]\n> \n> This isn't user-friendly!\n> \n> Every time you want to adapt this model, you hesitate over the branches. It is almost anti-engineer.\n\n\n### Not Conducive to Model Design\n\nCurrent neural network research has gradually shifted from \"feature engineering\" to \"model design engineering,\" i.e., how to design a good neural network.\n\nThe design of the Inception model requires a lot of human labor and time and is not easy to scale to larger models.\n\nHowever, the \"split-transform-merge\" design philosophy is still very valuable.\n\n## Solution\n\n### Network Architecture\n\n![Figure 1: ResNet bottleneck block and 32-path ResNeXt block at similar parameters and FLOPs](/content/papers/assets/268f5b641a1a85d929d88f2aa0d636902dd9d101824284c32266668493563672.jpg)\n\nAs 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.\n\nThe 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.\n\nCardinality 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.\n\nFurthermore, the authors simplified the design space through two simple rules, making the entire network design more straightforward and unified:\n\n- Rule 1: If the same size of feature maps is produced, these blocks share the same hyperparameters (width and filter size).\n- Rule 2: Each time the feature map is down-sampled by 2 times, the module's width is multiplied by 2 times.\n\nFinally, 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.\n\nThis architecture exists in several equivalent forms, as shown below:\n\n![Figure 3: equivalent convolutional forms using summed branches, concatenation or grouped convolution](/content/papers/assets/28910e4d22dc8f2c055dc119b8fbd9728731c45a041ef67bacc24c4ad7e6301c.jpg)\n\n- (a) in the above image is the structure proposed in this paper.\n- (b) concatenates the outputs of the separate 3×3 branches, then shares one 128→256 1×1 convolution.\n- (c) implements those branches with a 32-group 3×3 convolution, followed by the same 128→256 1×1 convolution.\n\n\n> [!TIP]\n> \n> For the pictured convolutions and additions, with weights rearranged accordingly, these forms are equivalent; normalization and nonlinearities still need placement consistent with an implementation.\n> \n> The third, grouped-convolution form is concise to implement, but runtime depends on the framework and hardware. In the paper's Torch test on eight M40 GPUs, a similar-FLOP ResNeXt-101 took **0.95 s** per batch versus **0.70 s** for ResNet-101.\n\n\n### Model Configuration\n\n![Table 1: ResNet-50 and ResNeXt-50 (32×4d) stages, parameters and FLOPs](/content/papers/assets/e30a91af00c174fae7a49cc498f42a513476128d1f427ba921c50eb7d595d9c2.jpg)\n\nGrouped 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.\n\n## Discussion\n\n### Training Performance on ImageNet-1K\n\n![Figure 5: ImageNet-1K training and validation top-1 error curves for similarly sized ResNet/ResNeXt-50 and -101](/content/papers/assets/f1b9572741682865800ae1649291b9939705a8639603bcaa4d99e3cb547a3feb.jpg)\n\nThe above image shows the validation and training errors of different models as the number of training epochs increases.\n\nCompared 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%.\n\nAs the cardinality $C$ 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.\n\nFor 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%).\n\n### Increasing Model Complexity\n\n![Table 4: ImageNet-1K comparison when depth, width or cardinality raises FLOPs to about twice ResNet-101's](/content/papers/assets/8c576fcc821cb0a29fa73df0db77e811a3ff980ee24848c132c2f5ab38550dc5.jpg)\n\nTo test the impact of the number of groups on model performance, the authors conducted the following experiments:\n\n1. **Doubling the Complexity**\n\n   - Compared to the ResNet-101 baseline (**22.0% top-1 validation error**), the higher-complexity variants tested in this experiment reduce that error.\n   - But the effect is limited:\n     - Increasing depth (ResNet-200) lowers top-1 validation error by **0.3 percentage points**.\n     - Increasing width (wider ResNet-101) lowers top-1 validation error by **0.7 percentage points**.\n\n2. **Increasing Cardinality is More Effective**\n\n   Experiments show that increasing the cardinality $C$ shows better results than increasing depth or width.\n\n   - 2×64d ResNeXt-101 reduces top-1 error to 20.7%.\n     - Doubling $C$ on the 1×64d ResNet-101 baseline while maintaining width\n   - 64×4d ResNeXt-101 reduces top-1 error to 20.4%.\n     - Doubling $C$ on the 32×4d ResNeXt-101 while maintaining width\n\n3. **Performance at Lower Complexity**\n\n   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 $C$ is a more effective dimension than depth and width.\n\n### ImageNet-1K Model Performance\n\n![Table 5: single-crop ImageNet-1K validation errors with 224/320 inputs for ResNeXt and 299 for Inception](/content/papers/assets/519d441ad166763fc8b8b33bd4d5850063e7ab1ed919663c3d53af746f07bd6e.jpg)\n\nThe above table shows the single-crop test results on the ImageNet validation set.\n\nResNeXt-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.\n\nMoreover, ResNeXt's architectural design is much simpler than all Inception models, with significantly fewer manually set hyperparameters.\n\n## Conclusion\n\nThis 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.\n\nThe authors introduced a new dimension: cardinality, as an important factor besides depth and width.\n\nExperimental results show that increasing cardinality significantly improves classification accuracy while maintaining model complexity.\n\nIncreasing cardinality is more effective than simply increasing model depth or width.\n\n\n> [!TIP]\n> \n> This paper is a useful reference when studying later lightweight models such as MobileNet and their grouped or depthwise convolutions. Grouped convolution itself predates ResNeXt; the paper's contribution is its homogeneous aggregated residual design and its cardinality experiments.\n","imageSizes":{"/content/papers/assets/268f5b641a1a85d929d88f2aa0d636902dd9d101824284c32266668493563672.jpg":{"width":1224,"height":576},"/content/papers/assets/28910e4d22dc8f2c055dc119b8fbd9728731c45a041ef67bacc24c4ad7e6301c.jpg":{"width":1632,"height":506},"/content/papers/assets/e30a91af00c174fae7a49cc498f42a513476128d1f427ba921c50eb7d595d9c2.jpg":{"width":1044,"height":1024},"/content/papers/assets/f1b9572741682865800ae1649291b9939705a8639603bcaa4d99e3cb547a3feb.jpg":{"width":1356,"height":580},"/content/papers/assets/8c576fcc821cb0a29fa73df0db77e811a3ff980ee24848c132c2f5ab38550dc5.jpg":{"width":1110,"height":594},"/content/papers/assets/519d441ad166763fc8b8b33bd4d5850063e7ab1ed919663c3d53af746f07bd6e.jpg":{"width":1208,"height":544}}}
