Meta-Transfer Learning through Hard Tasks

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

TL;DR

Meta-Transfer Learning (MTL) bridges the gap between transfer learning and meta-learning to conquer the challenge of few-shot classification. By freezing a deep pre-trained network and meta-learning light-weight scaling and shifting parameters for its neurons, MTL prevents overfitting while achieving state-of-the-art accuracy with 30x faster convergence than traditional meta-learning models.

What Problem Does This Paper Address?

Few-shot learning (FSL)—the ability to recognize new visual concepts from just one or five examples—is notoriously difficult for deep neural networks. Because deep networks contain millions of parameters, training them on scarce data leads to severe overfitting.

To circumvent this, classic meta-learning algorithms (like Model-Agnostic Meta-Learning, or MAML) typically restrict themselves to shallow neural networks. However, these shallow architectures lack the representational capacity required for complex, real-world image recognition. Conversely, standard transfer learning—fine-tuning a deep network pre-trained on a large dataset—often overfits the few-shot data or suffers from "catastrophic forgetting."

The authors address a fundamental dilemma: How can we safely leverage powerful, deep pre-trained architectures for few-shot learning without overfitting?

Methods

The authors introduce Meta-Transfer Learning (MTL), a framework that decouples feature learning from task adaptation using three distinct phases:

  1. Large-Scale DNN Pre-training: A deep neural network (such as ResNet-12, 18, or 25) is trained on all available training classes merged together. This establishes a robust, generalized feature extractor.
  2. Scaling and Shifting (SS): During the meta-learning phase, the weights of the pre-trained feature extractor are frozen. To allow task adaptation, MTL introduces light-weight, neuron-level Scaling ($\alpha$) and Shifting ($\beta$) parameters. For a frozen weight matrix $W$ and bias $b$, the operation is defined as: $$\text{SS}(X) = (W \odot \alpha)X + (b + \beta)$$ where $\odot$ denotes element-wise multiplication. Only these small $\alpha$ and $\beta$ vectors are optimized across multiple tasks, drastically reducing the parameter space and preventing overfitting.

  3. Hard Task (HT) Meta-Batch: To optimize the training process, the authors introduce an online curriculum learning strategy. During meta-training, the system automatically identifies classes with the lowest validation accuracy ("failure classes") and dynamically re-samples new, harder tasks focusing on these difficult categories.

Fig. 1. Meta-transfer learning (MTL) is our meta-learning paradigm and hard task (HT) meta-batch is our training strategy. The upper blocks show the differences between MTL and related methods – transfer-learning [9] and meta-learning [7]. The bottom blocks compare the proposed HT meta-batch with the conventional meta-batch [7]. Note that here the FT stands for fine-tuning a classifier. SS represents the Scaling and Shifting operations in our MTL method.
Parameter-level Fine-Tuning vs. Scaling and Shifting

Datasets

The method was rigorously evaluated on three popular few-shot learning benchmarks:

  • miniImageNet: A standard benchmark containing 100 classes (64 train, 16 validation, 20 test) derived from ImageNet.
  • tieredImageNet: A much larger, more challenging subset of ImageNet featuring 608 classes grouped into 34 super-classes. The split is done at the super-class level, ensuring a stricter, more realistic evaluation of domain generalization.
  • Fewshot-CIFAR100 (FC100): Based on CIFAR-100, this dataset features lower-resolution ($32 \times 32$) images split by super-classes, presenting a challenging low-resolution scenario.

Key Insights and Ideas

  • Parameter Efficiency is Key: Freezing the core feature extractor and only optimizing neuron-level scaling/shifting parameters provides the perfect regularization for few-shot scenarios. It retains large-scale knowledge while adapting to new tasks with minimal parameters.
  • No Catastrophic Forgetting: Because the underlying pre-trained weights are never directly modified, the model preserves its generalized feature extraction capabilities across diverse tasks.
  • Hardship Breeds Efficiency: The Hard Task meta-batch acts as an online hard-negative mining mechanism. Forcing the model to continuously tackle its failure modes accelerates convergence dramatically.
  • Plug-and-Play Generalization: The SS mechanism is independent of the classification head, meaning it can be easily integrated into other popular meta-learning frameworks (e.g., ProtoNets, MatchingNets, MAML) to consistently boost their performance.

Key Results

  • State-of-the-Art Accuracy: On miniImageNet, MTL with a ResNet-25 backbone achieves 64.3% accuracy for 1-shot tasks and 80.9% for 5-shot tasks, outperforming existing gradient-descent and metric-based methods.
  • Massive Speedup: MTL requires significantly fewer tasks to converge. On miniImageNet, MTL converges in just 8k tasks—a 30x reduction compared to the 240k tasks required by standard MAML.
  • Robustness on Challenging Splits: On the tougher tieredImageNet dataset, ResNet-25 MTL achieves 72.0% (1-shot) and 85.1% (5-shot), demonstrating its capability to scale to larger, more complex datasets.

Limitations and Future Work

  • Dependence on Pre-training Quality: The success of MTL heavily relies on the quality of the initial large-scale pre-training phase. If the pre-training dataset lacks diversity or is too narrow, the frozen feature extractor may not generalize well to downstream few-shot tasks.
  • Hyperparameter Sensitivity: The curriculum strategy requires tuning the number of hard tasks sampled per batch, which varies across datasets.
  • Future Directions: The authors suggest extending this framework to other complex architectures and exploring unsupervised or self-supervised pre-training strategies to eliminate the need for large-scale labeled data in the first phase.

Summary updated

BibTeX
@misc{sun2019meta,
  author = {Qianru Sun and Yaoyao Liu and Zhaozheng Chen and Tat-Seng Chua and Bernt Schiele},
  title = {{Meta-Transfer Learning through Hard Tasks}},
  year = {2019},
  eprint = {1910.03648},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1910.03648},
}
Figure