Introduction
Traditional metric learning focuses on calculating distances within a single domain—determining the similarity between two images or documents sharing the same feature set. However, real-world applications frequently involve heterogeneous domains, such as comparing text across different languages or matching low-resolution webcam photos with high-resolution DSLR images.
This task presents two primary challenges: dimensionality mismatch, where feature vectors have different lengths, and label scarcity, where the target domain often lacks sufficient labeled data. When models rely solely on a few labels to align domains (aligning posteriors), they often suffer from "small-sample" bias, leading to poor generalization on unlabeled data.
Methodology: Aligning Priors and Posteriors
The proposed MLHD (Metric Learning across Heterogeneous Domains) framework maps both domains into a common $D^c$-dimensional latent space using linear operators $W_x$ and $W_y$. The innovation of MLHD lies in its dual alignment strategy:
- Aligning Posteriors: The model ensures that cross-domain samples with identical labels are pulled together in the latent space, while those with different labels are pushed apart.
- Aligning Priors: To mitigate bias from limited labels, the model employs Maximum Mean Discrepancy (MMD). This statistical measure minimizes the distance between the means of the source and target distributions, allowing the model to leverage the structural information of the abundant unlabeled target data.
By aligning the "priors" (the overall shape of the data distributions), the model acts as a powerful regularizer, ensuring that the mapping remains accurate even for samples without explicit labels.
Optimization and Kernelization
To solve the mapping efficiently, the authors reparameterize the mapping matrices into a single Positive Semi-Definite (PSD) matrix $M$. They utilize a LogDet regularizer and a Bregman Projection algorithm, which avoids the high computational costs of standard semi-definite programming. Furthermore, the framework can be extended into non-linear spaces using the "kernel trick," enabling it to handle complex, high-dimensional data structures.
Experimental Evaluation
The MLHD framework was evaluated across three distinct scenarios:
- Cross-Language Retrieval: Using the Multilingual Reuters dataset, MLHD achieved superior accuracy in retrieving relevant documents across five different languages (English, French, German, Italian, and Spanish).
- Object Recognition: On the Office dataset (Amazon, DSLR, and Webcam domains), the model demonstrated robustness in aligning features extracted via different descriptors (SURF and SIFT) with varying dimensions.
- Synthetic Toy Problem: A 2D-to-3D mapping task visually confirmed that prior alignment effectively "corrects" the placement of unlabeled samples that would otherwise be misaligned by label-only methods.
Key Insights and Results
MLHD consistently outperformed established baselines such as Kernel Canonical Correlation Analysis (KCCA+NN) and Asymmetric Regularized Cross-domain transformation (ARC). Sensitivity analysis revealed that the model is stable across various parameter settings, with performance generally improving as the weight on prior alignment ($\lambda_1$) increases.
While the current implementation uses a linear kernel for MMD to maintain optimization efficiency, future work could explore universal kernels (like Gaussian kernels) to align higher-order moments of the distributions. Additionally, in cases with extremely small target sample sizes, the estimation of the prior itself can become biased, suggesting a need for further refinement in extremely low-data regimes.
Summary updated