Grounding Representation Similarity with Statistical Testing

Frances Ding, Jean-Stanislas Denain, Jacob Steinhardt
8/3/2021
cs.LGstat.ML

Official code: js-d/sim_metric (36 stars, last commit 2023-10-03).

Abstract

To understand neural network behavior, recent works quantitatively compare different networks' learned representations using canonical correlation analysis (CCA), centered kernel alignment (CKA), and other dissimilarity measures. Unfortunately, these widely used measures often disagree on fundamental observations, such as whether deep networks differing only in random initialization learn similar representations. These disagreements raise the question: which, if any, of these dissimilarity measures should we believe? We provide a framework to ground this question through a concrete test: measures should have sensitivity to changes that affect functional behavior, and specificity against changes that do not. We quantify this through a variety of functional behaviors including probing accuracy and robustness to distribution shift, and examine changes such as varying random initialization and deleting principal components. We find that current metrics exhibit different weaknesses, note that a classical baseline performs surprisingly well, and highlight settings where all metrics appear to fail, thus providing a challenge set for further improvement.

View on arXivView PDF

Code Implementations(1)

js-d/sim_metricOfficial100%
367Python, Jupyter NotebookJul 20, 20213 years ago

Similar Papers

Cite this paper

@article{ding2021grounding,
  title  = {Grounding Representation Similarity with Statistical Testing},
  author = {Frances Ding and Jean-Stanislas Denain and Jacob Steinhardt},
  year   = {2021},
  eprint = {2108.01661},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2108.01661}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2108.01661.svg)](https://codeofpaper.com/paper/2108.01661)

Discussion