Few Shot Learning With No Labels

Aditya Bharti, Vineeth N. Balasubramanian, C. V. JawahararXiv 2020 · OpenReview

TL;DR

This paper introduces a novel "label-free" few-shot learning paradigm where no labeled data is used during either training or testing. By combining self-supervised representation learning with image similarity for classification, they achieve competitive results, significantly reducing the reliance on costly annotations.

What Problem Does This Paper Address?

Traditional few-shot learning aims to classify new categories using only a handful of examples. However, existing methods often shift the burden of annotation from novel classes to base classes, still requiring substantial labeled data. This paper tackles the critical challenge of eliminating labels entirely from the few-shot learning process, recognizing that data annotation is a major bottleneck in many real-world applications. They propose a more demanding setting where models must learn and classify without any explicit labels, pushing the boundaries of data efficiency.

Methods

The core of this work lies in a two-phase approach:

  • Self-Supervised Training: The model is trained using self-supervised learning techniques, specifically leveraging contrastive learning methods like SimCLR and MoCo. The goal here is to learn robust image representations by maximizing the similarity between different augmented views of the same image while minimizing similarity with other images. This phase operates entirely on unlabeled data.
  • Image Similarity Classification: At test time, the learned representations are used for classification. Instead of traditional classifiers that rely on learned class labels, this method employs image similarity. For a given query image, the classifier finds the most similar "key" image from the few available examples of novel classes. This is achieved using simple non-parametric classifiers like 1-Nearest Neighbor (1NN) or a soft cosine attention kernel (ATTN). Crucially, these classifiers do not require any label information during inference.

Datasets

The proposed methodology is evaluated on three standard few-shot image classification benchmarks:

  • miniImageNet: A widely used subset of ImageNet.
  • CIFAR-100FS: A version of CIFAR-100 adapted for few-shot learning.
  • FC100: Another dataset derived from CIFAR-100, with classes grouped into superclasses.

The authors emphasize that their training and testing procedures are entirely label-free on these datasets.

Key Insights and Ideas

  • Label-Free Few-Shot Learning is Feasible: The most significant insight is demonstrating that competitive few-shot classification performance can be achieved without any labels, challenging the conventional wisdom that some form of annotation is always necessary.
  • Self-Supervision as a Powerful Pre-training Tool: The paper highlights the effectiveness of self-supervised learning, particularly contrastive methods, in learning generalizable visual representations that are highly beneficial for downstream few-shot tasks, even without explicit labels.
  • Image Similarity as a Direct Classifier: By framing classification as an image similarity problem, the authors bypass the need for explicit class labels at test time, simplifying the inference process and further reducing annotation requirements.
  • The "Zero Label" Setting is a Significant Step: The work is positioned as a foundational step towards truly label-agnostic machine learning, with the potential to unlock applications in domains where data labeling is prohibitively expensive or impossible.

Key Results

The paper reports competitive baselines on the evaluated datasets, achieving accuracies that are comparable to or even surpass some existing unsupervised methods, while using orders of magnitude fewer labels (zero labels). For instance, on miniImageNet, their "Ours" method achieves 50.1% accuracy in the 1-shot setting and 60.1% in the 5-shot setting. While not always reaching state-of-the-art supervised performance, the achievement of strong results with zero labels is the primary contribution. Ablation studies also show that using label information to compute class centroids at test time can improve performance by 2-4%, indicating the potential benefits of even limited label access.

Limitations and Future Work

The authors acknowledge that their primary goal was to demonstrate the feasibility of label-free few-shot learning rather than achieving state-of-the-art performance. They note that their method does not yield benefits on all datasets when integrating clustering methods (OURS_SF), suggesting that improving cluster quality via self-supervision could be a promising avenue for future research. They also highlight that while their method achieves strong baselines without labels, incorporating limited label information for computing class centroids at test time can provide performance gains. Future work could explore more advanced self-supervised techniques and investigate how to best leverage image similarity for classification in more complex scenarios.

Summary updated

Abstract

Few-shot learners aim to recognize new categories given only a small number of training samples. The core challenge is to avoid overfitting to the limited data while ensuring good generalization to novel classes. Existing literature makes use of vast amounts of annotated data by simply shifting the label requirement from novel classes to base classes. Since data annotation is time-consuming and costly, reducing the label requirement even further is an important goal. To that end, our paper presents a more challenging few-shot setting where no label access is allowed during training or testing. By leveraging self-supervision for learning image representations and image similarity for classification at test time, we achieve competitive baselines while using \textbf{zero} labels, which is at least fewer labels than state-of-the-art. We hope that this work is a step towards developing few-shot learning methods which do not depend on annotated data at all. Our code will be publicly released.
BibTeX
@misc{bharti2020few,
  author = {Aditya Bharti and Vineeth N. Balasubramanian and C. V. Jawahar},
  title = {{Few Shot Learning With No Labels}},
  year = {2020},
  eprint = {2012.13751},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2012.13751},
}
Figure