Metric and Kernel Learning Using a Linear Transformation

Prateek Jain, Brian Kulis, Jason V. Davis, Inderjit S. Dhillon

TL;DR

This paper introduces a unified framework for learning distance metrics and kernel functions by framing metric learning as learning a linear transformation. This approach allows for efficient kernelization, enabling the learning of powerful, non-linear metrics that generalize to new data points, even in high-dimensional spaces.

What Problem Does This Paper Address?

Many machine learning tasks, like clustering and classification, rely on comparing data points to measure similarity or distance. While standard metrics like Euclidean distance are common, they often fail when data has complex, non-linear structures. Existing metric learning methods often struggle with high-dimensional data due to the quadratic growth in parameters. Kernel learning methods can handle non-linearities but are frequently limited to "transductive" settings, meaning they can only learn from data that is available upfront and cannot generalize to new, unseen data points. This paper bridges this gap by showing how to learn effective metrics and kernels that are both powerful and generalize well.

Methods

The core idea is to view metric learning as learning a linear transformation of the input data. This transformation is then used to compute distances in a transformed space. The paper focuses on the LogDet divergence as a loss function for learning this transformation, which is advantageous because it's defined for positive definite matrices and leads to simpler optimization. A key contribution is demonstrating that this metric learning framework can be "kernelized." This means that instead of learning a transformation matrix for the original data, they learn a kernel matrix that implicitly defines the transformation in a high-dimensional feature space. This kernelization allows the method to handle arbitrarily high-dimensional spaces and, crucially, to generalize to new data points (inductive learning). They also extend this kernelization to a broader class of convex loss functions.

Datasets

The paper evaluates its methods on several standard UCI datasets, including:

  • Image Analysis: Caltech-101 dataset for object recognition.
  • Text Mining: CMU Newsgroups and Classic3 datasets for text classification.
  • General Classification: Wine, Ionosphere, Balance Scale, and Soybean datasets.
  • Software Support: Clarify system datasets (Latex, Mpg321, Foxpro, Iptables).

Key Insights and Ideas

  • Unified Metric and Kernel Learning: By framing metric learning as learning a linear transformation, the authors establish a direct link to kernel learning, allowing for a single framework to address both.
  • Kernelization for Inductive Learning: The key insight is that kernelizing the metric learning problem naturally leads to inductive learning capabilities, overcoming a major limitation of prior kernel learning methods.
  • LogDet Divergence Advantage: The LogDet divergence proves to be a computationally efficient and theoretically sound choice for learning the transformation, leading to scalable algorithms.
  • Low-Rank Representations: For very large datasets, the paper proposes learning a low-rank Mahalanobis distance matrix, significantly reducing computational complexity and memory requirements.

Key Results

  • Improved Classification Accuracy: The proposed LogDet Linear and LogDet Gaussian methods consistently outperform baseline metrics (Euclidean, Inverse Covariance) and other state-of-the-art metric learning algorithms (MCML, LMNN) on various benchmark datasets. For instance, on the Latex dataset, LogDet Linear achieved significant gains.
  • Scalability: The kernelized approach is efficient, especially with the low-rank representation, allowing it to handle large datasets with millions of dimensions. Training times are significantly faster compared to methods like MCML and LMNN.
  • Generalization: The learned kernels demonstrate strong generalization capabilities, performing well on unseen data.

Limitations and Future Work

  • Basis Selection: The performance of the low-rank representation method is sensitive to the choice of basis vectors. The paper suggests heuristics like using singular vectors or clustering, but notes that more careful basis selection could further improve accuracy.
  • Online Learning: For even larger datasets, the authors suggest exploring online learning methods, referencing their prior work on LogDet regularization for online learning.
  • Multiple Local Metrics: Investigating the use of LogDet divergence for learning multiple local metrics over data is proposed as a future research direction.

Summary updated

BibTeX
@article{jain2012metric,
  author = {Prateek Jain and Brian Kulis and Jason V. Davis and Inderjit S. Dhillon},
  title = {{Metric and Kernel Learning Using a Linear Transformation}},
  journal = {J. Mach. Learn. Res.},
  year = {2012},
  url = {https://openreview.net/forum?id=f1L6ml_ckWY},
}
Figure