SoftTriple Loss: Deep Metric Learning Without Triplet Sampling
Not on the map. Why?
Abstract (arXiv)
Distance metric learning (DML) is to learn the embeddings where examples from the same class are closer than examples from different classes. It can be cast as an optimization problem with triplet constraints. Due to the vast number of triplet constraints, a sampling strategy is essential for DML. With the tremendous success of deep learning in classifications, it has been applied for DML. When learning embeddings with deep neural networks (DNNs), only a mini-batch of data is available at each iteration. The set of triplet constraints has to be sampled within the mini-batch. Since a mini-batch cannot capture the neighbors in the original set well, it makes the learned embeddings sub-optimal. On the contrary, optimizing SoftMax loss, which is a classification loss, with DNN shows a superior performance in certain DML tasks. It inspires us to investigate the formulation of SoftMax. Our analysis shows that SoftMax loss is equivalent to a smoothed triplet loss where each class has a single center. In real-world data, one class can contain several local clusters rather than a single one, e.g., birds of different poses. Therefore, we propose the SoftTriple loss to extend the SoftMax loss with multiple centers for each class. Compared with conventional deep metric learning algorithms, optimizing SoftTriple loss can learn the embeddings without the sampling phase by mildly increasing the size of the last fully connected layer. Experiments on the benchmark fine-grained data sets demonstrate the effectiveness of the proposed loss function. Code is available at https://github.com/idstcv/SoftTriple
Key facts. Cited by 163 papers in the map (data through 7 Oct 2026). First posted on arXiv 11 Sep 2019.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 46; 2022: 46; 2023: 32; 2024: 26; 2025: 8; 2026: 5.
163 papers.
Sort:
By area:
- 2022Hyperbolic Vision Transformers: Combining Improvements in Metric Learningcited by 109
- 2021Training Vision Transformers for Image Retrievalcited by 90
- 2022Are All Losses Created Equal: A Neural Collapse Perspectivecited by 78
- 2021Recall@k Surrogate Loss with Large Batches and Similarity Mixupcited by 49
- 2021von Mises-Fisher Loss: An Exploration of Embedding Geometries for Supervised Learningcited by 42
- 2023Unicom: Universal and Compact Representation Learning for Image Retrievalcited by 36
- 2021Learning Intra-Batch Connections for Deep Metric Learningcited by 34
- 2021UFPMP-Det: Toward Accurate and Efficient Object Detection on Drone Imagerycited by 34
- 2022Non-isotropy Regularization for Proxy-based Deep Metric Learningcited by 33
- 2021VS-Net: Voting with Segmentation for Visual Localizationcited by 29
- 2021Unsupervised Visual Representation Learning by Online Constrained K-Meanscited by 27
- 2023Intra-Modal Proxy Learning for Zero-Shot Visual Categorization with CLIPcited by 27
38 more
- 2022HIER: Metric Learning Beyond Class Labels via Hierarchical Regularizationcited by 26
- 2021Query-by-Example Keyword Spotting system using Multi-head Attention and Softtriple Losscited by 25
- 2023Stable Cluster Discrimination for Deep Clusteringcited by 24
- 2021Noise-resistant Deep Metric Learning with Ranking-based Instance Selectioncited by 23
- 2021It Takes Two to Tango: Mixup for Deep Metric Learningcited by 23
- 2021SphereFace Revived: Unifying Hyperspherical Face Recognitioncited by 23
- 2021Deep Relational Metric Learningcited by 22
- 2022Delving into Semantic Scale Imbalancecited by 22
- 2024Online Zero-Shot Classification with CLIPcited by 22
- 2021Embedding Transfer with Label Relaxation for Improved Metric Learningcited by 21
- 2021Learning with Memory-based Virtual Classes for Deep Metric Learningcited by 21
- 2021Instance Level Affinity-Based Transfer for Unsupervised Domain Adaptationcited by 21
- 2024Multi-Modal Proxy Learning Towards Personalized Visual Multiple Clusteringcited by 21
- 2022Integrating Language Guidance into Vision-based Deep Metric Learningcited by 19
- 2022A Non-isotropic Probabilistic Take on Proxy-based Deep Metric Learningcited by 19
- 2022Satellite Image Based Cross-view Localization for Autonomous Vehiclecited by 19
- 2021Hierarchical Proxy-based Loss for Deep Metric Learningcited by 18
- 2021Proxy Synthesis: Learning with Synthetic Classes for Deep Metric Learningcited by 17
- 2021Characterizing Generalization under Out-Of-Distribution Shifts in Deep Metric Learningcited by 17
- 2022Continual Learning for Visual Search with Backward Consistent Feature Embeddingcited by 17
- 2023Proxy Anchor-based Unsupervised Learning for Continuous Generalized Category Discoverycited by 16
- 2023View Consistent Purification for Accurate Cross-View Localizationcited by 15
- 2021Bag of Tricks and A Strong baseline for Image Copy Detectioncited by 14
- 2023Generalizing and Decoupling Neural Collapse via Hyperspherical Uniformity Gapcited by 14
- 2022Attributable Visual Similarity Learningcited by 12
- 2021Dynamic Metric Learning: Towards a Scalable Metric Space to Accommodate Multiple Semantic Scalescited by 11
- 2022Is Fairness Only Metric Deep? Evaluating and Addressing Subgroup Gaps in Deep Metric Learningcited by 11
- 2022Semantic Data Augmentation based Distance Metric Learning for Domain Generalizationcited by 11
- 2025Interactive Medical Image Analysis with Concept-based Similarity Reasoningcited by 11
- 2024Understanding Hyperbolic Metric Learning through Hard Negative Samplingcited by 10
- 2022Offline-Online Associated Camera-Aware Proxies for Unsupervised Person Re-identificationcited by 9
- 2022Spectral, Probabilistic, and Deep Metric Learning: Tutorial and Surveycited by 9
- 2024Towards Improved Proxy-based Deep Metric Learning via Data-Augmented Domain Adaptationcited by 9
- 2024Improved Diversity-Promoting Collaborative Metric Learning for Recommendationcited by 9
- 2021Dual-Tuning: Joint Prototype Transfer and Structure Regularization for Compatible Feature Learningcited by 8
- 2021Adaptive Hierarchical Similarity Metric Learning with Noisy Labelscited by 8
- 2022Contrastive Bayesian Analysis for Deep Metric Learningcited by 8
- 2022Few-shot Metric Learning: Online Adaptation of Embedding for Retrievalcited by 8
50 most cited of 163 All 163 (JSON)
- 2026Contrastive Learning for Authorship Verification23 Sep 2026
- 2026Structuring occupational accident narratives for cross-sector safety analysis: Transferability of accident-process role classification18 Sep 2026
- 2026Absorbing Gradient Conflicts: Modeling Semantic Variance via Kent Distributions for Cross-Modal Hashing25 Aug 2026
- 2026CouCE: A Unified Causal Framework for Debiased Deep Metric Learning29 Jun 2026
- 2026Beyond Seen Bounds: Class-Centric Polarization for Single-Domain Generalized Deep Metric Learning14 Jan 2026
- 2025Instance-Level Generation for Representation Learning10 Oct 2025
- 2025Combined Hyperbolic and Euclidean Soft Triple Loss Beyond the Single Space Deep Metric Learning7 Oct 2025
- 2025Conditional Pseudo-Supervised Contrast for Data-Free Knowledge Distillation3 Oct 2025
- 2025NM-Hebb: Coupling Local Hebbian Plasticity with Metric Learning for More Accurate and Interpretable CNNs27 Aug 2025
- 2025All You Need to Know About Training Image Retrieval Models17 Mar 2025
- 2025Interactive Medical Image Analysis with Concept-based Similarity Reasoning10 Mar 2025
- 2025Enhancing Sample Utilization in Noise-Robust Deep Metric Learning With Subgroup-Based Positive-Pair Selection19 Jan 2025
38 more
- 2025Towards Adversarially Robust Deep Metric Learning2 Jan 2025
- 2024Integrating Deep Metric Learning with Coreset for Active Learning in 3D Segmentation24 Nov 2024
- 2024Globally Correlation-Aware Hard Negative Generation20 Nov 2024
- 2024GSSF: Generalized Structural Sparse Function for Deep Cross-modal Metric Learning20 Oct 2024
- 2024PReP: Efficient context-based shape retrieval for missing parts18 Oct 2024
- 2024ViFi-ReID: A Two-Stream Vision-WiFi Multimodal Approach for Person Re-identification13 Oct 2024
- 2024DAAL: Density-Aware Adaptive Line Margin Loss for Multi-Modal Deep Metric Learning7 Oct 2024
- 2024SimO Loss: Anchor-Free Contrastive Loss for Fine-Grained Supervised Contrastive Learning7 Oct 2024
- 2024SGC-VQGAN: Towards Complex Scene Representation via Semantic Guided Clustering Codebook9 Sep 2024
- 2024Improved Diversity-Promoting Collaborative Metric Learning for Recommendation2 Sep 2024
- 2024Realigned Softmax Warping for Deep Metric Learning28 Aug 2024
- 2024Query-by-Example Keyword Spotting Using Spectral-Temporal Graph Attentive Pooling and Multi-Task Learning27 Aug 2024
- 2024Explaining Caption-Image Interactions in CLIP Models with Second-Order Attributions26 Aug 2024
- 2024Extremely Fine-Grained Visual Classification over Resembling Glyphs in the Wild25 Aug 2024
- 2024SeA: Semantic Adversarial Augmentation for Last Layer Features from Unsupervised Representation Learning23 Aug 2024
- 2024Online Zero-Shot Classification with CLIP23 Aug 2024
- 2024Time-Frequency Analysis of Variable-Length WiFi CSI Signals for Person Re-Identification12 Jul 2024
- 2024Rethinking Speaker Embeddings for Speech Generation: Sub-Center Modeling for Capturing Intra-Speaker Diversity5 Jul 2024
- 2024Anti-Collapse Loss for Deep Metric Learning Based on Coding Rate Metric3 Jul 2024
- 2024Rethinking Open-World Semi-Supervised Learning: Distribution Mismatch and Inductive Inference31 May 2024
- 2024Potential Field Based Deep Metric Learning28 May 2024
- 2024Multi-Modal Proxy Learning Towards Personalized Visual Multiple Clustering24 Apr 2024
- 2024Understanding Hyperbolic Metric Learning through Hard Negative Sampling23 Apr 2024
- 2024Piecewise-Linear Manifolds for Deep Metric Learning22 Mar 2024
- 2024Test-time Similarity Modification for Person Re-identification toward Temporal Distribution Shift21 Mar 2024
- 2024Generating Multi-Center Classifier via Conditional Gaussian Distribution29 Jan 2024
- 2024Towards Improved Proxy-based Deep Metric Learning via Data-Augmented Domain Adaptation1 Jan 2024
- 2023Prototype-Guided Text-based Person Search based on Rich Chinese Descriptions22 Dec 2023
- 2023Transformer-empowered Multi-modal Item Embedding for Enhanced Image Search in E-Commerce29 Nov 2023
- 2023Stable Cluster Discrimination for Deep Clustering24 Nov 2023
- 2023Shadow loss: Memory-linear deep metric learning for efficient training23 Nov 2023
- 2023ProcSim: Proxy-based Confidence for Robust Similarity Learning1 Nov 2023
- 2023Intra-Modal Proxy Learning for Zero-Shot Visual Categorization with CLIP30 Oct 2023
- 2023Pairwise Similarity Learning is SimPLE13 Oct 2023
- 2023Learning Unified Distance Metric Across Diverse Data Distributions with Parameter-Efficient Transfer Learning16 Sep 2023
- 2023Introspective Deep Metric Learning11 Sep 2023
- 2023CoNe: Contrast Your Neighbours for Supervised Image Classification21 Aug 2023
- 2023Deep Metric Loss for Multimodal Learning21 Aug 2023
50 newest of 163 All 163 (JSON)
- 2023Intra-Modal Proxy Learning for Zero-Shot Visual Categorization with CLIPcited by 27
- 2024Online Zero-Shot Classification with CLIPcited by 22
- 2024Online Zero-Shot Classification with CLIP23 Aug 2024
- 2023Intra-Modal Proxy Learning for Zero-Shot Visual Categorization with CLIP30 Oct 2023
- 2022Hyperbolic Vision Transformers: Combining Improvements in Metric Learningcited by 109
- 2021Training Vision Transformers for Image Retrievalcited by 90
- 2022Are All Losses Created Equal: A Neural Collapse Perspectivecited by 78
- 2021Recall@k Surrogate Loss with Large Batches and Similarity Mixupcited by 49
- 2021von Mises-Fisher Loss: An Exploration of Embedding Geometries for Supervised Learningcited by 42
- 2023Unicom: Universal and Compact Representation Learning for Image Retrievalcited by 36
- 2021Learning Intra-Batch Connections for Deep Metric Learningcited by 34
- 2021UFPMP-Det: Toward Accurate and Efficient Object Detection on Drone Imagerycited by 34
- 2022Non-isotropy Regularization for Proxy-based Deep Metric Learningcited by 33
- 2021VS-Net: Voting with Segmentation for Visual Localizationcited by 29
- 2021Unsupervised Visual Representation Learning by Online Constrained K-Meanscited by 27
- 2022HIER: Metric Learning Beyond Class Labels via Hierarchical Regularizationcited by 26
12 most cited of 160 All 160 (JSON)
- 2026Contrastive Learning for Authorship Verification23 Sep 2026
- 2026Structuring occupational accident narratives for cross-sector safety analysis: Transferability of accident-process role classification18 Sep 2026
- 2026Absorbing Gradient Conflicts: Modeling Semantic Variance via Kent Distributions for Cross-Modal Hashing25 Aug 2026
- 2026Beyond Seen Bounds: Class-Centric Polarization for Single-Domain Generalized Deep Metric Learning14 Jan 2026
- 2025Instance-Level Generation for Representation Learning10 Oct 2025
- 2025Combined Hyperbolic and Euclidean Soft Triple Loss Beyond the Single Space Deep Metric Learning7 Oct 2025
- 2025Conditional Pseudo-Supervised Contrast for Data-Free Knowledge Distillation3 Oct 2025
- 2025NM-Hebb: Coupling Local Hebbian Plasticity with Metric Learning for More Accurate and Interpretable CNNs27 Aug 2025
- 2025All You Need to Know About Training Image Retrieval Models17 Mar 2025
- 2025Interactive Medical Image Analysis with Concept-based Similarity Reasoning10 Mar 2025
- 2025Enhancing Sample Utilization in Noise-Robust Deep Metric Learning With Subgroup-Based Positive-Pair Selection19 Jan 2025
- 2025Towards Adversarially Robust Deep Metric Learning2 Jan 2025
12 newest of 160 All 160 (JSON)