Skip to main content
QUICK REVIEW

[Paper Review] Generating Representative Samples for Few-Shot Classification

Jingyi Xu, Hieu Lê|arXiv (Cornell University)|May 5, 2022
Domain Adaptation and Few-Shot LearningComputer Science12 citations
TL;DR

This paper proposes a representative sample generation method for few-shot classification using a conditional variational autoencoder (CVAE) trained on class-representative samples from base classes. By filtering non-representative samples via multivariate Gaussian modeling and training the CVAE only on high-representativeness data, the method generates more accurate prototypes, achieving state-of-the-art performance on miniImageNet and tieredImageNet, with gains of up to 6% in 1-shot accuracy.

ABSTRACT

Few-shot learning (FSL) aims to learn new categories with a few visual samples per class. Few-shot class representations are often biased due to data scarcity. To mitigate this issue, we propose to generate visual samples based on semantic embeddings using a conditional variational autoencoder (CVAE) model. We train this CVAE model on base classes and use it to generate features for novel classes. More importantly, we guide this VAE to strictly generate representative samples by removing non-representative samples from the base training set when training the CVAE model. We show that this training scheme enhances the representativeness of the generated samples and therefore, improves the few-shot classification results. Experimental results show that our method improves three FSL baseline methods by substantial margins, achieving state-of-the-art few-shot classification performance on miniImageNet and tieredImageNet datasets for both 1-shot and 5-shot settings. Code is available at: https://github.com/cvlab-stonybrook/fsl-rsvae.

Motivation & Objective

  • To address the bias in few-shot classification prototypes caused by limited support samples.
  • To improve prototype representativeness by generating high-quality visual features from semantic embeddings.
  • To develop a sample selection strategy that filters non-representative training samples for better VAE training.
  • To achieve state-of-the-art few-shot classification performance across multiple benchmarks and settings.

Proposed method

  • Train a conditional VAE (SVAE) on base classes to generate visual features conditioned on semantic embeddings.
  • Use multivariate Gaussian modeling to estimate the representativeness of each base-class sample based on its feature distance to the class center.
  • Filter out low-representativeness samples (e.g., those with low probability under the class Gaussian) to form a representative training set.
  • Train the CVAE exclusively on the selected representative samples to generate more faithful, prototype-aligned features.
  • Construct class prototypes using both few-shot support samples and generated features, improving classification robustness.
  • Use kernel density estimation and t-SNE visualization to analyze feature distribution and prototype proximity to ground truth.
Figure 1 : Representative Samples. We refer representative samples to the “easy-to-recognize” samples that faithfully reflect the key characteristics of the category. We identify those samples and then use them to train a VAE model for feature generation, conditioned on class-representative semantic
Figure 1 : Representative Samples. We refer representative samples to the “easy-to-recognize” samples that faithfully reflect the key characteristics of the category. We identify those samples and then use them to train a VAE model for feature generation, conditioned on class-representative semantic

Experimental results

Research questions

  • RQ1Can generating representative visual features via a conditional VAE improve few-shot classification accuracy?
  • RQ2Does filtering non-representative samples from the base training set enhance the quality of generated features and prototype estimation?
  • RQ3How does the representativeness of the training data affect the performance of few-shot classification models?
  • RQ4Can the proposed method generalize across different semantic embedding sources (e.g., CLIP vs. Word2Vec)?
  • RQ5How close are the generated prototypes to the ground-truth prototypes compared to baseline methods?

Key findings

  • The proposed R-SVAE method achieves state-of-the-art performance on both miniImageNet and tieredImageNet, with a 6.1% absolute improvement in 1-shot accuracy over the baseline.
  • Training the CVAE on only 10% of the base training set (the most representative samples) yields the best performance, demonstrating the effectiveness of sample filtering.
  • The distance between estimated prototypes and ground-truth prototypes is significantly reduced when using R-SVAE-generated features, confirming improved prototype accuracy.
  • The method improves three different FSL baselines (Meta-Baseline, ProtoNet, and others) by 1–2% in representativeness and 5–6% in 1-shot accuracy.
  • t-SNE visualization confirms that R-SVAE-generated features lie closer to real data distributions and are more compact than those from standard SVAE.
  • Performance remains strong even when using Word2Vec embeddings instead of CLIP, showing robustness to semantic embedding source.
Figure 2 : Overview – The key aspect of our approach is to subset our training set to the most representative samples to train a conditional VAE model that generates more representative features. (a) To select representative samples, we assume that the features of each class follow a multivariate Ga
Figure 2 : Overview – The key aspect of our approach is to subset our training set to the most representative samples to train a conditional VAE model that generates more representative features. (a) To select representative samples, we assume that the features of each class follow a multivariate Ga

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.