Retrieval-Enhanced Visual Prompt Learning for Few-shot Classification

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteurs principaux: Rong, Jintao, Chen, Hao, Ou, Linlin, Chen, Tianxiao, Yu, Xinyi, Liu, Yifan
Format: Preprint
Publié: 2023
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866909397790228480
author Rong, Jintao
Chen, Hao
Ou, Linlin
Chen, Tianxiao
Yu, Xinyi
Liu, Yifan
author_facet Rong, Jintao
Chen, Hao
Ou, Linlin
Chen, Tianxiao
Yu, Xinyi
Liu, Yifan
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2306_02243
institution arXiv
publishDate 2023
record_format arxiv
spellingShingle Retrieval-Enhanced Visual Prompt Learning for Few-shot Classification
Rong, Jintao
Chen, Hao
Ou, Linlin
Chen, Tianxiao
Yu, Xinyi
Liu, Yifan
Computer Vision and Pattern Recognition
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.
title Retrieval-Enhanced Visual Prompt Learning for Few-shot Classification
topic Computer Vision and Pattern Recognition
url https://arxiv.org/abs/2306.02243