Generating Representative Samples for Few-Shot Classification

Jingyi Xu, Hieu Le
5/5/2022
cs.CV

Official code: cvlab-stonybrook/fsl-rsvae (34 stars, Python, MIT, last commit 2022-09-24).

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations(1)

MIT
344PythonMay 30, 20224 years agoMIT

Similar Papers

Cite this paper

@article{xu2022generating,
  title  = {Generating Representative Samples for Few-Shot Classification},
  author = {Jingyi Xu and Hieu Le},
  year   = {2022},
  eprint = {2205.02918},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2205.02918}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2205.02918.svg)](https://codeofpaper.com/paper/2205.02918)

Discussion