Residual Addition
A residual block computes a change and adds it to the input.
y = x + F(x)
Here, F(x) is the transformation learned by the block. The input x also travels through an identity path.
This changes the job of the block. Instead of learning the whole output from scratch, the block can learn a residual correction.
If x = 10 and F(x) = -2, then:
y = 10 + (-2) = 8
If the useful change is small, residual form lets the block make a small adjustment while preserving much of the input.
DL-C15-T01-001Exercise: Residual sum
Let x = 7 and F(x) = 3. What is y = x + F(x)?
Compute it first, then check your number.
DL-C15-T01-002Exercise: Residual role
Enter 1 if a residual block can learn a correction to the input, or 2 if it must discard the input.
Compute it first, then check your number.