Meta-Transfer Learning for Few-Shot Learning

Qianru Sun, Yaoyao Liu, Tat-Seng Chua, Bernt Schiele

Introduction

Deep Neural Networks (DNNs) typically require vast amounts of data to generalize effectively. In "few-shot learning" scenarios, where only a handful of examples are available for new classes, standard DNNs often suffer from catastrophic overfitting. Meta-learning, or "learning to learn," has emerged as a solution, but traditional methods like Model-Agnostic Meta-Learning (MAML) often struggle with deep architectures or require training from scratch. Conversely, standard transfer learning leverages pre-trained weights but can lead to "catastrophic forgetting" of general features during fine-tuning on small target sets.

Methodology

The authors propose Meta-Transfer Learning (MTL), a framework that combines the representational power of deep, pre-trained models with the rapid adaptability of meta-learning. The pipeline consists of three stages: large-scale pre-training on base classes, meta-transfer learning using a novel parameter-efficient mechanism, and a final meta-test phase on unseen tasks.

Conceptual comparison of Transfer Learning, Meta-Learning, and the proposed Meta-Transfer Learning (MTL) framework.

Scaling and Shifting (SS)

The core of MTL is the Scaling and Shifting (SS) operation. Instead of updating all weights in a deep network—which risks overfitting—the authors freeze the pre-trained weights and introduce a lightweight set of learnable parameters. For each neuron, a scaling factor ($\alpha$) and a shifting factor ($\beta$) are learned to modulate the frozen weights:

$$Output = (W \odot \alpha)X + (b + \beta)$$

Comparison between standard parameter-level fine-tuning (FT) and the proposed Scaling and Shifting (SS) mechanism.

This approach reduces the number of parameters to be meta-learned by over 90% compared to full fine-tuning, acting as a powerful regularizer that prevents the model from memorizing small training sets.

Hard Task (HT) Meta-Batch

To further enhance training efficiency, the authors implement a curriculum learning strategy called "Hard Task" meta-batching. Instead of sampling random tasks, the system tracks which classes the model fails on and specifically re-samples "harder" tasks composed of those failure cases. This strategy consistently adds approximately 1-2% in accuracy across different benchmarks.

Experimental Results

MTL was evaluated on two primary benchmarks: miniImageNet and Fewshot-CIFAR100 (FC100).

  • miniImageNet: The method achieved 61.2% (1-shot) and 75.5% (5-shot) accuracy using a ResNet-12 backbone. Notably, MTL converged in just 8,000 tasks, a massive speedup compared to the 240,000 tasks required by MAML.
  • FC100: On this more challenging dataset, which features significant domain gaps between training and testing splits, MTL reached 45.1% (1-shot) and 57.6% (5-shot) accuracy, outperforming previous state-of-the-art methods like TADAM.

Conclusion

Meta-Transfer Learning effectively bridges the gap between large-scale pre-training and few-shot adaptation. By utilizing lightweight Scaling and Shifting parameters and a hard-task curriculum, the framework achieves state-of-the-art performance with high parameter efficiency and significantly faster convergence than traditional meta-learning approaches.

Summary updated

BibTeX
@inproceedings{sun2019meta,
  author = {Qianru Sun and Yaoyao Liu and Tat-Seng Chua and Bernt Schiele},
  title = {{Meta-Transfer Learning for Few-Shot Learning}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2019},
  doi = {10.1109/cvpr.2019.00049},
}
Figure