Heterogeneous Multitask Metric Learning Across Multiple Domains.

Yong Luo, Yonggang Wen, Dacheng Tao · DOI

Abstract

Distance Metric Learning (DML) is essential for effective classification and clustering but is often limited by the availability of labeled data. While transfer learning techniques have been developed to mitigate this, they typically assume homogeneous feature spaces across domains. We propose Heterogeneous Multi-task Metric Learning (HMTML), a novel framework designed to learn distance metrics across multiple domains with entirely different feature representations. HMTML leverages tensor-based divergence minimization to capture high-order correlations between all domains simultaneously. By aligning the predictive structures of classifiers in a shared latent subspace, the framework achieves significant performance gains, especially in scenarios with extremely limited labeled data.

Introduction

Distance Metric Learning (DML) is a cornerstone of machine learning, essential for tasks like k-NN classification and clustering. However, DML typically requires a significant amount of labeled data to be effective. While "Transfer Metric Learning" (TML) attempts to solve this by borrowing knowledge from a related "source" domain, most existing methods assume that all domains share the same feature space (e.g., the same number of dimensions or the same types of measurements).

In the real world, data is often heterogeneous. For example, a document might be represented by different vocabularies in different languages, or an image might be described by both SIFT descriptors and GIST features. Existing heterogeneous transfer learning methods are usually limited to handling only two domains at a time or only looking at pairwise correlations between domains. This ignores the complex, "high-order" relationships that exist when three or more domains work together.

The HMTML Framework

The proposed HMTML framework learns a reliable Mahalanobis metric for every domain by forcing them to share information through a common predictive structure.

Overview of the HMTML framework showing the alignment of heterogeneous domains through tensor-based divergence minimization.
  1. Building a Bridge with Classifiers: Instead of trying to align raw data (which is difficult when features are different), the model trains a set of base classifiers for each domain using Error Correcting Output Codes (ECOC). This yields a set of prediction weight vectors for each domain.
  2. Inducing a Common Subspace: The metric for each domain is decomposed into a transformation matrix. These matrices project the domain-specific classifier weights into a shared, latent subspace.
  3. Tensor-Based Divergence Minimization: This is the core innovation. Rather than comparing domains in pairs, HMTML constructs a covariance tensor representing the relationships between all domains at once. By maximizing the high-order covariance in the shared subspace, the model ensures that the predictive structures of all domains are aligned.
  4. Optimization: The authors formulate this as a joint optimization problem, minimizing empirical loss while regularizing for sparsity and non-negativity. They solve it using an improved Projected Gradient Method (PGM) with an alternating optimization strategy.

Experimental Evaluation

The researchers evaluated HMTML on three distinct types of multi-domain problems:

  • Reuters Multilingual Collection (RMLC): Text categorization across three languages (English, Spanish, and Italian).
  • Scene-15: A natural scene dataset using three different feature extraction methods (GIST, LBP, and PHOG).
  • NUS-WIDE (Animal Subset): Social image annotation using three different modalities (SIFT-based bag of words, color auto-correlogram, and wavelet texture).

Key Results

HMTML consistently outperformed both single-domain DML algorithms (like LMNN and ITML) and existing heterogeneous transfer methods (like DAMA and MTDA). The performance gains were most dramatic when labeled data was extremely limited (e.g., only 5 samples per category). On the Reuters text dataset, HMTML achieved a 10.0% relative improvement in macroF1 score over the next best multi-task method (MTDA) when using only 5 labeled samples.

Discussion and Insights

The success of HMTML highlights that high-order statistics matter. Looking at all domains simultaneously via tensors provides a much richer signal than looking at them in pairs, leading to more reliable transformations. Furthermore, by focusing on the weights of classifiers (the predictive structure) rather than raw features, the model finds a more robust way to bridge heterogeneous spaces.

The authors also found that forcing the transformation matrices to be sparse and non-negative improved both interpretability and generalization from limited data.

Limitations and Future Work

Currently, the HMTML framework relies on linear transformations. While Kernel PCA (KPCA) can be used as a preprocessing step, a natively non-linear version of HMTML could potentially capture even more complex relationships. Additionally, while the optimization strategy is efficient for a moderate number of domains, the computational cost of tensor operations grows, suggesting that parallel computing will be necessary for scaling to a very large number of domains.

Summary updated

BibTeX
@article{luo2018heterogeneous,
  author = {Yong Luo and Yonggang Wen and Dacheng Tao},
  title = {{Heterogeneous Multitask Metric Learning Across Multiple Domains.}},
  journal = {IEEE Trans. Neural Networks Learn. Syst.},
  year = {2018},
  doi = {10.1109/tnnls.2017.2750321},
}
Figure