Residual Connections and Gradient Paths
Differentiate a residual block and see how its direct path preserves one contribution to the gradient.
- Source
- Anbloq
- Language
- English
- Created
- Updated
- Chapters
- 2
- Reading time
- 1 min
In this article2 chapters
The block adds a learned change to its input
For compatible shapes, a residual block has \(y=x+F(x)\). Its Jacobian is \(I+J_F(x)\). Backpropagation therefore includes a direct contribution from the incoming gradient in addition to the transformed contribution. If the learned branch begins close to zero, the block can initially behave near identity. When shapes change, a projection or another documented alignment changes that direct path.
A shortcut does not settle every stability question
Composing many blocks still multiplies their Jacobians. Their learned contributions can amplify, cancel or distort directions depending on the network. Normalization, initialization and training dynamics remain relevant. Reverse-mode differentiation derives the gradient contribution. Variance-preserving initialization addresses the scale of signal flowing through the learned branch.[1][2]