Synthetic Hard Negative Samples for Contrastive Learning

Hengkui Dong, Xianzhong Long, Yun Li, Lei Chen
4/6/2023
cs.CVcs.LG

No confident code implementation found for this paper. 6 possible matches can be shown below.

Abstract

Contrastive learning has emerged as an essential approach for self-supervised learning in visual representation learning. The central objective of contrastive learning is to maximize the similarities between two augmented versions of an image (positive pairs), while minimizing the similarities between different images (negative pairs). Recent studies have demonstrated that harder negative samples, i.e., those that are more difficult to differentiate from the anchor sample, perform a more crucial function in contrastive learning. This paper proposes a novel feature-level method, namely sampling synthetic hard negative samples for contrastive learning (SSCL), to exploit harder negative samples more effectively. Specifically, 1) we generate more and harder negative samples by mixing negative samples, and then sample them by controlling the contrast of anchor sample with the other negative samples; 2) considering the possibility of false negative samples, we further debias the negative samples. Our proposed method improves the classification performance on different image datasets and can be readily integrated into existing methods.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 6 weaker matches are hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{dong2023synthetic,
  title  = {Synthetic Hard Negative Samples for Contrastive Learning},
  author = {Hengkui Dong and Xianzhong Long and Yun Li and Lei Chen},
  year   = {2023},
  eprint = {2304.02971},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2304.02971v2}
}

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

Discussion