Skip to main content
QUICK REVIEW

[Paper Review] Divide and Conquer the Embedding Space for Metric Learning

Artsiom Sanakoyeu, Vadim Tschernezki|arXiv (Cornell University)|Jun 14, 2019
Face and Expression RecognitionComputer Science56 references10 citations
TL;DR

This paper proposes a divide-and-conquer approach for deep metric learning that splits both the data and the embedding space into K non-overlapping subspaces, training K separate distance metrics on each. By reducing per-subproblem complexity and enabling natural hard negative mining, the method achieves state-of-the-art performance on retrieval, clustering, and re-identification tasks across five benchmark datasets.

ABSTRACT

Learning the embedding space, where semantically similar objects are located close together and dissimilar objects far apart, is a cornerstone of many computer vision applications. Existing approaches usually learn a single metric in the embedding space for all available data points, which may have a very complex non-uniform distribution with different notions of similarity between objects, e.g. appearance, shape, color or semantic meaning. Approaches for learning a single distance metric often struggle to encode all different types of relationships and do not generalize well. In this work, we propose a novel easy-to-implement divide and conquer approach for deep metric learning, which significantly improves the state-of-the-art performance of metric learning. Our approach utilizes the embedding space more efficiently by jointly splitting the embedding space and data into $K$ smaller sub-problems. It divides both, the data and the embedding space into $K$ subsets and learns $K$ separate distance metrics in the non-overlapping subspaces of the embedding space, defined by groups of neurons in the embedding layer of the neural network. The proposed approach increases the convergence speed and improves generalization since the complexity of each sub-problem is reduced compared to the original one. We show that our approach outperforms the state-of-the-art by a large margin in retrieval, clustering and re-identification tasks on CUB200-2011, CARS196, Stanford Online Products, In-shop Clothes and PKU VehicleID datasets.

Motivation & Objective

  • Address the challenge of learning a single, uniform metric in high-complexity, non-uniformly distributed embedding spaces.
  • Overcome limitations of existing metric learning methods that struggle with conflicting similarity types (e.g., appearance, shape, semantics) in complex data distributions.
  • Improve generalization and convergence speed by decomposing the global metric learning problem into smaller, localized sub-problems.
  • Enable efficient, drop-in replacement of standard linear embedding layers in existing metric learning frameworks without loss function dependency.
  • Demonstrate consistent performance gains across diverse benchmarks including fine-grained retrieval, re-identification, and clustering tasks.

Proposed method

  • Cluster data points in the embedding space into K groups using K-means clustering, based on learned feature representations.
  • Partition the final embedding layer of the neural network into K non-overlapping subspaces, each assigned to one cluster.
  • Train K independent learners, each optimized only on data from its assigned cluster and using its dedicated subspace.
  • Use a shared backbone network for feature extraction, with each learner applying a separate linear projection to its subspace.
  • Jointly train all K learners end-to-end, with gradients backpropagated through the shared features and individual subspaces.
  • Apply K-means clustering every T epochs to adaptively reassign clusters as the embedding space evolves during training.

Experimental results

Research questions

  • RQ1Can splitting the embedding space and data into K sub-problems improve metric learning performance compared to learning a single global metric?
  • RQ2Does joint clustering of data and subspace partitioning lead to better generalization and faster convergence?
  • RQ3Can the proposed method naturally identify hard negatives without explicit mining procedures?
  • RQ4How does the choice of clustering strategy (e.g., K-means vs. random vs. ground-truth labels) affect performance?
  • RQ5To what extent does the method generalize across diverse metric learning tasks and datasets?

Key findings

  • The proposed method achieves new state-of-the-art performance on five benchmark datasets: CUB200-2011, CARS196, Stanford Online Products, In-shop Clothes, and PKU VehicleID.
  • On Stanford Online Products with Margin loss, the method achieves 75.9% Recall@1, outperforming the baseline (72.7%) and other ablation variants.
  • Using K=8 learners yields the best performance, with Recall@1 increasing from 72.7% (baseline) to 75.9% on Stanford Online Products.
  • K-means clustering in the embedding space significantly outperforms random data partitioning (73.2% Recall@1) and ground-truth label grouping (74.5% Recall@1).
  • The method reduces training complexity per sub-problem, enabling faster convergence and better local optima compared to single-metric learning.
  • The approach naturally identifies hard negatives: intra-cluster negative pairs have lower average distances than inter-cluster pairs, increasing training signal strength.

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.