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 mixture loss, incorporating novel kernel functions that outperform the standard Gaussian kernel on several vision datasets.
翻译:对比学习是一种强大的自监督学习方法,但我们对其工作原理及有效性的理论理解仍然有限。本文证明,采用标准InfoNCE损失的对比学习等价于在相似性图上进行谱聚类。基于这一等价关系,我们将分析扩展到CLIP模型,并严格刻画了多模态对象如何被嵌入到相近表征空间中。受理论洞察启发,我们提出了核混合损失函数,引入的新核函数在多个视觉数据集上的表现优于标准高斯核。