Residual Connection
A technique in neural networks where the layer input is added to its output, forming a 'bypass path'. Formally: output = input + F(input).
Why
In deep networks, the gradient diminishes as it passes through many layers. Residual connection provides a shortcut back, preventing the training from 'dying' in lower layers.
Where It's Found
- In every transformer block — around the attention and fully connected layer;
- In ResNet for images;
- In most modern architectures.
Relation to Normalization
Residual connection usually works in tandem with Layer Normalization: normalization stabilizes the values, while residual connection stabilizes the gradient flow. Together, they enable the training of very deep networks.