arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2204.03574cs.LGcs.CLcs.CV
收藏

学习组合软提示以实现组合式零样本学习

Learning to Compose Soft Prompts for Compositional Zero-Shot Learning

Brown University(布朗大学)

Nihal V. Nayak, Peilin Yu, Stephen H. Bach

AI总结:

本文提出参数高效的组合式软提示 CSP,将属性与对象表示为可学习标记并在测试时重新组合,显著提升 CLIP 的组合式零样本分类与高阶泛化性能。

摘要:

我们提出了组合式软提示(compositional soft prompting,CSP),这是一种参数高效的学习技术,旨在提升 CLIP 等大规模预训练视觉-语言模型(VLM)的零样本组合能力。我们面向组合式零样本学习开发 CSP,该任务要求预测未见过的属性-对象组合(例如 old cat 和 young tiger)。VLM 具有灵活的文本编码器,能够将任意类别表示为自然语言提示,但在组合式零样本基准数据集上,它们的表现往往不及面向特定任务的架构。CSP 将定义类别的属性和对象视为可学习的词汇标记。在训练期间,对该词汇表进行调整,以识别通过多种方式组合标记所形成的类别(例如 old cat 和 white cat)。在测试时,我们将学到的属性-对象词汇重新组合为新的搭配,以识别新类别。我们表明,CSP 在基准数据集上的 AUC 平均比 CLIP 高出 10.9 个百分点。CSP 还优于 CoOp(一种微调前缀上下文标记的软提示方法),AUC 平均高出 5.8 个百分点。我们进行了额外实验,表明 CSP 提升了对更高阶属性-属性-对象组合(例如 old white cat)以及预训练属性与微调对象组合的泛化能力。代码可在 https://github.com/BatsResearch/csp 获取。

英文摘要:

We introduce compositional soft prompting (CSP), a parameter-efficient learning technique to improve the zero-shot compositionality of large-scale pretrained vision-language models (VLMs) like CLIP. We develop CSP for compositional zero-shot learning, the task of predicting unseen attribute-object compositions (e.g., old cat and young tiger). VLMs have a flexible text encoder that can represent arbitrary classes as natural language prompts but they often underperform task-specific architectures on the compositional zero-shot benchmark datasets. CSP treats the attributes and objects that define classes as learnable tokens of vocabulary. During training, the vocabulary is tuned to recognize classes that compose tokens in multiple ways (e.g., old cat and white cat). At test time, we recompose the learned attribute-object vocabulary in new combinations to recognize novel classes. We show that CSP outperforms the CLIP on benchmark datasets by an average of 10.9 percentage points on AUC. CSP also outperforms CoOp, a soft prompting method that fine-tunes the prefix context tokens, by an average of 5.8 percentage points on AUC. We perform additional experiments to show that CSP improves generalization to higher-order attribute-attribute-object compositions (e.g., old white cat) and combinations of pretrained attributes and fine-tuned objects. The code is available at https://github.com/BatsResearch/csp.

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

↑