Supervised Contrastive Learning with Hard Negative Samples
Not on the map. Why?
Abstract (arXiv)
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.
Key facts. Cited by 13 papers in the map (data through 7 Oct 2026). Builds on 43 of its 60 references that are in the map. First posted on arXiv 31 Aug 2022.
Builds on
43 of 60 references.
References · 43
- 2015Deep Residual Learning for Image Recognitioncited by 51,809
- 2020A Simple Framework for Contrastive Learning of Visual Representationscited by 11,979
- 2018Representation Learning with Contrastive Predictive Codingcited by 7,662
- 2019Momentum Contrast for Unsupervised Visual Representation Learningcited by 7,482
- 2018How Powerful are Graph Neural Networks?cited by 4,355
- 2020Supervised Contrastive Learningcited by 2,803
- 2019Contrastive Multiview Codingcited by 1,297
- 2020Graph Contrastive Learning with Augmentationscited by 1,203
- 2020What Makes for Good Views for Contrastive Learning?cited by 843
- 2020CURL: Contrastive Unsupervised Representations for Reinforcement Learningcited by 745
- 2020TUDataset: A collection of benchmark datasets for learning with graphscited by 718
- 2019Data-Efficient Image Recognition with Contrastive Predictive Codingcited by 672
31 more
- 2020Contrastive Learning with Hard Negative Samplescited by 619
- 2019A Theoretical Analysis of Contrastive Unsupervised Representation Learningcited by 530
- 2019InfoGraph: Unsupervised and Semi-supervised Graph-Level Representation Learning via Mutual Information Maximizationcited by 441
- 2020Hard Negative Mixing for Contrastive Learningcited by 399
- 2019S4L: Self-Supervised Semi-Supervised Learningcited by 335
- 2019Label Propagation for Deep Semi-supervised Learningcited by 287
- 2017Sampling Matters in Deep Embedding Learningcited by 285
- 2020Contrastive Clusteringcited by 264
- 2019Local Aggregation for Unsupervised Learning of Visual Embeddingscited by 204
- 2021Dual Contrastive Learning for General Face Forgery Detectioncited by 100
- 2021AutoGCL: Automated Graph Contrastive Learning via Learnable View Generatorscited by 73
- 2020Conditional Negative Sampling for Contrastive Learning of Visual Representationscited by 57
- 2018Improving Generalization via Scalable Neighborhood Component Analysiscited by 53
- 2021Molecular Contrastive Learning with Chemical Element Knowledge Graphcited by 50
- 2016Hard-Aware Deeply Cascaded Embeddingcited by 44
- 2020Contrastive Triple Extraction with Generative Transformercited by 44
- 2020Contrastive and Generative Graph Convolutional Networks for Graph-based Semi-Supervised Learningcited by 43
- 2021Mutual Contrastive Learning for Visual Representation Learningcited by 42
- 2021A Primer on Contrastive Pretraining in Language Processing: Methods, Lessons Learned and Perspectivescited by 41
- 2020Enhancing Unsupervised Video Representation Learning by Decoupling the Scene and the Motioncited by 39
- 2022Image Difference Captioning with Pre-training and Contrastive Learningcited by 39
- 2021Improved Text Classification via Contrastive Adversarial Trainingcited by 38
- 2021Semantically Contrastive Learning for Low-light Image Enhancementcited by 31
- 2020SAIL: Self-Augmented Graph Contrastive Learningcited by 20
- 2022Utilizing Expert Features for Contrastive Learning of Time-Series Representationscited by 17
- 2020A Simple and Effective Self-Supervised Contrastive Learning Framework for Aspect Detectioncited by 13
- 2022Hard Negative Sampling Strategies for Contrastive Representation Learningcited by 13
- 2021Contrastive Spatio-Temporal Pretext Learning for Self-supervised Video Representationcited by 11
- 2018DeepChannel: Salience Estimation by Contrastive Learning for Extractive Document Summarizationcited by 6
- 2021Hard Negative Sampling via Regularized Optimal Transport for Contrastive Representation Learningcited by 4
- 2021Interpretable contrastive word mover's embeddingcited by 2
Built on by
Citing papers per year: 2022: 1; 2023: 3; 2024: 5; 2025: 2; 2026: 2.
13 papers.
Sort:
- 2023Source-free Domain Adaptive Human Pose Estimationcited by 15
- 2022Embracing Ambiguity: Improving Similarity-oriented Tasks with Contextual Synonym Knowledgecited by 11
- 2023Hard-Negative Sampling for Contrastive Learning: Optimal Representation Geometry and Neural- vs Dimensional-Collapsecited by 6
- 2024CLCE: An Approach to Refining Cross-Entropy and Contrastive Learning for Optimized Learning Fusioncited by 4
- 2024Label-aware Hard Negative Sampling Strategies with Momentum Contrastive Learning for Implicit Hate Speech Detectioncited by 4
- 2024Toward a Well-Calibrated Discrimination via Survival Outcome-Aware Contrastive Learningcited by 4
- 2023Leveraging Generative Language Models for Weakly Supervised Sentence Component Analysis in Video-Language Joint Learningcited by 1
- 2024Contrastive Perplexity for Controlled Generation: An Application in Detoxifying Large Language Modelscited by 1
- 2024Affinity-Graph-Guided Contractive Learning for Pretext-Free Medical Image Segmentation with Minimal Annotationcited by 1
- 2026Enhancing IMU-Based Online Handwriting Recognition via Contrastive Learning with Zero Inference Overheadcited by 1
- 2025Understanding Self-supervised Contrastive Learning through Supervised Objectivescited by 0
- 2025EnzyCLIP: A Cross-Attention Dual Encoder Framework with Contrastive Learning for Predicting Enzyme Kinetic Constantscited by 0
- 2026Optimal Representations for Generalized Contrastive Learning with Imbalanced Datasets11 May 2026
- 2026Enhancing IMU-Based Online Handwriting Recognition via Contrastive Learning with Zero Inference Overhead4 Feb 2026
- 2025EnzyCLIP: A Cross-Attention Dual Encoder Framework with Contrastive Learning for Predicting Enzyme Kinetic Constants29 Nov 2025
- 2025Understanding Self-supervised Contrastive Learning through Supervised Objectives12 Oct 2025
- 2024Toward a Well-Calibrated Discrimination via Survival Outcome-Aware Contrastive Learning15 Oct 2024
- 2024Affinity-Graph-Guided Contractive Learning for Pretext-Free Medical Image Segmentation with Minimal Annotation14 Oct 2024
- 2024Label-aware Hard Negative Sampling Strategies with Momentum Contrastive Learning for Implicit Hate Speech Detection12 Jun 2024
- 2024CLCE: An Approach to Refining Cross-Entropy and Contrastive Learning for Optimized Learning Fusion22 Feb 2024
- 2024Contrastive Perplexity for Controlled Generation: An Application in Detoxifying Large Language Models16 Jan 2024
- 2023Leveraging Generative Language Models for Weakly Supervised Sentence Component Analysis in Video-Language Joint Learning10 Dec 2023
- 2023Hard-Negative Sampling for Contrastive Learning: Optimal Representation Geometry and Neural- vs Dimensional-Collapse9 Nov 2023
- 2023Source-free Domain Adaptive Human Pose Estimation6 Aug 2023
- 2023Source-free Domain Adaptive Human Pose Estimationcited by 15
- 2022Embracing Ambiguity: Improving Similarity-oriented Tasks with Contextual Synonym Knowledgecited by 11
- 2023Hard-Negative Sampling for Contrastive Learning: Optimal Representation Geometry and Neural- vs Dimensional-Collapsecited by 6
- 2024CLCE: An Approach to Refining Cross-Entropy and Contrastive Learning for Optimized Learning Fusioncited by 4
- 2024Label-aware Hard Negative Sampling Strategies with Momentum Contrastive Learning for Implicit Hate Speech Detectioncited by 4
- 2024Toward a Well-Calibrated Discrimination via Survival Outcome-Aware Contrastive Learningcited by 4
- 2023Leveraging Generative Language Models for Weakly Supervised Sentence Component Analysis in Video-Language Joint Learningcited by 1
- 2024Contrastive Perplexity for Controlled Generation: An Application in Detoxifying Large Language Modelscited by 1
- 2024Affinity-Graph-Guided Contractive Learning for Pretext-Free Medical Image Segmentation with Minimal Annotationcited by 1
- 2026Enhancing IMU-Based Online Handwriting Recognition via Contrastive Learning with Zero Inference Overheadcited by 1
- 2025Understanding Self-supervised Contrastive Learning through Supervised Objectivescited by 0
- 2025EnzyCLIP: A Cross-Attention Dual Encoder Framework with Contrastive Learning for Predicting Enzyme Kinetic Constantscited by 0
12 most cited of 13 All 13 (JSON)
- 2026Optimal Representations for Generalized Contrastive Learning with Imbalanced Datasets11 May 2026
- 2026Enhancing IMU-Based Online Handwriting Recognition via Contrastive Learning with Zero Inference Overhead4 Feb 2026
- 2025EnzyCLIP: A Cross-Attention Dual Encoder Framework with Contrastive Learning for Predicting Enzyme Kinetic Constants29 Nov 2025
- 2025Understanding Self-supervised Contrastive Learning through Supervised Objectives12 Oct 2025
- 2024Toward a Well-Calibrated Discrimination via Survival Outcome-Aware Contrastive Learning15 Oct 2024
- 2024Affinity-Graph-Guided Contractive Learning for Pretext-Free Medical Image Segmentation with Minimal Annotation14 Oct 2024
- 2024Label-aware Hard Negative Sampling Strategies with Momentum Contrastive Learning for Implicit Hate Speech Detection12 Jun 2024
- 2024CLCE: An Approach to Refining Cross-Entropy and Contrastive Learning for Optimized Learning Fusion22 Feb 2024
- 2024Contrastive Perplexity for Controlled Generation: An Application in Detoxifying Large Language Models16 Jan 2024
- 2023Leveraging Generative Language Models for Weakly Supervised Sentence Component Analysis in Video-Language Joint Learning10 Dec 2023
- 2023Hard-Negative Sampling for Contrastive Learning: Optimal Representation Geometry and Neural- vs Dimensional-Collapse9 Nov 2023
- 2023Source-free Domain Adaptive Human Pose Estimation6 Aug 2023
12 newest of 13 All 13 (JSON)