arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2309.15328cs.LG
收藏

使用主成分分析探索神经网络的学习表征

Exploring Learned Representations of Neural Networks with Principal Component Analysis

Cornell University(康奈尔大学);Pacific Northwest National Laboratory(太平洋西北国家实验室);University of Washington(华盛顿大学)

Amit Harlev, Andrew Engel, Panos Stinis, Tony Chiang

AI总结:

本文用PCA分析CIFAR-10上ResNet-18的逐层表征,揭示少量主成分即可决定k-NN与NCC性能,并提出可解释替代模型以定位神经坍缩。

摘要:

理解深度神经网络(DNN)的特征表征仍是可解释AI这一广泛领域中的一个开放问题。我们使用主成分分析(PCA),研究 k-近邻分类器(k-NN)、最近类中心分类器(NCC)和支持向量机在一个于 CIFAR-10 上训练的 ResNet-18 的逐层学习表征上的性能。我们表明,在某些层中,仅需少至20%的中间特征空间方差,即可实现高精度分类;而且在所有层中,前约100个主成分(PC)完全决定了 k-NN 和 NCC 分类器的性能。我们将这些发现与神经坍缩联系起来,并为中间神经坍缩这一相关现象提供了部分证据。我们的初步工作给出了三个不同但可解释的特征表征替代模型,其中仿射线性模型表现最佳。我们还表明,利用多个替代模型可提供一种巧妙方法,用于估计神经坍缩可能最早在 DNN 内的哪个位置发生。

英文摘要:

Understanding feature representation for deep neural networks (DNNs) remains an open question within the general field of explainable AI. We use principal component analysis (PCA) to study the performance of a k-nearest neighbors classifier (k-NN), nearest class-centers classifier (NCC), and support vector machines on the learned layer-wise representations of a ResNet-18 trained on CIFAR-10. We show that in certain layers, as little as 20% of the intermediate feature-space variance is necessary for high-accuracy classification and that across all layers, the first ~100 PCs completely determine the performance of the k-NN and NCC classifiers. We relate our findings to neural collapse and provide partial evidence for the related phenomenon of intermediate neural collapse. Our preliminary work provides three distinct yet interpretable surrogate models for feature representation with an affine linear model the best performing. We also show that leveraging several surrogate models affords us a clever method to estimate where neural collapse may initially occur within the DNN.

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

↑