RAFIC: Retrieval-Augmented Few-shot Image Classification

Hangfei Lin, Li Miao, Amir Ziai
12/11/2023
cs.CVcs.LG

No official code found. Best implementation: amirziai/rafic (8 stars, MIT, last commit 2023-12-11).

Abstract

Few-shot image classification is the task of classifying unseen images to one of N mutually exclusive classes, using only a small number of training examples for each class. The limited availability of these examples (denoted as K) presents a significant challenge to classification accuracy in some cases. To address this, we have developed a method for augmenting the set of K with an addition set of A retrieved images. We call this system Retrieval-Augmented Few-shot Image Classification (RAFIC). Through a series of experiments, we demonstrate that RAFIC markedly improves performance of few-shot image classification across two challenging datasets. RAFIC consists of two main components: (a) a retrieval component which uses CLIP, LAION-5B, and faiss, in order to efficiently retrieve images similar to the supplied images, and (b) retrieval meta-learning, which learns to judiciously utilize the retrieved images. Code and data is available at github.com/amirziai/rafic.

View on arXivView PDF

Code Implementations(1)

amirziai/raficCommunity100%
MIT

Stanford CS330 project

81Shell, PythonOct 27, 20232 years agoMIT

Similar Papers

Cite this paper

@article{lin2023rafic,
  title  = {RAFIC: Retrieval-Augmented Few-shot Image Classification},
  author = {Hangfei Lin and Li Miao and Amir Ziai},
  year   = {2023},
  eprint = {2312.06868},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2312.06868v1}
}

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

Discussion