The VGG family includes various configurations with different depths, denoted by the letter "VGG" followed by the number of weight layers. The most common ones are VGG-16 (13 convolutional layers + 3 fully connected layers, 138M parameters) and VGG-19 (16 + 3, 144M parameters).[1]
The series was historically important as an early influential model designed by composing generic modules, whereas AlexNet (2012) was designed "from scratch". It was also instrumental in changing the standard convolutional kernels in CNN from large (up to 11-by-11 in AlexNet) to just 3-by-3, a decision that was only revised in ConvNext (2022).[6][7]
VGGNets were mostly obsoleted by Inception, ResNet, and DenseNet. RepVGG (2021) is an updated version of the architecture.[8]
Architecture
Network-in-Network architecture compared to the VGG architecture. The Network in Network architecture (2013)[9] was an earlier CNN. It changed the AlexNet architecture by adding 1x1 convolutions, and using a global average pooling after the last convolution.
The key architectural principle of VGG models is the consistent use of small convolutional filters throughout the network. This contrasts with earlier CNN architectures that employed larger filters, such as in AlexNet.[7]
For example, two convolutions stacked together has the same receptive field pixels as a single convolution, but the latter uses parameters, while the former uses parameters (where is the number of channels). The original publication showed that deep and narrow CNN significantly outperform their shallow and wide counterparts.[7]
The VGG series of models are deep neural networks composed of generic modules:
Convolutional modules: convolutional layers with stride 1, followed by ReLU activations.
Max-pooling layers: After some convolutional modules, max-pooling layers with a filter and a stride of 2 to downsample the feature maps. It halves both width and height, but keeps the number of channels.
Fully connected layers: Three fully connected layers at the end of the network, with sizes 4096-4096-1000. The last one has 1000 channels corresponding to the 1000 classes in ImageNet.
Softmax layer: A softmax layer outputs the probability distribution over the classes.
The VGG family includes various configurations with different depths, denoted by the letter "VGG" followed by the number of weight layers. The most common ones are VGG-16 (13 convolutional layers + 3 fully connected layers) and VGG-19 (16 + 3), denoted as configurations D and E in the original paper.[10]
As an example, the 16 convolutional layers of VGG-19 are structured as follows:where the arrow means a 3x3 convolution with input channels and output channels and stride 1, followed by ReLU activation. The means a down-sampling layer by 2x2 maxpooling with stride 2.
Table of VGG models
Name
Number of convolutional layers
Number of fully connected layers
Parameter count
VGG-16
13
3
138M
VGG-19
16
3
144M
References
^ abSimonyan, Karen; Zisserman, Andrew (2015-04-10), Very Deep Convolutional Networks for Large-Scale Image Recognition, arXiv:1409.1556
^Liu, Zhuang; Mao, Hanzi; Wu, Chao-Yuan; Feichtenhofer, Christoph; Darrell, Trevor; Xie, Saining (2022). "A ConvNet for the 2020s". Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR): 11976–11986. arXiv:2201.03545.
^ abcZhang, Aston; Lipton, Zachary; Li, Mu; Smola, Alexander J. (2024). "8.2. Networks Using Blocks (VGG)". Dive into deep learning. Cambridge New York Port Melbourne New Delhi Singapore: Cambridge University Press. ISBN978-1-009-38943-3.
^Ding, Xiaohan; Zhang, Xiangyu; Ma, Ningning; Han, Jungong; Ding, Guiguang; Sun, Jian (2021). "RepVGG: Making VGG-Style ConvNets Great Again". Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR): 13733–13742. arXiv:2101.03697.