arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2309.01155cs.CV
收藏

LoGoPrompt:合成文本图像可作为视觉语言模型的良好视觉提示

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

ShanghaiTech University(上海科技大学)

Cheng Shi, Sibei Yang

AI总结:

本文提出LoGoPrompt,将合成文本图像用作视觉语言模型的视觉提示,通过把分类目标重构为视觉提示选择来解决类别预测与提示生成的先后难题,在少样本学习、基类到新类泛化和领域泛化上一致超越现有方法。

摘要:

提示工程是一种用于提升预训练模型在下游任务上性能的强大工具。例如,提供提示“让我们逐步思考”将GPT-3在MutiArith上的推理准确率提高到63%,而用类别名称填充的“一张……的照片”提示使CLIP在ImageNet上实现了80%的零样本准确率。尽管已有研究探索了视觉模态的提示学习,但专门针对图像识别分析什么构成良好视觉提示的工作仍然有限。此外,现有视觉提示调优方法的泛化能力不如仅文本提示调优。本文探索了我们的核心见解:合成文本图像是视觉语言模型的良好视觉提示!为实现这一目标,我们提出了LoGoPrompt,它将分类目标重新表述为视觉提示选择,并解决了先添加合成文本图像作为类别级视觉提示还是先预测类别的“先有鸡还是先有蛋”难题。在没有任何可训练视觉提示参数的情况下,在16个数据集上的实验结果表明,我们的方法在少样本学习、基类到新类泛化和领域泛化方面一致优于最先进的方法。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