- 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)
| Layer | Type | Input | Output | Repetition | Parameters | Formula | MACs |
|---|---|---|---|---|---|---|---|
| Input | input | 3 × 224 × 224 | 1 | 0 | — | ||
| Stem: conv 7×7/2 (64) + BN + ReLU + maxpool | conv | 3 × 224 × 224 | 64 × 56 × 56 | 1 | 9,536 | From the reference PyTorch implementation | 118,013,952 |
| Dense block 1: 6 layers | dense_block | 64 × 56 × 56 | 256 × 56 × 56 | 1 | 335,040 | From the reference PyTorch implementation | 1,040,449,536 |
| Transition layer 1: 1×1 + avgpool 2×2 | transition | 256 × 56 × 56 | 128 × 28 × 28 | 1 | 33,280 | From the reference PyTorch implementation | 102,760,448 |
| Dense block 2: 12 layers | dense_block | 128 × 28 × 28 | 512 × 28 × 28 | 1 | 919,680 | From the reference PyTorch implementation | 712,900,608 |
| Transition layer 2: 1×1 + avgpool 2×2 | transition | 512 × 28 × 28 | 256 × 14 × 14 | 1 | 132,096 | From the reference PyTorch implementation | 102,760,448 |
| Dense block 3: 24 layers | dense_block | 256 × 14 × 14 | 1024 × 14 × 14 | 1 | 2,837,760 | From the reference PyTorch implementation | 549,126,144 |
| Transition layer 3: 1×1 + avgpool 2×2 | transition | 1024 × 14 × 14 | 512 × 7 × 7 | 1 | 526,336 | From the reference PyTorch implementation | 102,760,448 |
| Dense block 4: 16 layers | dense_block | 512 × 7 × 7 | 1024 × 7 × 7 | 1 | 2,158,080 | From the reference PyTorch implementation | 104,366,080 |
| Final BN + ReLU + global pooling | bn | 1024 × 7 × 7 | 1024 × 7 × 7 | 1 | 2,048 | From the reference PyTorch implementation | 0 |
| FC-1000 | fc | 1024 | 1000 | 1 | 1,025,000 | From the reference PyTorch implementation | 1,024,000 |
| Softmax → 1000 classes | output | 1000 | 1000 | 1 | 0 | — |
Configuration figures: DenseNet-121 (k = 32, θ = 0.5)
- 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.
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
- Predecessor of Residual Network (ResNet) — Replaces residual addition with concatenation. Compare
- U-Net — Also uses concatenation over channels. Compare
References
- 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
Version 1 — last updated 2026-11-15.
