A Survey on Metric Learning for Feature Vectors and Structured Data
Aurélien Bellet, Amaury Habrard, Marc Sebban
TL;DR
This survey addresses the challenge of learning effective distance and similarity measures for both feature vectors and structured data. It surveys a broad spectrum of approaches, from classical Mahalanobis-distance methods (with convex, online, and multi-task variants) to nonlinear, local, histogram-based, and kernelized techniques, and extends into metric learning for edit distances on strings, trees, and graphs. A key contribution is the comprehensive taxonomy, highlighting trade-offs in learning paradigm, metric form, scalability, optimality, and dimensionality reduction, as well as generalization guarantees and semi-supervised/domain-adaptation extensions. The paper also identifies gaps—especially in theory beyond linear classification and in scalable methods for structured data—and outlines promising directions, including unsupervised metric learning, structure-aware approaches, and methods that adapt to changing data. Collectively, it provides a detailed roadmap for researchers and practitioners seeking to select and develop metric-learning methods across diverse data types and applications.
Abstract
The need for appropriate ways to measure the distance or similarity between data is ubiquitous in machine learning, pattern recognition and data mining, but handcrafting such good metrics for specific problems is generally difficult. This has led to the emergence of metric learning, which aims at automatically learning a metric from data and has attracted a lot of interest in machine learning and related fields for the past ten years. This survey paper proposes a systematic review of the metric learning literature, highlighting the pros and cons of each approach. We pay particular attention to Mahalanobis distance metric learning, a well-studied and successful framework, but additionally present a wide range of methods that have recently emerged as powerful alternatives, including nonlinear metric learning, similarity learning and local metric learning. Recent trends and extensions, such as semi-supervised metric learning, metric learning for histogram data and the derivation of generalization guarantees, are also covered. Finally, this survey addresses metric learning for structured data, in particular edit distance learning, and attempts to give an overview of the remaining challenges in metric learning for the years to come.
