Prefix Conditioning统一了语言与标签监督
Prefix Conditioning Unifies Language and Label Supervision
AI总结:
本文提出Prefix Conditioning方法,通过前缀token解耦数据集偏差,统一图像分类与图像-文本数据集预训练,提升零样本识别准确率与鲁棒性。
摘要:
图像分类数据集已被用于预训练图像识别模型。最近,网络规模的图像-文本数据集作为一种强大的预训练替代方案出现。图像-文本数据集更加“开放域”,包含比传统分类数据集更广泛的场景类型和词汇,在这些数据集上训练的模型在少样本和零样本识别任务中表现出色。当简单地统一图像分类和图像-文本数据集时,我们表明这种数据集偏差会降低所学表示的泛化能力,从而对预训练产生负面影响,并因此危及零样本性能,因为这种统一会使模型针对分类数据集进行定制,使其容易受到来自数据集的分布偏移的影响。在这项工作中,我们通过使用前缀token解耦数据集偏差来解决这一问题,这些前缀token在训练时告知语言编码器输入数据集的类型(例如,图像分类或文本)。这种方法允许语言编码器共享两个数据集的知识,并切换特征提取的模式,即针对图像分类数据集或图像-文本数据集定制的模式,我们在零样本评估中使用图像-文本模式。我们的方法是通用的,可以轻松集成到现有的VL预训练目标中,例如CLIP或UniCL。在实验中,我们展示了这种简单的技术提高了零样本图像识别的准确率,并增强了对图像级分布偏移的鲁棒性。
英文摘要:
Image-classification datasets have been used to pretrain image recognition models. Recently, web-scale image-caption datasets have emerged as a source of powerful pretraining alternative. Image-caption datasets are more ``open-domain'', containing a wider variety of scene types and vocabulary words than traditional classification datasets, and models trained on these datasets have demonstrated strong performance on few- and zero-shot recognition tasks. When naively unifying image-classification and -caption dataset, we show that such dataset biases negatively affect pre-training by reducing the generalizability of learned representations and thus jeopardizing zero-shot performance since the unification can tailor the model for the classification dataset, making it vulnerable to the distribution shift from the dataset. In this work, we address the problem by disentangling the dataset bias using prefix tokens that inform a language encoder of the type of the input dataset (e.g., image-classification or caption) at training time. This approach allows the language encoder to share the knowledge from two datasets as well as switch the mode of feature extraction, i.e., image-classification dataset or image-caption dataset tailored mode, where we use image-caption mode in the zero-shot evaluation. Our method is generic and can be easily integrated into existing VL pre-training objectives such as CLIP or UniCL. In experiments, we show that this simple technique improves the performance in zero-shot image recognition accuracy and robustness to the image-level distribution shift.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。