0

Contrastive Learning Is Spectral Clustering On Similarity Graph

Contrastive learning with InfoNCE loss is theoretically equivalent to spectral clustering, and a new kernel mixture loss improves performance on vision tasks by using novel kernel functions.

Preview
First page of Contrastive Learning Is Spectral Clustering On Similarity Graph
Year
2023
Venue
arXiv 2023
Authors
4
Hosting
Abstract onlyARXIV-DEFAULT

Cite

Notes

Only stored in your browser.

Attribution

Abstract & full text
arxiv.org/abs/2303.15103v4ARXIV-DEFAULT
TL;DR
Semantic Scholar
Attribution policy →

Abstract

Contrastive learning is a powerful self-supervised learning method, but we have a limited theoretical understanding of how it works and why it works. In this paper, we prove that contrastive learning with the standard InfoNCE loss is equivalent to spectral clustering on the similarity graph. Using this equivalence as the building block, we extend our analysis to the CLIP model and rigorously characterize how similar multi-modal objects are embedded together. Motivated by our theoretical insights, we introduce the Kernel-InfoNCE loss, incorporating mixtures of kernel functions that outperform the standard Gaussian kernel on several vision datasets. The code is available at https://github.com/yifanzhang-pro/Kernel-InfoNCE.

Authors

4