arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2212.01758cs.CV
收藏

提升多模态模型的零样本泛化能力与鲁棒性

Improving Zero-shot Generalization and Robustness of Multi-modal Models

Google Research(谷歌研究院);University of Southern California(南加利福尼亚大学)

Yunhao Ge, Jie Ren, Andrew Gallagher, Yuxiao Wang, Ming-Hsuan Yang, Hartwig Adam, Laurent Itti, Balaji Lakshminarayanan, Jiaping Zhao

AI总结:

本文针对 CLIP 等图文模型零样本 top-1 准确率偏低的问题,提出基于提示一致性的错误预测识别方法,并利用 WordNet 层次结构扩充类别提示以提升不确定样本的准确率,无需训练且可扩展。

摘要:

诸如 CLIP 和 LiT 这样的多模态图像-文本模型在图像分类基准上展现了出色的性能,其零样本泛化能力尤其令人振奋。虽然这些模型的 top-5 零样本准确率非常高,但 top-1 准确率却低得多(在某些情况下差距超过 25%)。我们调查了这一性能差距的原因,发现许多失败案例是由文本提示中的歧义引起的。首先,我们开发了一种简单高效的零样本事后方法,通过衡量预测在多个提示和图像变换下的一致性,来识别 top-1 预测可能不正确的图像。我们表明,我们的方法能更好地预测错误,在选择性预测任务上优于常用的最大 logit 基线。接下来,我们提出了一种简单高效的方法,通过利用 WordNet 层次结构来提高此类不确定图像上的准确率;具体来说,我们通过纳入语义标签层次结构中的父类和子类来扩充原始类别,并将扩充结果插入文本提示中。我们在 CLIP 和 LiT 模型上使用五个不同的基于 ImageNet 的数据集进行了实验。对于 CLIP,我们的方法在不确定子集上将 top-1 准确率提高了 17.13%,在整个 ImageNet 验证集上提高了 3.6%。我们还表明,我们的方法在 ImageNet 偏移数据集、四个其他数据集以及其他模型架构(如 LiT)上均有所提升。所提出的方法无需超参数,不需要额外的模型训练,并且可以轻松扩展到其他大型多模态架构。代码可在 https://github.com/gyhandy/Hierarchy-CLIP 获取。

英文摘要:

Multi-modal image-text models such as CLIP and LiT have demonstrated impressive performance on image classification benchmarks and their zero-shot generalization ability is particularly exciting. While the top-5 zero-shot accuracies of these models are very high, the top-1 accuracies are much lower (over 25% gap in some cases). We investigate the reasons for this performance gap and find that many of the failure cases are caused by ambiguity in the text prompts. First, we develop a simple and efficient zero-shot post-hoc method to identify images whose top-1 prediction is likely to be incorrect, by measuring consistency of the predictions w.r.t. multiple prompts and image transformations. We show that our procedure better predicts mistakes, outperforming the popular max logit baseline on selective prediction tasks. Next, we propose a simple and efficient way to improve accuracy on such uncertain images by making use of the WordNet hierarchy; specifically we augment the original class by incorporating its parent and children from the semantic label hierarchy, and plug the augmentation into text prompts. We conduct experiments on both CLIP and LiT models with five different ImageNet-based datasets. For CLIP, our method improves the top-1 accuracy by 17.13% on the uncertain subset and 3.6% on the entire ImageNet validation set. We also show that our method improves across ImageNet shifted datasets, four other datasets, and other model architectures such as LiT. The proposed method is hyperparameter-free, requires no additional model training and can be easily scaled to other large multi-modal architectures. Code is available at https://github.com/gyhandy/Hierarchy-CLIP.

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

↑