Modern Convolutional Neural Networks

Dive into Deep Learning · §7

Modern Convolutional Neural Networks
AlexNet · blocks · normalization · residual shortcuts · efficient convnets · training recipes · ConvNeXt · RegNet

Why Stacking More LeNet Layers Fails in Practice

The Central Problem

  • Signal & degradation drift: Sigmoids shrink gradients by \le 1/4^L; even with ReLU + BN, a 56-layer plain network trains worse than a 20-layer one (\approx 0.28 vs. 0.20 loss).
  • 92% dense-head bloat & FLOPs vs. latency: AlexNet/VGG put >92\% of weights in the head; depthwise convs cut MACs 8\times yet hit GPU memory bandwidth limits.
  • Confounded recipes: A modern recipe alone (LAMB, BCE loss, RandAugment/Mixup/CutMix, 600 epochs) adds 4.3 points to an unchanged ResNet-50 (76.1\% \to 80.4\%).

Architectural Toolkit Across the Chapter

Chapter Roadmap

  • §§7.1–7.2 (AlexNet, VGG, NiN, GoogLeNet): ReLU, dropout, 3 \times 3 blocks, 1 \times 1 bottlenecks, and global average pooling inside a stem–body–head template.
  • §§7.3–7.4 (Norms & Residuals): BatchNorm, LayerNorm, GroupNorm, additive shortcuts \mathbf{x} + g(\mathbf{x}), grouped ResNeXt blocks, and DenseNet concatenation.
  • §§7.5–7.8 (Efficiency, Recipes, ConvNeXt, RegNet): Depthwise factorization, RepVGG fusion, AdamW/Mixup/EMA, 7 \times 7 ConvNeXt blocks, and population error CDFs.

Three Unifying Design Invariants

Core Mental Models

  • 1. RF per FLOP & GAP: Stacked 3 \times 3 convs span 5 \times 5 (18c^2 vs. 25c^2) or 7 \times 7 (27c^2 vs. 49c^2) with more nonlinearities; GAP removes 43M-param heads.
  • 2. Scale invariance & nested classes: \textrm{BN}(a\mathbf{w}^\top\mathbf{h}) = \textrm{BN}(\mathbf{w}^\top\mathbf{h}), and \mathbf{x} + g(\mathbf{x}) keeps the identity at g=0 (\mathcal{F} \subseteq \mathcal{F}').
  • 3. Factorization vs. intensity: Depthwise-separable convs cut MACs to 1/c_\textrm{o} + 1/k^2 \approx 1/9, but read memory at 9 vs. 9c_\textrm{o} MACs/read.

Controlled Fashion-MNIST Running Benchmark

Empirical Comparison

  • AlexNet \to Quarter-VGG / ResNet-18: Accuracy climbs from 91\% to 93\text{--}94\% while parameters shrink from 46.8\textrm{M} to 11.2\textrm{M} (or 0.6\textrm{M} with GAP).
  • BNLeNet & ResNet-56: BatchNorm widens the usable LR band 100\times (\eta_0 \in [0.03, 10]); residual skips reverse 56-layer degradation.
  • ConvNeXt & RegNetX32: Tie ResNet-18 (\approx 94\%) with 3.38\textrm{M} and 0.52\textrm{M} parameters (21\times smaller).