Convolutional Networks with Dense Connectivity

Gao Huang, Zhuang Liu, Geoff Pleiss, Laurens van der Maaten, Kilian Q. Weinberger

TL;DR

This paper introduces Dense Convolutional Networks (DenseNets), a novel architecture that connects each layer to every other layer in a feed-forward manner. This dense connectivity pattern significantly improves parameter efficiency, alleviates vanishing gradients, and encourages feature reuse, leading to state-of-the-art results on several benchmark datasets with fewer parameters and less computation.

What Problem Does This Paper Address?

Training very deep convolutional neural networks (CNNs) has become a dominant approach for visual recognition. However, as networks get deeper, they face challenges like vanishing gradients, where information and gradients can become diluted as they pass through many layers. Existing solutions like ResNets and Highway Networks use shortcut connections to mitigate this, but the authors propose that even shorter and more direct connections between layers could further enhance performance and efficiency. They aim to maximize information flow and gradient propagation throughout the network.

Methods

The core innovation of DenseNets is their dense connectivity pattern. Unlike traditional networks where a layer only receives input from its immediate predecessor, each layer in a DenseNet receives feature maps from all preceding layers within a "dense block." These feature maps are then concatenated, not summed as in ResNets.

Key aspects of the DenseNet architecture include:

  • Dense Blocks: Groups of layers where each layer is densely connected to all preceding layers within that block.
  • Transition Layers: Layers between dense blocks that perform down-sampling (convolution and pooling) to reduce feature map sizes. These layers also incorporate a compression factor to reduce the number of feature maps, further improving parameter efficiency.
  • Bottleneck Layers: A 1x1 convolution is used before the main 3x3 convolution within each layer to reduce the number of input feature maps, enhancing computational efficiency.
  • Growth Rate (k): A hyperparameter that controls the number of new feature maps produced by each layer. A small growth rate is shown to be sufficient due to feature reuse.

The paper also details memory-efficient implementation strategies to handle the potentially large number of concatenated feature maps during training.

Datasets

The authors evaluate their DenseNet architecture on the following standard computer vision datasets:

  • CIFAR-10 and CIFAR-100: Small, colored natural scene images (32x32 pixels) with 10 and 100 classes, respectively. They also use augmented versions (C10+, C100+).
  • SVHN (Street View House Numbers): Digit images (32x32 pixels) from Google Street View, with 10 classes.
  • ImageNet (ILSVRC 2012): A large-scale dataset with 1.2 million training images and 50,000 validation images across 1,000 classes.

Key Insights and Ideas

  • Feature Reuse is Key: The dense connectivity encourages layers to reuse feature maps from earlier layers. This means the network doesn't need to re-learn redundant information, leading to significantly more parameter-efficient models.
  • Implicit Deep Supervision: By connecting early layers directly to later layers, DenseNets implicitly provide stronger gradient signals to earlier layers, similar to explicit deep supervision techniques but without the added complexity.
  • Alleviating Vanishing Gradients: The direct paths from early to late layers ensure that gradients can flow more easily, preventing them from vanishing and enabling the training of much deeper networks.
  • Parameter Efficiency is Not Just About Depth: DenseNets demonstrate that achieving high accuracy doesn't necessarily require an enormous number of parameters if features are reused effectively. They can achieve comparable or better performance than much larger models.
  • Memory Efficiency is Achievable: Despite the dense connections, clever implementation strategies allow DenseNets to be trained with manageable GPU memory, making them practical for deep architectures.

Key Results

  • State-of-the-Art Performance: DenseNets achieved state-of-the-art results on CIFAR-10, CIFAR-100, and SVHN datasets, often with significantly fewer parameters than previous best models. For example, a 190-layer DenseNet with k=40 achieved an error rate of 3.46% on C10+ and 17.18% on C100+.
  • Parameter Efficiency: On ImageNet, DenseNets achieved comparable validation error to ResNets but required approximately 1/3 of the parameters. A DenseNet-201 with 20M parameters performed similarly to a 101-layer ResNet with over 40M parameters.
  • Computational Efficiency: DenseNets also showed improvements in computational efficiency, with models requiring less FLOPs for similar accuracy levels.
  • Robustness to Hyperparameters: The architecture was shown to be relatively insensitive to compression factors in transition layers, and even small growth rates were effective due to feature reuse.

Limitations and Future Work

  • Memory Footprint During Training: While memory-efficient implementations exist, the naive implementation of DenseNets can lead to prohibitively high memory consumption due to the concatenation of feature maps. The paper addresses this with specific implementation techniques.
  • Hyperparameter Tuning: While the paper explores hyperparameter sensitivity, further extensive searches could potentially yield even better performance on datasets like ImageNet.
  • Exploration of Variants: The paper briefly explores variants like full dense connectivity and partial dense connections, suggesting that the specific connectivity pattern and the role of transition layers are areas for further investigation.
  • Generalization to Other Tasks: While successful in image classification, future work could explore DenseNets' effectiveness in other computer vision tasks like object detection or segmentation.

Summary updated

BibTeX
@article{huang2019convolutional,
  author = {Gao Huang and Zhuang Liu and Geoff Pleiss and Laurens van der Maaten and Kilian Q. Weinberger},
  title = {{Convolutional Networks with Dense Connectivity}},
  journal = {IEEE Transactions on Pattern Analysis and Machine Intelligence},
  year = {2019},
  doi = {10.1109/tpami.2019.2918284},
}
Figure