arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2210.16156cs.LGcs.AIcs.CV
收藏

CKA作为深度学习中相似性度量的可靠性

Reliability of CKA as a Similarity Measure in Deep Learning

Mila – Quebec AI Institute(米拉-魁北克人工智能研究所);Concordia University(康考迪亚大学);Université de Montréal(蒙特利尔大学)

MohammadReza Davari, Stefan Horoi, Amine Natik, Guillaume Lajoie, Guy Wolf, Eugene Belilovsky

摘要:

在神经网络中比较学习的神经表示是一个具有挑战性但重要的问题,已经以不同的方式进行了研究。中心核对齐(CKA)相似性度量,特别是其线性变体,最近已成为一种流行的方法,并已被广泛用于比较网络的不同层,不同训练的架构相似网络,或具有相同数据训练的不同架构的模型的表示。各种各样的结论,这些不同的表示的相似性和相异性已经使用CKA。在这项工作中,我们提出了分析,正式特征CKA的敏感性,一个大类的简单的转换,这可以自然地发生在现代机器学习的背景下。这提供了一个具体的解释CKA的敏感性离群值,这已经在过去的作品中观察到,并保持数据的线性可分性,一个重要的泛化属性的转换。我们实证研究的CKA相似性度量的几个弱点,演示的情况下,它给出了意想不到的或违反直觉的结果。最后,我们研究的方法修改表示,以保持功能的行为,同时改变CKA值。我们的研究结果表明,在许多情况下,CKA值可以很容易地操纵,而无需对模型的功能行为进行实质性更改,并且在利用激活对齐指标时需要谨慎。

英文摘要:

Comparing learned neural representations in neural networks is a challenging but important problem, which has been approached in different ways. The Centered Kernel Alignment (CKA) similarity metric, particularly its linear variant, has recently become a popular approach and has been widely used to compare representations of a network's different layers, of architecturally similar networks trained differently, or of models with different architectures trained on the same data. A wide variety of conclusions about similarity and dissimilarity of these various representations have been made using CKA. In this work we present analysis that formally characterizes CKA sensitivity to a large class of simple transformations, which can naturally occur in the context of modern machine learning. This provides a concrete explanation of CKA sensitivity to outliers, which has been observed in past works, and to transformations that preserve the linear separability of the data, an important generalization attribute. We empirically investigate several weaknesses of the CKA similarity metric, demonstrating situations in which it gives unexpected or counter-intuitive results. Finally we study approaches for modifying representations to maintain functional behaviour while changing the CKA value. Our results illustrate that, in many cases, the CKA value can be easily manipulated without substantial changes to the functional behaviour of the models, and call for caution when leveraging activation alignment metrics.

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

↑