Skip to main content
QUICK REVIEW

[Paper Review] Large Scale Distributed Distance Metric Learning

Pengtao Xie, Eric P. Xing|arXiv (Cornell University)|Dec 18, 2014
Face and Expression RecognitionComputer Science15 references3 citations
TL;DR

This paper proposes a distributed distance metric learning framework using asynchronous stochastic gradient descent on a parameter server architecture, reformulating the Mahalanobis distance learning problem via an $L^T L$ decomposition to avoid costly eigen-decompositions. It achieves state-of-the-art efficiency and effectiveness, training on 1M data points with 200M pairs in 15 hours on 256 cores and attaining 0.90 average precision on MNIST, outperforming prior methods.

ABSTRACT

In large scale machine learning and data mining problems with high feature dimensionality, the Euclidean distance between data points can be uninformative, and Distance Metric Learning (DML) is often desired to learn a proper similarity measure (using side information such as example data pairs being similar or dissimilar). However, high dimensionality and large volume of pairwise constraints in modern big data can lead to prohibitive computational cost for both the original DML formulation in Xing et al. (2002) and later extensions. In this paper, we present a distributed algorithm for DML, and a large-scale implementation on a parameter server architecture. Our approach builds on a parallelizable reformulation of Xing et al. (2002), and an asynchronous stochastic gradient descent optimization procedure. To our knowledge, this is the first distributed solution to DML, and we show that, on a system with 256 CPU cores, our program is able to complete a DML task on a dataset with 1 million data points, 22-thousand features, and 200 million labeled data pairs, in 15 hours; and the learned metric shows great effectiveness in properly measuring distances.

Motivation & Objective

  • Address the computational infeasibility of traditional Distance Metric Learning (DML) on high-dimensional, large-scale data with millions of features and billions of pairwise constraints.
  • Overcome the prohibitive cost of eigen-decomposition and hard constraints in semi-definite programming formulations of DML under distributed settings.
  • Design a scalable, distributed optimization framework that avoids bulk-synchronous parallelism and enables efficient parameter synchronization across machines.
  • Enable effective and efficient DML at unprecedented scale—specifically, datasets with 1M samples, 22K features, and 200M labeled pairs—using a parameter server architecture.

Proposed method

  • Reformulate the Mahalanobis distance matrix $M$ as $L^T L$ to preserve positive semi-definiteness while avoiding $O(d^3)$ eigen-decomposition per update.
  • Relax hard constraints (from similar/dissimilar pairs) into a hinge loss function to enable smooth, differentiable optimization and avoid constraint violations in distributed settings.
  • Use asynchronous stochastic gradient descent (ASGD) on a parameter server architecture, where workers independently update local copies of $L$ and asynchronously push gradients to a central parameter server.
  • Partition pairwise constraints across worker machines and perform mini-batch updates using stochastic gradients, reducing communication overhead and enabling high-throughput training.
  • Leverage the parameter server model to decouple computation and synchronization, allowing background parameter synchronization without blocking worker computations.
  • Optimize over the low-rank factor $L$ instead of the full $d \times d$ matrix $M$, reducing memory and computational costs from $O(d^2)$ to $O(dk)$, where $k \ll d$.

Experimental results

Research questions

  • RQ1Can a distributed, scalable DML framework be designed to handle datasets with 1M samples, 22K features, and 200M labeled pairs efficiently?
  • RQ2How can the expensive eigen-decomposition step in traditional DML be eliminated in a distributed setting without sacrificing metric quality?
  • RQ3To what extent can asynchronous stochastic gradient descent with parameter server coordination improve training speed and scalability in large-scale DML?
  • RQ4Does reformulating DML as an unconstrained optimization problem via $L^T L$ decomposition preserve or improve metric effectiveness compared to the original SDP formulation?
  • RQ5Can the use of hinge loss relaxation over pairwise constraints enable stable, scalable, and effective distributed learning in DML?

Key findings

  • The proposed framework completed training on a 1M-point, 22K-feature, 200M-pair dataset in 15 hours using 256 CPU cores, demonstrating unprecedented scalability for DML.
  • The method achieved 0.90 average precision on the MNIST dataset, significantly outperforming Xing et al. (2002), ITML, and KISS, which achieved only 0.73 average precision.
  • Training time was reduced to ~30 minutes on a single thread, compared to 24 hours for Xing et al. (2002) and 3 hours for ITML, due to the efficient $O(dk)$ per-update complexity.
  • The precision-recall curve on ImageNet-1M showed a substantial improvement using the learned Mahalanobis distance over the original Euclidean distance, confirming the metric’s effectiveness.
  • The asynchronous parameter server design enabled high throughput with minimal synchronization bottlenecks, making it suitable for large-scale, real-world data mining applications.
  • The reformulation using $L^T L$ and hinge loss eliminated the need for eigen-decomposition and hard constraints, enabling scalable, distributed optimization without sacrificing performance.

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.