CKA is a similarity index for two matrices, X ∈ R n×p 1 and Y ∈ R n×p 2 , which can be used to compare the representations of n samples even when their dimensionalities p 1 and p 2 are different. The CKA with the kernel κ(•, •) is defined as