ResNet Residual Connections Explained
A residual connection adds a layer's input back to its output, so the layers only have to learn the difference from the input. He et al. introduced it to fix a problem they call degradation: as a plain network gets deeper, accuracy saturates and then "degrades rapidly." This is not overfitting, because the deeper network has higher training error too.
That is odd, since a deeper model can copy a shallower one by making the added layers the identity. The authors hypothesize that a stack of nonlinear layers has trouble learning the identity.
Their remedy is to let the layers fit a residual. If H(x) is the mapping you want, the layers fit F(x) = H(x) − x, and the block outputs F(x) + x through a shortcut that simply adds the input. "If an identity mapping were optimal, it would be easier to push the residual to zero than to fit an identity mapping by a stack of nonlinear layers."
What did it change? The paper compares plain and residual networks with the same layers and no extra parameters. Top-1 error on ImageNet validation with 10-crop testing, in percent: 18 layers 27.94 plain and 27.88 residual; 34 layers 28.54 plain and 25.03 residual. The plain net gets worse with depth and the residual net gets better. The gap at 34 layers is 28.54 − 25.03 = 3.51 points.