English

Retrieval-Enhanced Visual Prompt Learning for Few-shot Classification

Computer Vision and Pattern Recognition 2024-11-22 v3

Abstract

The Contrastive Language-Image Pretraining (CLIP) model has been widely used in various downstream vision tasks. The few-shot learning paradigm has been widely adopted to augment its capacity for these tasks. However, current paradigms may struggle with fine-grained classification, such as satellite image recognition, due to widening domain gaps. To address this limitation, we propose retrieval-enhanced visual prompt learning (RePrompt), which introduces retrieval mechanisms to cache and reuse the knowledge of downstream tasks. RePrompt constructs a retrieval database from either training examples or external data if available, and uses a retrieval mechanism to enhance multiple stages of a simple prompt learning baseline, thus narrowing the domain gap. During inference, our enhanced model can reference similar samples brought by retrieval to make more accurate predictions. A detailed analysis reveals that retrieval helps to improve the distribution of late features, thus, improving generalization for downstream tasks. Reprompt attains state-of-the-art performance on a wide range of vision datasets, including 11 image datasets, 3 video datasets, 1 multi-view dataset, and 4 domain generalization benchmarks.

Keywords

Cite

@article{arxiv.2306.02243,
  title  = {Retrieval-Enhanced Visual Prompt Learning for Few-shot Classification},
  author = {Jintao Rong and Hao Chen and Linlin Ou and Tianxiao Chen and Xinyi Yu and Yifan Liu},
  journal= {arXiv preprint arXiv:2306.02243},
  year   = {2024}
}
R2 v1 2026-06-28T10:55:38.982Z