Paper commentary
Densely Connected Convolutional Networks
- Problem Information and gradients fade as they pass through very deep convolutional networks, and earlier designs add shortcuts that bypass layers.
- Method Each layer receives the concatenated feature maps of all earlier layers in its dense block, and transition layers handle down-sampling between blocks.
- Results DenseNet-BC with L = 190 and k = 40 reached 3.46% error on C10+ and 17.18% on C100+.
Why shortcuts between layers matter
Convolutional networks became truly deep only recently, and as they grow deeper, information from the input and the gradient signal can fade before it reaches the far end of the network. Earlier designs respond with shortcuts: ResNets and Highway Networks pass signal from one layer to the next through identity connections, and stochastic depth drops layers during training to keep gradient flow open.
The authors note that these designs differ in topology and training procedure, yet they share one property: they create short routes between early and late layers. DenseNet asks whether this property can be pushed further by connecting every layer to every other layer, while keeping the feed-forward order.
Concatenation replaces summation
In a plain feed-forward network, layer l takes only the output of layer l-1 as input, so each layer reads a single earlier representation. ResNets keep earlier features reachable by adding the layer's input back to its output, so the value passed on is a sum. DenseNet does not sum. It concatenates the feature maps, so the features of every earlier layer remain separate in the input of each later layer.
Formally, layer l computes \(x_\ell = H_\ell([x_0, x_1, \ldots, x_{\ell-1}])\), where the square brackets concatenate the feature maps of layers 0 to l-1 into a single tensor. The residual variant instead computes \(x_\ell = H_\ell(x_{\ell-1}) + x_{\ell-1}\), so the same symbol H_l is kept and only the way the earlier output is joined changes.
H_l is a composite function of batch normalization, a rectified linear unit and a 3×3 convolution, so all earlier maps pass through one non-linear block.
Because each layer receives every earlier map, an L-layer network has L(L+1)/2 connections, where a plain chain has only L. Each layer adds only k maps to a shared collective state, and the network does not need to learn again the maps that earlier layers already produced.
Dense blocks, transitions and narrow layers
Concatenation is not possible when the feature-map size changes, so the network is divided into several dense blocks, and down-sampling happens between them. Between two blocks, a transition layer applies batch normalization, a 1×1 convolution and 2×2 average pooling. Figure 2 shows a DenseNet with three dense blocks linked by transition layers.
Each composite function produces k feature maps, and k is called the growth rate; the narrowest example in the paper uses k = 12.
DenseNet-B places a 1×1 convolution before each 3×3 convolution and makes each 1×1 layer produce 4k maps, which reduces the number of input maps seen by the 3×3 convolution. Compression sets the output of a transition layer to ⌊θm⌋ maps when a dense block has m maps, and the experiments use θ = 0.5. DenseNet-BC is the model that uses both the bottleneck layers and the compressed transition layers.
Table 1 lists the ImageNet architectures, which all use k = 32 and differ in how many times each dense block repeats its layer pair. Figure 1 table lists DenseNet-121, DenseNet-169, DenseNet-201 and DenseNet-264 block by block, with the BN-ReLU-Conv sequence written as conv.
Datasets and training settings
CIFAR-10 and CIFAR-100 have 50,000 training and 10,000 test images, and 5,000 training images are held out as a validation set during development. For the final run the CIFAR models use all 50,000 training images, and the final test error is taken at the end of training. SVHN has 73,257 training images, 26,032 test images and 531,131 additional training images, and a validation set of 6,000 images is split from the training data.
For ImageNet, the ILSVRC 2012 data contain 1.2 million training images and 50,000 validation images from 1,000 classes, and testing uses a single 224×224 crop or ten crops.
ImageNet runs use 90 epochs with batch size 256, and the learning rate starts at 0.1 and is lowered tenfold at epochs 30 and 60.
Accuracy on CIFAR and SVHN
The strongest setting in Table 2, DenseNet-BC with L = 190 and k = 40, reaches 3.46% error on C10+ and 17.18% on C100+, both lower than the wide ResNet entries it is compared against. Figure 1 table reports the CIFAR and SVHN error rates against which these comparisons are read, with augmentation marked by a plus sign.
The 250-layer DenseNet-BC has 15.3M parameters, and the table lists it as outperforming FractalNet and Wide ResNet models that have more than 30M parameters.
The authors describe these as 29% and about 30% relative reductions in error on C10 and C100.
Without compression or bottleneck layers, error on C10+ falls from 5.24% to 4.10% and then to 3.74% as the parameter count grows from 1.0M to 7.0M and then to 27.2M. On C10 without augmentation, moving from k = 12 to k = 24 at L = 100, a roughly 4× growth in parameters, raised error from 5.77% to 5.83%, which the authors read as possible overfitting in that single setting.
ImageNet results against ResNet
On ImageNet the authors replace the ResNet model in a public Torch implementation with DenseNet-BC and keep all other experiment settings the same. Table 3 reports DenseNet-121 at 25.02 / 23.61 top-1 and DenseNet-264 at 22.15 / 20.80 top-1, single-crop and 10-crop.
A DenseNet-201 with about 20M parameters yields a single-crop validation error similar to that of a 101-layer ResNet with more than 40M parameters. On FLOPs, a DenseNet that requires as much computation as ResNet-50 performs on par with ResNet-101, which requires twice as much computation.
Parameter efficiency against ResNet
Small networks of varying depth are trained on C10+ and their test accuracy is plotted against parameter count, comparing DenseNet variants with pre-activation ResNets. DenseNet-BC needs around one third of the parameters of ResNet to reach comparable accuracy.
DenseNet-BC with L = 100 and k = 12 reaches 4.51% error on C10+ against 4.62% for the 1001-layer pre-activation ResNet, which the authors pair with 90% fewer parameters.
Limitations
The ImageNet experiments use hyperparameter settings optimized for ResNets rather than for DenseNets, so the authors expect a more extensive hyperparameter search could improve DenseNet on ImageNet.
Test errors were evaluated only once for each task and model setting, and the experiments cover CIFAR-10, CIFAR-100, SVHN and ImageNet.
Paper info
- Authors
- Gao Huang, Zhuang Liu, Laurens van der Maaten, Kilian Q. Weinberger
- Venue
- arXiv · Preprint
- First published
- 2016-8-25
- Added
- 2026-10-20
- Updated
- 2018-1-28
- Version
- v5
- arXiv
- 1608.06993
- Category
- cs.CV · cs.LG
- Original paper terms
- arXiv non-exclusive 1.0
- What we show
- Paper info and commentary
AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.
Quote from the paper
Gao Huang, Zhuang Liu, Laurens van der Maaten, Kilian Q. Weinberger (2016). Densely Connected Convolutional Networks. arXiv:1608.06993v5. https://arxiv.org/abs/1608.06993v5
BibTeX
@misc{huang2016densely,
title = {{Densely Connected Convolutional Networks}},
author = {Gao Huang and Zhuang Liu and Laurens van der Maaten and Kilian Q. Weinberger},
year = {2016},
eprint = {1608.06993},
archivePrefix = {arXiv},
url = {https://arxiv.org/abs/1608.06993v5}
}