mlsanityData to 7 Oct 2026

A Theoretically Sound Upper Bound on the Triplet Loss for Improving the Efficiency of Deep Distance Metric Learning

arXiv 1904.08720 ↗First posted 18 Apr 2019cs.CVcited by 25

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

Cited by year (2026 to 7 Oct)

Citing papers per year: 2021: 6; 2022: 6; 2023: 3; 2024: 5; 2025: 3; 2026: 2.

25 papers.

Sort:

  1. 2021On the Unreasonable Effectiveness of Centroids in Image Retrievalcited by 45
  2. 2021Zero-Shot Learning on 3D Point Cloud Objects and Beyondcited by 38
  3. 2024Bayesian Learning-driven Prototypical Contrastive Loss for Class-Incremental Learningcited by 13
  4. 2024Few-Shot Learning with Uncertainty-based Quadruplet Selection for Interference Classification in GNSS Datacited by 12
  5. 2022N-pad : Neighboring Pixel-based Industrial Anomaly Detectioncited by 11
  6. 2023Introspective Deep Metric Learningcited by 7
  7. 2022Auxiliary Cross-Modal Representation Learning with Triplet Loss Functions for Online Handwriting Recognitioncited by 6
  8. 2022Sports Re-ID: Improving Re-Identification Of Players In Broadcast Videos Of Team Sportscited by 6
  9. 2025Frequency-Semantic Enhanced Variational Autoencoder for Zero-Shot Skeleton-based Action Recognitioncited by 6
  10. 2021Magnification Generalization for Histopathology Image Embeddingcited by 5
  11. 2021NPT-Loss: A Metric Loss with Implicit Mining for Face Recognitioncited by 4
  12. 2021Atlas Based Representation and Metric Learning on Manifoldscited by 3
13 more
  1. 2022Deep Metric Learning with Chance Constraintscited by 3
  2. 2022Deep Simplex Classifier for Maximizing the Margin in Both Euclidean and Angular Spacescited by 2
  3. 2025Graph Your Own Promptcited by 2
  4. 2025Reshaping the Forward-Forward Algorithm with a Similarity-Based Objectivecited by 1
  5. 2021Improving Image co-segmentation via Deep Metric Learningcited by 0
  6. 2022Introspective Deep Metric Learning for Image Retrievalcited by 0
  7. 2023Representation Learning for Tablet and Paper Domain Adaptation in Favor of Online Handwriting Recognitioncited by 0
  8. 2023Shadow loss: Memory-linear deep metric learning for efficient trainingcited by 0
  9. 2024I2CKD : Intra- and Inter-Class Knowledge Distillation for Semantic Segmentationcited by 0
  10. 2024Context-Aware Siamese Networks for Efficient Emotion Recognition in Conversationcited by 0
  11. 2024Semantic-Enhanced Relational Metric Learning for Recommender Systemscited by 0
  12. 2026Maintaining Difficulty: A Margin Scheduler for Triplet Loss in Siamese Networks Trainingcited by 0
  13. 2026SeCo-SBIR: Semantically Consistent Prompt Learning for Zero-Shot Sketch-Based Image Retrievalcited by 0