# Poster 29754

- Kind: Poster
- Talk page and recording: https://iclr.cc/virtual/2025/poster/29754

> Transcript of the talk's recording (session_asr), made by speech recognition or taken from the host's captions. It may contain errors. The words are the speakers'; listen to the recording on the talk's page before quoting it.

Welcome to Reasy, our Benchmark for Representational Similarity Measures. My name is Max and I present joint work with Tatsuhiro Tobias, Klaus Markus and Florian. Understanding neural networks has been a long-standing goal. Their representations have been popular objects of study as they enable analysis of neural network internals. One common analysis method is comparing representations across models and layers to measure effects of factors like loss functions or architecture.
In this context, a representation usually refers to a collection of neural network activations, typically a matrix in which each row corresponds to the activation for one data instance. A representation and similarity measure takes two such matrices and assigns a scalar similarity score. Examples are set-cardinal alignment or shape metrics. The problem is
Then we do not know which similarity measures assess similarity best, in spite of authority measures being proposed in recent years. Part of this missing evaluation is that there is usually no ground truth what presentation should be considered similar, that is, measuring similarities an unsupervised problem. In RISI we turn this unsupervised problem into supervised one by postulating relations between your presentations that a similarity measure should follow.
As a first step we design or select models for the test. For example, the models can have particular training data that elicit specific behavior. Based on these models we define a ground-truth similarity between them. For example, models with similar behavior should be assessed as similar by their representations. Care needs to be taken here that the ground-truth is meaningful and valid. Finally, we score the similarity measures by their adherence to the ground-truth.
In this framework, we construct the first comprehensive benchmark for representation and similarity measures. We define six tests with carefully designed ground truth. Each test is instantiated with models for images, text, and graphs, and repeated across several datasets in each domain. We compare 24 similarity measures and more measures can be easily added. It gives you some more information on the tests. How do we define the ground truth exactly?
with two approaches to grounding, grounding by prediction and grounding by design. With grounding by prediction we define optimism similarity measuring similarity in the outputs of the compared models. From this perspective an ideal representation of similarity measure assigns the same similarity that you would get by comparing predictions.
In RAZI, we test whether similarity measures follow differences in accuracy, disagreement and similarity of output distributions as measured by average Jensen -tion divergence. With grounding by design, we define optimal similarity in terms of relations between models. For example, we could train one group of models on regular data and one group of models on data with shortcuts that leave the true label.
The models with the shortcut feature likely rely on it to make their prediction, regardless to the regular models. This difference in behavior should be captured by a similarity measure. Models within each group should be more similar than models from different groups. In RASI, we create groups of models that memorize labels, models that rely on shortcut features, and models that receive augmentation. Further, we test whether distance between layers correlate with decreased similarity.
Here we present an aggregated overview of the results separated by modality. For each combination of test, model and dataset we rank the similarity measures. Here we show the rank distribution. For example, on graph data we see that the second cosine similarity measure has the best median rank. We also see that the range of ranks is large from rank 1 to rank 24.
Looking at the full graph results, we find popular measures like SPCCA at the lower end of summary measures. Further looking at the other domains, we see that the ranking changes significantly, indicating that some measures are better than others for specific contexts. For example, the RDD measure is one of the best for graphs, one of the worst for text and in the middle for image models.
More broadly, our results point towards the need for development of best practices as blind picking of similarity measures is unlikely to perform optimally. Here also relatively overlooked measures like Jaccard similarity can be useful as shown by the high ranking for vision models. For more information, you can follow the links or the QR codes.
