NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Learning to Transfer

Ying Wei, Yu Zhang, Qiang YangarXiv 2017

Abstract

The "Learning to Transfer" (L2T) framework treats transfer learning as a meta-learning problem, leveraging previous transfer experiences to automatically determine the best way to move knowledge between new domains. By learning a "reflection function" from past successes and failures, L2T bypasses the need for computationally expensive brute-force algorithm selection or ad-hoc expert tuning.

Introduction

Transfer learning is a cornerstone of modern artificial intelligence, enabling models to leverage knowledge from a data-rich "source" domain to improve performance in a data-starved "target" domain. However, practitioners face a significant challenge in determining the optimal transfer strategy: when to transfer, how to transfer, and what to transfer.

Currently, identifying the best transfer strategy is often a manual, trial-and-error process. Researchers typically test numerous algorithms—ranging from instance-based to feature-based methods—to identify which yields the best performance boost. This approach is computationally expensive and fails to utilize the "meta-cognitive" ability to learn from past experiences. The L2T framework aims to automate this process by reflecting on previous transfer successes and failures.

The L2T Framework

The L2T framework operates in two distinct stages: learning from experiences and inference via optimization.

Overview of the L2T framework: (1) collecting previous transfer experiences, (2) learning a reflection function $f$, and (3) optimizing the transfer strategy for new domains.

1. Learning from Experiences

The system first compiles a library of "transfer experiences." Each experience includes a source/target pair, the specific knowledge transferred (parameterized as a latent feature matrix $W$), and the resulting performance improvement. From this data, L2T learns a reflection function ($f$). This function serves as a proxy for transfer quality, mapping a domain pair and a transfer strategy to an expected improvement ratio.

To ensure robustness, the reflection function incorporates three key metrics:

  • Maximum Mean Discrepancy (MMD): Measures the distance between the means of the source and target distributions.
  • Distance Variance: Captures data spread to ensure domain overlap.
  • Unlabeled Discriminant Criterion: Ensures transferred features help distinguish classes in the target domain, even with limited labels.

2. Inference via Optimization

When presented with a new pair of domains, L2T treats the reflection function as an objective to be maximized. It searches for the optimal latent feature matrix ($W^*$) that the reflection function predicts will yield the highest performance gain, rather than simply selecting a pre-existing algorithm.

Experimental Evaluation

The authors evaluated L2T using two large-scale image datasets: Caltech-256 (30,607 real-world images) and Sketches (20,000 human-drawn sketches). A cross-domain environment was created using Caltech-256 as the source and Sketches as the target (and vice-versa). The experience library was built using 1,000 training pairs, with 500 pairs each for validation and testing.

Results and Discussion

L2T was compared against eight state-of-the-art transfer learning baselines (e.g., TCA, GFK, LSDT). The results consistently demonstrated that L2T provides a superior performance improvement ratio, particularly in scenarios where target labels are extremely scarce.

Average performance improvement ratio comparison across different numbers of labeled examples in the target domain.

As shown in Figure 2, L2T outperforms baselines by up to 10% when only 3 labeled examples are available in the target domain. While the performance gap narrows as more labels are added—due to the increasing strength of the non-transfer "Original" model—L2T maintains a consistent lead. Furthermore, qualitative analysis across diverse categories confirms that L2T effectively discovers more transferable knowledge than specialized baselines.

Conclusion

The L2T framework demonstrates that the process of transferring knowledge is a skill that can be improved over time. By modeling the relationship between domain similarity and performance gain, the reflection function captures collective "wisdom" from multiple base algorithms.

Future work may explore incorporating hierarchical features for deep neural networks, extending the model to heterogeneous feature and label spaces, and adapting the framework for online learning to continuously update the reflection function as new tasks are encountered.

Summary updated

BibTeX
@misc{wei2017learning,
  author = {Ying Wei and Yu Zhang and Qiang Yang},
  title = {{Learning to Transfer}},
  year = {2017},
  eprint = {1708.05629},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1708.05629},
}
Figure