MSE损失下的神经崩溃:中心路径的邻近性和动力学
Neural Collapse Under MSE Loss: Proximity to and Dynamics on the Central Path
摘要:
最近发现的神经崩溃(NC)现象普遍存在于今天的深度网络训练范式中,将交叉熵(CE)损失推向零。在NC期间,最后一层特征折叠到它们的类均值,分类器和类均值折叠到相同的单纯形等角紧框架,并且分类器行为折叠到最近的类均值决策规则。最近的工作表明,使用均方误差(MSE)损失训练的深度网络与使用CE训练的深度网络相比表现更好。作为初步研究,我们通过对三个典型网络和五个基准数据集的实验,经验性地确定NC也出现在这样的MSE训练的深度网络中。我们在Google Colab笔记本中提供了用于复制MSE-NC和CE-NC的PyTorch代码:https://colab.research.google.com/github/neuralcollapse/neuralcollapse/blob/main/neuralcollapse.ipynb。可分析的MSE损失比难以分析的CE损失提供了更多的数学机会,启发我们利用MSE损失对NC的理论研究。我们开发了三个主要贡献:(I)我们将MSE损失分解为(A)通过NC镜头直接解释的术语,并假设最后一层分类器恰好是最小二乘分类器;以及(B)捕获此最小二乘分类器偏差的术语。(II)我们展示了在规范数据集和网络上的实验,证明了项-(B)在训练过程中可以忽略不计。这促使我们引入一个新的理论结构:中心路径,其中线性分类器在整个动态过程中保持MSE最优的特征激活。(III)通过研究沿中心路径的重正化梯度流,我们推导出预测NC的精确动力学。
英文摘要:
The recently discovered Neural Collapse (NC) phenomenon occurs pervasively in today's deep net training paradigm of driving cross-entropy (CE) loss towards zero. During NC, last-layer features collapse to their class-means, both classifiers and class-means collapse to the same Simplex Equiangular Tight Frame, and classifier behavior collapses to the nearest-class-mean decision rule. Recent works demonstrated that deep nets trained with mean squared error (MSE) loss perform comparably to those trained with CE. As a preliminary, we empirically establish that NC emerges in such MSE-trained deep nets as well through experiments on three canonical networks and five benchmark datasets. We provide, in a Google Colab notebook, PyTorch code for reproducing MSE-NC and CE-NC: at https://colab.research.google.com/github/neuralcollapse/neuralcollapse/blob/main/neuralcollapse.ipynb. The analytically-tractable MSE loss offers more mathematical opportunities than the hard-to-analyze CE loss, inspiring us to leverage MSE loss towards the theoretical investigation of NC. We develop three main contributions: (I) We show a new decomposition of the MSE loss into (A) terms directly interpretable through the lens of NC and which assume the last-layer classifier is exactly the least-squares classifier; and (B) a term capturing the deviation from this least-squares classifier. (II) We exhibit experiments on canonical datasets and networks demonstrating that term-(B) is negligible during training. This motivates us to introduce a new theoretical construct: the central path, where the linear classifier stays MSE-optimal for feature activations throughout the dynamics. (III) By studying renormalized gradient flow along the central path, we derive exact dynamics that predict NC.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。