A Theoretically Sound Upper Bound on the Triplet Loss for Improving the Efficiency of Deep Distance Metric Learning
Not on the map. Why?
Abstract (arXiv)
We propose a method that substantially improves the efficiency of deep distance metric learning based on the optimization of the triplet loss function. One epoch of such training process based on a naive optimization of the triplet loss function has a run-time complexity O(N^3), where N is the number of training samples. Such optimization scales poorly, and the most common approach proposed to address this high complexity issue is based on sub-sampling the set of triplets needed for the training process. Another approach explored in the field relies on an ad-hoc linearization (in terms of N) of the triplet loss that introduces class centroids, which must be optimized using the whole training set for each mini-batch - this means that a naive implementation of this approach has run-time complexity O(N^2). This complexity issue is usually mitigated with poor, but computationally cheap, approximate centroid optimization methods. In this paper, we first propose a solid theory on the linearization of the triplet loss with the use of class centroids, where the main conclusion is that our new linear loss represents a tight upper-bound to the triplet loss. Furthermore, based on the theory above, we propose a training algorithm that no longer requires the centroid optimization step, which means that our approach is the first in the field with a guaranteed linear run-time complexity. We show that the training of deep distance metric learning methods using the proposed upper-bound is substantially faster than triplet-based methods, while producing competitive retrieval accuracy results on benchmark datasets (CUB-200-2011 and CAR196).
Key facts. Cited by 25 papers in the map (data through 7 Oct 2026). First posted on arXiv 18 Apr 2019.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 6; 2022: 6; 2023: 3; 2024: 5; 2025: 3; 2026: 2.
25 papers.
Sort:
- 2021On the Unreasonable Effectiveness of Centroids in Image Retrievalcited by 45
- 2021Zero-Shot Learning on 3D Point Cloud Objects and Beyondcited by 38
- 2024Bayesian Learning-driven Prototypical Contrastive Loss for Class-Incremental Learningcited by 13
- 2024Few-Shot Learning with Uncertainty-based Quadruplet Selection for Interference Classification in GNSS Datacited by 12
- 2022N-pad : Neighboring Pixel-based Industrial Anomaly Detectioncited by 11
- 2023Introspective Deep Metric Learningcited by 7
- 2022Auxiliary Cross-Modal Representation Learning with Triplet Loss Functions for Online Handwriting Recognitioncited by 6
- 2022Sports Re-ID: Improving Re-Identification Of Players In Broadcast Videos Of Team Sportscited by 6
- 2025Frequency-Semantic Enhanced Variational Autoencoder for Zero-Shot Skeleton-based Action Recognitioncited by 6
- 2021Magnification Generalization for Histopathology Image Embeddingcited by 5
- 2021NPT-Loss: A Metric Loss with Implicit Mining for Face Recognitioncited by 4
- 2021Atlas Based Representation and Metric Learning on Manifoldscited by 3
13 more
- 2022Deep Metric Learning with Chance Constraintscited by 3
- 2022Deep Simplex Classifier for Maximizing the Margin in Both Euclidean and Angular Spacescited by 2
- 2025Graph Your Own Promptcited by 2
- 2025Reshaping the Forward-Forward Algorithm with a Similarity-Based Objectivecited by 1
- 2021Improving Image co-segmentation via Deep Metric Learningcited by 0
- 2022Introspective Deep Metric Learning for Image Retrievalcited by 0
- 2023Representation Learning for Tablet and Paper Domain Adaptation in Favor of Online Handwriting Recognitioncited by 0
- 2023Shadow loss: Memory-linear deep metric learning for efficient trainingcited by 0
- 2024I2CKD : Intra- and Inter-Class Knowledge Distillation for Semantic Segmentationcited by 0
- 2024Context-Aware Siamese Networks for Efficient Emotion Recognition in Conversationcited by 0
- 2024Semantic-Enhanced Relational Metric Learning for Recommender Systemscited by 0
- 2026Maintaining Difficulty: A Margin Scheduler for Triplet Loss in Siamese Networks Trainingcited by 0
- 2026SeCo-SBIR: Semantically Consistent Prompt Learning for Zero-Shot Sketch-Based Image Retrievalcited by 0
- 2026SeCo-SBIR: Semantically Consistent Prompt Learning for Zero-Shot Sketch-Based Image Retrieval4 Aug 2026
- 2026Maintaining Difficulty: A Margin Scheduler for Triplet Loss in Siamese Networks Training27 Mar 2026
- 2025Graph Your Own Prompt27 Sep 2025
- 2025Reshaping the Forward-Forward Algorithm with a Similarity-Based Objective29 Aug 2025
- 2025Frequency-Semantic Enhanced Variational Autoencoder for Zero-Shot Skeleton-based Action Recognition27 Jun 2025
- 2024Semantic-Enhanced Relational Metric Learning for Recommender Systems7 Jun 2024
- 2024Bayesian Learning-driven Prototypical Contrastive Loss for Class-Incremental Learning17 May 2024
- 2024Context-Aware Siamese Networks for Efficient Emotion Recognition in Conversation17 Apr 2024
- 2024I2CKD : Intra- and Inter-Class Knowledge Distillation for Semantic Segmentation27 Mar 2024
- 2024Few-Shot Learning with Uncertainty-based Quadruplet Selection for Interference Classification in GNSS Data9 Feb 2024
- 2023Shadow loss: Memory-linear deep metric learning for efficient training23 Nov 2023
- 2023Introspective Deep Metric Learning11 Sep 2023
13 more
- 2023Representation Learning for Tablet and Paper Domain Adaptation in Favor of Online Handwriting Recognition16 Jan 2023
- 2022Deep Simplex Classifier for Maximizing the Margin in Both Euclidean and Angular Spaces22 Dec 2022
- 2022N-pad : Neighboring Pixel-based Industrial Anomaly Detection17 Oct 2022
- 2022Deep Metric Learning with Chance Constraints19 Sep 2022
- 2022Sports Re-ID: Improving Re-Identification Of Players In Broadcast Videos Of Team Sports6 Jun 2022
- 2022Introspective Deep Metric Learning for Image Retrieval9 May 2022
- 2022Auxiliary Cross-Modal Representation Learning with Triplet Loss Functions for Online Handwriting Recognition16 Feb 2022
- 2021Atlas Based Representation and Metric Learning on Manifolds13 Jun 2021
- 2021On the Unreasonable Effectiveness of Centroids in Image Retrieval28 Apr 2021
- 2021Zero-Shot Learning on 3D Point Cloud Objects and Beyond11 Apr 2021
- 2021Improving Image co-segmentation via Deep Metric Learning19 Mar 2021
- 2021NPT-Loss: A Metric Loss with Implicit Mining for Face Recognition5 Mar 2021
- 2021Magnification Generalization for Histopathology Image Embedding18 Jan 2021
- 2021On the Unreasonable Effectiveness of Centroids in Image Retrievalcited by 45
- 2021Zero-Shot Learning on 3D Point Cloud Objects and Beyondcited by 38
- 2024Bayesian Learning-driven Prototypical Contrastive Loss for Class-Incremental Learningcited by 13
- 2024Few-Shot Learning with Uncertainty-based Quadruplet Selection for Interference Classification in GNSS Datacited by 12
- 2022N-pad : Neighboring Pixel-based Industrial Anomaly Detectioncited by 11
- 2023Introspective Deep Metric Learningcited by 7
- 2022Auxiliary Cross-Modal Representation Learning with Triplet Loss Functions for Online Handwriting Recognitioncited by 6
- 2022Sports Re-ID: Improving Re-Identification Of Players In Broadcast Videos Of Team Sportscited by 6
- 2025Frequency-Semantic Enhanced Variational Autoencoder for Zero-Shot Skeleton-based Action Recognitioncited by 6
- 2021Magnification Generalization for Histopathology Image Embeddingcited by 5
- 2021NPT-Loss: A Metric Loss with Implicit Mining for Face Recognitioncited by 4
- 2021Atlas Based Representation and Metric Learning on Manifoldscited by 3
12 most cited of 25 All 25 (JSON)
- 2026SeCo-SBIR: Semantically Consistent Prompt Learning for Zero-Shot Sketch-Based Image Retrieval4 Aug 2026
- 2026Maintaining Difficulty: A Margin Scheduler for Triplet Loss in Siamese Networks Training27 Mar 2026
- 2025Graph Your Own Prompt27 Sep 2025
- 2025Reshaping the Forward-Forward Algorithm with a Similarity-Based Objective29 Aug 2025
- 2025Frequency-Semantic Enhanced Variational Autoencoder for Zero-Shot Skeleton-based Action Recognition27 Jun 2025
- 2024Semantic-Enhanced Relational Metric Learning for Recommender Systems7 Jun 2024
- 2024Bayesian Learning-driven Prototypical Contrastive Loss for Class-Incremental Learning17 May 2024
- 2024Context-Aware Siamese Networks for Efficient Emotion Recognition in Conversation17 Apr 2024
- 2024I2CKD : Intra- and Inter-Class Knowledge Distillation for Semantic Segmentation27 Mar 2024
- 2024Few-Shot Learning with Uncertainty-based Quadruplet Selection for Interference Classification in GNSS Data9 Feb 2024
- 2023Shadow loss: Memory-linear deep metric learning for efficient training23 Nov 2023
- 2023Introspective Deep Metric Learning11 Sep 2023
12 newest of 25 All 25 (JSON)