mlsanityData to 7 Oct 2026

Threshold-Consistent Margin Loss for Open-World Deep Metric Learning

arXiv 2307.04047 ↗First posted 8 Jul 2023cs.CVcited by 7

Not on the map. Why?

Abstract (arXiv)

Existing losses used in deep metric learning (DML) for image retrieval often lead to highly non-uniform intra-class and inter-class representation structures across test classes and data distributions. When combined with the common practice of using a fixed threshold to declare a match, this gives rise to significant performance variations in terms of false accept rate (FAR) and false reject rate (FRR) across test classes and data distributions. We define this issue in DML as threshold inconsistency. In real-world applications, such inconsistency often complicates the threshold selection process when deploying commercial image retrieval systems. To measure this inconsistency, we propose a novel variance-based metric called Operating-Point-Inconsistency-Score (OPIS) that quantifies the variance in the operating characteristics across classes. Using the OPIS metric, we find that achieving high accuracy levels in a DML model does not automatically guarantee threshold consistency. In fact, our investigation reveals a Pareto frontier in the high-accuracy regime, where existing methods to improve accuracy often lead to degradation in threshold consistency. To address this trade-off, we introduce the Threshold-Consistent Margin (TCM) loss, a simple yet effective regularization technique that promotes uniformity in representation structures across classes by selectively penalizing hard sample pairs. Extensive experiments demonstrate TCM's effectiveness in enhancing threshold consistency while preserving accuracy, simplifying the threshold selection process in practical DML settings.

Key facts. Cited by 7 papers in the map (data through 7 Oct 2026). Builds on 45 of its 65 references that are in the map. First posted on arXiv 8 Jul 2023.

Builds on

45 of 65 references.

References · 45

  1. 2015Deep Residual Learning for Image Recognitioncited by 51,809
  2. 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,456
  3. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
  4. 2020A Simple Framework for Contrastive Learning of Visual Representationscited by 11,979
  5. 2023DINOv2: Learning Robust Visual Features without Supervisioncited by 7,764
  6. 2018Representation Learning with Contrastive Predictive Codingcited by 7,662
  7. 2017On Calibration of Modern Neural Networkscited by 4,860
  8. 2015FaceNet: A Unified Embedding for Face Recognition and Clusteringcited by 2,833
  9. 2018CosFace: Large Margin Cosine Loss for Deep Face Recognitioncited by 968
  10. 2020Contrastive Learning with Hard Negative Samplescited by 619
  11. 2015Towards Open Set Deep Networkscited by 533
  12. 2019Conformal Prediction Under Covariate Shiftcited by 511
33 more
  1. 2017Regularizing Neural Networks by Penalizing Confident Output Distributionscited by 461
  2. 2015Deep Metric Learning via Lifted Structured Feature Embeddingcited by 449
  3. 2019Measuring Calibration in Deep Learningcited by 443
  4. 2020Classification with Valid and Adaptive Coveragecited by 390
  5. 2019Multi-Similarity Loss with General Pair Weighting for Deep Metric Learningcited by 368
  6. 2021Adaptive Conformal Inference Under Distribution Shiftcited by 360
  7. 2020Calibrating Deep Neural Networks using Focal Losscited by 353
  8. 2022Conformal prediction beyond exchangeabilitycited by 348
  9. 2017Sampling Matters in Deep Embedding Learningcited by 285
  10. 2014Towards Open World Recognitioncited by 226
  11. 2017No Fuss Distance Metric Learning using Proxiescited by 225
  12. 2020Proxy Anchor Loss for Deep Metric Learningcited by 195
  13. 2019SoftTriple Loss: Deep Metric Learning Without Triplet Samplingcited by 163
  14. 2020Learning Diverse and Discriminative Representations via the Principle of Maximal Coding Rate Reductioncited by 141
  15. 2020ProxyNCA++: Revisiting and Revitalizing Proxy Neighborhood Component Analysiscited by 107
  16. 2017A Tutorial on Kernel Density Estimation and Recent Advancescited by 100
  17. 2020Revisiting Training Strategies and Generalization Performance in Deep Metric Learningcited by 99
  18. 2020Smooth-AP: Smoothing the Path Towards Large-Scale Image Retrievalcited by 98
  19. 2021ReduNet: A White-box Deep Network from the Principle of Maximizing Rate Reductioncited by 84
  20. 2020Hard negative examples are hard, but usefulcited by 82
  21. 2017Class Rectification Hard Mining for Imbalanced Deep Learningcited by 67
  22. 2019Metric Learning for Individual Fairnesscited by 51
  23. 2021Recall@k Surrogate Loss with Large Batches and Similarity Mixupcited by 49
  24. 2022A Stitch in Time Saves Nine: A Train-Time Regularizing Loss for Improved Neural Network Calibrationcited by 49
  25. 2020Improved Trainable Calibration Method for Neural Networks on Medical Imaging Classificationcited by 37
  26. 2023Unicom: Universal and Compact Representation Learning for Image Retrievalcited by 36
  27. 2022Non-isotropy Regularization for Proxy-based Deep Metric Learningcited by 33
  28. 2017The iNaturalist Species Classification and Detection Datasetcited by 28
  29. 2022HIER: Metric Learning Beyond Class Labels via Hierarchical Regularizationcited by 26
  30. 2021Robust and Decomposable Average Precision for Image Retrievalcited by 19
  31. 2022Is Fairness Only Metric Deep? Evaluating and Addressing Subgroup Gaps in Deep Metric Learningcited by 11
  32. 2022Contrastive Bayesian Analysis for Deep Metric Learningcited by 8
  33. 2020Improving Calibration in Deep Metric Learning With Cross-Example Softmaxcited by 3

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 2; 2025: 4; 2026: 1.

7 papers.