揭秘ResNet
Demystifying ResNet
摘要:
He et al.(2015)提出的残差网络(ResNet)利用快捷连接显著降低了训练难度,从而在训练和泛化误差方面都有很大的性能提升。He等人(2015)根据经验观察到,使用快捷方式2堆叠更多层的残差块会导致更小的训练误差,而对于长度为1或3的快捷方式则不成立。我们提供了一个理论解释的唯一性的捷径2。我们证明了,无论有无非线性,通过添加深度为2的快捷方式,损失函数在零初始点处的Hessian的条件数是深度不变的,这使得训练非常深的模型并不比浅的模型更困难。更高深度的捷径最初会导致非常平坦的(高阶)稳定点,优化算法很难逃脱。然而,快捷方式1基本上等同于没有快捷方式,其具有随着层数的增加而爆炸到无穷大的条件数。我们进一步认为,由于层数趋于无穷大,它足以只看在零初始点的损失函数。广泛的实验提供伴随我们的理论结果。我们表明,使用捷径2将网络初始化为小权重比随机高斯(Xavier)初始化,正交初始化和更深深度的捷径取得了更好的结果,从最终损失,学习动态和稳定性,到Hessian的行为等各个角度来看。
英文摘要:
The Residual Network (ResNet), proposed in He et al. (2015), utilized shortcut connections to significantly reduce the difficulty of training, which resulted in great performance boosts in terms of both training and generalization error. It was empirically observed in He et al. (2015) that stacking more layers of residual blocks with shortcut 2 results in smaller training error, while it is not true for shortcut of length 1 or 3. We provide a theoretical explanation for the uniqueness of shortcut 2. We show that with or without nonlinearities, by adding shortcuts that have depth two, the condition number of the Hessian of the loss function at the zero initial point is depth-invariant, which makes training very deep models no more difficult than shallow ones. Shortcuts of higher depth result in an extremely flat (high-order) stationary point initially, from which the optimization algorithm is hard to escape. The shortcut 1, however, is essentially equivalent to no shortcuts, which has a condition number exploding to infinity as the number of layers grows. We further argue that as the number of layers tends to infinity, it suffices to only look at the loss function at the zero initial point. Extensive experiments are provided accompanying our theoretical results. We show that initializing the network to small weights with shortcut 2 achieves significantly better results than random Gaussian (Xavier) initialization, orthogonal initialization, and shortcuts of deeper depth, from various perspectives ranging from final loss, learning dynamics and stability, to the behavior of the Hessian along the learning process.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。