用聚合自适应提示提升CLIP在小众任务上的泛化能力
Aggregate-and-Adapt Natural Language Prompts for Downstream Generalization of CLIP
- 通过聚合多条自然语言提示生成图像专属摘要,再生成贴近摘要的适配提示
- 在少样本分类、视觉问答等任务中表现优于基线,对分布外样本鲁棒性更强
- 无需调用大模型生成提示,节省计算成本,适合数据和模型规模扩大时使用
像CLIP这样的大规模预训练视觉-语言模型虽具备良好泛化能力,但在卫星图像或车型细粒度分类等特定领域仍表现不佳,因这些视觉概念在预训练阶段未充分覆盖。提示学习提供了一种参数高效的方法,在标注数据有限时也能适应下游任务。本文提出将自然语言提示(人工或大模型生成)中的文本知识进行提炼,为未充分表示的概念提供丰富先验。首先通过可学习的提示聚合器,为每张输入图像生成一个对齐的提示“摘要”;随后联合训练提示生成器,使其生成的提示嵌入既贴近聚合摘要,又最小化任务损失。该嵌入称为聚合-适配提示嵌入(AAPE)。实验表明,AAPE能有效泛化至不同下游数据分布与任务,包括少样本分类、视觉问答和图像描述生成,性能具有竞争力。尤其在处理非标准和分布外样本时优势明显。此外,AAPE避免了基线方法中依赖大模型生成提示的推理开销,且在数据量和大模型规模增加时更具可扩展性。
原文摘要 · Abstract (English)
Large pretrained vision-language models like CLIP have shown promising generalization capability, but may struggle in specialized domains (e.g., satellite imagery) or fine-grained classification (e.g., car models) where the visual concepts are unseen or under-represented during pretraining. Prompt learning offers a parameter-efficient finetuning framework that can adapt CLIP to downstream tasks even when limited annotation data are available. In this paper, we improve prompt learning by distilling the textual knowledge from natural language prompts (either human- or LLM-generated) to provide rich priors for those under-represented concepts. We first obtain a prompt ``summary'' aligned to each input image via a learned prompt aggregator. Then we jointly train a prompt generator, optimized to produce a prompt embedding that stays close to the aggregated summary while minimizing task loss at the same time. We dub such prompt embedding as Aggregate-and-Adapted Prompt Embedding (AAPE). AAPE is shown to be able to generalize to different downstream data distributions and tasks, including vision-language understanding tasks (e.g., few-shot classification, VQA) and generation tasks (image captioning) where AAPE achieves competitive performance. We also show AAPE is particularly helpful to handle non-canonical and OOD examples. Furthermore, AAPE learning eliminates LLM-based inference cost as required by baselines, and scales better with data and LLM model size.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。