Convolutional Neural Networks Variants
Prof. Dinesh Kumar Vishwakarma,
DEPARTMENT OF INFORMATION TECHNOLOGY
DELHI TECHNOLOGICAL UNIVERSITY, DELHI.
Webpage: http://www.dtu.ac.in/Web/Departments/InformationTechnology/faculty/dkvishwakarma.php
Email: dinesh@dtu.ac.in
Introduction
Early CNNs
LeNet-5
AlexNet
VGG-16
Network In Network
Inception family
Inception-v1
Inception-v3
Inception-v4
Inception-ResNets
Xception
Residual & dense
ResNet-50
ResNeXt-50
DenseNet
Efficient CNNs
MobileNet
EfficientNet
ConvNeXt
Source: R. Karim, “Illustrated: 10 CNN architectures,” Towards Data Science, 2019; original papers cited on each architecture slide.
Evolution of Standard CNN Architectures
1998
LeNet-5
Convolution +
pooling
2012
AlexNet
ReLU, dropout,
GPU training
2014
VGG
Stacked 3×3
convolutions
GoogLeNet
Inception
modules
2015
ResNet
Residual skip
connections
2016
DenseNet
Dense layer
connections
2017
MobileNet
Depthwise
separable convs
2019
EfficientNet
Compound
model scaling
2022
ConvNeXt
Modernised
ResNet design
References
LeNet-5: LeCun et al., Proc. IEEE, 1998
AlexNet: Krizhevsky et al., NeurIPS, 2012
VGG: Simonyan & Zisserman, ICLR, 2015
GoogLeNet: Szegedy et al., CVPR, 2015
ResNet: He et al., CVPR, 2016
DenseNet: Huang et al., CVPR, 2017
MobileNet: Howard et al., arXiv, 2017
EfficientNet: Tan & Le, ICML, 2019
ConvNeXt: Liu et al., CVPR, 2022
LeNet 5
T
Tanh
s
SoftMax
Demo of LeNet5
http://yann.lecun.com/exdb/lenet/index.html
Properties of LeNet5/CNN
Invariance with respect to vertical translations is necessary since the positioning of individual characters in a string is never perfect.
Scale Invariance
Scale invariance is achieved over a wide range of sizes.
http://yann.lecun.com/exdb/lenet/index.html
Properties of LeNet5/CNN…
LeNet-5's invariance to small rotations (+-40 degrees).
http://yann.lecun.com/exdb/lenet/index.html
Squeezing Invariance
robustness to variations of the aspect ratio
Properties of LeNet5/CNN…
http://yann.lecun.com/exdb/lenet/index.html
The robustness to stroke width variation allows LeNet-5 to operate directly on "raw" pixel images without requiring unreliable preprocessing such as line thinning
AlexNet
R
ReLU
S
SoftMax
Accuracy (Top-1 & 5 Acc.)
Accuracy (Top-1 & 5 Acc.)…
Model predicted correctly 2 images and the true label turns up 3 times in the top 5 predicted labels
Top-1: It measures the proportion of examples for which the predicted label matches the single target label. 2/5=0.4
Top-5: It considers a classification correct if any of the five predictions matches the target label=3/5
AlexNet…
It takes in input a color (RGB) image of dimension 224 X 224.
VGG-16
R
ReLU
s
SoftMax
Runners up of the ILSVRC-2014 competition
VGG-16
It takes in a color (RGB) image of 224 X 224 dimensions.
Runners up of the ILSVRC-2014 competition
GoogleNet or Inception Network V1
Winner of the ILSVRC 2014
Inception V1 or GoogLeNet…
Inception V1 or GoogLeNet…
Inception V1 or GoogLeNet…
Inception V1 or GoogLeNet…
Actual Diagram of Network
Inception V1 or GoogLeNet
Inception V1 or GoogLeNet…
Inception V2
Szegedy, Christian, Vincent Vanhoucke, Sergey Ioffe, Jon Shlens, and Zbigniew Wojna. "Rethinking the inception architecture for computer vision." In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 2818-2826. 2016.
Inception V2…
Szegedy, Christian, Vincent Vanhoucke, Sergey Ioffe, Jon Shlens, and Zbigniew Wojna. "Rethinking the inception architecture for computer vision." In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 2818-2826. 2016.
(A)
Inception V2…
Szegedy, Christian, Vincent Vanhoucke, Sergey Ioffe, Jon Shlens, and Zbigniew Wojna. "Rethinking the inception architecture for computer vision." In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 2818-2826. 2016.
(B)
Inception V2…
Szegedy, Christian, Vincent Vanhoucke, Sergey Ioffe, Jon Shlens, and Zbigniew Wojna. "Rethinking the inception architecture for computer vision." In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 2818-2826. 2016.
(C)
Inception V2 Architecture Parameters
Szegedy, Christian, Vincent Vanhoucke, Sergey Ioffe, Jon Shlens, and Zbigniew Wojna. "Rethinking the inception architecture for computer vision." In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 2818-2826. 2016.
Inception V3
Szegedy, Christian, Vincent Vanhoucke, Sergey Ioffe, Jon Shlens, and Zbigniew Wojna. "Rethinking the inception architecture for computer vision." In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 2818-2826. 2016.
Layout Diagram of Inception V3
Inception V3
Novel: First Network to have batch normalization.
Szegedy, Christian, Vincent Vanhoucke, Sergey Ioffe, Jon Shlens, and Zbigniew Wojna. "Rethinking the inception architecture for computer vision." In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 2818-2826. 2016.
Residual Neural Networks: Introduction
x
Weight layer
ReLU
Weight layer
+
ReLU
F(x) + x
F(x)
x
identity
Residual Neural Networks: ResNet Variants
Model | Block type | Blocks per stage | Layers | Parameters | FLOPs |
ResNet-18 | Basic | 2, 2, 2, 2 | 18 | 11.7M | 1.8 G |
ResNet-34 | Basic | 3, 4, 6, 3 | 34 | 21.8M | 3.6 G |
ResNet-50 | Bottleneck | 3, 4, 6, 3 | 50 | 25.6M | 3.8 G |
ResNet-101 | Bottleneck | 3, 4, 23, 3 | 101 | 44.5M | 7.6 G |
ResNet-152 | Bottleneck | 3, 8, 36, 3 | 152 | 60.2M | 11.3 G |
Basic block (ResNet-18/34)
Two 3×3 conv layers with a skip connection around them.
Bottleneck block (ResNet-50/101/152)
1×1 → 3×3 → 1×1 convs with a skip connection.
FLOPs: multiply-adds per 224×224 image. Source: He et al., “Deep Residual Learning for Image Recognition”, CVPR 2016 (Table 1).
Residual Neural Networks: ResNet-50 (2015)
ResNet-50 (2015)…
Novel: a) Popularised skip connections b) Designing even deeper CNNs (up to 152 layers) without compromising model’s generalization power c) Among the first to use batch normalization
ResNet-50 (2015)…Skip connections works in two ways:
FLOPs: floating point operations per seconds
ResNet-50 (2015)…
Xception (2016)
Xception (2016)…
Original Depthwise Separable Convolution
Xception (2016)…
The Modified Depthwise Separable Convolution used as an Inception Module in Xception, so called “extreme” version of Inception module (n=3 here)
Xception (2016)
Xception (2016)…
Overall Architecture of Xception (Entry Flow > Middle Flow > Exit Flow)
SeparableConv is the modified depthwise separable convolution. We can see that Separable Convs are treated as Inception Modules and placed throughout the whole deep learning architecture
Inception V4 (2016)
Inception V4 (2016)…
Improvement from Inception V3
Inception V4 (2016)…
Inception-ResNet-V2 (2016)
Inception-ResNet-V2 (2016)…
ResNeXt-50 (2017)
ResNeXt-50 (2017)…
Network In Network (2014)
Network In Network (2014)…
NINs
DenseNet (2016)
Source: G. Huang, Z. Liu, L. van der Maaten, K. Q. Weinberger, “Densely connected convolutional networks,” CVPR, 2017.
MobileNet (2017)
Source: A. G. Howard et al., “MobileNets: Efficient convolutional neural networks for mobile vision applications,” arXiv:1704.04861, 2017.
EfficientNet (2019)
Source: M. Tan, Q. V. Le, “EfficientNet: Rethinking model scaling for convolutional neural networks,” ICML, 2019.
ConvNeXt (2022)
Source: Z. Liu, H. Mao, C.-Y. Wu, C. Feichtenhofer, T. Darrell, S. Xie, “A ConvNet for the 2020s,” CVPR, 2022.
Summary
Model | Year | Parameters | Key idea |
LeNet-5 | 1998 | 60K | First practical CNN; shift, rotation and stroke-width invariance |
AlexNet | 2012 | 60M | Deeper CNN with ReLU; won ILSVRC 2012 |
VGG-16 | 2014 | 138M | 13 conv + 3 FC layers built from small, uniform filters |
Network In Network | 2014 | — | mlpconv layers and global average pooling |
GoogLeNet (Inception V1) | 2014 | 5M | Parallel multi-size filters; 1×1 convs cut cost |
Inception V2 / V3 | 2015 | 24M | Factorized convolutions, batch norm, label smoothing |
ResNet-50 | 2015 | 25.5M | Skip connections let very deep networks train |
Xception | 2016 | 23M | Depthwise separable convolutions replace Inception modules |
Inception V4 | 2016 | 43M | Revised stem and uniform Inception modules |
Inception-ResNet-V2 | 2016 | 56M | Inception modules combined with residual connections |
ResNeXt-50 | 2017 | 25M | 32 parallel paths per block (cardinality) |
Parameter counts are approximate, as reported in the original papers.
Key Takeaways
Depth drives accuracy
Networks grew from 5 layers (LeNet-5, 1998) to 152 (ResNet, 2015), and the deeper model won ILSVRC each time.
Smarter convolutions cut cost
1×1 bottlenecks, factorized and depthwise separable convolutions: GoogLeNet uses 5M parameters against VGG-16’s 138M.
Skip connections enable depth
Residual blocks learn F(x) + x, which avoids the degradation and vanishing-gradient problems of very deep plain CNNs.
Wider, multi-branch modules
Inception runs several filter sizes in parallel; ResNeXt adds 32 parallel paths per block at ResNet-50’s size.
Thank You�Contact: dinesh@dtu.ac.in �Mobile: +91-9971339840