Skip to main content
QUICK REVIEW

[论文解读] ResNet or DenseNet? Introducing Dense Shortcuts to ResNet

Chaoning Zhang, Philipp Benz|arXiv (Cornell University)|Oct 23, 2020
Advanced Neural Network ApplicationsComputer Science参考文献 44被引用 18
一句话总结

本文提出Dense Shortcuts(DSNet),一种新颖的残差连接机制,用密集加权归一化捷径替代ResNet的恒等捷径和DenseNet的特征拼接。通过共享归一化和可学习权重,DSNet实现了高效、参数高效的特征重用,在ImageNet和COCO上达到最先进性能,显著超越ResNet,同时参数量更少、GPU显存占用低于DenseNet。

ABSTRACT

ResNet or DenseNet? Nowadays, most deep learning based approaches are implemented with seminal backbone networks, among them the two arguably most famous ones are ResNet and DenseNet. Despite their competitive performance and overwhelming popularity, inherent drawbacks exist for both of them. For ResNet, the identity shortcut that stabilizes training also limits its representation capacity, while DenseNet has a higher capacity with multi-layer feature concatenation. However, the dense concatenation causes a new problem of requiring high GPU memory and more training time. Partially due to this, it is not a trivial choice between ResNet and DenseNet. This paper provides a unified perspective of dense summation to analyze them, which facilitates a better understanding of their core difference. We further propose dense weighted normalized shortcuts as a solution to the dilemma between them. Our proposed dense shortcut inherits the design philosophy of simple design in ResNet and DenseNet. On several benchmark datasets, the experimental results show that the proposed DSNet achieves significantly better results than ResNet, and achieves comparable performance as DenseNet but requiring fewer computation resources.

研究动机与目标

  • 解决ResNet和DenseNet在表征能力与计算效率之间的权衡问题。
  • 克服ResNet恒等捷径表征能力有限以及DenseNet密集拼接带来的高显存开销问题。
  • 提出一种统一的密集求和视角,阐明ResNet与DenseNet的核心差异。
  • 设计一种轻量化、高效且高性能的ResNet和DenseNet替代方案。
  • 在不增加参数量或计算开销的前提下,实现更优的特征利用。

提出的方法

  • 用从所有前序层聚合特征的密集加权归一化捷径替代ResNet的恒等捷径。
  • 对聚合的特征图应用共享批量归一化,随后对每条捷径路径应用可学习的缩放和偏移权重。
  • 每层聚合输出仅进行一次归一化,并在所有连接该层的捷径间复用,降低计算与参数开销。
  • 采用归一化特征的加权求和而非拼接,避免DenseNet的显存爆炸问题。
  • 保持与ResNet相同的残差块架构,仅替换捷径连接机制。
  • 将捷径实现为轻量化操作:将共享归一化特征乘以可学习权重,最小化计算成本。

实验结果

研究问题

  • RQ1如何在不增加计算或显存成本的前提下提升ResNet的表征能力?
  • RQ2能否在避免DenseNet高GPU显存和训练时间要求的同时,实现与其相当的性能?
  • RQ3从特征重用与参数共享的角度看,ResNet与DenseNet的根本差异是什么?
  • RQ4统一的密集求和视角能否揭示残差网络更优的设计原则?
  • RQ5采用归一化加权求和的密集捷径是否优于恒等捷径与特征拼接?

主要发现

  • 在ImageNet上,DSNet50的top-1准确率达到22.49%,显著优于ResNet50(24.01%),并接近DenseNet264(22.15%)。
  • DSNet50在COCO检测任务上的mAP达到54.2% mAP.5,高于ResNet50的51.3%,表明其泛化能力更强。
  • DSNet50每GPU仅使用4777 MB GPU显存,远低于DenseNet264的9981 MB,同时训练速度更快(每迭代0.37秒 vs. 0.60秒)。
  • 所提实现通过在捷径间共享归一化并消除冗余仿射变换,显著降低了计算与参数开销。
  • Grad-CAM可视化显示,DSNet对物体的关注比ResNet50更集中,表明其注意力机制与特征学习能力更优。
  • DS2Net50在性能上与DenseNet264(22.03% top-1)相当,但显存更低(5133 MB),训练速度也快于ResNet152。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。