Dynamic transfer learning with progressive meta-task scheduler

Jun Wu, Jingrui He

TL;DR

This paper tackles the challenge of dynamic transfer learning, where target tasks evolve over time, by introducing a novel meta-learning framework called L2S. L2S employs a "progressive meta-task scheduler" to intelligently select which past tasks to learn from, leading to more robust adaptation, especially when the target task distribution shifts abruptly.

What Problem Does This Paper Address?

Traditional transfer learning assumes a static relationship between source and target tasks. However, in many real-world scenarios, the target task's data distribution can change over time. This is known as dynamic transfer learning. While existing methods often assume a gradual, continuous evolution of the target task, this paper highlights that abrupt, sudden shifts in the target distribution are common and problematic for these approaches. Such shifts can occur due to various reasons, including adversarial attacks or system failures. The paper aims to develop a more robust dynamic transfer learning method that can handle these sudden distribution changes effectively.

Methods

The core of this paper is the L2S (Learning to Schedule) framework, built upon meta-learning principles. The key innovation is a progressive meta-task scheduler.

  • Meta-Learning Foundation: L2S frames dynamic transfer learning as a meta-learning problem. The goal is to learn an optimal model initialization that allows for fast adaptation to new, unseen target tasks. This is achieved by learning from a set of "meta-pairs" of tasks (i.e., transferring knowledge from task $D_i$ to task $D_j$).
  • Progressive Meta-Task Scheduler: Unlike previous meta-learning approaches that might sample meta-pairs uniformly or based on simple temporal proximity, L2S learns a sampling probability for these meta-pairs. This probability is determined by the distribution discrepancy between the source and target tasks in a meta-pair. The intuition is that meta-pairs with smaller distribution shifts are more reliable for learning. This scheduler is learned incrementally.
  • Theoretical Grounding: The paper derives generalization error bounds for dynamic transfer learning, both for direct transfer and for meta-learning. These bounds are shown to be tighter when considering weighted meta-pairs, especially in the presence of large distribution shifts. The proposed scheduler is directly motivated by these theoretical findings.
  • Meta-Training and Meta-Testing: The framework involves a meta-training phase where the model initialization is learned by minimizing a combined loss of classification error and distribution discrepancy across selected meta-pairs. Meta-testing involves fine-tuning this initialization on the newest target task.

Datasets

The proposed L2S framework was evaluated on two benchmark datasets:

  • Rotating MNIST: A semi-synthetic dataset derived from MNIST, where images are rotated by varying degrees. The paper considers two scenarios: "continuous evolvement" (gradual rotation changes) and "large distribution shift" (shuffled target tasks in the latter half).
  • ImageCLEF-DA: This dataset comprises three image classification tasks (Caltech-256, ImageNet, Pascal VOC). The paper generates time-evolving target tasks by adding random noise and rotation. Similar to Rotating MNIST, both "continuous evolvement" and "large distribution shift" scenarios were tested.

Key Insights and Ideas

  • Sudden Shifts are Critical: The paper convincingly argues that abrupt changes in target task distributions are a significant challenge for existing dynamic transfer learning methods, which often assume smooth evolution.
  • Scheduling is Key: The core idea of learning which past tasks to learn from (via the meta-task scheduler) is crucial for robustness. Simply using temporally adjacent tasks is insufficient when distributions shift dramatically.
  • Distribution Discrepancy as a Guide: Using the distribution discrepancy between meta-pairs as a primary signal for scheduling is an elegant way to leverage readily available information (unlabeled target data) to guide the learning process.
  • Theoretical Justification: The paper provides a solid theoretical foundation for its approach, showing how weighted meta-pairs can lead to tighter error bounds, thus motivating the scheduler.

Key Results

  • Superior Performance on Distribution Shifts: L2S significantly outperforms state-of-the-art baselines, particularly in scenarios with "large distribution shifts." For instance, on Rotating MNIST with large distribution shifts, L2S achieved 0.9687 Acc and 0.9116 H-Acc, compared to L2E's 0.6250 Acc and 0.7179 H-Acc.
  • Robustness Across Scenarios: While L2S excels in challenging shift scenarios, it also performs competitively or better than baselines in "continuous evolvement" scenarios.
  • Ablation Study: The paper shows that using a single inner epoch for meta-learning (as opposed to five) is sufficient and avoids overfitting to specific tasks, leading to better historical accuracy.

Limitations and Future Work

  • Pseudo-labeling Sensitivity: The paper acknowledges that estimating classification error on target tasks is difficult due to the lack of labels. While they opt to use distribution discrepancy for scheduling, they note that using pseudo-labels for error estimation could be affected by their quality.
  • Computational Cost: Meta-learning frameworks can be computationally intensive. While not explicitly detailed as a limitation, the complexity of training and scheduling could be a factor in real-world deployment.
  • Future Work: The paper's success in handling distribution shifts suggests future work could explore more complex and dynamic environments, potentially including scenarios with both source and target tasks evolving. Further investigation into more efficient scheduling mechanisms or alternative ways to estimate task relatedness could also be fruitful.

Summary updated

BibTeX
@article{wu2022dynamic,
  author = {Jun Wu and Jingrui He},
  title = {{Dynamic transfer learning with progressive meta-task scheduler}},
  journal = {Frontiers Big Data},
  year = {2022},
  doi = {10.3389/fdata.2022.1052972},
}
Figure