Comparing Transfer and Meta Learning Approaches on a Unified Few-Shot Classification Benchmark

Vincent Dumoulin, Neil Houlsby, Utku Evci, Xiaohua Zhai, Ross Goroshin, Sylvain Gelly, Hugo LarochellearXiv 2021

Abstract

Meta and transfer learning are two successful families of approaches to few-shot learning. Despite highly related goals, state-of-the-art advances in each family are measured largely in isolation of each other. As a result of diverging evaluation norms, a direct or thorough comparison of different approaches is challenging. To bridge this gap, we perform a cross-family study of the best transfer and meta learners on both a large-scale meta-learning benchmark (Meta-Dataset, MD), and a transfer learning benchmark (Visual Task Adaptation Benchmark, VTAB). We find that, on average, large-scale transfer methods (Big Transfer, BiT) outperform competing approaches on MD, even when trained only on ImageNet. In contrast, meta-learning approaches struggle to compete on VTAB when trained and validated on MD. However, BiT is not without limitations, and pushing for scale does not improve performance on highly out-of-distribution MD tasks. In performing this study, we reveal a number of discrepancies in evaluation norms and study some of these in light of the performance gap. We hope that this work facilitates sharing of insights from each community, and accelerates progress on few-shot learning.

Introduction

Teaching AI models to recognize new visual concepts from a handful of examples—few-shot learning—is a core challenge in computer vision. Currently, two paradigms dominate: transfer learning, which leverages massive pre-training on datasets like ImageNet, and meta-learning, which uses episodic training to learn generalizable adaptation strategies. Historically, these communities have operated in silos, using different architectures (e.g., large ResNets vs. small CNNs) and benchmarks. This fragmentation obscures which approach is truly superior. This paper bridges this gap by introducing a unified evaluation protocol, VTAB+MD, to perform a direct comparison of state-of-the-art methods from both families.

Methodology

The study evaluates top-tier algorithms from both camps:

  • Transfer Learning: Big Transfer (BiT), a highly optimized recipe for pre-training and fine-tuning large ResNets, alongside a standard baseline called MD-Transfer.
  • Meta-Learning: Prototypical Networks, ProtoMAML, SUR (which trains multiple domain-specific feature extractors), and CrossTransformers (CTX).

To create a unified playing field, the authors combined two massive benchmarks into a new protocol called VTAB+MD:

  • Meta-Dataset (MD): The standard meta-learning benchmark, featuring 10 diverse image sources (from natural images to fungi to sketches).
  • Visual Task Adaptation Benchmark (VTAB): A transfer learning benchmark featuring 19 diverse evaluation tasks categorized into natural, specialized (e.g., medical), and structured (e.g., counting objects) domains.

Key Results and Insights

The primary finding is that large-scale transfer learning is a formidable baseline. Simply fine-tuning a massive, well-trained network is incredibly hard to beat, often outperforming complex meta-learning algorithms. BiT-L (a ResNet-101x3 trained on JFT-300M) achieved state-of-the-art on the unified benchmark, outperforming competing methods by at least 3.5% on MD and a massive 10.4% on VTAB.

Comparison of transfer and meta-learning methods across VTAB-v2 and MD-v2 benchmarks.

The Limits of Scale and Out-of-Distribution Performance

While scale is powerful, it is not a silver bullet. For highly unusual datasets (like Omniglot's characters or QuickDraw's sketches), simply throwing more pre-training data or bigger networks at the problem yields diminishing returns. In these highly out-of-distribution cases, meta-learning's algorithmic inductive biases shine. Furthermore, when scale is controlled (e.g., using a ResNet-18 architecture), SOTA meta-learners like SUR and CTX actually outperform transfer baselines on Meta-Dataset.

Performance breakdown by source dataset on Meta-Dataset, comparing BiT variants with CTX and SUR.

Engineering and Normalization

A significant driver of BiT's success is its use of Group Normalization combined with Weight Standardization (GNWS), which avoids the instabilities Batch Normalization faces in few-shot settings. Conversely, meta-learning is currently bottlenecked by hardware engineering; episodic training is memory-intensive, making it difficult to scale these algorithms to the massive ResNet-101 architectures that transfer learners enjoy.

Conclusion

Transfer learning currently holds the performance edge due to its superior scalability and robust pre-training recipes. However, meta-learning's strength in handling extreme out-of-distribution tasks suggests that the two paradigms are complementary. Future research should focus on overcoming the engineering hurdles to scale up meta-learning architectures and improving transfer learning's adaptability to highly out-of-distribution tasks.

Summary updated

BibTeX
@misc{dumoulin2021comparing,
  author = {Vincent Dumoulin and Neil Houlsby and Utku Evci and Xiaohua Zhai and Ross Goroshin and Sylvain Gelly and Hugo Larochelle},
  title = {{Comparing Transfer and Meta Learning Approaches on a Unified Few-Shot Classification Benchmark}},
  year = {2021},
  eprint = {2104.02638},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2104.02638},
}
Figure