Back to Deep Learning Mind Map
中文·English
🧠 Deep LearningID: resnet-skip

ResNet Skip Connections

ResNet 残差连接
🎯Core Definition
A residual block computes y=F(x,{Wi})+xy = F(x, \{W_i\}) + x — the layer learns the residual F(x)=H(x)xF(x) = \mathcal{H}(x) - x instead of the direct map H(x)\mathcal{H}(x). In backprop, yx=1+Fx\frac{\partial y}{\partial x} = 1 + \frac{\partial F}{\partial x}: the identity shortcut gives a gradient highway along which the gradient can flow through any number of layers via the constant 1 term, mitigating vanishing gradients (equivalent to ensembling many shallow networks). Degradation: a 56-layer plain network has higher training error than a 20-layer one, and not due to overfitting — the identity map is simply hard to learn; residuals rewrite the goal as 'learn F→0', so deep networks are at least no worse than shallow ones, which is why ResNet-152 trains stably.
💡Use Cases
a standard component of nearly all deep CNNs/Transformers (same idea as Pre-Norm); interview staples — what is the degradation problem, why do residuals make thousand-layer networks trainable, why must the shortcut be identity.
Key Problems Solved
optimization degradation and vanishing gradients beyond a depth threshold — with identity shortcuts, accuracy improves monotonically with depth without a hard ceiling; ImageNet top-5 error drops from ~7.3% (VGG) to ~4.6% (ResNet-152), and 152-layer models became the default backbone for vision.
🎯5 High-Frequency Exam Points
1
Derive the residual-block gradient yx=1+Fx\frac{\partial y}{\partial x} = 1 + \frac{\partial F}{\partial x} and explain why the identity shortcut mitigates vanishing gradients.
2
What is the degradation problem? Why does a 56-layer net have higher training error than a 20-layer one without overfitting?
3
Why must the shortcut be the identity xx rather than a learned transform such as 1×1 conv?
4
When F changes channels/resolution, how do you match the shortcut dimensions, and what does each option cost?
5
How does ResNet make 152-layer (even 1000-layer) training possible? Answer from both optimization and gradient perspectives.
Updated 2026-08-12
🎯
Test Your Knowledge: Practice Questions for "ResNet Skip Connections"
Single choice pitfall questions with instant feedback and mistake tracking.
🚀 Start Card Practice
Previous CardClassic CNN ArchitecturesNext CardDepthwise Separable Conv

🔗 More Deep Learning Knowledge Cards

Activation FunctionsAdam & AdamWAutograd Compute GraphBatch Normalization