Skip connection

A broader shortcut path that carries information around one or more layers, including the residual adds used inside transformers.

What It Is

A skip connection is any shortcut path that lets a signal bypass part of a network and rejoin later. Residual connections are the transformer version most readers see: the block input travels around attention or the feed-forward network and is added back to the updated stream. In other architectures, the skipped path can also be concatenated or merged in other ways, so skip connection is the broader family name.

Why It Matters

Shortcut paths help deep models keep useful information alive while later layers learn refinements. In transformers, that means attention and feed-forward sublayers can make focused updates without overwriting the whole residual stream. In convolutional or encoder-decoder systems, skip paths can also carry spatial detail or earlier features forward so later layers do not need to reconstruct everything from scratch.

Simple Example

Picture a transformer block as two workstations in a row: one attention step and one feed-forward step. A residual connection wraps each workstation, so the incoming hidden state can skip around the work and be added back at the end. That is a skip connection. In a U-Net, a skip connection can send early image features directly to a later decoder stage instead of only through the deepest bottleneck.

Common Confusions

Readers often use skip connection and residual connection as if they were exact synonyms. In transformer writing that is usually harmless, because the main skip path is a residual add. The broader term still matters because some skip connections are concatenations or cross-stage handoffs rather than adds. A skip path is also not the same as normalization: the shortcut preserves or forwards information, while normalization rescales activations.

Tags

References

  1. Vaswani, Ashish, et al. "Attention Is All You Need." arXiv, 2017, https://arxiv.org/abs/1706.03762.