arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2401.09018cs.LG
收藏

残差对齐:揭示残差网络的机制

Residual Alignment: Uncovering the Mechanisms of Residual Networks

University of Toronto(多伦多大学)

Jianing Li, Vardan Papyan

AI总结:

本文通过残差雅可比矩阵的奇异值分解,发现并刻画了ResNet中名为残差对齐的现象及其四个性质,揭示跳跃连接赋予中间表示刚性几何结构并最终导致神经坍缩,从而解释ResNet成功机制。

摘要:

ResNet架构由于通过简单的跳跃连接显著提升性能而在深度学习中被广泛采用,但其成功背后的机制在很大程度上仍然未知。本文通过在分类任务中使用残差雅可比矩阵对其组成残差块进行线性化,并测量其奇异值分解,对ResNet架构进行了深入的实证研究。我们的测量揭示了一个称为残差对齐(RA)的过程,其特征为四个性质:(RA1)给定输入的中间表示在高维空间中嵌入的一条直线上等距分布,正如Gai和Zhang[2021]所观察到的;(RA2)残差雅可比矩阵的顶部左右奇异向量彼此对齐,并且在不同深度之间对齐;(RA3)对于全连接ResNet,残差雅可比矩阵的秩至多为C,其中C是类别数;(RA4)残差雅可比矩阵的顶部奇异值与深度成反比缩放。RA一致地出现在泛化良好的模型中,包括全连接和卷积架构,在各种深度和宽度下,对于不同数量的类别,在所有测试的基准数据集上均出现,但一旦移除跳跃连接就不再出现。它还在我们提出的一个新数学模型中可证明地出现。这一现象揭示了ResNet的残差分支之间存在强对齐(RA2+4),赋予中间表示一种高度刚性的几何结构,使其在网络中线性推进(RA1)直至最后一层,并在最后一层经历神经坍缩。

英文摘要:

The ResNet architecture has been widely adopted in deep learning due to its significant boost to performance through the use of simple skip connections, yet the underlying mechanisms leading to its success remain largely unknown. In this paper, we conduct a thorough empirical study of the ResNet architecture in classification tasks by linearizing its constituent residual blocks using Residual Jacobians and measuring their singular value decompositions. Our measurements reveal a process called Residual Alignment (RA) characterized by four properties: (RA1) intermediate representations of a given input are equispaced on a line, embedded in high dimensional space, as observed by Gai and Zhang [2021]; (RA2) top left and right singular vectors of Residual Jacobians align with each other and across different depths; (RA3) Residual Jacobians are at most rank C for fully-connected ResNets, where C is the number of classes; and (RA4) top singular values of Residual Jacobians scale inversely with depth. RA consistently occurs in models that generalize well, in both fully-connected and convolutional architectures, across various depths and widths, for varying numbers of classes, on all tested benchmark datasets, but ceases to occur once the skip connections are removed. It also provably occurs in a novel mathematical model we propose. This phenomenon reveals a strong alignment between residual branches of a ResNet (RA2+4), imparting a highly rigid geometric structure to the intermediate representations as they progress linearly through the network (RA1) up to the final layer, where they undergo Neural Collapse.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