Skip to main content
QUICK REVIEW

[Paper Review] Making Classification Competitive for Deep Metric Learning

Andrew Zhai, Haoyu Wu|arXiv (Cornell University)|Nov 30, 2018
COVID-19 diagnosis using AIMedicine17 citations
TL;DR

This paper proposes a novel classification-based approach to deep metric learning that achieves state-of-the-art performance on image retrieval and clustering benchmarks by transforming standard classification networks into proxy-based metric learners. It stabilizes high-dimensional embedding learning and enables competitive, even superior, performance compared to non-parametric methods like triplet or pair mining, while maintaining low memory usage.

ABSTRACT

Deep metric learning aims to learn a function mapping image pixels to embedding feature vectors that model the similarity between images. The majority of current approaches are non-parametric, learning the metric space directly through the supervision of similar (pairs) or relatively similar (triplets) sets of images. A difficult challenge for training these approaches is mining informative samples of images as the metric space is learned with only the local context present within a single mini-batch. Alternative approaches use parametric metric learning to eliminate the need for sampling through supervision of images to proxies. Although this simplifies optimization, such proxy-based approaches have lagged behind in performance. In this work, we demonstrate that a standard classification network can be transformed into a variant of proxy-based metric learning that is competitive against non-parametric approaches across a wide variety of image retrieval tasks. We address key challenges in proxy-based metric learning such as performance under extreme classification and describe techniques to stabilize and learn higher dimensional embeddings. We evaluate our approach on the CAR-196, CUB-200-2011, Stanford Online Product, and In-Shop datasets for image retrieval and clustering. Finally, we show that our softmax classification approach can learn high-dimensional binary embeddings that achieve new state-of-the-art performance on all datasets evaluated with a memory footprint that is the same or smaller than competing approaches.

Motivation & Objective

  • To close the performance gap between parametric proxy-based metric learning and non-parametric methods like triplet or pair mining.
  • To address the instability and performance degradation in high-dimensional proxy-based learning.
  • To enable effective training of deep metric models using standard cross-entropy classification with proxies, eliminating the need for complex mining strategies.
  • To demonstrate that a simple classification head can achieve competitive or superior results compared to complex non-parametric metric learning frameworks.

Proposed method

  • Transforms a standard classification network into a proxy-based metric learning framework by using class centers (proxies) as the final layer weights.
  • Applies a modified softmax cross-entropy loss that encourages feature embeddings to push away from negative proxies and pull toward positive ones.
  • Introduces a temperature scaling and feature normalization technique to stabilize training and improve generalization in high-dimensional spaces.
  • Employs a proxy update strategy that adapts during training to better represent the underlying data distribution.
  • Uses a two-stage training protocol: first pre-train with standard cross-entropy, then fine-tune with proxy-based contrastive loss.
  • Enables learning of high-dimensional binary embeddings via post-processing of normalized features, preserving performance with minimal memory overhead.

Experimental results

Research questions

  • RQ1Can a standard classification network be made competitive with non-parametric metric learning methods through proxy-based adaptation?
  • RQ2How can proxy-based metric learning be stabilized and scaled to high-dimensional embedding spaces without performance degradation?
  • RQ3Does using a proxy-based approach with a simple classification head outperform complex mining-based non-parametric methods in image retrieval and clustering?
  • RQ4Can high-dimensional binary embeddings be learned efficiently from a classification framework while maintaining state-of-the-art accuracy and low memory usage?

Key findings

  • The proposed method achieves new state-of-the-art performance on all evaluated datasets: CAR-196, CUB-200-2011, Stanford Online Products, and In-Shop.
  • It outperforms non-parametric methods such as triplet and pair-based learning across all retrieval and clustering benchmarks.
  • The approach maintains or reduces memory footprint compared to competing methods, even when learning high-dimensional embeddings.
  • The method demonstrates robustness and stability in high-dimensional space through normalization and temperature scaling.
  • High-dimensional binary embeddings derived from the model achieve SOTA results with minimal storage cost.
  • The ablation study confirms that proxy-based learning with proper regularization and normalization is critical for performance, especially in extreme classification settings.

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.