Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

LoGoPrompt: Synthetic Text Images Can Be Good Visual Prompts for Vision-Language Models

About

Prompt engineering is a powerful tool used to enhance the performance of pre-trained models on downstream tasks. For example, providing the prompt "Let's think step by step" improved GPT-3's reasoning accuracy to 63% on MutiArith while prompting "a photo of" filled with a class name enables CLIP to achieve $80$\% zero-shot accuracy on ImageNet. While previous research has explored prompt learning for the visual modality, analyzing what constitutes a good visual prompt specifically for image recognition is limited. In addition, existing visual prompt tuning methods' generalization ability is worse than text-only prompting tuning. This paper explores our key insight: synthetic text images are good visual prompts for vision-language models! To achieve that, we propose our LoGoPrompt, which reformulates the classification objective to the visual prompt selection and addresses the chicken-and-egg challenge of first adding synthetic text images as class-wise visual prompts or predicting the class first. Without any trainable visual prompt parameters, experimental results on 16 datasets demonstrate that our method consistently outperforms state-of-the-art methods in few-shot learning, base-to-new generalization, and domain generalization.

Cheng Shi, Sibei Yang• 2023

Related benchmarks

TaskDatasetResultRank
Base-to-New GeneralizationFGVCAircraft
Base Performance45.98
126
Base-to-New GeneralizationDTD
Base Accuracy82.87
114
Base-to-New GeneralizationImageNet
Base Accuracy76.74
113
Base-to-New GeneralizationOxfordPets
Base Score96.07
96
Base-to-novel generalizationFood-101
Base Score90.82
91
Base-to-New GeneralizationCaltech101
Base Score98.19
90
Base-to-New GeneralizationStanfordCars
Base Score78.36
89
Base-to-novel generalizationFlowers102
Base Accuracy99.05
75
Base-to-novel generalizationSUN397
Base Score81.2
75
Base-to-novel generalizationEuroSAT
Base Score93.67
72
Showing 10 of 12 rows

Other info

Follow for update