Abstract
Distance metric learning (DML) aims to find an appropriate way to reveal the underlying data relationship. It is critical in many machine learning, pattern recognition and data mining algorithms, and usually require large amount of label information (such as class labels or pair/triplet constraints) to achieve satisfactory performance. However, the label information may be insufficient in real-world applications due to the high-labeling cost, and DML may fail in this case. Transfer metric learning (TML) is able to mitigate this issue for DML in the domain of interest (target domain) by leveraging knowledge/information from other related domains (source domains). Although achieved a certain level of development, TML has limited success in various aspects such as selective transfer, theoretical understanding, handling complex data, big data and extreme cases. In this survey, we present a systematic review of the TML literature. In particular, we group TML into different categories according to different settings and metric transfer strategies, such as direct metric approximation, subspace approximation, distance approximation, and distribution approximation. A summarization and insightful discussion of the various TML approaches and their applications will be presented. Finally, we indicate some challenges and provide possible future directions.
The Challenge of Data-Hungry Metric Learning
In machine learning, the "distance" between two data points determines how well algorithms like $k$-Nearest Neighbors ($k$-NN) or $k$-means clustering perform. Distance Metric Learning (DML) aims to learn an optimal distance function—often a Mahalanobis metric—that pulls similar items together and pushes dissimilar ones apart in a latent space.
However, traditional DML suffers from a significant "data hunger" problem. To learn a reliable metric, models typically require thousands of labeled pairs or triplets. In many real-world scenarios, such as identifying rare diseases in medical imaging or performing sentiment analysis in low-resource languages, labels are prohibitively expensive or impossible to obtain. Transfer Metric Learning (TML) addresses this label deficiency by enabling models to "borrow" knowledge from a data-rich source domain to improve performance in a label-scarce target domain.
A Taxonomy of Transfer Metric Learning
The TML landscape is diverse, with techniques categorized based on three primary axes: feature settings, label settings, and transfer strategies. This taxonomy allows researchers to select the most appropriate method based on the relationship between the source and target data.
1. Feature Setting
- Homogeneous TML: The source and target domains share the same feature space (e.g., both use 800-dimensional SIFT features) but exhibit different data distributions.
- Heterogeneous TML: The source and target have different feature spaces. Examples include transferring knowledge from English text to Spanish text, or from high-resolution images to low-resolution counterparts.
2. Label Setting
- Inductive TML: A small number of labels are available in the target domain to guide the transfer.
- Transductive TML: No labels exist in the target domain, but the unlabeled target data is available during training to help align distributions.
- Unsupervised TML: No labels are available in either domain, often relying on "expensive" or high-fidelity features to guide the learning of metrics for "cheaper" features.
3. Transfer Strategies
- Metric Approximation: Forcing the target metric matrix to be mathematically close to the source metric.
- Distribution Approximation: Utilizing techniques like Maximum Mean Discrepancy (MMD) to align data distributions so the source metric becomes valid for the target.
- Subspace Approximation: Finding a common low-dimensional latent space where both domains can be compared directly.
- Distance Approximation: Ensuring that the distances between corresponding pairs in different domains (e.g., a photo and its text description) remain consistent.
Benchmarks and Performance
The efficacy of TML is typically evaluated using two primary benchmarks:
- Office-Caltech: A computer vision dataset containing images from four domains (Amazon, Webcam, DSLR, and Caltech-256). It focuses on 10 overlapping categories to test homogeneous transfer.
- CLS (Cross-Lingual Sentiment): Amazon product reviews in four languages (English, French, German, and Japanese), used to test heterogeneous transfer across different vocabularies.
Across these benchmarks, TML methods consistently outperform single-domain DML. For instance, on the Office-Caltech dataset, methods like GCA and DTML achieved accuracies up to 10% higher than non-transfer baselines. In cross-lingual tasks, Online Heterogeneous TML (OHTML) nearly doubled the performance of simple Euclidean distance baselines.
Key Insights and Future Frontiers
Several critical insights have emerged from recent TML research. First, transductive power is significant; understanding the "shape" of the target data distribution is often more valuable than having a handful of specific labeled examples. Second, metric imitation allows TML to act as a teacher-student model, where complex deep CNN representations can teach a metric to simpler features, enabling efficient inference on low-power devices.
Despite these successes, several challenges remain:
- Negative Transfer: If the source and target domains are not sufficiently related, transferring knowledge can actually degrade performance. Developing "selective transfer" mechanisms is a priority.
- Theoretical Bounds: There is a lack of rigorous proof explaining exactly why and how much a source domain helps the target.
- Foundation Models: Integrating TML with massive pre-trained models like CLIP could be the next major evolution, using multi-modal embeddings to bridge the gap between heterogeneous domains more effectively.
Summary updated