Revisiting the Platonic Representation Hypothesis: An Aristotelian View โ part 4/8
Cleaned-text code points [46820, 62625). Bibliography omitted here; source.md includes it.
This section provides formal definitions of the similarity metrics used throughout the paper. In the main text, we primarily use CKA (linear and RBF kernel) ( Kornblith et al., 2019 ) , RSA ( Kriegeskorte et al., 2008 ) , and mutual k k -NN ( Huh et al., 2024 ) as representative metrics from the spectral, geometric, and neighborhood families, respectively. Additional metrics (SVCCA, PWCCA, cycle- k k NN, CKNNA, RV coefficient, Procrustes) are included for completeness and used in supplementary experiments.
#### B.2.1 Spectral metrics
##### Linear Centered Kernel Alignment (CKA) .
Linear CKA ( Kornblith et al., 2019 ) can be written as a normalized Frobenius energy of the sample cross-covariance operator. With ๐ c , ๐ c \mathbf{X}_{c},\mathbf{Y}_{c} as above, define the sample (cross-)covariances ๐บ ~ X โ X := 1 n โ 1 โ ๐ c โค โ ๐ c , ๐บ ~ Y โ Y := 1 n โ 1 โ ๐ c โค โ ๐ c , ๐ ~ := ๐บ ~ X โ Y := 1 n โ 1 โ ๐ c โค โ ๐ c . \widetilde{\mathbf{\Sigma}}_{XX}:=\frac{1}{n-1}\mathbf{X}_{c}^{\top}\mathbf{X}_{c},\qquad\widetilde{\mathbf{\Sigma}}_{YY}:=\frac{1}{n-1}\mathbf{Y}_{c}^{\top}\mathbf{Y}_{c},\qquad\widetilde{\mathbf{C}}:=\widetilde{\mathbf{\Sigma}}_{XY}:=\frac{1}{n-1}\mathbf{X}_{c}^{\top}\mathbf{Y}_{c}. (19) The biased linear Hilbert-Schmidt Independence Criterion (HSIC) energy equals โ ๐ ~ โ F 2 \|\widetilde{\mathbf{C}}\|_{F}^{2} . The commonly used linear CKA normalization can be written as CKA lin โ ( ๐ , ๐ ) = โ ๐ ~ โ F 2 โ ๐บ ~ X โ X โ F โ โ ๐บ ~ Y โ Y โ F = โ ๐ c โค โ ๐ c โ F 2 โ ๐ c โค โ ๐ c โ F โ โ ๐ c โค โ ๐ c โ F โ [ 0 , 1 ] , \mathrm{CKA}_{\mathrm{lin}}(\mathbf{X},\mathbf{Y})\;=\;\frac{\|\widetilde{\mathbf{C}}\|_{F}^{2}}{\|\widetilde{\mathbf{\Sigma}}_{XX}\|_{F}\,\|\widetilde{\mathbf{\Sigma}}_{YY}\|_{F}}\;=\;\frac{\|\mathbf{X}_{c}^{\top}\mathbf{Y}_{c}\|_{F}^{2}}{\|\mathbf{X}_{c}^{\top}\mathbf{X}_{c}\|_{F}\,\|\mathbf{Y}_{c}^{\top}\mathbf{Y}_{c}\|_{F}}\;\in\;[0,1], (20) where the second equality follows by cancellation of common 1 / ( n โ 1 ) 1/(n-1) factors. What it measures: linear CKA treats two representations as similar when pairs of points with high inner product in one space also have high inner product in the other, i.e. , when their global second-order geometry agrees. It is invariant to rotations and isotropic rescaling, but not to general invertible linear maps.
##### Kernel Centered Kernel Alignment .
Kernel CKA ( Kornblith et al., 2019 ) generalizes linear CKA by replacing dot products with kernel functions. Let k X : โ d x ร โ d x โ โ k_{X}:\mathbb{R}^{d_{x}}\times\mathbb{R}^{d_{x}}\to\mathbb{R} and k Y : โ d y ร โ d y โ โ k_{Y}:\mathbb{R}^{d_{y}}\times\mathbb{R}^{d_{y}}\to\mathbb{R} be positive semidefinite kernel functions ( e.g. , RBF kernel k X ( ๐ฑ , ๐ฑ โฒ ) = exp ( โ โฅ ๐ฑ โ ๐ฑ โฒ โฅ 2 / 2 ฯ 2 ) k_{X}(\mathbf{x},\mathbf{x}^{\prime})=\exp(-\|\mathbf{x}-\mathbf{x}^{\prime}\|^{2}/2\sigma^{2}) ). Let ๐ X โ โ n ร n \mathbf{K}_{X}\in\mathbb{R}^{n\times n} and ๐ Y โ โ n ร n \mathbf{K}_{Y}\in\mathbb{R}^{n\times n} be Gram matrices with entries ( ๐ X ) i โ j = k X โ ( ๐ฑ i , ๐ฑ j ) (\mathbf{K}_{X})_{ij}=k_{X}(\mathbf{x}_{i},\mathbf{x}_{j}) and ( ๐ Y ) i โ j = k Y โ ( ๐ฒ i , ๐ฒ j ) (\mathbf{K}_{Y})_{ij}=k_{Y}(\mathbf{y}_{i},\mathbf{y}_{j}) . Let ๐ ~ X = ๐๐ X โ ๐ \widetilde{\mathbf{K}}_{X}=\mathbf{H}\mathbf{K}_{X}\mathbf{H} and ๐ ~ Y = ๐๐ Y โ ๐ \widetilde{\mathbf{K}}_{Y}=\mathbf{H}\mathbf{K}_{Y}\mathbf{H} denote centered Gram matrices. Kernel CKA is defined as: CKA k X , k Y โ ( ๐ , ๐ ) = โจ ๐ ~ X , ๐ ~ Y โฉ F โ ๐ ~ X โ F โ โ ๐ ~ Y โ F . \mathrm{CKA}_{k_{X},k_{Y}}(\mathbf{X},\mathbf{Y})\;=\;\frac{\langle\widetilde{\mathbf{K}}_{X},\widetilde{\mathbf{K}}_{Y}\rangle_{F}}{\|\widetilde{\mathbf{K}}_{X}\|_{F}\,\|\widetilde{\mathbf{K}}_{Y}\|_{F}}. (21) where โจ A , B โฉ F = tr โก ( A โค โ B ) \langle A,B\rangle_{F}=\mathrm{tr}(A^{\top}B) . With positive semidefinite kernels and the biased HSIC estimator, the numerator is nonnegative, and kernel CKA typically lies in [ 0 , 1 ] [0,1] . What it measures: kernel CKA treats representations as similar when their kernel-induced similarity patterns over points agree. With an RBF kernel of small bandwidth, this emphasizes local, nonlinear similarity structure rather than global linear geometry.
##### Unbiased Centered Kernel Alignment .
The biased HSIC estimator can yield inflated similarity scores at finite sample sizes. Song et al. (2012) derived an unbiased HSIC estimator by recognizing that HSIC can be formulated as a U-statistic. Following Kornblith et al. (2019) , we substitute the unbiased estimator into the CKA formula. Let ๐ ฬ X \mathring{\mathbf{K}}_{X} denote the Gram matrix ๐ X \mathbf{K}_{X} with its diagonal entries set to zero (and likewise ๐ ฬ Y \mathring{\mathbf{K}}_{Y} ). The unbiased HSIC estimator is: HSIC u โ ( ๐ X , ๐ Y ) = 1 n โก ( n โ 3 ) โ ( tr โก ( ๐ ฬ X โ ๐ ฬ Y ) + ๐ โค โ ๐ ฬ X โ ๐ โ
๐ โค โ ๐ ฬ Y โ ๐ ( n โ 1 ) โ ( n โ 2 ) โ 2 n โ 2 โ ๐ โค โ ๐ ฬ X โ ๐ ฬ Y โ ๐ ) . \mathrm{HSIC}_{u}(\mathbf{K}_{X},\mathbf{K}_{Y})=\frac{1}{n(n-3)}\left(\mathrm{tr}(\mathring{\mathbf{K}}_{X}\mathring{\mathbf{K}}_{Y})+\frac{\mathbf{1}^{\top}\mathring{\mathbf{K}}_{X}\mathbf{1}\cdot\mathbf{1}^{\top}\mathring{\mathbf{K}}_{Y}\mathbf{1}}{(n-1)(n-2)}-\frac{2}{n-2}\mathbf{1}^{\top}\mathring{\mathbf{K}}_{X}\mathring{\mathbf{K}}_{Y}\mathbf{1}\right). (22) Unbiased CKA replaces both numerator and denominator of Equation 21 with this estimator. Unlike the biased version, unbiased CKA can take small negative values at finite n n . What it measures: the same agreement of similarity patterns as kernel CKA , but with the finite-sample inflation of HSIC removed, so a value near zero indicates no more agreement than expected by chance.
##### Canonical Correlation Analysis (CCA) -based similarity.
CCA ( Weenink, 2003 ) measures linear subspace alignment. The sample canonical correlations { ฯ i } i = 1 r \{\rho_{i}\}_{i=1}^{r} (with r = rank โก ( ๐บ ~ X โ Y ) r=\mathrm{rank}(\widetilde{\mathbf{\Sigma}}_{XY}) ) are the singular values of the whitened cross-covariance operator ๐ ~ CCA = ๐บ ~ X โ X โ 1 2 โ ๐บ ~ X โ Y โ ๐บ ~ Y โ Y โ 1 2 . \widetilde{\mathbf{T}}_{\mathrm{CCA}}\;=\;\widetilde{\mathbf{\Sigma}}_{XX}^{-\tfrac{1}{2}}\,\widetilde{\mathbf{\Sigma}}_{XY}\,\widetilde{\mathbf{\Sigma}}_{YY}^{-\tfrac{1}{2}}. (23) Common scalar summaries include the mean canonical correlation 1 r โ โ i = 1 r ฯ i \frac{1}{r}\sum_{i=1}^{r}\rho_{i} or a weighted average as used in SVCCA ( Raghu et al., 2017 ) and PWCCA ( Morcos et al., 2018 ) . What it measures: CCA treats two representations as similar when one can be mapped onto the other by an invertible linear transformation, i.e. , when they span the same linear subspace. It ignores rotations, scaling, and other invertible linear changes within each space.
##### Singular Vector Canonical Correlation Analysis (SVCCA) .
SVCCA ( Raghu et al., 2017 ) combines dimensionality reduction via singular value decomposition (SVD) with CCA . First, truncated SVD is applied to each representation to retain the top principal components, yielding ๐ โฒ โ โ n ร p \mathbf{X}^{\prime}\in\mathbb{R}^{n\times p} and ๐ โฒ โ โ n ร q \mathbf{Y}^{\prime}\in\mathbb{R}^{n\times q} . Then CCA is applied to the reduced representations, yielding canonical correlations { ฯ i } i = 1 r \{\rho_{i}\}_{i=1}^{r} . The SVCCA similarity is the mean canonical correlation: SVCCA โก ( ๐ , ๐ ) = 1 r โ โ i = 1 r ฯ i . \mathrm{SVCCA}(\mathbf{X},\mathbf{Y})=\frac{1}{r}\sum_{i=1}^{r}\rho_{i}. (24) What it measures: SVCCA treats representations as similar when their high-variance subspaces are linearly aligned, discarding low-variance (noise) directions before measuring linear correspondence.
##### Projection Weighted Canonical Correlation Analysis (PWCCA) .
PWCCA ( Morcos et al., 2018 ) improves upon SVCCA by weighting canonical correlations according to their importance in explaining the original representations. Let ๐ก i X \mathbf{h}_{i}^{X} and ๐ก i Y \mathbf{h}_{i}^{Y} denote the i i -th canonical variables (projections onto canonical directions). The weight for the i i -th canonical correlation is the overall magnitude of the corresponding canonical variable across the dataset: ฮฑ i = โ m = 1 n | ( ๐ก i X ) m | = โฅ ๐ก i X โฅ 1 , \alpha_{i}=\sum_{m=1}^{n}\left|(\mathbf{h}_{i}^{X})_{m}\right|=\lVert\mathbf{h}_{i}^{X}\rVert_{1}, (25) the โ 1 \ell_{1} norm of the i i -th canonical variable over the n n samples, following the reference implementation of Morcos et al. (2018) . The PWCCA similarity is the weighted mean: PWCCA โก ( ๐ , ๐ ) = โ i = 1 r ฮฑ i โ ฯ i โ i = 1 r ฮฑ i . \mathrm{PWCCA}(\mathbf{X},\mathbf{Y})=\frac{\sum_{i=1}^{r}\alpha_{i}\rho_{i}}{\sum_{i=1}^{r}\alpha_{i}}. (26) This weighting ensures that canonical correlations corresponding to principal directions receive higher weight than those corresponding to noise dimensions. What it measures: like CCA , PWCCA treats representations as similar when they linearly correspond, but it counts agreement along high-variance directions more, so two representations are similar when their dominant directions align.
##### RV coefficient.
The RV (โRelation between two sets of Variablesโ) coefficient ( Robert and Escoufier, 1976 ; Smilde et al., 2009 ) is a multivariate generalization of the squared Pearson correlation. It measures the similarity between two configuration matrices via their inner-product (Gram) matrices. Let ๐ X = ๐ c โ ๐ c โค \mathbf{W}_{X}=\mathbf{X}_{c}\mathbf{X}_{c}^{\top} and ๐ Y = ๐ c โ ๐ c โค \mathbf{W}_{Y}=\mathbf{Y}_{c}\mathbf{Y}_{c}^{\top} be the inner-product (Gram) matrices of the centered representations ๐ c , ๐ c \mathbf{X}_{c},\mathbf{Y}_{c} . The RV coefficient is: RV โก ( ๐ , ๐ ) = tr โก ( ๐ X โ ๐ Y ) tr โก ( ๐ X 2 ) โ tr โ ( ๐ Y 2 ) โ [ 0 , 1 ] . \mathrm{RV}(\mathbf{X},\mathbf{Y})=\frac{\mathrm{tr}(\mathbf{W}_{X}\mathbf{W}_{Y})}{\sqrt{\mathrm{tr}(\mathbf{W}_{X}^{2})\ \mathrm{tr}(\mathbf{W}_{Y}^{2})}}\;\in\;[0,1]. (27) What it measures: the RV coefficient treats representations as similar when their point-by-point inner-product (Gram) matrices match. Like linear CKA , it captures global second-order geometry and is invariant to rotation but sensitive to scaling. Computed on centered representations (our default convention), the RV coefficient coincides exactly with linear CKA ; we list it separately as it arises from a different historical motivation and include it for completeness.
#### B.2.2 Geometric metrics
##### Representational Similarity Analysis (RSA) via Spearman correlation of dissimilarity matrices.
RSA ( Kriegeskorte et al., 2008 ) compares the geometry induced by pairwise dissimilarities. Let ฮด โก ( โ
, โ
) \delta(\cdot,\cdot) be a dissimilarity on representation vectors ( e.g. , correlation distance ฮด โก ( ๐ฎ , ๐ฏ ) = 1 โ corr โก ( ๐ฎ , ๐ฏ ) \delta(\mathbf{u},\mathbf{v})=1-\mathrm{corr}(\mathbf{u},\mathbf{v}) , cosine distance). Define Representational Dissimilarity Matrices (RDMs) ( ๐ X ) i โ j = ฮด โก ( ๐ฑ i , ๐ฑ j ) , ( ๐ Y ) i โ j = ฮด โก ( ๐ฒ i , ๐ฒ j ) , (\mathbf{D}_{X})_{ij}=\delta(\mathbf{x}_{i},\mathbf{x}_{j}),\qquad(\mathbf{D}_{Y})_{ij}=\delta(\mathbf{y}_{i},\mathbf{y}_{j}), (28) and let vec โณ โ ( ๐ ) โ โ n โก ( n โ 1 ) / 2 \mathrm{vec}_{\triangle}(\mathbf{D})\in\mathbb{R}^{n(n-1)/2} denote vectorization of the strict upper triangle. RSA is then computed as a rank correlation between the two RDM vectors: RSA โก ( ๐ , ๐ ) = ฯ S โ ( vec โณ โ ( ๐ X ) , vec โณ โ ( ๐ Y ) ) , \mathrm{RSA}(\mathbf{X},\mathbf{Y})\;=\;\rho_{S}\!\left(\mathrm{vec}_{\triangle}(\mathbf{D}_{X}),\;\mathrm{vec}_{\triangle}(\mathbf{D}_{Y})\right), (29) where Spearmanโs ฯ \rho can be expressed as Pearson correlation of ranks, ฯ S โ ( ๐ฎ , ๐ฏ ) = corr โก ( rank โก ( ๐ฎ ) , rank โก ( ๐ฏ ) ) . \rho_{S}(\mathbf{u},\mathbf{v})\;=\;\mathrm{corr}\!\left(\mathrm{rank}(\mathbf{u}),\;\mathrm{rank}(\mathbf{v})\right). (30) What it measures: RSA treats two representations as similar when they rank pairs of points in the same order of (dis)similarity. It compares the relational geometry of distances rather than the coordinates, and depends only on the pattern of pairwise dissimilarities.
##### Procrustes distance.
The orthogonal Procrustes distance ( Williams et al., 2021 ) measures the minimal Euclidean distance between two representations after optimal orthogonal alignment. Assuming d x = d y = d d_{x}=d_{y}=d , the optimal orthogonal matrix ๐ โ โ ๐ช โก ( d ) \mathbf{Q}^{*}\in\mathcal{O}(d) is: ๐ โ = argmin ๐ โ ๐ช โก ( d ) โ ๐ โ ๐๐ โ F 2 , \mathbf{Q}^{*}=\operatorname*{argmin}_{\mathbf{Q}\in\mathcal{O}(d)}\|\mathbf{X}-\mathbf{Y}\mathbf{Q}\|_{F}^{2}, (31) which has the closed-form solution ๐ โ = ๐๐ โค \mathbf{Q}^{*}=\mathbf{V}\mathbf{U}^{\top} where ๐ โ ๐บ โ ๐ โค = ๐ โค โ ๐ \mathbf{U}\mathbf{\Sigma}\mathbf{V}^{\top}=\mathbf{X}^{\top}\mathbf{Y} is the SVD. The Procrustes distance is: d Proc โ ( ๐ , ๐ ) = โ ๐ โ ๐๐ โ โ F . d_{\mathrm{Proc}}(\mathbf{X},\mathbf{Y})=\|\mathbf{X}-\mathbf{Y}\mathbf{Q}^{*}\|_{F}. (32) We convert this distance to a similarity score s Proc = 1 โ d Proc / โ ๐ c โ F s_{\mathrm{Proc}}=1-d_{\mathrm{Proc}}/\|\mathbf{Y}_{c}\|_{F} , evaluated on centered representations, where ๐ c \mathbf{Y}_{c} denotes the centered ๐ \mathbf{Y} . It equals 1 1 at perfect orthogonal alignment ( d Proc = 0 d_{\mathrm{Proc}}=0 ) and can be negative for poorly aligned pairs. What it measures: Procrustes treats two representations as similar when one can be rotated and reflected onto the other with small residual. It compares absolute geometry up to rigid motion and, unlike neighborhood metrics, is sensitive to the actual pairwise distances.
#### B.2.3 Neighborhood metrics
##### Mutual k k -Nearest Neighbors (mKNN) .
mKNN ( Huh et al., 2024 ) focuses on local topology. For each anchor sample i i , define the set of its k k nearest neighbors according to a distance measure dist โก ( โ
, โ
) \operatorname{dist}(\cdot,\cdot) in ๐ \mathbf{X} and ๐ \mathbf{Y} , N ๐ โ ( i ) = KNN k โก ( i ; ๐ ) , N ๐ โ ( i ) = KNN k โก ( i ; ๐ ) , N_{\mathbf{X}}(i)=\operatorname{KNN}_{k}(i;\mathbf{X}),\qquad N_{\mathbf{Y}}(i)=\operatorname{KNN}_{k}(i;\mathbf{Y}), (33) where KNN k โก ( i , ๐ ) \operatorname{KNN}_{k}(i;\mathbf{X}) denotes the indices of the k k samples (excluding i i ) that minimize dist โก ( ๐ฑ i , ๐ฑ j ) \mathrm{dist}(\mathbf{x}_{i},\mathbf{x}_{j}) . mKNN is then defined as the average fraction of shared neighbors: mKNN k โ ( ๐ , ๐ ) = 1 n โ โ i = 1 n | N ๐ โ ( i ) โฉ N ๐ โ ( i ) | k โ [ 0 , 1 ] . \mathrm{mKNN}_{k}(\mathbf{X},\mathbf{Y})\;=\;\frac{1}{n}\sum_{i=1}^{n}\frac{|N_{\mathbf{X}}(i)\cap N_{\mathbf{Y}}(i)|}{k}\;\in\;[0,1]. (34) What it measures: mKNN treats two representations as similar when each point keeps the same set of nearest neighbors in both spaces. It captures local topology, depends only on the rank order of distances, and is therefore invariant to any transformation that preserves k k -nearest-neighbor sets, ignoring exact distances and global geometry.
##### Cycle- k k NN (bidirectional k k -NN).
While mKNN measures one-directional neighborhood overlap, cycle- k k NN enforces a round-trip consistency between the two spaces ( Huh et al., 2024 ) . An anchor i i counts as consistent if at least one of its nearest neighbors j j in ๐ \mathbf{Y} has i i among its nearest neighbors in ๐ \mathbf{X} : cycle - kNN k ( ๐ , ๐ ) = 1 n โ i = 1 n [ i โ โ j โ N ๐ โ ( i ) N ๐ ( j ) ] โ [ 0 , 1 ] . \mathrm{cycle\text{-}kNN}_{k}(\mathbf{X},\mathbf{Y})\;=\;\frac{1}{n}\sum_{i=1}^{n}\mathbbm{1}\!\left[\,i\in\bigcup_{j\in N_{\mathbf{Y}}(i)}N_{\mathbf{X}}(j)\,\right]\;\in\;[0,1]. (35) This is stricter than mKNN , as it requires neighbor relations to be mutually recognized across the two spaces.
What it measures: cycle- k k NN treats points as similar only when neighborhood membership is reciprocated across spaces, a stricter local-topology criterion than mKNN .
##### CKA with Neighborhood Alignment (CKNNA).