Skip to main content
QUICK REVIEW

[Paper Review] Learning Local Invariant Mahalanobis Distances

Ethan Fetaya, Shimon Ullman|arXiv (Cornell University)|Feb 4, 2015
Image Retrieval and Classification TechniquesComputer Science24 references8 citations
TL;DR

This paper proposes an efficient method to learn local invariant Mahalanobis distances for metric learning using only negative examples, enabling robustness to transformations like rotation and translation. It formulates the problem as a quadratic program, achieving state-of-the-art performance on MNIST and LFW with 1.26% and 19.48% error rates, respectively, while being applicable in weakly supervised settings where global methods fail.

ABSTRACT

For many tasks and data types, there are natural transformations to which the data should be invariant or insensitive. For instance, in visual recognition, natural images should be insensitive to rotation and translation. This requirement and its implications have been important in many machine learning applications, and tolerance for image transformations was primarily achieved by using robust feature vectors. In this paper we propose a novel and computationally efficient way to learn a local Mahalanobis metric per datum, and show how we can learn a local invariant metric to any transformation in order to improve performance.

Motivation & Objective

  • To address the limitation of global metric learning methods that require labeled data and cannot handle local invariance to transformations like rotation and translation.
  • To develop a computationally efficient method for learning a unique Mahalanobis distance per data point, leveraging only negative examples to reduce labeling burden.
  • To incorporate prior knowledge about data transformations (e.g., translation, rotation) into local metric learning to improve robustness and performance.
  • To enable metric learning in weakly supervised scenarios where only positive and negative sets are available, without per-class labels on negatives.

Proposed method

  • Formulates local Mahalanobis distance learning as a semidefinite program, then reformulates it as a quadratic program to avoid costly matrix decompositions.
  • Uses second-order Taylor approximation to justify modeling local distances as Mahalanobis metrics, assuming smoothness of the underlying distance function.
  • Incorporates invariance to transformations by constraining the local metric to make transformed versions of a data point (e.g., shifted images) close to the original.
  • Employs a weakly supervised learning scheme where each local metric is trained using only negative examples, avoiding the need for positive labels on the negative set.
  • Solves the resulting optimization problem using first-order methods (e.g., SCS) via YALMIP, achieving significant speedups over standard semidefinite programming solvers.
  • Applies the learned local metrics to k-NN classification using k=3, with nearest neighbors retrieved via the learned distance function.

Experimental results

Research questions

  • RQ1Can local Mahalanobis metrics be efficiently learned using only negative examples, without requiring labeled classes for the negative set?
  • RQ2How can prior knowledge about data transformations (e.g., translation, rotation) be integrated into local metric learning to improve invariance?
  • RQ3Can local invariant Mahalanobis metrics outperform global or exemplar-based methods in weakly supervised settings?
  • RQ4Does learning local metrics via quadratic programming offer a significant computational advantage over semidefinite programming while maintaining performance?
  • RQ5To what extent does invariance to transformations improve performance on challenging benchmarks like MNIST and LFW?

Key findings

  • On the MNIST dataset, the proposed local invariant Mahalanobis method achieved a test error rate of 1.26%, outperforming exemplar-SVM (1.75%) and matching the state-of-the-art MLMNN method.
  • The method significantly outperformed standard exemplar-SVM and even surpassed the performance of quadratic SVM with data augmentation (1.50% error) despite using only negative examples.
  • On the LFW dataset, the method achieved a 19.48% error rate, substantially better than cosine similarity (30.57%) and exemplar-SVM (26.90%), demonstrating strong generalization in face recognition.
  • The computational efficiency of the method was validated: solving the problem as a quadratic program took 545±74 seconds, compared to 1152±417 seconds for semidefinite programming, showing a more than twofold speedup.
  • The local invariant Mahalanobis approach achieved better performance than both standard local Mahalanobis and quadratic SVM with data augmentation, indicating that the invariance inductive bias is crucial for robustness.
  • The method is applicable in scenarios where global metric learning (e.g., LMNN, MLMNN) fails, such as when only a single positive example and a set of unlabeled negatives are available.

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.