Skip to main content
QUICK REVIEW

[Paper Review] Classification is a Strong Baseline for Deep Metric Learning

Andrew Zhai, Haoyu Wu|arXiv (Cornell University)|Nov 30, 2018
Advanced Image and Video Retrieval TechniquesComputer Science28 references37 citations
TL;DR

This paper demonstrates that normalized softmax loss with large-scale classification is a strong baseline for deep metric learning across image retrieval tasks. By using high-dimensional embeddings and binarization, the method achieves state-of-the-art performance with the same memory footprint as 64D float embeddings, outperforming prior triplet-based and classification-based approaches on CARS-196, CUB-200-2011, Stanford Online Products, and In-Shop datasets.

ABSTRACT

Deep metric learning aims to learn a function mapping image pixels to embedding feature vectors that model the similarity between images. Two major applications of metric learning are content-based image retrieval and face verification. For the retrieval tasks, the majority of current state-of-the-art (SOTA) approaches are triplet-based non-parametric training. For the face verification tasks, however, recent SOTA approaches have adopted classification-based parametric training. In this paper, we look into the effectiveness of classification based approaches on image retrieval datasets. We evaluate on several standard retrieval datasets such as CAR-196, CUB-200-2011, Stanford Online Product, and In-Shop datasets for image retrieval and clustering, and establish that our classification-based approach is competitive across different feature dimensions and base feature networks. We further provide insights into the performance effects of subsampling classes for scalable classification-based training, and the effects of binarization, enabling efficient storage and computation for practical applications.

Motivation & Objective

  • To evaluate whether classification-based training, previously dominant in face verification, generalizes effectively to open-set image retrieval tasks.
  • To investigate the scalability of classification-based metric learning under extreme class counts through subsampling strategies.
  • To explore the performance trade-offs of binarizing high-dimensional embeddings for efficient storage and inference without sacrificing accuracy.
  • To establish a practical, scalable, and high-performing baseline for deep metric learning that outperforms existing triplet-based and classification-based methods.

Proposed method

  • Training deep metric models using normalized softmax loss with large-scale classification, where each class is represented by a learnable proxy embedding.
  • Employing high-dimensional embedding spaces (up to 2048D) to improve feature discrimination and generalization across diverse datasets.
  • Applying subsampling of classes during training to manage computational cost and improve scalability for large-scale datasets.
  • Binarizing the final float embeddings by thresholding at zero to enable efficient storage and computation while preserving retrieval performance.
  • Using ResNet-50, GoogleNet, and BNInception as base networks to evaluate generalization across different architectures.
  • Optimizing the training process with label smoothing and normalization to stabilize learning and improve generalization in high-dimensional space.

Experimental results

Research questions

  • RQ1Can classification-based training with normalized softmax loss achieve state-of-the-art performance on general image retrieval benchmarks, not just face verification?
  • RQ2How does subsampling classes affect the performance of classification-based metric learning in large-scale settings?
  • RQ3To what extent can binarized high-dimensional embeddings maintain retrieval accuracy while matching the memory footprint of 64D float embeddings?
  • RQ4Does a high-dimensional classification-based approach outperform existing triplet-based SOTA methods across multiple standard datasets?

Key findings

  • The proposed normalized softmax loss with 2048D embeddings achieves 98.1% Recall@K on CARS-196 and 91.8% on CUB-200-2011, outperforming prior SOTA methods including LMCL and A-BIER.
  • The 2048-bit binary embedding, obtained by thresholding the 2048D float embedding at zero, achieves 98.0% Recall@K on CARS-196 and 91.0% on CUB-200-2011, matching the memory footprint of 64D float embeddings while surpassing them in performance.
  • Subsampling classes during training maintains strong performance, enabling scalable training on datasets with very large numbers of classes.
  • The method outperforms multiple SOTA approaches, including N-pair loss, Proxy-NCA, and Margin loss, across all evaluated datasets and embedding dimensions.
  • The normalized softmax baseline with high-dimensional embeddings consistently outperforms both triplet-based and other classification-based methods, establishing it as a strong general-purpose baseline.
  • Binarization does not degrade performance when applied to high-dimensional embeddings, enabling efficient deployment with minimal accuracy loss.

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.