mlsanityData to 7 Oct 2026

Hard negative examples are hard, but useful

arXiv 2007.12749 ↗First posted 24 Jul 2020cs.CV cs.LG stat.MLcited by 82

Not on the map. Why?

Abstract (arXiv)

Triplet loss is an extremely common approach to distance metric learning. Representations of images from the same class are optimized to be mapped closer together in an embedding space than representations of images from different classes. Much work on triplet losses focuses on selecting the most useful triplets of images to consider, with strategies that select dissimilar examples from the same class or similar examples from different classes. The consensus of previous research is that optimizing with the textithardest negative examples leads to bad training behavior. That's a problem -- these hardest negatives are literally the cases where the distance metric fails to capture semantic similarity. In this paper, we characterize the space of triplets and derive why hard negatives make triplet loss training fail. We offer a simple fix to the loss function and show that, with this fix, optimizing with hard negative examples becomes feasible. This leads to more generalizable features, and image retrieval results that outperform state of the art for datasets with high intra-class variance.

Key facts. Cited by 82 papers in the map (data through 7 Oct 2026). First posted on arXiv 24 Jul 2020.

Builds on

No reference list yet.

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2021: 12; 2022: 16; 2023: 23; 2024: 13; 2025: 14; 2026: 4.

82 papers.

Sort:

By area:

  1. 2021Cross-Task Generalization via Natural Language Crowdsourcing Instructionscited by 696
  2. 2024Smarter, Better, Faster, Longer: A Modern Bidirectional Encoder for Fast, Memory Efficient, and Long Context Finetuning and Inferencecited by 527
  3. 2021Robust Contrastive Learning Using Negative Samples with Diminished Semanticscited by 43
  4. 2021Learning Intra-Batch Connections for Deep Metric Learningcited by 34
  5. 2024Data curation via joint example selection further accelerates multimodal learningcited by 32
  6. 2024Close, But Not There: Boosting Geographic Distance Sensitivity in Visual Place Recognitioncited by 27
  7. 2022OutfitTransformer: Learning Outfit Representations for Fashion Recommendationcited by 24
  8. 2023Adaptive Sparse Pairwise Loss for Object Re-Identificationcited by 20
  9. 2025YoChameleon: Personalized Vision and Language Generationcited by 20
  10. 2021Robust and Decomposable Average Precision for Image Retrievalcited by 19
  11. 2023Finding Order in Chaos: A Novel Data Augmentation Method for Time Series in Contrastive Learningcited by 18
  12. 2024Knowledge-enhanced Visual-Language Pretraining for Computational Pathologycited by 14
38 more
  1. 2023Learning by Sorting: Self-supervised Learning with Group Ordering Constraintscited by 13
  2. 2023Investigating the Limitation of CLIP Models: The Worst-Performing Categoriescited by 12
  3. 2022GRIT-VLP: Grouped Mini-batch Sampling for Efficient Vision and Language Pre-trainingcited by 10
  4. 2023Your Negative May not Be True Negative: Boosting Image-Text Matching with False Negative Eliminationcited by 10
  5. 2023Optimization of Rank Losses for Image Retrievalcited by 10
  6. 2021WildGait: Learning Gait Representations from Raw Surveillance Streamscited by 9
  7. 2023Confidence-based Visual Dispersal for Few-shot Unsupervised Domain Adaptationcited by 9
  8. 2024Towards Improved Proxy-based Deep Metric Learning via Data-Augmented Domain Adaptationcited by 9
  9. 2024Diffusion-based Negative Sampling on Graphs for Link Predictioncited by 9
  10. 2025ELIP: Enhanced Visual-Language Foundation Models for Image Retrievalcited by 9
  11. 2021Rethinking Self-Supervision Objectives for Generalizable Coherence Modelingcited by 8
  12. 2021Relation Preserving Triplet Mining for Stabilising the Triplet Loss in Re-identification Systemscited by 8
  13. 2022Contrastive Bayesian Analysis for Deep Metric Learningcited by 8
  14. 2023GeNIe: Generative Hard Negative Images Through Diffusioncited by 8
  15. 2023Threshold-Consistent Margin Loss for Open-World Deep Metric Learningcited by 7
  16. 2025SSL4RL: Revisiting Self-supervised Learning as Intrinsic Reward for Visual-Language Reasoningcited by 7
  17. 2022Learning video retrieval models with relevance-aware online miningcited by 6
  18. 2022Relevance-based Margin for Contrastively-trained Video Retrieval Modelscited by 6
  19. 2022Global Contrastive Batch Sampling via Optimization on Sample Permutationscited by 5
  20. 2023Clustering-Aware Negative Sampling for Unsupervised Sentence Representationcited by 5
  21. 2023Learning to Count without Annotationscited by 5
  22. 2023Enhancing Sample Utilization through Sample Adaptive Augmentation in Semi-Supervised Learningcited by 5
  23. 2021The 2021 Hotel-ID to Combat Human Trafficking Competition Datasetcited by 4
  24. 2021Encouraging Intra-Class Diversity Through a Reverse Contrastive Loss for Better Single-Source Domain Generalizationcited by 4
  25. 2023Center Contrastive Loss for Metric Learningcited by 4
  26. 2021Structure-Aware Hard Negative Mining for Heterogeneous Graph Contrastive Learningcited by 3
  27. 2022Contrastive Learning from Demonstrationscited by 3
  28. 2022AdaTriplet: Adaptive Gradient Triplet Loss with Automatic Margin Learning for Forensic Medical Image Matchingcited by 3
  29. 2024Revisiting Experience Replayable Conditionscited by 3
  30. 2024UniRetriever: Multi-task Candidates Selection for Various Context-Adaptive Conversational Retrievalcited by 3
  31. 2024A Unified Deep Semantic Expansion Framework for Domain-Generalized Person Re-identificationcited by 3
  32. 2025Catheter Detection and Segmentation in X-ray Images via Multi-task Learningcited by 3
  33. 2021Negative Sample is Negative in Its Own Way: Tailoring Negative Sentences for Image-Text Retrievalcited by 2
  34. 2022Block-SCL: Blocking Matters for Supervised Contrastive Learning in Product Matchingcited by 2
  35. 2022Category-Level Pose Retrieval with Contrastive Features Learnt with Occlusion Augmentationcited by 2
  36. 2023Multiview Representation Learning from Crowdsourced Triplet Comparisonscited by 2
  37. 2023Selectively Hard Negative Mining for Alleviating Gradient Vanishing in Image-Text Matchingcited by 2
  38. 2023A Reminder of its Brittleness: Language Reward Shaping May Hinder Learning for Instruction Following Agentscited by 2

50 most cited of 82 All 82 (JSON)