mlsanityData to 14 Oct 2026

When hard negative sampling meets supervised contrastive learning

arXiv 2308.14893 ↗First posted 28 Aug 2023cs.CV cs.AI cs.LGcited by 2

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

  1. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
  2. 2020A Simple Framework for Contrastive Learning of Visual Representationscited by 12,049
  3. 2015Distilling the Knowledge in a Neural Networkcited by 10,324
  4. 2014ImageNet Large Scale Visual Recognition Challengecited by 8,498
  5. 2019Momentum Contrast for Unsupervised Visual Representation Learningcited by 7,513
  6. 2021Masked Autoencoders Are Scalable Vision Learnerscited by 7,403
  7. 2015Rethinking the Inception Architecture for Computer Visioncited by 5,475
  8. 2017mixup: Beyond Empirical Risk Minimizationcited by 5,183
  9. 2017Prototypical Networks for Few-shot Learningcited by 3,015
  10. 2019CutMix: Regularization Strategy to Train Strong Classifiers with Localizable Featurescited by 2,884
  11. 2015FaceNet: A Unified Embedding for Face Recognition and Clusteringcited by 2,849
  12. 2020Supervised Contrastive Learningcited by 2,829
26 more
  1. 2016Matching Networks for One Shot Learningcited by 2,255
  2. 2019Contrastive Multiview Codingcited by 1,301
  3. 2019Learning Imbalanced Datasets with Label-Distribution-Aware Margin Losscited by 989
  4. 2020Contrastive Learning with Hard Negative Samplescited by 628
  5. 2022Image as a Foreign Language: BEiT Pretraining for All Vision and Vision-Language Taskscited by 511
  6. 2019Meta-Learning with Differentiable Convex Optimizationcited by 461
  7. 2018Meta-Learning for Semi-Supervised Few-Shot Classificationcited by 456
  8. 2015Deep Metric Learning via Lifted Structured Feature Embeddingcited by 449
  9. 2020Rethinking Few-Shot Image Classification: a Good Embedding Is All You Need?cited by 437
  10. 2018TADAM: Task dependent adaptive metric for improved few-shot learningcited by 408
  11. 2020Hard Negative Mixing for Contrastive Learningcited by 402
  12. 2018Meta-learning with differentiable closed-form solverscited by 397
  13. 2020Debiased Contrastive Learningcited by 356
  14. 2019A Baseline for Few-Shot Image Classificationcited by 298
  15. 2016Large-Margin Softmax Loss for Convolutional Neural Networkscited by 296
  16. 2017Sampling Matters in Deep Embedding Learningcited by 285
  17. 2020Supervised Contrastive Learning for Pre-trained Language Model Fine-tuningcited by 276
  18. 2020On the Stability of Fine-tuning BERT: Misconceptions, Explanations, and Strong Baselinescited by 255
  19. 2019Revisiting Self-Supervised Visual Representation Learningcited by 251
  20. 2020Revisiting Few-sample BERT Fine-tuningcited by 238
  21. 2019Billion-scale semi-supervised learning for image classificationcited by 232
  22. 2017All-but-the-Top: Simple and Effective Postprocessing for Word Representationscited by 212
  23. 2018Large Margin Deep Networks for Classificationcited by 112
  24. 2018Deep Metric Learning with Hierarchical Triplet Losscited by 112
  25. 2017Smart Mining for Deep Metric Learningcited by 96
  26. 2019Cross-Entropy Loss and Low-Rank Features Have Responsibility for Adversarial Examplescited by 17

Built on by

Cited by year

Citing papers per year: 2023: 1; 2024: 1.

2 papers.