Identity Mappings in Deep Residual Networks

2016 Multi-GPU dense training 10k citations
Download PDF

Identity Mappings in Deep Residual Networks

Metadata

  • Slug: resnet_identity_2016
  • Year: 2016
  • Venue: ECCV
  • Authors: Kaiming He, Xiangyu Zhang, Shaoqing Ren, Jian Sun
  • Reading status: read complete
  • Compute regime: Multi-GPU dense training
  • Primary sources: PDF, extracted text

Compute Setup

The paper gives GPU counts, minibatches, and training time, but not the GPU model names. For CIFAR, the implementation uses minibatch size 128 on 2 GPUs, 64 examples per GPU. A 1001-layer ResNet takes about 27 hours to train on those 2 GPUs. For ImageNet, the models use minibatch size 256 on 8 GPUs, 32 examples per GPU, and ResNet-200 takes about 3 weeks to train on 8 GPUs, which the paper says is on par with VGG nets.

Because the source does not list the exact GPU model, the device model should not be stated. Under the project rule, the device era can be inferred as 2015-2016 high-end GPU CNN training, but only the counts, batches, and wall-clock times are explicit in the text.

Bottleneck

The bottleneck is not accelerator occupancy alone; it is whether very deep networks can use the available GPU compute productively. The original ResNet made depth trainable by adding shortcut connections, but this paper argues that signal propagation is cleanest only when both the skip path h(x_l) and the after-addition transform f(y_l) are identity mappings. If the shortcut is scaled, gated, projected, or otherwise non-identity, repeated depth can multiply or distort the direct signal path. If a ReLU sits after addition, negative signals are clipped before they can propagate through hundreds or thousands of units.

That is a compute-structure bottleneck because a 1001-layer CIFAR model is roughly 10x the complexity of a 100-layer model, and ImageNet ResNet-200 already costs weeks on 8 GPUs. Extra depth is only useful if gradients and activations move through it smoothly. Otherwise the training run spends enormous GPU time on a network whose optimization stalls or whose generalization worsens.

Method Adaptation

The method adapts residual architecture to the realities of deep multi-GPU training by making the residual path as close to a clean additive highway as possible. The proposed full pre-activation unit moves batch normalization and ReLU before the weight layers. After addition, there is no activation on the main path, so f can be treated as identity. The skip connection remains identity wherever dimensions allow; projection shortcuts still appear only where feature-map dimensions change.

This is not a hardware optimization in the kernel sense, but it is compute-efficient architecture design. It lets the same GPU budget train deeper networks without the early slow loss reduction seen in the original 1001-layer design. Batch normalization as pre-activation also regularizes the weight path because the normalized activation feeds the convolution rather than sitting after the residual merge.

The implementation is conservative: CIFAR uses translation/flipping augmentation, learning rate 0.1 with drops at 32K and 48K iterations, initial 400-iteration warmup at 0.01 following the earlier ResNet setup, weight decay 0.0001, and momentum 0.9. ImageNet uses the earlier ResNet augmentation, learning rate 0.1 with drops at epochs 30 and 60, minibatch 256 on 8 GPUs, and the same weight decay/momentum/initialization.

Evidence

CIFAR is the clearest stress test. In Table 3, ResNet-1001 with the original unit gives 7.61% CIFAR-10 error, while the pre-activation unit gives 4.92%. On CIFAR-100, ResNet-1001 improves from 27.82% to 22.71%. The paper's training curves show the original 1001-layer design reducing loss slowly at the beginning, while the proposed unit reduces loss quickly and reaches the lowest loss among the investigated models.

The ImageNet evidence is smaller but important. ResNet-200 with the original residual unit has 21.8% top-1 and 6.0% top-5 error on the single-crop validation comparison. The pre-activation ResNet-200 improves to 20.7% top-1 and 5.3% top-5, and with scale plus aspect-ratio augmentation reaches 20.1% top-1 and 4.8% top-5. The paper also reports that ImageNet experiments with non-identity shortcut variants show higher training error and were halted due to limited resources, a direct indication that the compute budget was too costly to spend on bad propagation variants.

Historical Effect

This card belongs in the multi-GPU dense-training branch because it shows architecture as gradient-transport machinery. ResNet identity mappings did not reduce the FLOPs of a convolution, but they changed which depths were worth training. Pre-activation residual units helped turn hundreds or thousands of layers from a theoretical possibility into a practical use of GPU weeks, and the design influenced later residual networks and Transformer block ordering.

Limits

The paper does not list exact GPU models. Compute still scales with depth, so ResNet-200 remains a multi-week 8-GPU ImageNet run and ResNet-1001 remains about a day on 2 GPUs for CIFAR. Some ImageNet ablations are stopped due to limited resources, leaving incomplete comparisons. Projection shortcuts at feature-map changes are still non-identity, so the identity-path analysis is exact only across most units, not every unit.

Links