mlsanityData to 7 Oct 2026

mathbbX-Sample Contrastive Loss: Improving Contrastive Learning with Sample Similarity Graphs

arXiv 2407.18134 ↗First posted 25 Jul 2024cs.CV cs.LGcited by 9

Not on the map. Why?

Abstract (arXiv)

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 textitacross 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 mathbbX-Sample Contrastive, to train vision models based on similarities in class or text caption descriptions. Our study spans three scales: ImageNet-1k with 1 million, CC3M with 3 million, and CC12M with 12 million samples. The representations learned via our objective outperform both contrastive self-supervised and vision-language models trained on the same data across a range of tasks. When training on CC12M, we outperform CLIP by 0.6% on both ImageNet and ImageNet Real. Our objective appears to work particularly well in lower-data regimes, with gains over CLIP of 16.8% on ImageNet and 18.1% on ImageNet Real when training with CC3M. Finally, our objective seems to encourage the model to learn representations that separate objects from their attributes and backgrounds, with gains of 3.3-5.6% over CLIP on ImageNet9. We hope the proposed solution takes a small step towards developing richer learning objectives for understanding sample relations in foundation models.

Key facts. Cited by 9 papers in the map (data through 7 Oct 2026). Builds on 38 of its 47 references that are in the map. First posted on arXiv 25 Jul 2024.

Builds on

38 of 47 references.

References · 38

  1. 2015Deep Residual Learning for Image Recognitioncited by 51,809
  2. 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,456
  3. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
  4. 2020A Simple Framework for Contrastive Learning of Visual Representationscited by 11,979
  5. 2015Distilling the Knowledge in a Neural Networkcited by 10,076
  6. 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,049
  7. 2018Representation Learning with Contrastive Predictive Codingcited by 7,662
  8. 2019Momentum Contrast for Unsupervised Visual Representation Learningcited by 7,482
  9. 2020Bootstrap your own latent: A new approach to self-supervised Learningcited by 4,712
  10. 2020Exploring Simple Siamese Representation Learningcited by 2,853
  11. 2020Unsupervised Learning of Visual Features by Contrasting Cluster Assignmentscited by 2,845
  12. 2015FaceNet: A Unified Embedding for Face Recognition and Clusteringcited by 2,833
26 more
  1. 2020Supervised Contrastive Learningcited by 2,803
  2. 2021Barlow Twins: Self-Supervised Learning via Redundancy Reductioncited by 1,818
  3. 2021VICReg: Variance-Invariance-Covariance Regularization for Self-Supervised Learningcited by 1,013
  4. 2018AutoAugment: Learning Augmentation Policies from Datacited by 728
  5. 2017Large Batch Training of Convolutional Networkscited by 529
  6. 2020Noise or Signal: The Role of Image Backgrounds in Object Recognitioncited by 342
  7. 2020Are we done with ImageNet?cited by 329
  8. 2021With a Little Help from My Friends: Nearest-Neighbor Contrastive Learning of Visual Representationscited by 324
  9. 2021Provable Guarantees for Self-Supervised Deep Learning with Spectral Contrastive Losscited by 311
  10. 2023StableRep: Synthetic Images from Text-to-Image Models Make Strong Visual Representation Learnerscited by 177
  11. 2022Chaos is a Ladder: A New Theoretical Understanding of Contrastive Learning via Augmentation Overlapcited by 105
  12. 2023TinyCLIP: CLIP Distillation via Affinity Mimicking and Weight Inheritancecited by 90
  13. 2021ReSSL: Relational Self-Supervised Learning with Weak Augmentationcited by 83
  14. 2023SoftCLIP: Softer Cross-modal Alignment Makes CLIP Strongercited by 56
  15. 2022Robust Cross-Modal Representation Learning with Progressive Self-Distillationcited by 55
  16. 2022Ranking Info Noise Contrastive Estimation: Boosting Contrastive Learning via Ranked Positivescited by 37
  17. 2023On the Generalization of Multi-modal Contrastive Learningcited by 30
  18. 2023A Message Passing Perspective on Learning Dynamics of Contrastive Learningcited by 22
  19. 2023MaskCon: Masked Contrastive Learning for Coarse-Labelled Datasetcited by 21
  20. 2023Improved baselines for vision-language pre-trainingcited by 20
  21. 2023Semi-supervised learning made simple with self-supervised clusteringcited by 20
  22. 2021Similarity Contrastive Estimation for Self-Supervised Soft Contrastive Learningcited by 18
  23. 2024Cross-Modal and Uni-Modal Soft-Label Alignment for Image-Text Retrievalcited by 13
  24. 2023Active Self-Supervised Learning: A Few Low-Cost Relationships Are All You Needcited by 9
  25. 2021Characterizing and Improving the Robustness of Self-Supervised Learning through Background Augmentationscited by 8
  26. 2023Inter-Instance Similarity Modeling for Contrastive Learningcited by 6

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 1; 2025: 5; 2026: 3.

9 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2024Dissecting Representation Misalignment in Contrastive Learning via Influence Function
  2. 2026Expressivity In Multimodal Contrastive Learning
  3. 2024FFF: Fixing Flawed Foundations in contrastive pre-training results in very strong Vision-Language models
  4. 2025Contrastive Flow Matching
  5. 2024Aligning Visual Contrastive learning models via Preference Optimization
  6. 2022UniCLIP: Unified Framework for Contrastive Language-Image Pre-training
  7. 2024Contrastive Learning with Synthetic Positives
  8. 2023Coarse-to-Fine Contrastive Learning in Image-Text-Graph Space for Improved Vision-Language Compositionality