Introduction
How do we know if two neural networks have learned the same internal representations? This paper introduces a rigorous framework to evaluate similarity metrics by grounding them in functional behavior—specifically, how well a metric's "distance" correlates with changes in model accuracy. The authors find that popular metrics like Centered Kernel Alignment (CKA) and Canonical Correlation Analysis (CCA) have significant blind spots, while the classical Orthogonal Procrustes distance is a surprisingly robust and consistent performer.
Evaluating Representation Similarity
Researchers often compare the hidden representations of different neural networks to determine if they have learned similar concepts. Mathematical tools like CKA or CCA are commonly used for this purpose. However, these metrics frequently disagree, and without a ground truth for representation similarity, researchers have had to rely on intuition.
This paper asks a fundamental question: Does the similarity metric actually reflect the model's behavior? If a metric indicates two representations are similar, but one model achieves 90% accuracy while the other achieves 50%, the metric fails to capture functionally important differences.
Proposed Evaluation Criteria
The authors propose evaluating similarity measures based on two statistical criteria:
- Sensitivity: A metric should show a large distance when changes occur that significantly affect the model's functional behavior (e.g., deleting important information).
- Specificity: A metric should show a small distance for changes that do not affect behavior (e.g., using a different random seed for initialization).
They quantify this by measuring the rank correlation (Kendall’s $\tau$ or Spearman’s $\rho$) between a metric’s dissimilarity score and the difference in functional behavior, such as probing accuracy. The study evaluates three main categories of metrics: Linear CKA, CCA-based measures (specifically Projection-Weighted CCA or PWCCA), and Orthogonal Procrustes Distance.
Key Insights and Metric Failures
The study leverages a massive collection of 30,480 representation pairs across text (BERT on MNLI) and vision (ResNet-14 on CIFAR-10) domains, revealing critical flaws in popular metrics.
PWCCA's Specificity Failure
PWCCA is overly sensitive to random initialization. It often assigns a larger distance to the same layer across two different random seeds than it does to different layers within the same model. This makes it highly unreliable for comparing different training runs.
CKA's Sensitivity Failure
CKA exhibits a massive blind spot: it is dominated by the top few principal components of a representation. The authors found that they could delete up to 97% of a representation's principal components—severely degrading the model's accuracy—while CKA still reported the representation as highly similar to the original.
The Procrustes Comeback
Orthogonal Procrustes distance, a classical method that finds the best rotation to align two matrices, consistently outperformed or matched the more modern CKA and PWCCA across almost all benchmarks. It balances sensitivity and specificity more gracefully than its competitors.
Results and Future Directions
- Language Benchmarks: Orthogonal Procrustes achieved the highest average rank correlation (0.580) with functional behavior, followed by CKA (0.557) and PWCCA (0.544).
- Vision Benchmarks: Procrustes and CKA performed similarly (around 0.30), while PWCCA often could not be computed when the number of data points was smaller than the number of neurons.
- The Out-of-Distribution (OOD) Challenge: The authors identified a challenge set where none of the metrics could reliably predict OOD performance based on in-distribution representations. This highlights that current metrics miss the subtle features responsible for robustness to distribution shifts.
While limited to specific architectures like BERT and ResNet, this framework exposes the need for new metrics that capture representation robustness. Future work may involve designing regularized versions of the Procrustes distance tuned to track functional behavior more closely, using the proposed challenge set as a benchmark for next-generation interpretability tools.
Summary updated