residual-block -- the skip connection y = F(x) + x

Make a network deeper and, past a point, it gets worse — not from memorising its training data, just worse at everything, which is not what more capacity is supposed to do. The fix is to stop asking each block to produce its output from scratch. A copy of the input is carried straight past the block and added to whatever the block computed, so the block only has to supply a small correction, and doing nothing at all becomes an option it can take. That one change let vision networks go from around twenty layers to over a thousand. A follow-up paper, rather than the original, added the other half of the explanation: the copied-through path also gives the learning signal a clear route back to the earliest layers.

Interactive page: the ResNet residual block -- a small learned function F runs in parallel with an identity shortcut that copies the input straight to the output, so y = F(x) + x. Anchor: F (CNN / vision); Family F, builds on convolution.

What it shows

Two linked views:

Toggle the skip off and watch the gradient curve crash to ~0 at the input (the early layers stop learning).

Careful with the history here, because the original paper says the opposite. He et al. 2015 (1512.03385) argue that vanishing gradients were "largely addressed by normalized initialization intermediate normalization layers", that their plain nets use BN so "neither forward nor backward signals vanish", and that the difficulty they set out to solve is therefore "unlikely to be caused by vanishing gradients". What they name is degradation — accuracy saturating and then falling as depth grows, not from overfitting — and they conjecture exponentially low convergence rates. The ∂y/∂x = I + ∂F/∂x gradient-highway derivation this page draws is from the FOLLOW-UP, Identity Mappings in Deep Residual Networks (1603.05027). So: the highway is real and is what the chart shows, but it is the 2016 analysis, and it is not the reason the 2015 paper gives for why very deep nets became trainable.

Drag the input x bars to refeed the block; tune depth L, gain g, toggle the skip, pick a seed. The backprop pulse animates.

Render tier

T1 (Canvas2D: the three vector bar-charts + the log-scale depth/gradient chart).

Wiring

layout.mount + controls (L, gain, skip, seed) + animate (the backprop pulse) + onPointer drag-the-input + hover. ?L / ?gain / ?skip / ?drag / ?hover hooks. Source: page.js.