ContraSim – A Similarity Measure Based on Contrastive Learning

03/29/2023
by   Adir Rahamim, et al.
0

Recent work has compared neural network representations via similarity-based analyses, shedding light on how different aspects (architecture, training data, etc.) affect models' internal representations. The quality of a similarity measure is typically evaluated by its success in assigning a high score to representations that are expected to be matched. However, existing similarity measures perform mediocrely on standard benchmarks. In this work, we develop a new similarity measure, dubbed ContraSim, based on contrastive learning. In contrast to common closed-form similarity measures, ContraSim learns a parameterized measure by using both similar and dissimilar examples. We perform an extensive experimental evaluation of our method, with both language and vision models, on the standard layer prediction benchmark and two new benchmarks that we introduce: the multilingual benchmark and the image-caption benchmark. In all cases, ContraSim achieves much higher accuracy than previous similarity measures, even when presented with challenging examples, and reveals new insights not captured by previous measures.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
07/06/2023

Multi-Similarity Contrastive Learning

Given a similarity metric, contrastive methods learn a representation in...
research
01/15/2020

Learning similarity measures from data

Defining similarity measures is a requirement for some machine learning ...
research
05/30/2023

Pointwise Representational Similarity

With the increasing reliance on deep neural networks, it is important to...
research
05/03/2020

Similarity Analysis of Contextual Word Representation Models

This paper investigates contextual word representation models from the l...
research
12/14/2016

Multilingual Word Embeddings using Multigraphs

We present a family of neural-network--inspired models for computing con...
research
04/09/2018

Face Sketch Synthesis Style Similarity:A New Structure Co-occurrence Texture Measure

Existing face sketch synthesis (FSS) similarity measures are sensitive t...
research
02/17/2022

Occupation similarity through bipartite graphs

Similarity between occupations is a crucial piece of information when ma...

Please sign up or login with your details

Forgot password? Click here to reset