paper-with-me

홈 › Papers

Supervised Contrastive Learning with Hard Negative Samples

2022-08-31 · Ruijie Jiang, Thuan Nguyen, Prakash Ishwar, Shuchin Aeron

Through minimization of an appropriate loss function such as the InfoNCE loss, contrastive learning (CL) learns a useful representation function by pulling positive samples close to each other while pushing negative samples far apart in the embedding space. The positive samples are typically created using "label-preserving" augmentations, i.e., domain-specific transformations of a given datum or anchor. In absence of class information, in unsupervised CL (UCL), the negative samples are typically chosen randomly and independently of the anchor from a preset negative sampling distribution over the entire dataset. This leads to class-collisions in UCL. Supervised CL (SCL), avoids this class collision by conditioning the negative sampling distribution to samples having labels different from that of the anchor. In hard-UCL (H-UCL), which has been shown to be an effective method to further enhance UCL, the negative sampling distribution is conditionally tilted, by means of a hardening function, towards samples that are closer to the anchor. Motivated by this, in this paper we propose hard-SCL (H-SCL) {wherein} the class conditional negative sampling distribution {is tilted} via a hardening function. Our simulation results confirm the utility of H-SCL over SCL with significant performance gains {in downstream classification tasks.} Analytically, we show that {in the} limit of infinite negative samples per anchor and a suitable assumption, the {H-SCL loss} is upper bounded by the {H-UCL loss}, thereby justifying the utility of H-UCL {for controlling} the H-SCL loss in the absence of label information. Through experiments on several datasets, we verify the assumption as well as the claimed inequality between H-UCL and H-SCL losses. We also provide a plausible scenario where H-SCL loss is lower bounded by UCL loss, indicating the limited utility of UCL in controlling the H-SCL loss.

📄 PDF Abstract BibTeX arXiv:2209.00078

Code (1)

rjiang03/h-scl 공식 구현 pytorch

Tasks

Contrastive LearningSelf-Supervised Learning

Methods 이 논문이 사용한 방법론

Contrastive Learning 설명 없음

Similar Papers 제목 키워드 기반

Synthetic Hard Negative Samples for Contrastive Learning

2023-04-06 · Hengkui Dong, Xianzhong Long, Yun Li, Lei Chen

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 augmente…

Contrastive LearningRepresentation LearningSelf-Supervised Learning

Contrastive Learning with Hard Negative Samples

2020-10-09 · ICLR 2021 1 · Joshua Robinson, Ching-Yao Chuang, Suvrit Sra, Stefanie Jegelka

How can you sample good negative examples for contrastive learning? We argue that, as with metric learning, contrastive learning of representations benefits from hard negative samples (i.e., points that are difficult to …

Contrastive LearningMetric Learning

Difficulty-Based Sampling for Debiased Contrastive Representation Learning

2023-01-01 · CVPR 2023 1 · Taeuk Jang, Xiaoqian Wang

Contrastive learning is a self-supervised representation learning method that achieves milestone performance in various classification tasks. However, due to its unsupervised fashion, it suffers from the false negati…

Contrastive LearningRepresentation LearningTriplet

Generating Counterfactual Hard Negative Samples for Graph Contrastive Learning

2022-07-01 · Haoran Yang, Hongxu Chen, Sixiao Zhang, Xiangguo Sun 외

Graph contrastive learning has emerged as a powerful tool for unsupervised graph representation learning. The key to the success of graph contrastive learning is to acquire high-quality positive and negative samples as c…

Contrastive LearningcounterfactualGraph LearningGraph Representation Learning+1

DropMix: Better Graph Contrastive Learning with Harder Negative Samples

2023-10-15 · Yueqi Ma, Minjie Chen, Xiang Li

While generating better negative samples for contrastive learning has been widely studied in the areas of CV and NLP, very few work has focused on graph-structured data. Recently, Mixup has been introduced to synthesize …

Contrastive Learning