Chapter 15
Residual, Skip, and Gated Connections
Residual addition, projection shortcuts, skip connections, concatenation shortcuts, gates, identity gradient paths, and why residual blocks changed deep training.
What this chapter does
Deep networks need reliable routes for information and gradients. This chapter explains shortcut and gated paths before larger architectures hide them behind names.
Lessons
Read these in order.
Start with the chapter introduction, then move through the topic lessons. The order is chosen so each page can reuse ideas from the pages before it.
- 01Introduction
Why deeper networks need routes for information and gradients.
- 02Residual Addition
Residual blocks as learning a correction added to the input.
- 03Projection Shortcut
Projecting the skip path when residual shapes are not compatible.
- 04Skip Connection
Routing information around one or more transformations.
- 05Concatenation Shortcut
Keeping both paths by joining features instead of adding them.
- 06Simple Gates
Learning how much signal to pass, keep, or mix.
- 07Identity Gradient Path
How direct paths give gradients a shorter route through deep networks.
- 08Why Residual Blocks Changed Deep Training
Why learning small corrections made very deep networks easier to optimize.
Review and practice
Close the chapter deliberately.
Use the conclusion and revision notes before the chapter exercises. Hints and solutions are collected here, while lesson-level exercises reveal their own help inline.
What shortcut and gated paths establish before numerical stability.
Summary and Revision NotesA compact review of residual addition, projection, skip paths, concatenation, gates, and identity gradients.
ExercisesChapter-level practice for residual, skip, and gated connections.
HintsLow-spoiler nudges for the Chapter 15 exercises.
SolutionsExplained solutions for the Chapter 15 exercises.
Before moving on
- Compute residual sums and simple gated mixtures.
- Explain projection shortcuts and shape compatibility.
- Compare residual addition with concatenation shortcuts.
- Explain why identity paths help gradients in deep networks.
Where this leads
- Numerical Precision and Stability
- PyTorch as Compression
- Transformers