Transfer Learning via Learning to Transfer

Ying Wei, Yu Zhang, Junzhou Huang, Qiang Yang

Introduction

Transfer learning is the "secret sauce" of modern AI. It allows models trained on massive, generic datasets to be fine-tuned for specific tasks using very little data. However, for every new pair of source and target domains, researchers must manually decide what to transfer (which features) and how to transfer it (which algorithm).

Currently, this selection relies on brute-force experimentation or expert intuition, both of which are inefficient. Furthermore, most transfer learning algorithms are "forgetful"—they treat every new task as an isolated problem. To address this, researchers introduce Learning to Transfer (L2T), a meta-learning framework that automatically determines the best way to transfer knowledge by reflecting on its own past experiences.

The Learning to Transfer (L2T) Framework

The L2T framework aims to create a system that learns how to transfer over time, much like a student who improves at learning new subjects by reflecting on past study strategies. It operates in two distinct stages:

The L2T framework operates in two stages: learning a reflection function from past experiences, and optimizing it for new domains.
  1. The Learning Stage (Meta-Training): The agent analyzes a library of previous transfer "experiences." Each experience consists of a source domain, a target domain, the algorithm used (parameterized as a feature matrix $W$), and the resulting performance boost. From this data, it learns a reflection function. This function acts as a predictor, estimating the expected improvement given a specific domain pair and transfer strategy. To make accurate predictions, the reflection function evaluates three key factors:

  2. Domain Difference: Measured using Maximum Mean Discrepancy.

  3. Distance Variance: How spread out the data is.
  4. Discriminative Ability: How easily classes can be distinguished in the new target space.
  5. The Inference Stage (Deployment): When presented with a brand-new pair of domains, the L2T agent doesn't just guess an algorithm. Instead, it treats the reflection function as an optimization problem, searching for the feature matrix $W$ that is predicted to yield the maximum performance improvement.

Experimental Setup

The researchers evaluated L2T using two popular image datasets: Caltech-256 (30,607 real-world images across 256 categories) and Sketches (20,000 human-drawn sketches across 250 categories). By randomly sampling categories, they generated 1,000 training pairs (experiences), 500 validation pairs, and 500 testing pairs. This setup mimics a real-world scenario where a system encounters many diverse, yet slightly related, transfer tasks.

Key Results and Insights

The core innovation of L2T is treating the success of transfer learning as a predictable regression problem. By turning transferability into a learnable function, L2T moves the field from manual engineering to automated optimization.

Performance improvement ratio of L2T compared to baselines across varying numbers of labeled target examples.
  • Superior Performance: L2T consistently outperformed nine state-of-the-art baselines (including TCA, GFK, and LSDT). On average, it provided up to a 10% boost in the performance improvement ratio compared to standard methods.
  • Robustness to Small Data: L2T demonstrated its greatest strengths in "data-starved" scenarios. When the target domain had very few labeled examples (as few as 3 per class), the meta-knowledge from previous tasks provided a critical advantage, significantly outpacing traditional methods.
  • Ablation Success: The researchers proved that all three components of their reflection function (MMD, variance, and discriminative criterion) were necessary. Removing any single component led to a significant drop in performance, proving that simple domain "similarity" is not enough for optimal transfer.

Limitations and Future Work

While L2T presents a significant step forward, it has a few limitations:

  • Feature Scope: The current framework focuses on single-level latent feature factors, working well for traditional feature-based transfer but requiring further adaptation for the complex, multi-layered hierarchies of deep neural networks.
  • Algorithm Variety: The study primarily focuses on feature-based transfer algorithms. Future work could expand L2T to include parameter-based or instance-based transfer methods.
  • Online Learning: The paper lays the theoretical groundwork for an "online" version of L2T that learns continuously. However, current experimental results are based on a static set of pre-collected experiences. Implementing a truly live, self-improving transfer agent remains an exciting open challenge.

Summary updated

BibTeX
@inproceedings{wei2018transfer,
  author = {Ying Wei and Yu Zhang and Junzhou Huang and Qiang Yang},
  title = {{Transfer Learning via Learning to Transfer}},
  booktitle = {International Conference on Machine Learning},
  year = {2018},
}
Figure