When hard negative sampling meets supervised contrastive learning
Not on the map. Why?
Abstract (arXiv)
State-of-the-art image models predominantly follow a two-stage strategy: pre-training on large datasets and fine-tuning with cross-entropy loss. Many studies have shown that using cross-entropy can result in sub-optimal generalisation and stability. While the supervised contrastive loss addresses some limitations of cross-entropy loss by focusing on intra-class similarities and inter-class differences, it neglects the importance of hard negative mining. We propose that models will benefit from performance improvement by weighting negative samples based on their dissimilarity to positive counterparts. In this paper, we introduce a new supervised contrastive learning objective, SCHaNe, which incorporates hard negative sampling during the fine-tuning phase. Without requiring specialized architectures, additional data, or extra computational resources, experimental results indicate that SCHaNe outperforms the strong baseline BEiT-3 in Top-1 accuracy across various benchmarks, with significant gains of up to 3.32% in few-shot learning settings and 3.41% in full dataset fine-tuning. Importantly, our proposed objective sets a new state-of-the-art for base models on ImageNet-1k, achieving an 86.14% accuracy. Furthermore, we demonstrate that the proposed objective yields better embeddings and explains the improved effectiveness observed in our experiments.
Key facts. Cited by 2 papers in the map (data through 14 Oct 2026). Builds on 38 of its 53 references that are in the map. First posted on arXiv 28 Aug 2023.
Builds on
38 of 53 references.
References · 38
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
- 2020A Simple Framework for Contrastive Learning of Visual Representationscited by 12,049
- 2015Distilling the Knowledge in a Neural Networkcited by 10,324
- 2014ImageNet Large Scale Visual Recognition Challengecited by 8,498
- 2019Momentum Contrast for Unsupervised Visual Representation Learningcited by 7,513
- 2021Masked Autoencoders Are Scalable Vision Learnerscited by 7,403
- 2015Rethinking the Inception Architecture for Computer Visioncited by 5,475
- 2017mixup: Beyond Empirical Risk Minimizationcited by 5,183
- 2017Prototypical Networks for Few-shot Learningcited by 3,015
- 2019CutMix: Regularization Strategy to Train Strong Classifiers with Localizable Featurescited by 2,884
- 2015FaceNet: A Unified Embedding for Face Recognition and Clusteringcited by 2,849
- 2020Supervised Contrastive Learningcited by 2,829
26 more
- 2016Matching Networks for One Shot Learningcited by 2,255
- 2019Contrastive Multiview Codingcited by 1,301
- 2019Learning Imbalanced Datasets with Label-Distribution-Aware Margin Losscited by 989
- 2020Contrastive Learning with Hard Negative Samplescited by 628
- 2022Image as a Foreign Language: BEiT Pretraining for All Vision and Vision-Language Taskscited by 511
- 2019Meta-Learning with Differentiable Convex Optimizationcited by 461
- 2018Meta-Learning for Semi-Supervised Few-Shot Classificationcited by 456
- 2015Deep Metric Learning via Lifted Structured Feature Embeddingcited by 449
- 2020Rethinking Few-Shot Image Classification: a Good Embedding Is All You Need?cited by 437
- 2018TADAM: Task dependent adaptive metric for improved few-shot learningcited by 408
- 2020Hard Negative Mixing for Contrastive Learningcited by 402
- 2018Meta-learning with differentiable closed-form solverscited by 397
- 2020Debiased Contrastive Learningcited by 356
- 2019A Baseline for Few-Shot Image Classificationcited by 298
- 2016Large-Margin Softmax Loss for Convolutional Neural Networkscited by 296
- 2017Sampling Matters in Deep Embedding Learningcited by 285
- 2020Supervised Contrastive Learning for Pre-trained Language Model Fine-tuningcited by 276
- 2020On the Stability of Fine-tuning BERT: Misconceptions, Explanations, and Strong Baselinescited by 255
- 2019Revisiting Self-Supervised Visual Representation Learningcited by 251
- 2020Revisiting Few-sample BERT Fine-tuningcited by 238
- 2019Billion-scale semi-supervised learning for image classificationcited by 232
- 2017All-but-the-Top: Simple and Effective Postprocessing for Word Representationscited by 212
- 2018Large Margin Deep Networks for Classificationcited by 112
- 2018Deep Metric Learning with Hierarchical Triplet Losscited by 112
- 2017Smart Mining for Deep Metric Learningcited by 96
- 2019Cross-Entropy Loss and Low-Rank Features Have Responsibility for Adversarial Examplescited by 17
Built on by
Citing papers per year: 2023: 1; 2024: 1.
2 papers.