欢迎回来

登录 EAKE AI,继续您的智能之旅

忘记密码?
还没有账号?立即注册

论文解读:ResNet — 残差连接如何让网络无限深

2026-05-08 · AI 论文

论文标题:Deep Residual Learning for Image Recognition

作者:Kaiming He, Xiangyu Zhang, Shaoqing Ren, Jian Sun

发表:CVPR 2016 | Microsoft Research

引用量:200,000+(计算机视觉史上被引最多论文)

arXiv:1512.03385

一、深度网络的退化问题

直觉上,网络越深应该越强。但实验发现了一个反直觉的现象:56层网络的训练误差比20层网络还高

这不是过拟合(训练误差也高),而是退化问题(Degradation):更深的网络反而更难优化。理论上,深层网络至少应该和浅层网络一样好(多余的层学恒等映射即可),但SGD很难学出恒等映射。

二、残差学习的核心思想

何恺明的天才洞察:与其让网络学习H(x),不如让它学习F(x) = H(x) - x

# 普通网络:直接学习映射
H(x) = 目标映射

# 残差网络:学习残差
F(x) = H(x) - x  →  即 H(x) = F(x) + x

如果某一层只需要做恒等映射,残差网络只需学F(x)=0,这比学H(x)=x容易得多!

三、残差块(Residual Block)

输入x
  → Conv → BN → ReLU → Conv → BN
  → + x(跳跃连接/Shortcut Connection)
  → ReLU
  → 输出

关键:跳跃连接不增加参数,不增加计算量,只做恒等映射(element-wise addition)。

四、为什么有效?

  • 梯度直通:跳跃连接为梯度提供了一条"高速公路",缓解梯度消失
  • 恒等映射容易学:F(x)=0比H(x)=x更容易优化
  • 信息融合:每层只需学习"残差"(与恒等映射的偏差),而非完整的变换

五、网络架构

网络层数Top-5错误率
VGG-19197.32%
Plain-343410.02%(退化!)
ResNet-34345.71%
ResNet-1011014.60%
ResNet-1521523.57%

ResNet-152比VGG-19深8倍,但复杂度反而更低!ResNet横扫ILSVRC 2015全部5项冠军。

六、超越图像分类

残差连接的影响远超计算机视觉:

  • Transformer:每个子层都有残差连接(Add & Norm)
  • GPT/BERT:深层Transformer依赖残差连接训练
  • 扩散模型U-Net:跳跃连接是核心
  • AlphaGo/AlphaFold:都使用了残差结构

可以说,没有残差连接,就不可能有现代深度学习。

七、原文摘要

Deeper neural networks are more difficult to train. We present a residual learning framework to ease the training of networks that are substantially deeper than those used previously. We explicitly reformulate the layers as learning residual functions with reference to the layer inputs, instead of learning unreferenced functions. On the ImageNet dataset we evaluate residual nets with a depth of up to 152 layers — 8x deeper than VGG nets but still having lower complexity. An ensemble of these residual nets achieves 3.57% error on the ImageNet test set. This result won the 1st place on the ILSVRC 2015 classification task.

评论区

发表评论