On the Inadequacy of CKA as a Measure of Similarity in Deep LearningDownload PDF

02 Mar 2022, 12:21 (modified: 25 Apr 2022, 23:11)GTRL 2022 PosterReaders: Everyone
Keywords: Neural Networks, Internal Representations, Similarity Measures, Centered Kernel Alignment (CKA)
Abstract: Comparing learned representations is a challenging problem which has been approached in different ways. The CKA similarity metric, particularly it's linear variant, has recently become a popular approach and has been widely used to compare representations of a network's different layers, of similar networks trained differently, or of models with different architectures trained on the same data. CKA results have been used to make a wide variety of claims about similarity and dissimilarity of these various representations. In this work we investigate several weaknesses of the CKA similarity metric, demonstrating situations in which it gives unexpected or counterintuitive results. We then study approaches for modifying representations to maintain functional behaviour while changing the CKA value. Indeed we illustrate in some cases the CKA value can be heavily manipulated without substantial changes to the functional behaviour.
Poster: png
4 Replies