Adds a block’s input to its output, so each layer only learns a correction. The reason very deep nets train at all.
Introduced inDec 2015Deep Residual Learning for Image Recognition
The Add nodes threading through a transformer are residual connections: each attention or MLP block computes a delta that is added onto an untouched copy of its input. Gradients can flow straight through the addition, which is what makes 50-plus-layer models trainable. The chain of additions is often called the ‘residual stream’. The shared workspace every block reads from and writes to.
Share of new models that have included residual connections over time.
Open any of these on hfviewer to find this block in the interactive architecture graph.
Browse all 2166 models with this in the catalog →
hfviewer renders the full architecture of 2,300+ Hugging Face models as interactive graphs. Hover any block to see what it does, with this model’s real numbers.
Browse all model graphs →