Evaluating Representational Similarity Measures from the Lens of Functional Correspondence

Yiqing Bo, Ansh Soni, Sudhanshu Srivastava, Meenakshi Khosla

In the burgeoning field of NeuroAI, researchers often ask: "How similar is this artificial neural network to a biological brain?" To answer this, they use a variety of mathematical tools called representational similarity measures. However, a nagging question remains: if two networks have "similar" internal representations according to a specific metric, do they actually behave the same way?

A new paper from researchers at UC San Diego and the University of Pennsylvania, titled "Evaluating Representational Similarity Measures from the Lens of Functional Correspondence," tackles this head-on. They argue that for a metric to be truly useful in NeuroAI, it must exhibit functional correspondence—meaning representational similarity should actually predict behavioral similarity.

TL;DR

The authors evaluated eight popular representational similarity metrics (like CKA, RSA, and Procrustes) by comparing how well they align with the actual behavior of 19 different vision models. They discovered that metrics emphasizing global geometric "shape" (Procrustes and Linear CKA) are far superior at tracking functional behavior than flexible alignment methods like linear predictivity, which is currently a standard in neuroscience.

What Problem Does This Paper Address?

We have an embarrassment of riches when it comes to comparing high-dimensional neural data. Whether you are looking at fMRI voxels or the hidden layers of a ResNet, you can use Canonical Correlation Analysis (CCA), Representational Similarity Analysis (RSA), or Centered Kernel Alignment (CKA) to see how "close" two systems are.

The problem is that these metrics often disagree. Prior research usually evaluated these metrics based on their ability to distinguish between different architectures (e.g., "Can this metric tell a CNN from a Transformer?"). But the authors argue this is the wrong yardstick. In NeuroAI, we care about computation and function. A good metric should be able to tell if two models are solving a task in the same way, regardless of whether one is built with convolutions and the other with self-attention.

Methods

The researchers built a massive benchmarking framework to test the "functional correspondence" of these metrics.

  1. The Models: They used 19 vision models, including classic CNNs (AlexNet, VGG), modern variants (ResNeXt, MoCo), and Transformers (ViT, Swin). They also included "randomized" (untrained) versions of these models as a baseline.
  2. Representational Metrics: They compared 8 metrics: RSA, CCA, Linear CKA, Procrustes distance, Linear Predictivity, Semi-matching, Soft-matching, and Mutual k-Nearest Neighbors (m-kNN).
  3. Behavioral Metrics: They used 9 ways to measure behavior, ranging from simple binary correctness (did both models get the image right?) to complex confusion matrix alignments (do they make the same kinds of mistakes?).
  4. The Comparison: They calculated $d'$ scores (a measure of discriminative power) to see how well each metric could separate trained from untrained models and CNNs from Transformers. Most importantly, they correlated the representational similarity matrices with behavioral similarity matrices across 20 different datasets.
Figure 1: Framework for evaluating representational similarity metrics based on their functional correspondence. We conduct pairwise comparisons of the representational similarities and behavioral outputs of 19 vision models, utilizing 9 widely-used rep- resentational similarity measures and 10 behavioral metrics across 20 distinct behavioral datasets. (Top Left) Label-Preserving OOD Datasets (In-Task Distribution Shifts): Maintain ImageNet labels but alter input distributions. (Bottom Left) Task-Shifting Datasets (Out-of-Task Distribution Shifts): Introduce new tasks and labels, modifying both input distributions and task structures.

Datasets

The study utilized 20 distinct behavioral datasets to ensure robust results:

  • Label-Preserving OOD (Out-of-Distribution): These maintain ImageNet labels but shift the input distribution (e.g., Stylized ImageNet, Sketches, Silhouettes, and "Cue Conflict" images where texture and shape disagree).
  • Task-Shifting: These require the models to generalize to entirely new tasks, such as texture classification (Cimpoi et al.), flower species identification (Oxford 102), and face identity recognition (CelebA).

Key Insights and Ideas

  • Behavior is a Consistent North Star: One of the most striking findings was that behavioral metrics are highly consistent with one another ($r \approx 0.85$). If two models agree on which images are hard in one dataset, they tend to agree in others. Representational metrics, by contrast, are much more fragmented ($r \approx 0.58$).
  • Geometry Trumps Flexibility: Metrics that preserve the global "shape" of the representation space—specifically Procrustes distance and Linear CKA—aligned most closely with behavior.
  • The "Linear Predictivity" Paradox: Linear predictivity is widely used in neuroscience to map models to brains. However, the authors found it has only moderate alignment with behavior ($r \approx 0.30$). Because linear predictivity is so flexible (it can map complex structures to simple ones), it can sometimes report high similarity between a trained network and a random, untrained one, which is functionally nonsensical.
  • Training is the Great Equalizer: While architectures like CNNs and Transformers look very different to some metrics (like Soft-matching), their behaviors converge significantly after training. This suggests that the objective function and data shape the functional solution more than the specific architectural motifs.

Key Results

The quantitative results clearly favor geometric metrics:

  • Trained vs. Untrained: Procrustes distance was the champion at distinguishing trained models from random ones, achieving a mean $d'$ score of 3.73. In comparison, CCA and Linear Predictivity struggled with scores of 0.57 and 0.55, respectively.
  • Behavioral Correlation: When correlating representational similarity to behavioral similarity, Procrustes ($r=0.70$) and Linear CKA ($r=0.66$) led the pack. CCA trailed significantly at $r=0.22$.
Figure 3: Discriminative ability (d’ scores) of (top) representational and (bottom) behavioral similarity measures in distinguishing between trained vs. untrained models (left) and architectures (right). Each dot represents the average d′ score for a given dataset and metric, the dashed line indicates the overall mean d′ across all metrics.

Limitations and Future Work

The authors acknowledge several constraints:

  • Readout Assumptions: The study assumes behavior is read out linearly from the penultimate layer. Different readout strategies (like sparse decoding) might change how we view these metrics.
  • Coarse Distinctions: The evaluation focused on large differences (trained vs. untrained). Future work should explore "finer-grained" variations, such as models with the same architecture but different initializations or subtle hyperparameter tweaks.
  • Statistical Metrics: The use of $d'$ assumes Gaussian distributions, and Pearson correlations assume linearity. The authors suggest exploring Spearman rank correlations or other robust effect size measures in the future.

For researchers in NeuroAI, the message is clear: if you want to know if your model is "brain-like" in a way that actually matters for behavior, you might want to put down the linear regression and pick up Procrustes.

Summary updated

BibTeX
@inproceedings{bo2025evaluating,
  author = {Yiqing Bo and Ansh Soni and Sudhanshu Srivastava and Meenakshi Khosla},
  title = {{Evaluating Representational Similarity Measures from the Lens of Functional Correspondence}},
  booktitle = {CCN Proceedings asProceedingsTalkPoster},
  year = {2025},
  url = {https://openreview.net/forum?id=JGANEMteY8},
}
Figure