Rethinking Few-Shot Image Classification: A Good Embedding is All You Need?

Yonglong Tian, Yue Wang, Dilip Krishnan, Joshua B. Tenenbaum, Phillip Isola

Abstract

The focus of recent meta-learning research has been on the development of learning algorithms that can quickly adapt to test time tasks with limited data and low computational cost. Few-shot learning is widely used as one of the standard benchmarks in meta-learning. In this work, we show that a simple baseline: learning a supervised or self-supervised representation on the meta-training set, followed by training a linear classifier on top of this representation, outperforms state-of-the-art few-shot learning methods. An additional boost can be achieved through the use of self-distillation. This demonstrates that using a good learned embedding model can be more effective than sophisticated meta-learning algorithms. We believe that our findings motivate a rethinking of few-shot image classification benchmarks and the associated role of meta-learning algorithms.

Introduction

Few-shot learning (FSL) aims to recognize new categories using only a handful of examples (e.g., "5-way 1-shot"). Traditionally, this challenge has been addressed through complex meta-learning algorithms, which generally fall into two categories: optimization-based methods (like MAML) that seek a flexible model initialization, and metric-based methods (like Prototypical Networks) that learn specialized distance metrics.

This paper challenges the prevailing wisdom by asking a fundamental question: Is the "meta" part actually necessary? The authors investigate whether the success of complex models is due to their adaptation logic or simply because they learn high-quality feature extractors (embeddings). They demonstrate that a "dead simple" baseline—standard supervised pre-training followed by a linear classifier—can outperform state-of-the-art meta-learning algorithms.

Methodology

The proposed approach consists of two straightforward stages:

  1. Pre-training (The Embedding): Instead of episodic meta-learning, all classes in the meta-training set are merged into one standard supervised classification task. A backbone network (typically ResNet-12) is trained using standard cross-entropy loss to learn a robust feature representation.
  2. Meta-testing (The Classifier): For a new few-shot task, the pre-trained backbone is frozen and used as a fixed feature extractor. A simple multivariate Logistic Regression classifier is then trained on the extracted features of the available "support" images.
The meta-testing stage: features are extracted from support images to train a simple linear classifier, which then predicts labels for query images.

To further enhance performance, the authors introduce Sequential Self-Distillation. This involves training a "student" network to match the soft probability outputs of a "teacher" (the previous generation's model). Repeating this process for several generations consistently improves the quality of the features for downstream few-shot tasks.

Key Results

The simple baseline, especially when combined with distillation, sets new benchmarks across multiple datasets including miniImageNet, tieredImageNet, CIFAR-FS, and FC100.

Performance comparison showing that the proposed simple baseline (Ours-simple) and distilled version (Ours-distill) outperform complex state-of-the-art meta-learning models.

Key findings include:

  • Beating the SOTA: On miniImageNet 5-shot, the method achieved 82.14% accuracy, significantly higher than MetaOptNet's 78.63%.
  • Meta-Dataset Dominance: On the rigorous Meta-Dataset benchmark, the method outperformed previous best results by an average of over 7%.
  • Self-Supervision: Embeddings learned via self-supervised methods (like MoCo) perform nearly as well as supervised ones, reinforcing the idea that a "good embedding" is the primary driver of success.

Discussion and Insights

The results suggest that the "inner loop" of meta-learning may not be the critical component for few-shot success. Instead, the ability to extract robust, generalizable features from base classes is paramount. A fixed embedding with a linear classifier is less prone to the high variance and overfitting issues that often plague complex meta-learning models in low-data regimes.

While highly effective, the authors note that this "embedding-centric" philosophy might face challenges under extreme domain shifts (e.g., natural images to medical X-rays). Future work may explore the theoretical reasons why distillation improves few-shot transfer and whether these findings extend to more complex domains like meta-reinforcement learning or object detection.

Summary updated

BibTeX
@inproceedings{tian2020rethinking,
  author = {Yonglong Tian and Yue Wang and Dilip Krishnan and Joshua B. Tenenbaum and Phillip Isola},
  title = {{Rethinking Few-Shot Image Classification: A Good Embedding is All You Need?}},
  booktitle = {European Conference on Computer Vision},
  year = {2020},
  url = {https://openreview.net/forum?id=d0dqnZEMMlo},
}
Figure