ReSi: A Comprehensive Benchmark for Representational Similarity Measures

Max Klabunde, Tassilo Wald, Tobias Schumacher, Klaus Maier-Hein, Markus Strohmaier, Florian Lemmerich

TL;DR

ReSi is the first comprehensive benchmark designed to evaluate how well representational similarity measures (RSMs) actually capture the "ground truth" of neural network behavior. By testing 24 different measures across vision, language, and graph domains, the authors reveal a "No Free Lunch" reality: no single measure is a silver bullet, and the choice of measure must be carefully tailored to the specific domain and task.

What Problem Does This Paper Address?

Deep learning models are often treated as "black boxes." To peek inside, researchers use representational similarity measures (like CKA or Procrustes distance) to compare the internal states of different models. These comparisons help us understand how models learn, why they forget, or how they differ across architectures.

However, the field has a "grounding" problem. Most similarity measures are proposed ad hoc—based on mathematical intuition rather than empirical proof that they correlate with actual model behavior. Until now, there was no systematic way to determine if a high similarity score actually means two models have learned the same underlying concepts. ReSi fills this gap by providing a rigorous testing suite to validate these measures against observable model behaviors.

Methods

Overview of the ReSi Benchmark pipeline.

The authors introduce two primary ways to "ground" (validate) a similarity measure:

  1. Grounding by Prediction: If two models have different internal representations, they should produce different outputs. The benchmark tests if a measure's similarity score correlates with differences in model accuracy or individual class predictions (measured using Jensen-Shannon Divergence).
  2. Grounding by Design: The authors create groups of models with known, engineered differences—for example, models trained on real labels versus random labels. A good similarity measure should be able to distinguish these groups, meaning models in the same group should score as more similar to each other than to those in other groups.

Using these grounding principles, the benchmark implements six specific tests:

  • Accuracy/Output Correlation: Do representation shifts mirror performance shifts?
  • Label Randomization: Can the measure tell if a model is memorizing noise versus learning true patterns?
  • Shortcut Affinity: Can it detect if models are relying on the same "cheats" (shortcuts) in the data?
  • Augmentation Invariance: Does it recognize when a model has learned to be robust to noise or augmentations?
  • Layer Monotonicity: Does it correctly identify that adjacent layers in a network are more similar than distant ones?

Datasets and Models

The benchmark spans three major modalities, utilizing 14 architectures and 7 datasets to ensure broad applicability:

  • Graphs: Cora, Flickr, and OGBN-Arxiv (using GCN, GraphSAGE, GAT, and P-GNN).
  • Language: SST2 and MNLI (using BERT, ALBERT, and SmolLM2).
  • Vision: ImageNet100 and CIFAR-100 (using ResNets, ViTs, and VGGs).

Key Insights and Results

Performance rankings of similarity measures across Graphs, Language, and Vision domains.
  • "No Free Lunch" and Domain Champions: A measure that works perfectly for Language (like CKA) might perform poorly for Graphs. For instance, CKA ranked 1st in the language domain but 11th in graphs. Neighborhood-based measures (like 2nd-Order Cosine Similarity) are generally best for Graphs. CKA and Distance Correlation lead in Language. Surprisingly, Jaccard similarity—often overlooked in representation research—emerged as the top performer for Vision.
  • Consistency: Orthogonal Procrustes (OrthProc) proved to be one of the most robust measures overall, consistently ranking in the top 50% across almost all tests and domains.
  • Complexity Doesn't Equal Quality: Advanced topology-based measures (like IMD or RTD) were often outperformed by simpler alignment-based or neighborhood-based measures. This is notable because topology-based measures are orders of magnitude slower to compute.
  • Computational Cost: There is a massive disparity in efficiency. RSM-based and topology-based measures can take minutes or hours to compute, while alignment-based measures take fractions of a second, often yielding better results.
  • Preprocessing is a Silent Killer: The authors found that seemingly minor choices—like whether to normalize columns to a unit norm before measuring—can drastically change which model properties a measure captures.

Limitations and Future Work

The current version of ReSi primarily focuses on the final hidden layer of models. While the "Layer Monotonicity" test looks at internal layers, the authors acknowledge that the behavior of similarity measures might vary deeper in the network.

Additionally, the benchmark is currently limited to single-modality settings. As the industry moves toward multimodal models (like CLIP or GPT-4), extending ReSi to evaluate how well measures align representations across different types of data (e.g., image-to-text) is a critical next step. The authors have released their code on GitHub to encourage the community to add more measures and tests, paving the way for more interpretable and comparable neural architectures.

Summary updated

BibTeX
@inproceedings{klabunde2025resi,
  author = {Max Klabunde and Tassilo Wald and Tobias Schumacher and Klaus Maier-Hein and Markus Strohmaier and Florian Lemmerich},
  title = {{ReSi: A Comprehensive Benchmark for Representational Similarity Measures}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=PRvdO3nfFi},
}
Figure