Prototype Completion With Primitive Knowledge for Few-Shot Learning

Baoquan Zhang, Xutao Li, Yunming Ye, Zhichao Huang, Lisai Zhang

Abstract

Few-shot learning (FSL) aims to recognize novel classes with minimal labeled data. However, prototypes derived from limited samples are often "incomplete" due to high intra-class variance. This paper proposes a Prototype Completion framework that leverages attribute-based "primitive knowledge" to reconstruct representative class prototypes. By integrating an encoder-aggregator-decoder network with a Gaussian-based fusion strategy, the proposed method significantly outperforms state-of-the-art benchmarks, particularly in 1-shot scenarios.

Introduction: The Challenge of Incomplete Prototypes

In Few-Shot Learning, the goal is to recognize new classes using only 1 to 5 labeled examples. Recent trends have shifted toward a two-phase approach: pre-training a feature extractor on a large "base" dataset, then using the mean of the few available "novel" samples to create a prototype (a representative vector) for classification.

The authors identify a critical flaw in this approach: in the feature space, base classes form tight, compact clusters, but novel classes are spread out with high variance. If you only have one image of a meerkat and it happens to be hiding its tail or is partially obscured by grass, the resulting prototype is "incomplete." Fine-tuning the feature extractor often yields marginal gains because the model simply overfits the few available (and potentially unrepresentative) samples.

t-SNE visualization of feature space showing incomplete prototypes for novel classes (e.g., meerkat).

Proposed Method: ProtoComNet

The authors propose a framework called ProtoComNet (Prototype Completion Network) and a fusion strategy to bridge the gap between a single noisy sample and a true class representation.

1. Primitive Knowledge Extraction

The model leverages "primitive knowledge"—class-level attributes or parts (e.g., "has wings," "long neck"). These are sourced from WordNet or manual annotations. Humans can imagine what a whole animal looks like even if they only see its head because we have prior knowledge of "parts." ProtoComNet mimics this by using attributes as a blueprint to "fill in" the missing parts of a feature vector.

2. ProtoComNet (The Completion Phase)

This is an encoder-aggregator-decoder network designed to reconstruct a "completed" prototype that accounts for missing features.

  • Encoder: Maps both the incomplete prototype (from the few shots) and the attribute features into a latent space.
  • Aggregator: Uses an attention mechanism to determine which attributes are most important for a specific class (e.g., "trunk" is more vital for an elephant than a tiger).
  • Decoder: Generates the completed prototype.

3. Gaussian-based Prototype Fusion (GaussFusion)

While the completed prototype is highly effective for 1-shot tasks, the mean-based prototype becomes more reliable as more samples are provided (e.g., 5-shot). The authors use a Bayesian approach to fuse these two. By looking at unlabeled query samples in a transductive setting, they estimate the distribution of the class and combine the attribute-based prior with the sample-based likelihood.

Overview of the four-stage framework: Pre-training, Learning to Complete Prototypes, Meta-Training, and Meta-Test.

Experimental Evaluation

The researchers evaluated their method on three standard benchmarks: miniImageNet, tieredImageNet, and CUB-200-2011. The CUB dataset, consisting of fine-grained bird species, is particularly well-suited for testing attribute-based methods.

Key Results

  • Significant Accuracy Gains: The method outperforms previous state-of-the-art (SOTA) techniques by 2% to 9% across different datasets.
  • 1-Shot Excellence: The improvement is most dramatic in 1-shot scenarios. On the CUB dataset, the model achieved 93.20% accuracy in a 5-way 1-shot task, a massive jump over the previous SOTA of ~85%.
  • Robustness to Noise: Ablation studies showed that even when the attribute data is "noisy" (randomly adding or removing attributes), the Gaussian Fusion strategy keeps the performance stable.

Conclusion

This work highlights that the primary bottleneck in few-shot learning is not necessarily the feature extractor, but the high variance and incompleteness of prototypes formed from limited data. By incorporating semantic primitive knowledge, ProtoComNet effectively "completes" these prototypes. While the method depends on attribute annotations, its ability to leverage transductive synergy and prior knowledge sets a new bar for few-shot classification performance.

Summary updated

BibTeX
@inproceedings{zhang2021prototype,
  author = {Baoquan Zhang and Xutao Li and Yunming Ye and Zhichao Huang and Lisai Zhang},
  title = {{Prototype Completion With Primitive Knowledge for Few-Shot Learning}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2021},
  doi = {10.1109/cvpr46437.2021.00375},
}
Figure