Boosting Few-Shot Classification with View-Learnable Contrastive Learning

Xu Luo, Yuxuan Chen, Liangjian Wen, Lili Pan, Zenglin Xu
7/20/2021
cs.CV
contrastive-ssl

Official code: Frankluox/LightningFSL (113 stars, Python, MIT, last commit 2022-12-27).

Abstract

The goal of few-shot classification is to classify new categories with few labeled examples within each class. Nowadays, the excellent performance in handling few-shot classification problems is shown by metric-based meta-learning methods.

Show full abstract

However, it is very hard for previous methods to discriminate the fine-grained sub-categories in the embedding space without fine-grained labels. This may lead to unsatisfactory generalization to fine-grained subcategories, and thus affects model interpretation. To tackle this problem, we introduce the contrastive loss into few-shot classification for learning latent fine-grained structure in the embedding space. Furthermore, to overcome the drawbacks of random image transformation used in current contrastive learning in producing noisy and inaccurate image pairs (i.e., views), we develop a learning-to-learn algorithm to automatically generate different views of the same image. Extensive experiments on standard few-shot learning benchmarks demonstrate the superiority of our method.

View on arXivView PDF

Code Implementations(1)

MIT

LightningFSL: Pytorch-Lightning implementations of Few-Shot Learning models.

11316Python, ShellJul 24, 20213 years agoMIT
computer-visionfew-shot-learningimage-classificationmachine-learningpytorch-lightning

Similar Papers

Cite this paper

@article{luo2021boosting,
  title  = {Boosting Few-Shot Classification with View-Learnable Contrastive Learning},
  author = {Xu Luo and Yuxuan Chen and Liangjian Wen and Lili Pan and Zenglin Xu},
  year   = {2021},
  eprint = {2107.09242},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2107.09242}
}

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/2107.09242.svg)](https://codeofpaper.com/paper/2107.09242)

Discussion