Meta-Transfer Learning for Few-Shot Learning

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

Abstract

Meta-Transfer Learning (MTL) addresses the fundamental challenge of few-shot learning by bridging the gap between large-scale pre-training and meta-learning. While deep neural networks excel at representation learning on large datasets, they often overfit when data is scarce. Conversely, meta-learning algorithms often rely on shallow architectures to maintain stability. MTL resolves this "capacity gap" by learning to "scale and shift" the weights of a deep, frozen neural network. This approach achieves state-of-the-art few-shot accuracy with significantly fewer training tasks than traditional meta-learning methods.

The Capacity Gap in Few-Shot Learning

Few-shot learning (FSL) aims to recognize new objects from just one or five examples. This is a massive challenge for Deep Neural Networks (DNNs), which are notorious for overfitting when data is scarce. To combat this, researchers usually take one of two paths:

  1. Transfer Learning: Pre-train a deep network on a large dataset and fine-tune it. However, fine-tuning a massive DNN on five images almost always leads to overfitting.
  2. Meta-Learning: "Learn to learn" by training on thousands of small tasks. To avoid overfitting, these methods often use shallow networks, which lack the "expressive power" needed for complex visual recognition.

The authors identify a "capacity gap": the need for the representational power of deep networks combined with the stability of meta-learning.

Methods: Meta-Transfer Learning (MTL)

The authors propose a three-phase pipeline to leverage both large-scale data and rapid task adaptation.

The three-phase MTL pipeline: (a) large-scale DNN training, (b) meta-transfer learning, and (c) meta-test.

1. Large-Scale Pre-training

The process begins by training a deep backbone (such as ResNet-12) on all available base-class data. This creates a robust, general-purpose feature extractor that captures complex visual hierarchies.

2. The "Scaling and Shifting" (SS) Operation

Instead of fine-tuning the entire network for a new task—which would risk catastrophic forgetting and overfitting—MTL freezes the pre-trained weights. It introduces two lightweight parameters for each neuron: Scaling ($\Phi_{S1}$) and Shifting ($\Phi_{S2}$).

The operation is defined as: $SS(X) = (W \odot \Phi_{S1})X + (b + \Phi_{S2})$.

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

This allows the model to adapt its feature maps to a specific task without changing the underlying "knowledge" in the weights. These SS operations are incredibly lightweight; for a $3 \times 3$ filter, the SS parameters represent less than 22% of the total weights. This sparsity acts as a natural regularizer.

3. Hard Task (HT) Meta-Batch

To further improve training efficiency, the authors introduce a curriculum learning strategy. During meta-training, the system tracks which classes the model finds difficult (low validation accuracy). It then intentionally samples "harder" tasks from these failure cases, forcing the meta-learner to focus on the most challenging boundaries.

Key Results and Insights

The researchers evaluated MTL on two primary benchmarks: miniImageNet and Fewshot-CIFAR100 (FC100). The latter is particularly challenging as training and testing splits are divided by "super-classes," ensuring a significant domain gap.

  • State-of-the-Art Accuracy: On miniImageNet (5-way, 1-shot), MTL achieved 61.2% accuracy, significantly outperforming MAML (48.7%). On FC100, it maintained a lead with 45.1% accuracy.
  • Efficiency Gains: Because the model starts with a high-quality pre-trained backbone, it requires significantly fewer episodes to converge. MTL used only 8,000 tasks for miniImageNet, compared to the 240,000 tasks typically required by MAML—a 30x speedup.
  • Curriculum Success: Ablation studies showed that "Hard Task" meta-batching leads to faster convergence and higher final accuracy by focusing the learning signal where it is most needed.

Conclusion

MTL proves that deep representations and meta-learning are not mutually exclusive. By using a frozen backbone and learning only modulation parameters, the framework achieves the benefits of deep ResNets without the overfitting risks. While the performance is tied to the quality of the pre-trained backbone, the SS operation provides a robust and parameter-efficient mechanism for rapid task adaptation.

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