$\mathbb{X}$-Sample Contrastive Loss: Improving Contrastive Learning with Sample Similarity Graphs
Vlad Sobal, Mark Ibrahim, Randall Balestriero, Vivien Cabannes, Diane, Bouchacourt, Pietro Astolfi, Kyunghyun Cho, Yann LeCun

TL;DR
This paper introduces $ ext{X}$-Sample Contrastive Loss, a novel approach that explicitly encodes sample relations beyond binary positives, leading to improved vision representations across various datasets and tasks.
Contribution
The paper proposes $ ext{X}$-Sample Contrastive Loss, which incorporates sample similarities into the contrastive learning framework, enhancing representation quality especially in lower-data regimes.
Findings
Outperforms CLIP on ImageNet and ImageNet Real with 0.6% gain on CC12M.
Achieves significant improvements in low-data regimes, with 16.8% and 18.1% gains on ImageNet and ImageNet Real.
Encourages learning of object, attribute, and background separation in representations.
Abstract
Learning good representations involves capturing the diverse ways in which data samples relate. Contrastive loss - an objective matching related samples - underlies methods from self-supervised to multimodal learning. Contrastive losses, however, can be viewed more broadly as modifying a similarity graph to indicate how samples should relate in the embedding space. This view reveals a shortcoming in contrastive learning: the similarity graph is binary, as only one sample is the related positive sample. Crucially, similarities \textit{across} samples are ignored. Based on this observation, we revise the standard contrastive loss to explicitly encode how a sample relates to others. We experiment with this new objective, called -Sample Contrastive, to train vision models based on similarities in class or text caption descriptions. Our study spans three scales: ImageNet-1k with…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsDomain Adaptation and Few-Shot Learning · Machine Learning and Data Classification · Machine Learning and Algorithms
MethodsContrastive Language-Image Pre-training
