Exploring Pointwise Similarity of Representations
Abstract
Representation similarity measures have emerged as a popular tool for examining learned representations. Many existing studies have focused on analyzing aggregate estimates of similarity at a global level, i.e. over a set of representations for N input examples. In this work, we shed light on the importance of investigating similarity of representations at a local level, i.e. representations of a single input example. We show that peering through the lens of similarity of individual data points can reveal previously overlooked phenomena in deep learning. Specifically, we investigate the similarity in learned representations of inputs by architecturally identical models that only differ in random initialization. We find that while standard models represent (most) inputs similarly only when they are drawn from training data distribution, adversarially trained models represent a wide variety of out-of-distribution inputs similarly, thus indicating that these models learn more "stable" representations. We design an instantiation of such a pointwise measure, named Pointwise Normalized Kernel Alignment (PNKA), that provides a way to quantify the similarity of an individual point across distinct representation spaces. Using PNKA, we additionally show how we can further understand the effects of data (e.g. corruptions) and model (e.g. fairness constraints) interventions on the model's representations.
BibTeX
@misc{kolling2024exploring,
author = {Camila Kolling and Till Speicher and Vedant Nanda and Mariya Toneva and Krishna P. Gummadi},
title = {{Exploring Pointwise Similarity of Representations}},
year = {2024},
url = {https://openreview.net/forum?id=Xd46Q82QEO},
howpublished = {OpenReview},
note = {Submitted to ICLR 2024},
}Ask Althea to put this paper to the test.
Loading related content...