Saved in:
Bibliographic Details
Main Authors: Huang, Chen, Seto, Skyler, Abnar, Samira, Grangier, David, Jaitly, Navdeep, Susskind, Josh
Format: Preprint
Published: 2024
Subjects:
Online Access:https://arxiv.org/abs/2410.23698
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866913568558940160
author Huang, Chen
Seto, Skyler
Abnar, Samira
Grangier, David
Jaitly, Navdeep
Susskind, Josh
author_facet Huang, Chen
Seto, Skyler
Abnar, Samira
Grangier, David
Jaitly, Navdeep
Susskind, Josh
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2410_23698
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Aggregate-and-Adapt Natural Language Prompts for Downstream Generalization of CLIP
Huang, Chen
Seto, Skyler
Abnar, Samira
Grangier, David
Jaitly, Navdeep
Susskind, Josh
Machine Learning
Computer Vision and Pattern Recognition
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.
title Aggregate-and-Adapt Natural Language Prompts for Downstream Generalization of CLIP
topic Machine Learning
Computer Vision and Pattern Recognition
url https://arxiv.org/abs/2410.23698