arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2303.12748cs.CVcs.LG
收藏

在大型视觉-语言模型的零样本推理中实现校准

Enabling Calibration In The Zero-Shot Inference of Large Vision-Language Models

Scale AI(Scale AI公司)

Will LeVine, Benjamin Pikus, Pranav Raja, Fernando Amat Gil

AI总结:

针对 CLIP 等视觉-语言模型零样本推理中的误校准问题,论文系统测量提示、数据集和架构的影响,并提出适配零样本场景的改进温度缩放方法,证明单一学习温度可跨数据集与提示泛化。

摘要:

深度学习模型的校准对其可信度和安全使用至关重要,因此已在监督分类模型中得到广泛研究,并设计了多种方法来降低误校准。然而,对于用于零样本推理的视觉-语言模型(如 CLIP)的校准,迄今尚未有全面研究。我们在提示、数据集和架构等相关变量上测量校准,发现使用 CLIP 进行零样本推理存在误校准。此外,我们提出了一种温度缩放的改进版本,与 CLIP 作为零样本推理模型的常见用例相契合,并表明对于每个特定 CLIP 模型(由所选预训练数据集和架构定义),单个学习到的温度能够跨推理数据集和提示选择进行泛化。

英文摘要:

Calibration of deep learning models is crucial to their trustworthiness and safe usage, and as such, has been extensively studied in supervised classification models, with methods crafted to decrease miscalibration. However, there has yet to be a comprehensive study of the calibration of vision-language models that are used for zero-shot inference, like CLIP. We measure calibration across relevant variables like prompt, dataset, and architecture, and find that zero-shot inference with CLIP is miscalibrated. Furthermore, we propose a modified version of temperature scaling that is aligned with the common use cases of CLIP as a zero-shot inference model, and show that a single learned temperature generalizes for each specific CLIP model (defined by a chosen pre-training dataset and architecture) across inference dataset and prompt choice.

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

↑