CNN Architectures Needs review

Densely Connected Convolutional Network (DenseNet)

DenseNet

Year of appearance
2017
Researchers
Gao Huang, Zhuang Liu, Laurens van der Maaten, Kilian Q. Weinberger
Organisation
Cornell University, Tsinghua University, Facebook AI Research
Architecture type
Densely connected convolutional network
Learning mechanism
supervised
Tasks
Image classification, Segmentation

A convolutional network in which each layer inside a block connects to all previous layers by concatenating feature maps, so features are reused efficiently.

Architecture diagram

Displayed configuration: DenseNet-121 (k = 32, θ = 0.5) — Four dense blocks (6, 12, 24, 16) with transition layers between them.

Layer table (12 nodes)
LayerTypeInputOutputRepetitionParametersFormulaMACs
Inputinput3 × 224 × 22410—
Stem: conv 7×7/2 (64) + BN + ReLU + maxpoolconv3 × 224 × 22464 × 56 × 5619,536From the reference PyTorch implementation118,013,952
Dense block 1: 6 layersdense_block64 × 56 × 56256 × 56 × 561335,040From the reference PyTorch implementation1,040,449,536
Transition layer 1: 1×1 + avgpool 2×2transition256 × 56 × 56128 × 28 × 28133,280From the reference PyTorch implementation102,760,448
Dense block 2: 12 layersdense_block128 × 28 × 28512 × 28 × 281919,680From the reference PyTorch implementation712,900,608
Transition layer 2: 1×1 + avgpool 2×2transition512 × 28 × 28256 × 14 × 141132,096From the reference PyTorch implementation102,760,448
Dense block 3: 24 layersdense_block256 × 14 × 141024 × 14 × 1412,837,760From the reference PyTorch implementation549,126,144
Transition layer 3: 1×1 + avgpool 2×2transition1024 × 14 × 14512 × 7 × 71526,336From the reference PyTorch implementation102,760,448
Dense block 4: 16 layersdense_block512 × 7 × 71024 × 7 × 712,158,080From the reference PyTorch implementation104,366,080
Final BN + ReLU + global poolingbn1024 × 7 × 71024 × 7 × 712,048From the reference PyTorch implementation0
FC-1000fc1024100011,025,000From the reference PyTorch implementation1,024,000
Softmax → 1000 classesoutput1000100010—

Configuration figures: DenseNet-121 (k = 32, θ = 0.5)

Parameters (computed from the layers)7,978,856 (≈7.98M)
Parameters (published in the source)Unspecified
MACs2,834,161,664 (≈2.83B)
FLOPs ≈ 2 × MACs5,668,323,328 (≈5.67B)
Input shape
3×224×224
Output shape
1000
Depth
121 layers with parameters (120 convolutions + a linear layer)
Complexity
About 2.9 billion multiply-adds per 224×224 image.
MACs note
Computed with torch.utils.flop_counter.
Calculation assumptions: Implementation of torchvision.models.densenet121 (DenseNet-BC).

MAC = a multiplication followed by an addition. The figures are for one forward pass of one sample with the stated dimensions; they are an analytical calculation, not a measurement of run time.

Scientific explanation

Historical background

Received the CVPR 2017 best paper award, and introduced dense concatenation as an alternative to residual addition.

The problem it addresses

Improving the flow of information and gradients in deep networks and reducing redundant parameters.

Core idea

Layer ℓ receives the concatenation of the outputs of all previous layers [x₀, …, x_{ℓ−1}] and adds only k new channels (the growth rate).

Architecture description

A stem, then dense blocks with transition layers between them (a 1×1 convolution that compresses the channels by θ, then 2×2 average pooling), then global pooling and a linear layer.

Data flow

224×224 → 56×56×64 → block 1 (256) → 28×28×128 → block 2 (512) → 14×14×256 → block 3 (1024) → 7×7×512 → block 4 (1024) → 1000.

Inputs

An RGB image of size 224×224.

Outputs

A probability distribution over 1000 classes.

Training procedure

SGD with momentum 0.9 and batch 256 for 90 epochs on ImageNet, with a rate of 0.1 divided by 10 at epochs 30 and 60.

Loss functions

Multi-class cross-entropy.

Computational complexity

About 2.9 billion multiply-adds for DenseNet-121.

Computational requirements

Medium; memory is the main constraint.

Advantages

  • Fewer parameters than ResNet at similar accuracy
  • Feature reuse
  • Strong gradients for all layers

Limitations

  • High memory use due to repeated concatenation
  • Slower in practice on GPU than ResNet at the same computation
  • A memory-efficient implementation needs care

Equations

Dense connectivity Dense connectivity

\mathbf{x}_\ell = H_\ell\!\left([\mathbf{x}_0, \mathbf{x}_1, \ldots, \mathbf{x}_{\ell-1}]\right)

Each layer receives the concatenation of the outputs of all previous layers in the block.

Symbols: H_ℓ: BN-ReLU-Conv, [ ]: concatenation over channels

Number of input channels Input channels with growth rate

C_\ell = k_0 + k\,(\ell - 1)

The channels grow linearly inside the block.

Symbols: k₀: block input channels, k: growth rate

Applications

Related models

References

  1. Original paper Gao Huang, Zhuang Liu, Laurens van der Maaten, Kilian Q. Weinberger. (2017). Densely connected convolutional networks. CVPR 2017, 2261–2269. doi:10.1109/CVPR.2017.243 Verified
Scientific review note: A first scientific draft based on the original paper and reference implementations; it needs review by a specialist before final approval.

Version 1 — last updated 2026-11-15.