Why do residual (skip) connections help when training very deep networks?
- Exam domain
- Core Machine Learning and AI Knowledge20% of the exam
- Difficulty
- Medium
- In this mock
- 10 questions on this domainPractise this domain
Why the exam asks this
Core Machine Learning and AI Knowledge (20% of the exam)
Objective in the exam guide: Explain nonsequential neural networks and residual connections.
Most modern backbones, including U-Nets, rely on skip connections.
Why D is the answer
They let gradients flow through identity paths, easing deep training
A residual block adds its input to its output, so each block learns a correction. Gradients pass through the identity path, which eases optimization of very deep networks.
Remember: Skip connections ease gradient flow in deep nets.
How it works
Nonsequential networks have branches or skips. Residual connections add the input back to a block's output.
In detail
- Skip connections make networks non-sequential.
- Identity paths help gradient flow.
Every option, checked
Knowing why each wrong option fails is how you rule it out on exam day.
A. They shrink the early layers so the deep network holds far fewer parameters overallWrong
Parameters are not removed.
B. They remove the need for any activation functionsWrong
Activations are still used.
C. They make the network sequential so layers run in orderWrongMost tempting
Skip connections are what make the graph non-sequential.
Why it tempts: The word "connection" suggests order, but skips break strict order.
D. They let gradients flow through identity paths, easing deep trainingRight
Skip connections ease gradient flow in deep nets.
Use case
An illustrative scenario, not a real incident.
Illustrative: a 50-layer vision backbone trains well only after residual connections are added.
See it in different ways
sequenceDiagram participant P0 as Input participant P1 as Layers F participant P2 as Add P0->>P1: x P1->>P2: F of x P0->>P2: skip x P2-->>P0: output F of x plus x
How to read this chart
- 1. Input sends "x" to Layers F.
- 2. Layers F sends "F of x" to Add.
- 3. Input sends "skip x" to Add.
- 4. Input gets a reply from Add: "output F of x plus x".
mindmap
root(("Non-sequential"))
n1["Residual"]
n2["Add input to output"]
n3["Multi-input"]
n4["Image and text branches"]
n5["U-Net"]
n6["Encoder-decoder skips"]How to read this chart
- The centre is "Non-sequential".
- "Residual" covers "Add input to output".
- "Multi-input" covers "Image and text branches".
- "U-Net" covers "Encoder-decoder skips".
Related questions
Learn more
- Our lesson: Deep learning foundations for multimodal models
- Practise Core Machine Learning and AI Knowledge questions in the mock exam
- Source: Deep Residual Learning for Image Recognition (arXiv)
- Source: Fundamentals of Deep Learning (NVIDIA DLI)
- Fundamentals of Deep Learning (NVIDIA DLI)
- PyTorch documentation
- Deep Residual Learning for Image Recognition (arXiv)
- Transfer learning tutorial (PyTorch)