Coordinated Local Metric Learning

Shreyas Saxena, Jakob Verbeek

Abstract

Metric learning is fundamental to many machine learning tasks, yet traditional global Mahalanobis metrics often lack the flexibility to model complex data geometries. Conversely, local metric learning approaches, while flexible, suffer from cross-cluster comparison difficulties and computational overhead. We present Coordinated Local Metric Learning (CLML), a framework that bridges this gap by aligning multiple local metrics into a single, unified global embedding. By leveraging a soft-partitioning Gaussian Mixture Model and an expanded feature space representation, CLML allows for efficient Euclidean distance calculations across the entire dataset. Evaluations on the Labeled Faces in the Wild (LFW) dataset demonstrate that CLML significantly outperforms state-of-the-art global and local methods in face retrieval and verification tasks, while remaining compatible with fast indexing techniques.

Introduction

In machine learning, metric learning aims to find a distance measure that makes similar items close and dissimilar items far apart. The standard approach is the Mahalanobis metric, which essentially performs a linear projection of data followed by a standard Euclidean ($ℓ_2$) distance calculation. However, a single linear projection is often too rigid to capture the complex geometry of real-world data, such as facial features.

To address this, researchers developed local metric learning, which partitions the data space into clusters and learns a distinct metric for each. However, comparing points across different clusters remains a significant challenge. Most existing solutions are mathematically complex, asymmetric, or incompatible with efficient search tools like Product Quantization. CLML addresses these issues by embedding multiple local metrics into a unified global representation, enabling seamless distance computation between any two data points.

Methods

The CLML framework coordinates local metrics so they share a common global "language" through a multi-step process:

  1. Soft Partitioning: Instead of hard cluster assignments, the model uses a Gaussian Mixture Model (GMM) to assign data points to clusters probabilistically (e.g., 70% Cluster 1, 30% Cluster 2).
  2. Global Embedding: For each cluster, a local linear mapping is learned. A data point’s final global position is determined as the weighted average of these local mappings.
  3. Expanded Feature Space: The authors demonstrate that this non-linear mapping can be rewritten as a single linear projection in a higher-dimensional expanded feature space. This allows the use of standard optimization tools, such as Logistic Discriminant Metric Learning (LDML), to learn all local metrics and their alignments simultaneously.
  4. Coordination and Alignment: By learning translations and rotations alongside the projections, CLML ensures that local views of the data fit together into a coherent global map.
The coordination process: (left) initial local partitions, (middle) intermediate alignment of metrics, and (right) the final unified global embedding.

Experimental Evaluation

The paper evaluates CLML on the Labeled Faces in the Wild (LFW) dataset, containing over 13,000 images of 5,749 individuals. The experiments focus on two primary tasks:

  • Retrieval Task: Using a subset of 423 queries against a gallery of up to one million distractor faces to test scalability.
  • Face Verification: Testing the model across three different image representations: Local Binary Patterns (LBP), Fisher Vectors (FV), and CNN-based features.

Key Results and Insights

  • Superior Retrieval Performance: On LFW retrieval using Fisher Vectors, CLML achieved a mean Average Precision (mAP) of ~75%, significantly higher than the ~68% achieved by global LDML and other local methods like SCML.
  • Local Structure Advantage: The authors show that CLML outperforms global metrics even when the global metric is given an equivalent number of parameters (by projecting to a much higher dimension). This suggests that the local structure itself is critical to the performance gains.
  • Efficiency and Speed: Because the final output is a single vector in a unified space, standard $ℓ_2$ distance can be used. This makes CLML compatible with fast retrieval techniques. Using quantization-based retrieval, the authors achieved a 14x speedup in search time with virtually no loss in accuracy, and over a 100x speedup with only a minor performance drop.
  • Visualization: CLML produces a unified Euclidean space that can be projected to 2D, naturally separating faces by gender and identity more cleanly than global methods.

Conclusion and Future Work

CLML successfully bridges the gap between rigid global metrics and disjoint local metrics. While highly effective, the current implementation relies on a fixed GMM for partitioning. Future work could involve jointly learning the clustering and the metric in an end-to-end fashion. Additionally, while the expanded feature space allows for elegant optimization, it increases dimensionality, which may pose memory challenges for extremely high-dimensional features or a very large number of clusters. Integrating this coordinated local logic directly into deep neural network training remains a promising avenue for further research.

Summary updated

BibTeX
@inproceedings{saxena2015coordinated,
  author = {Shreyas Saxena and Jakob Verbeek},
  title = {{Coordinated Local Metric Learning}},
  booktitle = {Workshops @ ICCV},
  year = {2015},
  doi = {10.1109/iccvw.2015.56},
}
Figure