ReSi: A Comprehensive Benchmark for Representational Similarity Measures

Max Klabunde, Tassilo Wald, Tobias Schumacher, Klaus H. Maier-Hein, Markus Strohmaier, Florian Lemmerich · OpenReview

Abstract: Measuring the similarity of different representations of neural architectures is a fundamental task and an open research challenge for the machine learning community. This paper presents the first comprehensive benchmark for evaluating representational similarity measures based on well-defined groundings of similarity. The representational similarity (ReSi) benchmark consists of (i) six carefully designed tests for similarity measures, (ii) 23 similarity measures, (iii) eleven neural network architectures, and (iv) six datasets, spanning over the graph, language, and vision domains. The benchmark opens up several important avenues of research on representational similarity that enable novel explorations and applications of neural architectures. We demonstrate the utility of the ReSi benchmark by conducting experiments on various neural network architectures, real world datasets and similarity measures. All components of the benchmark are publicly available and thereby facilitate systematic reproduction and production of research results. The benchmark is extensible, future research can build on and further expand it. We believe that the ReSi benchmark can serve as a sound platform catalyzing future research that aims to systematically evaluate existing and explore novel ways of comparing representations of neural architectures.

Introduction

Deep learning models are often characterized as "black boxes," making it difficult to understand how different architectures or layers process information. To peer inside, researchers rely on Representational Similarity Measures (RSMs)—such as Centered Kernel Alignment (CKA), Procrustes distance, or Canonical Correlation Analysis (CCA)—to determine if two models have learned similar features.

However, the field faces a significant "meta-problem": while dozens of RSMs exist, there has been no standardized way to evaluate their effectiveness. Most measures are proposed with arbitrary quality criteria, lacking a definitive "ground truth" for what constitutes similarity. Does similarity imply identical predictions, or simply that models were trained on the same data? The ReSi (Representational Similarity) benchmark addresses this gap by providing a systematic, grounded framework to evaluate these evaluators.

The ReSi Benchmark Framework

The core contribution of ReSi is the establishment of "ground truth" similarity through two primary strategies: Grounding by Prediction and Grounding by Design.

Overview of the ReSi Benchmark Test process, from model design to measure ranking.
  1. Grounding by Prediction: This approach posits that if two models have similar internal representations, they should produce similar outputs. The benchmark evaluates how well RSMs correlate with differences in model accuracy and the Jensen-Shannon Divergence (JSD) of their predictions.
  2. Grounding by Design: Here, the authors intentionally create model groups with known relationships. This includes Label Randomization (models trained on real labels should be more similar to each other than to those trained on noise), Shortcut Affinity (detecting if models rely on the same "cheating" features), and Layer Monotonicity (adjacent layers should be more similar than distant ones).

The benchmark evaluates 24 distinct measures across three major domains: Graphs (using architectures like GCN and GAT), Language (BERT, ALBERT, SmolLM2), and Vision (ResNets, ViTs, VGGs).

Key Findings: The "No Free Lunch" Theorem

The most significant insight from the ReSi benchmark is that there is no single "best" similarity measure. Instead, the performance of a measure is highly dependent on the data domain and the specific behavior being captured.

Comparative rankings of 24 similarity measures across Graph, Language, and Vision domains.

As illustrated in the rankings above, popular measures like CKA dominate in the language domain but see a significant drop in performance in the graph domain. Conversely, neighborhood-based measures like 2nd-Order Cosine Similarity excel in graphs, likely because Graph Neural Networks are designed to aggregate local neighborhood information. In the vision domain, Jaccard similarity (comparing nearest neighbor sets) emerged as a surprise top performer, challenging the traditional dominance of alignment-based methods.

Discussion and Practical Implications

The benchmark also highlights the critical role of preprocessing. Choices such as unit-norm normalization can fundamentally change what a measure captures. For instance, the difference between Orthogonal Procrustes and Procrustes Size-and-Shape Distance is purely a matter of preprocessing, yet they yield different insights into model properties.

Furthermore, the study addresses computational efficiency. While topological measures like RTD offer theoretical advantages, they are often orders of magnitude slower than alignment-based measures, making them less practical for large-scale research. For researchers seeking a reliable general-purpose tool, Orthogonal Procrustes emerged as a "safe bet," consistently ranking in the top 50% across most tests and domains.

Conclusion and Future Work

ReSi provides the first comprehensive foundation for evaluating representational similarity. While the current benchmark focuses on final hidden layers and single modalities, it sets the stage for future expansions into multimodal models (like CLIP) and deeper network internals. By open-sourcing the benchmark and trained weights, the authors invite the community to move beyond ad-hoc similarity metrics toward a more rigorous, grounded understanding of neural representations.

Summary updated

BibTeX
@inproceedings{klabunde2025resi,
  author = {Max Klabunde and Tassilo Wald and Tobias Schumacher and Klaus H. 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