针对微调CLIP的开放词汇校准
Open-Vocabulary Calibration for Fine-tuned CLIP
AI总结:
本文针对微调视觉-语言模型在开放词汇场景下的置信度校准问题,提出距离感知校准方法DAC,通过利用预测标签与基类距离缩放温度,在11个数据集上验证其有效性且不损失推理速度。
摘要:
视觉-语言模型(VLMs)已成为强大的工具,在图像识别、文本驱动的视觉内容生成以及视觉聊天机器人等多种开放词汇任务中展现出卓越的能力。近年来,大量努力和资源被投入到提升VLMs下游性能的适配方法上,尤其是诸如提示学习(prompt learning)这类参数高效微调方法。然而,一个在很大程度上被忽视的关键问题是微调后VLMs的置信度校准问题,该问题在实际部署此类模型时可能严重降低其可靠性。本文通过系统研究提示学习背景下的置信度校准问题来填补这一空白,并揭示出现有的校准方法不足以解决该问题,尤其是在开放词汇场景下。为解决这一问题,我们提出了一种简单而有效的方法,称为距离感知校准(Distance-Aware Calibration,DAC),其核心思想是以预测文本标签与基类之间的距离为引导来缩放温度参数。在11个不同的下游数据集上对7种不同的提示学习方法进行的实验证明了DAC的有效性,该方法在不牺牲推理速度的前提下实现了高校准性能。我们的代码可在 https://github.com/ml-stat-Sustech/CLIP_Calibration 获取。
英文摘要:
Vision-language models (VLMs) have emerged as formidable tools, showing their strong capability in handling various open-vocabulary tasks in image recognition, text-driven visual content generation, and visual chatbots, to name a few. In recent years, considerable efforts and resources have been devoted to adaptation methods for improving downstream performance of VLMs, particularly on parameter-efficient fine-tuning methods like prompt learning. However, a crucial aspect that has been largely overlooked is the confidence calibration problem in fine-tuned VLMs, which could greatly reduce reliability when deploying such models in the real world. This paper bridges the gap by systematically investigating the confidence calibration problem in the context of prompt learning and reveals that existing calibration methods are insufficient to address the problem, especially in the open-vocabulary setting. To solve the problem, we present a simple and effective approach called Distance-Aware Calibration (DAC), which is based on scaling the temperature using as guidance the distance between predicted text labels and base classes. The experiments with 7 distinct prompt learning methods applied across 11 diverse downstream datasets demonstrate the effectiveness of DAC, which achieves high efficacy without sacrificing the inference speed. Our code is available at https://github.com/ml-stat-Sustech/CLIP_Calibration.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。