Profile

Settings

Loading…

← Papers

Help

FAQ

Which features require signing in?

You can read the commentary, paper info, Model Structure and related papers of public papers without signing in. Sign in to manage your account or contact us about your inquiries.

Can I upload a PDF file?

Upload papers with an arXiv or DOI link; the commentary is public to everyone. Papers whose source and terms of use can't be verified, so the commentary can't be made public, can't be uploaded. Uploading PDF files and keeping papers private are for subscribers only, and a paper uploaded as a file is saved as private only. Searching for official info by title runs only when you press the button.

Are the figures and AI commentary accurate?

Figures come only from the original paper, and only those whose terms of use are verified are shown. The commentary is written by AI and may be wrong. Check important claims, numbers and figure context against the evidence in the original paper.

I want to report a copyright issue.

Terms of use and the source of the original paper are on the Paper info tab. If there's a problem, choose "Paper content, figures and copyright" under Contact us and send the paper link, the part in question, and evidence that you hold the rights. Receiving your report doesn't confirm any rights or remove anything right away. You can see the result of the review under My inquiries.

I forgot my password.

If you signed up with email, use Forgot password in the sign-in window to reset it with your verified email. If you signed up with Google, Naver or Kakao, change your password with that service.

What should I include in an inquiry?

Tell us which screen you were on and what you were doing when the problem happened, along with the paper link. Don't include personal information such as passwords, API keys, verification codes or phone numbers. Inquiries and replies are stored in Refivu and you can see them under My inquiries.

How do I delete my account?

In Settings, under My account, press Delete account. Review what will be deleted and complete identity verification to delete your account. For other requests, choose "Account" under Contact us.

Paper commentary

Deep Residual Learning for Image Recognition

  • Problem Plain networks become harder to optimize as depth grows, so adding layers can raise training error rather than lower it.
  • Method Each stacked block learns a residual F(x) and adds its input back through a parameter-free identity shortcut, and the ResNets are built by inserting these shortcuts into VGG-style plain baselines.

Why adding layers can hurt

Deeper networks can represent features at more levels, since each added layer lets the features built below it be combined further. Early on, vanishing and exploding gradients stopped networks from converging at all, and normalized initialization together with intermediate normalization layers removed most of that barrier for networks with tens of layers.

Once deep networks could converge, a different failure appeared: accuracy saturates as depth grows and then falls, and the drop appears in training error as well. The authors call this the degradation problem and state that overfitting does not explain it. Figure 1 shows the effect for 20-layer and 56-layer plain networks on CIFAR-10.

The argument rests on a construction: a deeper model can copy a trained shallower model and set its added layers to identity mappings, so its training error should be no higher. Current solvers do not find solutions of that quality, which points to optimization difficulty rather than a shortage of model capacity.

Learning a residual instead of the mapping

Let H(x) be the desired mapping of a few stacked layers. The layers are asked to fit the residual F(x) := H(x) − x, so the block output is F(x) + x. The authors hypothesize that fitting this residual is easier to optimize than fitting H(x) directly.

The reasoning is about the extreme case: if an identity mapping were optimal, pushing the residual toward zero should be easier for a stack of nonlinear layers than learning an identity from scratch. The equivalence between fitting H(x) and fitting the residual holds only in the sense that both should be able to approximate the target asymptotically, so the reformulation is about ease of learning.

The premise that stacked nonlinear layers can asymptotically approximate complicated functions is cited as an open question.

The block is written as \[ y = F(x,\{W_i\}) + x \], where x and y are the block input and output and F(x,{W_i}) is the residual mapping to be learned. The shortcut performs element-wise addition, adds no parameters or computation, and leaves the network trainable end-to-end by SGD with backpropagation without changing the solvers.

If identity is close to optimal, the weights only need small perturbations around it, which the authors argue makes the problem easier to precondition. Experiments on CIFAR-10 show that the learned residual functions generally have small responses, which the authors read as support for this view.

Two-layer blocks and dimension matching

For the two-layer example, the residual function is \( F = W_2\sigma(W_1x) \), where σ is ReLU and the biases are omitted. The addition of the shortcut is followed by a second nonlinearity, so the block output is σ(y).

The identity shortcut needs F(x) and x to have equal dimensions. When channels change, a linear projection \( W_s \) matches them, giving \[ y = F(x,\{W_i\}) + W_s x \]. The authors say an identity mapping is enough for the degradation problem and economical, so the projection is used only when dimensions must be matched.

The residual function may contain two or three layers, and a single-layer version behaves like a plain linear layer, which the authors did not find useful. The same form applies to convolutional layers, and the addition is performed channel by channel on two feature maps.

