Skip to main content
QUICK REVIEW

[Paper Review] Sparse Compositional Metric Learning

Yuan Shi, Aurélien Bellet|arXiv (Cornell University)|Apr 15, 2014
Domain Adaptation and Few-Shot LearningComputer Science29 references19 citations
TL;DR

This paper proposes Sparse Compositional Metric Learning (SCML), a unified framework that learns metrics as sparse combinations of locally discriminative, low-rank basis metrics derived from training data. By using sparsity-inducing regularization, SCML reduces parameter count, enables efficient optimization, and supports principled generalization to new data—achieving state-of-the-art performance in global, multi-task, and local metric learning with improved scalability and robustness to overfitting.

ABSTRACT

We propose a new approach for metric learning by framing it as learning a sparse combination of locally discriminative metrics that are inexpensive to generate from the training data. This flexible framework allows us to naturally derive formulations for global, multi-task and local metric learning. The resulting algorithms have several advantages over existing methods in the literature: a much smaller number of parameters to be estimated and a principled way to generalize learned metrics to new testing data points. To analyze the approach theoretically, we derive a generalization bound that justifies the sparse combination. Empirically, we evaluate our algorithms on several datasets against state-of-the-art metric learning methods. The results are consistent with our theoretical findings and demonstrate the superiority of our approach in terms of classification performance and scalability.

Motivation & Objective

  • To address the limitations of existing metric learning methods, which often overfit, scale poorly with dimensionality, and lack principled generalization to new data.
  • To unify global, multi-task, and local metric learning under a single sparse compositional framework.
  • To reduce the number of parameters to estimate by learning only a small subset of basis metrics, improving computational efficiency and generalization.
  • To enable instance-specific metric prediction at test time through a learned transformation function.

Proposed method

  • The method learns a set of low-rank, locally discriminative basis metrics using techniques like Fisher discriminant analysis on local data neighborhoods.
  • Global metric learning is formulated as learning a sparse weight vector over the basis set, using l1 regularization to promote sparsity.
  • Multi-task metric learning is achieved via group sparsity, where all tasks share the same active basis subset but have task-specific weights.
  • Local metric learning learns a transformation function T(x) that maps any input x to a sparse weight vector defining its local metric, enabling instance-specific metrics.
  • Optimization is performed using stochastic subgradient descent with proximal operators, avoiding expensive positive semidefinite projections.
  • The framework supports generalization to new data points by composing metrics from learned basis elements using the same sparse weight function.

Experimental results

Research questions

  • RQ1Can a sparse combination of locally learned basis metrics outperform dense, global Mahalanobis metrics in terms of classification accuracy and scalability?
  • RQ2How can a unified framework effectively support global, multi-task, and local metric learning within a single optimization scheme?
  • RQ3Can a principled method for computing instance-specific metrics be developed that generalizes well to test data without overfitting?
  • RQ4Does sparsity in the combination of basis metrics lead to better generalization, even with a large basis set?
  • RQ5How does the proposed method scale with high-dimensional data compared to existing state-of-the-art metric learning algorithms?

Key findings

  • SCML-Local achieved the best average rank (1.2) across all datasets, significantly outperforming SCML-Global and other state-of-the-art methods.
  • On the BBC dataset, SCML-Local trained in about 8 minutes—5× faster than MM-LMNN and 15× faster than PLML—while avoiding overfitting.
  • SCML-Local reduced test error on small datasets like Vehicle and Vowel by leveraging fewer parameters, unlike GLML which suffered from poor performance due to restrictive Gaussian assumptions.
  • The number of selected basis elements increased sublinearly with basis set size, and test error continued to decrease with larger basis sets, supporting the generalization bound.
  • Visualization showed that learned metrics varied smoothly and were driven by discriminative information, not just smoothness, improving robustness near decision boundaries.
  • SCML-Local achieved accuracy competitive with kernel SVMs on benchmark datasets, demonstrating strong generalization capability.

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.