Towards Understanding Transfer Learning Algorithms Using Meta Transfer Features

Xin-Chun Li, De-Chuan Zhan, Jia-Qi Yang, Yi Shi, Cheng Hang, Yi Lu

Introduction

Transfer learning (TL) has become a cornerstone of modern machine learning, enabling the adaptation of pre-trained models to new, data-scarce domains. However, the selection of an optimal TL algorithm—such as Transfer Component Analysis (TCA), Subspace Alignment (SA), or Deep Adaptation Networks (DAN)—remains largely empirical. Practitioners often lack quantitative tools to predict whether a specific transfer will succeed or result in "negative transfer." This paper introduces MetaTrans, a framework designed to quantify the "transferability" and "discriminability" of tasks to predict performance improvements.

The MetaTrans Framework

MetaTrans reframes the selection of transfer learning algorithms as a regression problem. The goal is to predict the performance improvement ratio ($r_{imp}$) for a given task-algorithm pair based on a set of high-level descriptors called Meta Transfer Features.

Meta Transfer Features

To characterize the relationship between source and target domains, the authors define a 5-tuple of features:

  1. Transferability Metrics: These measure the distributional shift between domains. Key metrics include Proxy $\mathcal{A}$-distance (the difficulty of distinguishing source from target samples) and Maximum Mean Discrepancy (MMD) (distance between distribution moments).
  2. Discriminability Metrics: These measure how well features separate different classes. Metrics include Source Domain Error, the Supervised Discriminant Criterion (SDC) (ratio of between-class to within-class scatter), and the Unsupervised Discriminant Criterion (UDC) for target data.
Visualization of synthetic data distributions and corresponding Meta Transfer Features. The top row illustrates transferability metrics (HDIV, MMD) between two domains, while the bottom row illustrates discriminability metrics (SDC, UDC) across multiple classes.

Multi-task Learning (MTL) for Prediction

Because different TL algorithms operate on distinct principles (e.g., instance weighting vs. feature transformation), a single global regression model is insufficient. MetaTrans employs a Multi-task Learning approach. This architecture learns a shared representation of "common knowledge" across all algorithms while maintaining algorithm-specific weights to capture unique performance characteristics.

Experimental Insights

The framework was validated using synthetic data and standard benchmarks like Office-31, Caltech-256, MNIST, and USPS.

The Alignment Trade-off

A critical finding is the trade-off between domain alignment and feature discriminability. In deep transfer learning models like DAN, while MMD (domain distance) typically decreases during training, SDC (class separability) may also decrease. This suggests that aggressive domain alignment can inadvertently collapse class boundaries, harming final classification accuracy.

Algorithm Relationships

By analyzing the learned weights in the MTL framework, the authors identified functional similarities between algorithms. For instance, Multi-Source Domain Adaptation (MSDA) and TCA were found to be highly correlated in their performance profiles, suggesting they capture similar aspects of the transfer process.

Key Results

MetaTrans demonstrates high predictive accuracy for algorithm performance on unseen tasks:

  • Accuracy: On the Office-31 dataset (Amazon, DSLR, Webcam), the Meta-MTL approach achieved a Mean Squared Error (MSE) of 0.0314, significantly outperforming independent regression models (MSE 0.0418).
  • Generalization: The model showed strong consistency when transferring knowledge between similar datasets (e.g., using A $\rightarrow$ C data to predict A $\rightarrow$ D performance), reaching an MSE as low as 0.0081.

Conclusion

The MetaTrans framework provides a practical roadmap for navigating the complexities of transfer learning. By quantifying the inherent trade-offs between domain similarity and feature quality, it moves TL from a "black box" trial-and-error process toward a more predictable engineering discipline. Future research will focus on incorporating dataset-level metadata and task embeddings to further refine these predictive capabilities.

Summary updated

BibTeX
@inproceedings{li2020towards,
  author = {Xin-Chun Li and De-Chuan Zhan and Jia-Qi Yang and Yi Shi and Cheng Hang and Yi Lu},
  title = {{Towards Understanding Transfer Learning Algorithms Using Meta Transfer Features}},
  booktitle = {PAKDD},
  year = {2020},
  doi = {10.1007/978-3-030-47436-2\_64},
}
Figure