Learning identity vs. learning zero: what a shortcut changes about the target
One block, two wirings, the same random weights. The plain block H(x) must be taught to copy its input; the residual block x + F(x) copies it as soon as F is zero. Press Train, then switch to weight decay only. Drag view step to replay a run. Equivalent init starts the two blocks as the same function (the residual block gets four extra relu units wired to −x, since x = relu(x) − relu(−x)): then, without decay, they learn the identity about equally fast, and only decay tells them apart.
init scale
view step0
The tug of war. Each step is the sum of two pulls: the objective’s, toward the identity, and weight decay’s, toward zero weights. Below, at every point, is what one step of each would do to the block’s output: green for the objective, red for decay (shown whether or not decay is switched on). Each color is scaled on its own, since one pull can be far weaker than the other; look at the directions.