For ImageNet, option A uses identity shortcuts with zero entries padded for increased dimensions, so it adds no parameters. Option B uses projection shortcuts, implemented by 1×1 convolutions, where dimensions increase. When a shortcut crosses feature maps of two sizes, it uses a stride of 2.

Plain baselines and residual ImageNet networks

The plain baselines follow the design of VGG nets and mostly use 3×3 filters. Layers producing the same feature-map size keep the same filter count, and each halving of the feature map size doubles the filters, which keeps the per-layer time complexity roughly unchanged.

The 34-layer plain network costs 3.6 billion FLOPs (multiply-adds), which the authors describe as 18% of VGG-19's 19.6 billion FLOPs. Figure 3 places VGG-19, the 34-layer plain network and the 34-layer residual network side by side, with dotted shortcuts marking increased dimensions.

The residual version starts from the plain network and inserts shortcut connections, identity where input and output have the same dimensions and option A or B where they increase. Table 1 lists the 18-, 34-, 50-, 101- and 152-layer variants, which the deeper ones built from bottleneck blocks.

Training and testing recipe

ImageNet images are resized with the shorter side randomly sampled in [256, 480] for scale augmentation, and 224×224 crops are taken from an image or its horizontal flip with the per-pixel mean subtracted. All plain and residual networks are trained from scratch.

Batch normalization is applied after each convolution and before the activation, and dropout is not used.

Comparison studies use standard 10-crop testing, and the best results average scores over a fully convolutional form at several scales. Those scales have shorter sides in {224, 256, 384, 480, 640}. The ImageNet 2012 classification set has 1000 classes, with 1.28 million training images and 50k validation images, and the final result is on 100k test images scored by the test server.

Degradation on ImageNet at 18 and 34 layers

On ImageNet validation with 10-crop testing, the plain network reached 27.94 top-1 error at 18 layers and 28.54 at 34 layers, while the ResNet reached 27.88 at 18 layers and 25.03 at 34 layers. The deeper plain network is worse, and the deeper residual network is better.

The 34-layer plain network has higher training error throughout training, even though the 18-layer plain solution space is contained in the 34-layer one. Figure 4 shows these training and validation curves for plain and residual networks of 18 and 34 layers.

The authors argue that vanishing gradients are unlikely to explain this, because batch normalization keeps forward signals at non-zero variance and the backward gradients have healthy norms. They conjecture that the deep plain networks may have exponentially low convergence rates, and leave the reason for the optimization difficulty for future study.

The 34-layer ResNet is 2.8% better than the 18-layer ResNet, and its training error is considerably lower. Extra training iterations (3×) did not remove the degradation of the plain network.

The 18-layer plain and residual networks are about equally accurate, but the 18-layer ResNet converges faster in the early stage of training.

Identity versus projection shortcuts

For ResNet-34, option A reaches 25.03 top-1 error and 7.76 top-5, option B 24.52 and 7.46, and option C 24.19 and 7.40 on ImageNet validation with 10-crop testing. All three options are considerably better than the plain-34 network, which reaches 28.54 top-1 and 10.02 top-5.

Option B is slightly better than A. The authors argue that the zero-padded dimensions in A carry no residual learning. Option C is marginally better than B, which the authors attribute to the extra parameters of its many (thirteen) projection shortcuts. Because the three options differ little, projections are not essential for the degradation fix, so option C is not used later in the paper.

Bottleneck blocks from 50 to 152 layers

The bottleneck block stacks a 1×1, a 3×3 and a 1×1 convolution, where the first 1×1 reduces dimensions and the last restores them, so the 3×3 layer works on smaller inputs and outputs. The authors choose it for training-time reasons and note that identity shortcuts matter here, since a projection on the two high-dimensional ends would double the time complexity and model size.

The 50-layer ResNet replaces each two-layer block of the 34-layer network with this three-layer block and uses option B, at 3.8 billion FLOPs. The footnote adds that non-bottleneck deeper ResNets also gain accuracy with depth on CIFAR-10 but are less economical, so the bottleneck choice is mainly practical.

The 101- and 152-layer ResNets are built from more three-layer blocks, and the 152-layer ResNet at 11.3 billion FLOPs still costs less than VGG-16 and VGG-19 at 15.3 and 19.6 billion FLOPs.

As single models on ImageNet validation, ResNet-152 reaches 19.38 top-1 and 4.49 top-5 error, which is listed against the earlier single-model results in the comparison table.

Ensemble result on ImageNet test

