Similarity Contrastive Estimation for Self-Supervised Soft Contrastive Learning

Julien Denize, Jaonary Rabarisoa, Astrid Orcesi, Romain Hérault, Stéphane Canu
11/29/2021
43 citations
cs.CVcs.AIcs.LG
contrastive-ssl

Official code: CEA-LIST/SCE (27 stars, Python, last commit 2023-09-06). Most starred: juliendenize/eztorch, a community implementation (53 stars, Python, PyTorch, last commit 2026-01-21, 2.0× the official stars). 1 more implementation below.

Abstract

Contrastive representation learning has proven to be an effective self-supervised learning method. Most successful approaches are based on Noise Contrastive Estimation (NCE) and use different views of an instance as positives that should be contrasted with other instances, called negatives, that are considered as noise.

Show full abstract

However, several instances in a dataset are drawn from the same distribution and share underlying semantic information. A good data representation should contain relations, or semantic similarity, between the instances. Contrastive learning implicitly learns relations but considering all negatives as noise harms the quality of the learned relations. To circumvent this issue, we propose a novel formulation of contrastive learning using semantic similarity between instances called Similarity Contrastive Estimation (SCE). Our training objective is a soft contrastive learning one. Instead of hard classifying positives and negatives, we estimate from one view of a batch a continuous distribution to push or pull instances based on their semantic similarities. This target similarity distribution is sharpened to eliminate noisy relations. The model predicts for each instance, from another view, the target distribution while contrasting its positive with negatives. Experimental results show that SCE is Top-1 on the ImageNet linear evaluation protocol at 100 pretraining epochs with 72.1% accuracy and is competitive with state-of-the-art algorithms by reaching 75.4% for 200 epochs with multi-crop. We also show that SCE is able to generalize to several tasks. Source code is available here: https://github.com/CEA-LIST/SCE.

View on arXivView PDF

Code Implementations(2)

Code implementations of this paper
RepositoryTypeStarsLanguageLicenseLast commit
CEA-LIST/SCEOfficial27Python–2023-09-06
juliendenize/eztorchCommunity53Python–2026-01-21
CEA-LIST/SCEOfficial100%

Implementation of "Similarity Contrastive Estimation for Self-Supervised Soft Contrastive Learning" WACV 2023.

273PythonSep 15, 20223 years agoNOASSERTION
computer-visioncontrastivedeep-learningself-supervised-learning
PyTorch

Library to perform image and video self-supervised learning.

533PythonAug 29, 202310 months agoNOASSERTION
contrastive-learningimageimage-processingpytorchself-supervised+2 more

Similar Papers

Cite this paper

@article{denize2021similarity,
  title  = {Similarity Contrastive Estimation for Self-Supervised Soft Contrastive Learning},
  author = {Julien Denize and Jaonary Rabarisoa and Astrid Orcesi and Romain Hérault and Stéphane Canu},
  year   = {2021},
  eprint = {2111.14585},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2111.14585}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2111.14585.svg)](https://codeofpaper.com/paper/2111.14585)

Discussion