Threshold-Consistent Margin Loss for Open-World Deep Metric Learning
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
- 2015Deep Residual Learning for Image Recognitioncited by 51,809
- 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,456
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
- 2020A Simple Framework for Contrastive Learning of Visual Representationscited by 11,979
- 2023DINOv2: Learning Robust Visual Features without Supervisioncited by 7,764
- 2018Representation Learning with Contrastive Predictive Codingcited by 7,662
- 2017On Calibration of Modern Neural Networkscited by 4,860
- 2015FaceNet: A Unified Embedding for Face Recognition and Clusteringcited by 2,833
- 2018CosFace: Large Margin Cosine Loss for Deep Face Recognitioncited by 968
- 2020Contrastive Learning with Hard Negative Samplescited by 619
- 2015Towards Open Set Deep Networkscited by 533
- 2019Conformal Prediction Under Covariate Shiftcited by 511
33 more
- 2017Regularizing Neural Networks by Penalizing Confident Output Distributionscited by 461
- 2015Deep Metric Learning via Lifted Structured Feature Embeddingcited by 449
- 2019Measuring Calibration in Deep Learningcited by 443
- 2020Classification with Valid and Adaptive Coveragecited by 390
- 2019Multi-Similarity Loss with General Pair Weighting for Deep Metric Learningcited by 368
- 2021Adaptive Conformal Inference Under Distribution Shiftcited by 360
- 2020Calibrating Deep Neural Networks using Focal Losscited by 353
- 2022Conformal prediction beyond exchangeabilitycited by 348
- 2017Sampling Matters in Deep Embedding Learningcited by 285
- 2014Towards Open World Recognitioncited by 226
- 2017No Fuss Distance Metric Learning using Proxiescited by 225
- 2020Proxy Anchor Loss for Deep Metric Learningcited by 195
- 2019SoftTriple Loss: Deep Metric Learning Without Triplet Samplingcited by 163
- 2020Learning Diverse and Discriminative Representations via the Principle of Maximal Coding Rate Reductioncited by 141
- 2020ProxyNCA++: Revisiting and Revitalizing Proxy Neighborhood Component Analysiscited by 107
- 2017A Tutorial on Kernel Density Estimation and Recent Advancescited by 100
- 2020Revisiting Training Strategies and Generalization Performance in Deep Metric Learningcited by 99
- 2020Smooth-AP: Smoothing the Path Towards Large-Scale Image Retrievalcited by 98
- 2021ReduNet: A White-box Deep Network from the Principle of Maximizing Rate Reductioncited by 84
- 2020Hard negative examples are hard, but usefulcited by 82
- 2017Class Rectification Hard Mining for Imbalanced Deep Learningcited by 67
- 2019Metric Learning for Individual Fairnesscited by 51
- 2021Recall@k Surrogate Loss with Large Batches and Similarity Mixupcited by 49
- 2022A Stitch in Time Saves Nine: A Train-Time Regularizing Loss for Improved Neural Network Calibrationcited by 49
- 2020Improved Trainable Calibration Method for Neural Networks on Medical Imaging Classificationcited by 37
- 2023Unicom: Universal and Compact Representation Learning for Image Retrievalcited by 36
- 2022Non-isotropy Regularization for Proxy-based Deep Metric Learningcited by 33
- 2017The iNaturalist Species Classification and Detection Datasetcited by 28
- 2022HIER: Metric Learning Beyond Class Labels via Hierarchical Regularizationcited by 26
- 2021Robust and Decomposable Average Precision for Image Retrievalcited by 19
- 2022Is Fairness Only Metric Deep? Evaluating and Addressing Subgroup Gaps in Deep Metric Learningcited by 11
- 2022Contrastive Bayesian Analysis for Deep Metric Learningcited by 8
- 2020Improving Calibration in Deep Metric Learning With Cross-Example Softmaxcited by 3
Built on by
Citing papers per year: 2024: 2; 2025: 4; 2026: 1.
7 papers.
- 2025vCache: Verified Semantic Prompt Cachingcited by 15
- 2024Open-World Dynamic Prompt and Continual Visual Representation Learningcited by 2
- 2025All You Need to Know About Training Image Retrieval Modelscited by 1
- 2024Realigned Softmax Warping for Deep Metric Learningcited by 0
- 2025White Aggregation and Restoration for Few-shot 3D Point Cloud Semantic Segmentationcited by 0
- 2025Confidence-Calibrating Regularization for Robust Brain MRI Segmentation Under Domain Shiftcited by 0
- 2026MVR-cache: Optimizing Semantic Caching via Multi-Vector Retrieval and Learned Prompt Segmentationcited by 0
- 2026MVR-cache: Optimizing Semantic Caching via Multi-Vector Retrieval and Learned Prompt Segmentation24 May 2026
- 2025Confidence-Calibrating Regularization for Robust Brain MRI Segmentation Under Domain Shift27 Sep 2025
- 2025White Aggregation and Restoration for Few-shot 3D Point Cloud Semantic Segmentation17 Sep 2025
- 2025All You Need to Know About Training Image Retrieval Models17 Mar 2025
- 2025vCache: Verified Semantic Prompt Caching6 Feb 2025
- 2024Open-World Dynamic Prompt and Continual Visual Representation Learning9 Sep 2024
- 2024Realigned Softmax Warping for Deep Metric Learning28 Aug 2024