Ranking Info Noise Contrastive Estimation: Boosting Contrastive Learning via Ranked Positives

David T. Hoffmann, Nadine Behrmann, Juergen Gall, Thomas Brox, Mehdi Noroozi
1/27/2022
cs.CV
contrastive-ssl

Official code: boschresearch/rince (25 stars, Python, AGPL-3.0, last commit 2022-08-12).

Abstract

This paper introduces Ranking Info Noise Contrastive Estimation (RINCE), a new member in the family of InfoNCE losses that preserves a ranked ordering of positive samples. In contrast to the standard InfoNCE loss, which requires a strict binary separation of the training pairs into similar and dissimilar samples, RINCE can exploit information about a similarity ranking for learning a corresponding embedding space.

Show full abstract

We show that the proposed loss function learns favorable embeddings compared to the standard InfoNCE whenever at least noisy ranking information can be obtained or when the definition of positives and negatives is blurry. We demonstrate this for a supervised classification task with additional superclass labels and noisy similarity scores. Furthermore, we show that RINCE can also be applied to unsupervised training with experiments on unsupervised representation learning from videos. In particular, the embedding yields higher classification accuracy, retrieval rates and performs better in out-of-distribution detection than the standard InfoNCE loss.

View on arXivView PDF

Code Implementations(1)

AGPL-3.0

This is the code accompanying the AAAI 2022 paper "Ranking Info Noise Contrastive Estimation: Boosting Contrastive Learning via Ranked Positives" https://arxiv.org/abs/2201.11736 . The method allows you to use additional ranking information for representation learning.

254PythonJan 27, 20224 years agoAGPL-3.0
classificationcontrastive-learningout-of-distribution-detectionpaper-resourcerepresentation-learning+2 more

Similar Papers

Cite this paper

@article{hoffmann2022ranking,
  title  = {Ranking Info Noise Contrastive Estimation: Boosting Contrastive Learning via Ranked Positives},
  author = {David T. Hoffmann and Nadine Behrmann and Juergen Gall and Thomas Brox and Mehdi Noroozi},
  year   = {2022},
  eprint = {2201.11736},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2201.11736}
}

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/2201.11736.svg)](https://codeofpaper.com/paper/2201.11736)

Discussion