跳到主要内容Skip to main content

残差连接Residual Connection

Residual Connection

  • 核心概念Core concepts
  • 第四站 · 看懂Station 4 · Under the Hood
解决什么问题What problem it solves

给网络留一条「直通通道」,让信号穿过很多层也不丢失。Gives the network a "pass-through lane" so the signal survives passing through many layers.

这是什么What it is

每一层除了输出加工后的结果,还把自己收到的原始输入原样加上去。

它来自图像识别里的 ResNet。

后来它成了 Transformer 能堆到几十层的前提之一。

Each layer adds its raw input back onto its processed output.

It came from ResNet in image recognition.

Later it became one of the prerequisites for Transformers stacking dozens of layers.

为什么需要知道Why it matters

网络越深越容易训不动——信号穿过几十层会走样。直通通道让模型「改一点、保留大部分」,深才可行。Deeper networks are harder to train — signals get distorted across dozens of layers. The pass-through lane lets the model "change a bit, keep most of it," which is what makes depth feasible.

出处Sources
  • ResNet 论文(Deep Residual Learning)Deep Residual Learning for Image Recognition (paper) ↗
  • Attention Is All You Need(论文 §3.1)Attention Is All You Need §3.1 (paper) ↗