Few-Shot Learning with Intra-Class Knowledge Transfer

Vivek Roy, Yan Xu, Yu-Xiong Wang, Kris Kitani, Ruslan Salakhutdinov, Martial HebertarXiv 2020

Abstract

This paper introduces a novel framework for few-shot learning that leverages intra-class knowledge transfer to address the data scarcity problem. By transferring statistical properties—specifically class means and variances—from data-rich categories to data-poor ones, the model can synthesize diverse and realistic training samples. This approach, integrated into a meta-learning framework, significantly improves classification accuracy on challenging benchmarks, including long-tailed and large-scale datasets.

Introduction

Standard machine learning models typically require thousands of labeled examples to achieve high performance, whereas humans can learn new concepts from just a few instances. In few-shot learning, the primary challenge is the inability to accurately estimate the distribution of a new category from a limited "seed" set. Existing data augmentation or "hallucination" techniques often produce biased or non-diverse samples because they rely solely on the sparse information available in the few-shot classes.

Conceptual overview of intra-class knowledge transfer: combining a prototype with transferred variance from related classes to generate novel samples.

This research addresses this limitation by proposing that while a new class's prototype (mean) is unique, its intra-class variation is often shared with visually similar, well-populated categories. For instance, knowing how a domestic cat varies in pose and color can help a model "guess" the potential variations of a rare panther species, as illustrated in the figure above.

Methodology

The proposed framework consists of three integrated modules designed to work within a meta-learning environment:

  1. Few-Shot Class Center Regression: Instead of relying on a simple average of few-shot samples, which is prone to noise, a neural network regressor is trained on many-shot classes to predict the true class center (mean) from a small sample set.
  2. Superclass Knowledge Transfer: Classes are clustered into "superclasses" based on their feature-space means. Few-shot classes then inherit the statistical variance and mean of their respective superclass, providing a more robust distributional anchor.
  3. Meta-Generator for Data Augmentation: A generator synthesizes new training samples using a seed image, the inherited superclass statistics, and random noise. The entire system is trained end-to-end, with the generator's performance optimized based on the final classifier's accuracy.
The three-module architecture: (a) class center regression, (b) superclass knowledge transfer, and (c) the meta-generator and classifier pipeline.

Experimental Results

The method was evaluated on three major benchmarks: MiniImageNet, ImageNetFewShot, and ImageNet-LT.

  • MiniImageNet: The model achieved a 5-shot accuracy of 85.02%, outperforming previous state-of-the-art methods like CAN and DC by over 5%.
  • ImageNetFewShot: The approach showed consistent gains across 1, 2, 5, 10, and 20-shot settings. In the challenging 1-shot task, it reached 46.5% accuracy, outperforming the hallucination baseline.
  • ImageNet-LT: On this long-tailed dataset, the method significantly boosted performance for the "Few" category (classes with <20 samples) to 18.25%, compared to 12.86% for standard Prototypical Networks.

Key Insights

  • Transferability of Variance: The core innovation is the realization that intra-class variance is a transferable piece of knowledge. Inheriting this variance from related superclasses allows for much more effective data hallucination than looking at few-shot seeds alone.
  • Feature-Based Clustering: Clustering classes in the visual feature space proved more effective than using semantic hierarchies (like WordNet), as visual similarity more directly impacts the classifier's feature representation requirements.
  • Stable Prototypes: Using a learned regressor to find class centers provides a more stable foundation for generation than simple sample averaging, which is often biased in low-data regimes.

Conclusion

By mimicking the human ability to transfer knowledge between related concepts, this framework provides a powerful solution for few-shot learning. While 1-shot performance on smaller datasets remains an area for improvement, the method's success on large-scale and long-tailed data demonstrates its potential for real-world applications where data imbalance is common. Future work will explore extending this inheritance mechanism to more complex tasks like object detection and segmentation.

Summary updated

BibTeX
@misc{roy2020few,
  author = {Vivek Roy and Yan Xu and Yu-Xiong Wang and Kris Kitani and Ruslan Salakhutdinov and Martial Hebert},
  title = {{Few-Shot Learning with Intra-Class Knowledge Transfer}},
  year = {2020},
  eprint = {2008.09892},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2008.09892},
}
Figure