ContraSim -- Analyzing Neural Representations Based on Contrastive Learning
Not on the map. Why?
Abstract (arXiv)
Recent work has compared neural network representations via similarity-based analyses to improve model interpretation. 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. Finally, ContraSim is more suitable for the analysis of neural networks, revealing new insights not captured by previous measures.
Key facts. Cited by 4 papers in the map (data through 7 Oct 2026). Builds on 22 of its 35 references that are in the map. First posted on arXiv 29 Mar 2023.
Builds on
22 of 35 references.
References · 22
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2014Adam: A Method for Stochastic Optimizationcited by 36,960
- 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,456
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
- 2020A Simple Framework for Contrastive Learning of Visual Representationscited by 11,979
- 2014ImageNet Large Scale Visual Recognition Challengecited by 8,441
- 2019Momentum Contrast for Unsupervised Visual Representation Learningcited by 7,482
- 2019Unsupervised Cross-lingual Representation Learning at Scalecited by 3,907
- 2022A ConvNet for the 2020scited by 3,545
- 2016Pointer Sentinel Mixture Modelscited by 2,992
- 2017Billion-scale similarity search with GPUscited by 2,477
- 2019Similarity of Neural Network Representations Revisitedcited by 1,695
10 more
- 2018XNLI: Evaluating Cross-lingual Sentence Representationscited by 913
- 2019How multilingual is Multilingual BERT?cited by 642
- 2018Insights on representational similarity in neural networks with canonical correlationcited by 318
- 2019Emerging Cross-lingual Structure in Pretrained Language Modelscited by 180
- 2014Deep Fragment Embeddings for Bidirectional Image Sentence Mappingcited by 99
- 2021The MultiBERTs: BERT Reproductions for Robustness Analysiscited by 89
- 2021First Align, then Predict: Understanding the Cross-Lingual Ability of Multilingual BERTcited by 64
- 2020Similarity Analysis of Contextual Word Representation Modelscited by 54
- 2021Grounding Representation Similarity with Statistical Testingcited by 28
- 2022Understanding Robust Learning through the Lens of Representation Similaritiescited by 12
Built on by
Citing papers per year: 2023: 1; 2024: 3.
4 papers.
- 2023Similarity of Neural Network Models: A Survey of Functional and Representational Measurescited by 128
- 2024Evaluating Representational Similarity Measures from the Lens of Functional Correspondencecited by 11
- 2024Diagnosing Neural Convergence with Topological Alignment Spectracited by 2
- 2024Measuring and Controlling Solution Degeneracy across Task-Trained Recurrent Neural Networkscited by 0
- 2024Evaluating Representational Similarity Measures from the Lens of Functional Correspondence21 Nov 2024
- 2024Diagnosing Neural Convergence with Topological Alignment Spectra13 Nov 2024
- 2024Measuring and Controlling Solution Degeneracy across Task-Trained Recurrent Neural Networks4 Oct 2024
- 2023Similarity of Neural Network Models: A Survey of Functional and Representational Measures10 May 2023