The one-line change that let networks go from tens of layers to hundreds: instead of a block computing f(x), have it compute x + f(x) — add the input straight back. Now a block only has to learn the residual, the correction, and the gradient gets a clean identity path home: ∂(x+f)/∂x = 1 + f′ — the +1 keeps it from collapsing to zero even when f′ vanishes. ResNet stacked 152 layers and won; every deep architecture since uses it.
The demo shows the gradient through a residual block stays 1 even when f’s gradient vanishes — 50 layers deep: live demo
“Residual connections just add more parameters.” — the skip has zero parameters; its whole power is the identity path that carries the gradient. cited
An identity highway for the gradient. architecture
On i-13, when f’s gradient is 0 the residual gradient is still 1 (the plain net’s is 0), and it survives 50 layers: