arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2302.06235cs.LGcs.CVstat.ML
收藏

一种改进文本-图像模型中提示集成的简单零样本提示加权技术

A Simple Zero-shot Prompt Weighting Technique to Improve Prompt Ensembling in Text-Image Models

University of Cambridge(剑桥大学);Google DeepMind(谷歌DeepMind);Google Research(谷歌研究院);Nvidia(英伟达);Harvard University(哈佛大学)

James Urquhart Allingham, Jie Ren, Michael W Dusenberry, Xiuye Gu, Yin Cui, Dustin Tran, Jeremiah Zhe Liu, Balaji Lakshminarayanan

AI总结:

针对零样本文本-图像分类依赖手工提示工程的问题,提出一种无需标签和优化的自动提示评分与加权集成方法,在ImageNet等16个基准上优于等权集成和手工提示。

摘要:

经对比训练的文本-图像模型具有执行零样本分类的卓越能力,即将先前未见过的图像分类到模型从未被明确训练识别的类别中。然而,这些零样本分类器需要提示工程才能实现高准确率。提示工程通常需要为各个下游任务手工制作一组提示。在本研究中,我们旨在自动化这种提示工程,并通过提示集成提高零样本准确率。具体而言,我们提出如下问题:“给定一个大型提示池,我们能否在无需访问带标签验证数据的情况下,自动对提示进行评分,并集成最适合特定下游数据集的提示?”我们证明了这是可能的。在此过程中,我们发现朴素提示评分方法存在若干病态问题,即由于预训练和测试数据中的偏差,评分很容易过度自信;因此我们提出了一种校正这些偏差的新型提示评分方法。使用我们提出的评分方法创建加权平均提示集成后,本方法在 ImageNet、其4个变体以及11个细粒度分类基准上优于等平均集成以及手工制作的提示,同时整个过程完全自动、无需优化,也不需要访问带标签的验证数据。

英文摘要:

Contrastively trained text-image models have the remarkable ability to perform zero-shot classification, that is, classifying previously unseen images into categories that the model has never been explicitly trained to identify. However, these zero-shot classifiers need prompt engineering to achieve high accuracy. Prompt engineering typically requires hand-crafting a set of prompts for individual downstream tasks. In this work, we aim to automate this prompt engineering and improve zero-shot accuracy through prompt ensembling. In particular, we ask "Given a large pool of prompts, can we automatically score the prompts and ensemble those that are most suitable for a particular downstream dataset, without needing access to labeled validation data?". We demonstrate that this is possible. In doing so, we identify several pathologies in a naive prompt scoring method where the score can be easily overconfident due to biases in pre-training and test data, and we propose a novel prompt scoring method that corrects for the biases. Using our proposed scoring method to create a weighted average prompt ensemble, our method outperforms equal average ensemble, as well as hand-crafted prompts, on ImageNet, 4 of its variants, and 11 fine-grained classification benchmarks, all while being fully automatic, optimization-free, and not requiring access to labeled validation data.

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

↑