A single 152-layer ResNet reaches 4.49% top-5 error on ImageNet validation, which the authors say is better than every previous ensemble in the comparison. Previous ensembles on the test set reach 7.32 for VGG (ILSVRC'14), 6.66 for GoogLeNet, 4.94 for PReLU-net and 4.82 for BN-inception.

The ensemble combines six models of different depths, of which only two are 152-layer models at the time of submission. It reaches 3.57% top-5 error on the ImageNet test set, as reported by the test server, and this entry took first place in ILSVRC 2015 classification.

CIFAR-10 depth sweep

CIFAR-10 has 50k training images and 10k test images in 10 classes, and the study uses it to analyse very deep networks rather than to push the state of the art. The networks use a 3×3 first layer followed by 6n layers in three stages on feature maps of sizes 32, 16 and 8, with 16, 32 and 64 filters and 2n layers per stage, plus a 10-way fully connected layer, so the total is 6n+2 weighted layers.

Residual versions add a shortcut around each pair of 3×3 layers, using identity shortcuts (option A), so plain and residual models have the same depth, width and parameter count.

Training uses weight decay 0.0001, momentum 0.9, batch size 128 on two GPUs, and no dropout. The learning rate starts at 0.1, is divided by 10 at 32k and 48k iterations, and training stops at 64k iterations, a schedule set on a 45k/5k train/validation split. Training uses 4-pixel padding on each side with a random 32×32 crop or horizontal flip, and testing uses only the single original 32×32 view.

With n set to 3, 5, 7 and 9, the networks have 20, 32, 44 and 56 layers, and the plain networks show higher training error as they get deeper. The ResNets of the same depths overcome this and show accuracy gains as depth increases.

For n = 18, which gives a 110-layer ResNet, a learning rate of 0.1 was slightly too large to start converging, so the authors warm up at 0.01 until training error falls below 80%, which took about 400 iterations, and then return to 0.1. The 110-layer ResNet has fewer parameters than other deep and thin networks such as FitNet and Highway, and reaches 6.43% test error, best of five runs.

The 110-layer plain network has error above 60% and is not displayed in the figure.

Layer response magnitudes

The analysis measures the standard deviation of each 3×3 layer's output, after batch normalization and before the nonlinearity. On CIFAR-10, ResNets have generally smaller responses than their plain counterparts.

Among ResNet-20, ResNet-56 and ResNet-110, the deeper ResNet has smaller response magnitudes, which the authors read as each layer modifying the signal less when there are more layers.

A 1202-layer network on CIFAR-10

With n set to 200, the 1202-layer ResNet shows no optimization difficulty and reaches training error below 0.1%. Its test error is 7.93%, as listed in the CIFAR-10 table.

The 1202-layer network has test error worse than the 110-layer network, although both reach similar training error. They use no maxout or dropout, relying on depth and thinness for regularization, and they expect that stronger regularization could improve results.

Faster R-CNN with ResNet-101

On PASCAL VOC, the Faster R-CNN baseline reaches 73.2 mAP with VGG-16 and 76.4 with ResNet-101 on VOC 2007 test, and 70.4 and 73.8 on VOC 2012 test. The detection implementation is the same for both backbones, so the authors attribute the gain to the networks.

On COCO validation, the baseline gives 41.5 mAP@.5 and 21.2 mAP@[.5, .95] with VGG-16, and 48.4 and 27.2 with ResNet-101. That is a 6.0% increase in mAP@[.5, .95], which the authors describe as a 28% relative improvement.

Limits of the evidence

The CIFAR-10 experiments use intentionally simple architectures, so they are an analysis of extremely deep behaviour rather than a state-of-the-art comparison. The 1202-layer result is worse than the 110-layer result on test error, and this is attributed to overfitting rather than tested by further regularization experiments.

The reason plain deep networks optimize poorly is conjectured, not established, and the authors leave it for future work. The option A, B and C differences on ResNet-34 are small, so the paper does not claim that projections are required.

The ImageNet ensemble result of 3.57% depends on the test server, while the single-model comparisons are on the validation set.

Paper info

Authors
Kaiming He, Xiangyu Zhang, Shaoqing Ren, Jian Sun
Venue
arXiv · Preprint
First published
2015-12-10
Added
2026-10-20
Updated
2015-12-10
Version
v1
arXiv
1512.03385
Category
cs.CV
Original paper terms
arXiv non-exclusive 1.0
What we show
Paper info and commentary

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

Quote from the paper

Kaiming He, Xiangyu Zhang, Shaoqing Ren, Jian Sun (2015). Deep Residual Learning for Image Recognition. arXiv:1512.03385v1. https://arxiv.org/abs/1512.03385v1

BibTeX
@misc{he2015deep,
  title = {{Deep Residual Learning for Image Recognition}},
  author = {Kaiming He and Xiangyu Zhang and Shaoqing Ren and Jian Sun},
  year = {2015},
  eprint = {1512.03385},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1512.03385v1}
}

See related papersBrowse other papers

Paper preview
Account security

Connect Google account

If you connect a Google account, you can sign in with it too.

Refivu

Delete account

Refivu
Refivu

Sign up