What is ResNet (residual network)?

ResNet (residual network) is a deep convolutional neural network architecture whose layers learn residual functions with reference to their inputs instead of a target function directly. Shortcuts that add a block's input to its output make much deeper networks trainable.

Unlike a residual connection, a single component, ResNet is a family of networks with 18, 34, 50, 101 and 152 layers built from it.

Topic
Machine learning, models and training
Also known as
Residual network, deep residual network, ResNet-50, ResNet-101
Origin
2015, Deep Residual Learning for Image Recognition; first place in ILSVRC 2015

How ResNet (residual network) works

  1. As plain networks get deeper, accuracy saturates and then degrades; this is not overfitting, since training error rises too.
  2. A ResNet block learns the residual, the difference between input and desired output; its output is that residual plus the input.
  3. The identity shortcut skips one or more layers and adds no extra parameters or computation.
  4. Versions with 50 layers or more use three-layer bottleneck blocks to keep training time manageable.

In more detail

Identity and projection shortcuts

When input and output dimensions match, the shortcut adds the input unchanged. When dimensions grow, the shortcut either performs identity mapping with extra zero entries padded or uses a projection to match dimensions. Experiments showed projection shortcuts are not essential for addressing the degradation problem; parameter-free identity shortcuts keep bottleneck architectures efficient.

Commonly confused terms

TermHow it differs
Vision TransformerResNet processes an image with convolution layers and residual blocks. A Vision Transformer instead splits the image into patches and applies a pure Transformer directly to the sequence of patches; pre-trained on large amounts of data, it achieves excellent results compared with state-of-the-art convolutional networks.

Why ResNet (residual network) matters for on-premises AI

ResNet reached 152 layers, 8 times deeper than VGG nets yet less complex. An ensemble of ResNets reached 3.57% error on the ImageNet test set and won the ILSVRC 2015 classification task; its deep representations also gave a 28% relative improvement in COCO object detection. ResNet later served as a backbone: Mask R-CNN's COCO test results use ResNet-101.

ON-PREMISES EXAMPLE

A textile manufacturer adapts a ResNet-50 pre-trained on ImageNet to fabric defects through transfer learning. The final layer is resized to the number of defect types and the network is fine-tuned first in its top layers, then in full at a low learning rate.

Common questions

Why does ResNet make deep networks easier to train?

If identity mappings are optimal, the network can simply push its layer weights towards zero. A follow-up study showed that with identity shortcuts forward and backward signals can propagate directly from one block to any other and trained a 1001-layer ResNet on CIFAR-10.

What does ResNet-50 mean?

The number is the depth in layers. ResNet-50 is the 50-layer version obtained by replacing each two-layer block of the 34-layer network with a three-layer bottleneck block; the 101 and 152-layer versions use more three-layer blocks.

Sources

In the glossary: Glossary, R to Z

What does this term mean for your infrastructure?

We can work out together in a technical assessment how it maps onto your data, hardware and security requirements.

Request a technical assessment →

This site sets no cookies. Visitor numbers are counted in aggregate using a cookieless method that does not identify anyone. See the Privacy Policy for details.