Skip to main content
QUICK REVIEW

[Paper Review] Unbiased Evaluation of Deep Metric Learning Algorithms

István Fehérvári, Avinash Ravichandran|arXiv (Cornell University)|Nov 28, 2019
Domain Adaptation and Few-Shot LearningComputer Science35 references8 citations
TL;DR

This paper presents a fair, unbiased evaluation of 12 state-of-the-art deep metric learning (DML) algorithms under identical training conditions, including shared hyperparameters, backbone networks, and dataset splits. It reveals that older methods like margin loss and proxy-based losses outperform newer ones under equal settings, challenging prior assumptions about performance rankings and establishing new SOTA baselines on CUB200, CAR196, and Stanford Online Products datasets with open-sourced code and tuned hyperparameters.

ABSTRACT

Deep metric learning (DML) is a popular approach for images retrieval, solving verification (same or not) problems and addressing open set classification. Arguably, the most common DML approach is with triplet loss, despite significant advances in the area of DML. Triplet loss suffers from several issues such as collapse of the embeddings, high sensitivity to sampling schemes and more importantly a lack of performance when compared to more modern methods. We attribute this adoption to a lack of fair comparisons between various methods and the difficulty in adopting them for novel problem statements. In this paper, we perform an unbiased comparison of the most popular DML baseline methods under same conditions and more importantly, not obfuscating any hyper parameter tuning or adjustment needed to favor a particular method. We find, that under equal conditions several older methods perform significantly better than previously believed. In fact, our unified implementation of 12 recently introduced DML algorithms achieve state-of-the art performance on CUB200, CAR196, and Stanford Online products datasets which establishes a new set of baselines for future DML research. The codebase and all tuned hyperparameters will be open-sourced for reproducibility and to serve as a source of benchmark.

Motivation & Objective

  • To address the lack of fair, unbiased comparisons in deep metric learning (DML) research due to inconsistent hyperparameter tuning, backbone networks, and evaluation conditions.
  • To evaluate the true performance ranking of prominent DML methods under identical training configurations, including shared feature extractors, embedding sizes, and batch sizes.
  • To identify previously unreported hyperparameter tricks and configuration sensitivities that significantly impact model performance.
  • To establish a new, reliable benchmark for future DML research by releasing a unified codebase and tuned hyperparameters for 12 state-of-the-art algorithms.

Proposed method

  • A unified implementation of 12 recent DML algorithms was developed in MXNet to ensure consistent training and evaluation across all methods.
  • All models were trained and evaluated on three standard datasets—CUB200, CAR196, and Stanford Online Products—using the same backbone (Inception-BN and ResNet50), embedding size, and batch size.
  • Hyperparameters were tuned independently for each method without bias toward any algorithm, avoiding the use of method-specific optimizations that favor certain approaches.
  • The study systematically varied key training factors: embedding size (16–256), batch size (2–128), and backbone architecture (Inception-BN vs. ResNet50), while keeping all other settings constant.
  • Sampling strategies were standardized to the default recommended by each method, with minimal variation tested to isolate the impact of core components.
  • Performance was measured using Recall@K and Normalized Mutual Information (NMI), with results reported across all datasets and configurations.

Experimental results

Research questions

  • RQ1How do the performance rankings of modern DML algorithms change when evaluated under identical training conditions and hyperparameter settings?
  • RQ2To what extent do embedding size, batch size, and backbone network choice affect the performance of different DML loss functions?
  • RQ3Why do some recently proposed DML methods underperform compared to older methods when fair comparisons are made?
  • RQ4What hidden hyperparameter configurations or training tricks are essential for achieving state-of-the-art performance in DML, and why are they often omitted in original papers?
  • RQ5Can proxy-based and margin-based losses outperform triplet-based approaches when all methods are trained under the same conditions?

Key findings

  • Under identical training conditions, triplet loss with semi-hard mining performed the worst across all datasets, contradicting its widespread adoption.
  • Methods such as margin loss and proxy-softmax achieved state-of-the-art performance on CUB200, CAR196, and Stanford Online Products, outperforming newer algorithms.
  • On CUB200, proxy-softmax achieved 89.93% Recall@1 with Inception-BN, while proxy-NCA reached 88.93%, both setting new SOTA baselines.
  • The choice of backbone significantly impacted performance: ResNet50 degraded performance for most methods except margin loss, which improved from 51.3% to 59.6% Recall@1.
  • Larger batch sizes improved performance for all loss functions except proxy-softmax, which performed well even at small batch sizes due to its intrinsic sampling mechanism.
  • Embedding size had a non-trivial effect—larger sizes improved performance for hinge-based losses, but not for all methods, indicating a complex interplay between loss type and representation capacity.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.