AI Glossary / Deep learning / Advanced

Residual Neural Network

Definition

A residual neural network is a neural network built with blocks that add a learned transformation to a shortcut transformation of the block's input. In the simplest identity-shortcut form, the combination is x + F(x). The learned branch supplies a residual, or change relative to the input. ResNet is the influential architecture introduced by He and colleagues for image recognition.

What it means

Adding more layers does not automatically make a model easier to train or more accurate. Residual learning changes the task assigned to a group of layers: instead of producing a complete replacement representation, the group can learn a modification to a representation carried through a shortcut.
This is an architectural design, not a claim that every residual is small or that each block corrects a known mistake. The residual is a learned feature transformation. It is not necessarily the difference between a final prediction and its true target.

How it works

A block sends its input along two paths. The residual branch applies learned operations, such as convolutions, normalization, and activations. The shortcut carries the input directly when dimensions match, or uses an appropriate transformation when they do not. The two results are added element by element.
The original ResNet formulation includes an activation after this addition; other residual-block designs place operations differently. Dimensions must be compatible, so a change in spatial resolution or channel count requires deliberate handling.
The shortcut provides a direct computational path through the block and changes how gradients flow. This helps optimization in the demonstrated architectures, but does not guarantee successful training for arbitrary models. The original paper specifically examined degradation in training accuracy as plain networks became deeper, distinguishing that problem from ordinary overfitting.

Three practical examples

  • A document-image classifier uses a residual network as a feature extractor before assigning page categories. Its performance is evaluated on scans resembling the production collection rather than assumed from a general image benchmark.
  • An object detector uses a residual backbone to compute image features. Additional components still propose or predict object locations and classes; a backbone alone is not the complete detector.
  • A course-platform research team compares residual and plain networks under matched training conditions. It examines both training and held-out errors to distinguish optimization problems from poor generalization.

Think of it this way

Imagine revising a draft by retaining a copy and adding an edit layer. The edit layer can leave some parts unchanged and alter others. A residual block similarly combines a carried representation with a learned change. Unlike a human editor's notes, however, the change is a numerical feature transformation that may not have an obvious verbal interpretation.

Worked example

Suppose a block receives the vector x = [2, 1, 3]. Its residual branch produces F(x) = [0.5, minus 2, 1]. With an identity shortcut, elementwise addition gives [2.5, minus 1, 4]. If this teaching block applies ReLU after addition, the final output is [2.5, 0, 4].
If the residual branch instead outputs [0, 0, 0], the addition returns x. Because this particular x is nonnegative, a following ReLU also leaves it unchanged. That qualification matters: an arbitrary vector containing negative values would be changed by the post-addition ReLU even when the residual branch is zero.
Now suppose the residual branch produces four components while x still has three. Direct addition is not defined component by component. The architecture needs a compatible shortcut transformation or a different block design. These chosen numbers illustrate a forward calculation; they do not demonstrate learning, accuracy, or a universal identity property for every residual-block variant.

Illustrative case study

Fictional Willow Publishing trains a model to categorize scanned learning materials. A deeper plain network performs worse even on the training data. The team checks its training setup and experiments with residual blocks rather than assuming that more depth has simply caused overfitting.
After comparing models on a held-out collection, engineers also inspect small text, unusual page orientations, and scans from a different device. They report the selected model's resource requirements alongside its errors. This invented case shows the distinction between making optimization easier and demonstrating useful deployment performance; it does not promise an improvement from residual connections alone.

Common misconceptions and mistakes

A shortcut does not ordinarily mean that the residual branch is skipped to save computation. Both paths contribute to the block's output. Addition is also different from concatenating feature channels.
Residual connections can help gradient flow, but do not make vanishing or unstable gradients impossible. Increasing depth still carries costs and can fail to improve generalization. An identity shortcut adds no learned projection parameters, whereas a projection shortcut can. Finally, the term residual here should not be confused with the observed error in a regression report or with a recurrent network's temporal state.

Business use

Residual architectures are relevant when evaluating image-model backbones, transfer-learning options, and the practical cost of deeper networks. Compare the complete system against task-appropriate alternatives, including simpler models where suitable.
Record the exact architecture, input preparation, training procedure, and deployment constraints. A familiar architecture name does not establish accuracy on a new content collection. Evaluate failure patterns, latency, memory use, and the effort needed to maintain the pipeline. Where pretrained weights are used, separately assess the relevance of their training domain and the resulting model's performance.

People also ask

Is ResNet the same as every network with a skip connection?

No. Skip connections appear in multiple architectures, and their combination rules differ.

Does a residual block have to use convolutions?

No. The residual-addition idea can be used with other transformations.

Does the shortcut guarantee that information is never lost?

No. Other operations and learned transformations can still discard information.

Check your understanding

Why does the example's second output become zero?

Answer: Its post-addition value is negative and the specified ReLU clips it.

Why is a four-component residual incompatible with a three-component identity shortcut?

Answer: Elementwise addition requires matching dimensions.

Does worse training error necessarily indicate overfitting?

Answer: No. It can indicate optimization difficulties, among other problems.

Related terms

  • Skip connection
  • Convolutional neural network
  • Backbone
  • Transfer learning
  • Overfitting
  • ResNet
  • residual block
  • identity mapping
  • gradient flow

Learn next

Repeat the zero-residual example with an input containing a negative component and compare outputs with and without post-addition ReLU. Then inspect a real residual architecture to locate blocks where the shortcut changes dimensions.

More in Deep learning

  • Region Based Convolutional Neural Networks - Region-based convolutional neural networks are object-detection approaches that analyze candidate image regions using convolutional features to identify...
  • Relation network - A relation network is a neural-network module designed to learn from relationships between pairs of represented objects.
  • Reservoir computing - Reservoir computing is an approach to processing time-dependent information in which an input drives a dynamical system, called a reservoir, and a readout...
  • Restricted Boltzmann Machine - A restricted Boltzmann machine, or RBM, is an energy-based probabilistic model with visible units representing observed data and hidden units representing...
  • RNN-T - RNN-T stands for recurrent neural network transducer.
  • SELU Function - The SELU function, short for scaled exponential linear unit, is a neural-network activation function with a scaled linear positive branch and a saturating...

Sources

He, Zhang, Ren, and Sun, Deep Residual Learning for Image Recognition; residual formulation, identity and projection shortcuts, and training-degradation experiments: https://arxiv.org/pdf/1512.03385

Previous: Residual-gradient reinforcement learning Next: Residual stream

  • Home
  • Daily AI Updates
  • Blog
  • AIFBL Academy
  • AI Glossary
  • Products and Tools
  • Store
  • Free CFO AI Prompt Pack
  • About Shihan Sheriff
  • Privacy Policy
  • Terms of Use
  • Refund Policy
  • Cookie Policy
  • Earnings Disclaimer