C-TPT:通过文本特征离散度校准的视觉-语言模型测试时提示调优
C-TPT: Calibrated Test-Time Prompt Tuning for Vision-Language Models via Text Feature Dispersion
AI总结:
本文提出C-TPT方法,利用CLIP文本特征离散度与校准误差的关系,在测试时无需标注数据即可优化提示,从而同时提升视觉-语言模型的校准性能。
摘要:
在深度学习中,测试时自适应作为一种无需标注数据即可微调模型的方法已受到关注。一个典型例子是最近提出的针对大规模视觉-语言模型(如CLIP)的测试时提示调优。遗憾的是,这些提示主要被开发用于提高准确率,忽视了校准的重要性,而校准是量化预测不确定性的关键方面。然而,传统校准方法依赖大量标注数据,使其在测试时场景中不切实际。为此,本文通过利用CLIP的固有特性,探索测试时提示调优过程中的校准问题。通过一系列观察,我们发现提示的选择显著影响CLIP中的校准,其中导致更高文本特征离散度的提示会产生校准更好的预测。我们引入平均文本特征离散度(ATFD),建立其与校准误差的关系,并提出一种新方法——校准测试时提示调优(C-TPT),用于在测试时优化提示并增强校准。通过在不同CLIP架构和数据集上的大量实验,我们表明C-TPT能够在不需要标注数据的情况下有效改善测试时提示调优的校准。代码公开于https://github.com/hee-suk-yoon/C-TPT。
英文摘要:
In deep learning, test-time adaptation has gained attention as a method for model fine-tuning without the need for labeled data. A prime exemplification is the recently proposed test-time prompt tuning for large-scale vision-language models such as CLIP. Unfortunately, these prompts have been mainly developed to improve accuracy, overlooking the importance of calibration, which is a crucial aspect for quantifying prediction uncertainty. However, traditional calibration methods rely on substantial amounts of labeled data, making them impractical for test-time scenarios. To this end, this paper explores calibration during test-time prompt tuning by leveraging the inherent properties of CLIP. Through a series of observations, we find that the prompt choice significantly affects the calibration in CLIP, where the prompts leading to higher text feature dispersion result in better-calibrated predictions. Introducing the Average Text Feature Dispersion (ATFD), we establish its relationship with calibration error and present a novel method, Calibrated Test-time Prompt Tuning (C-TPT), for optimizing prompts during test-time with enhanced calibration. Through extensive experiments on different CLIP architectures and datasets, we show that C-TPT can effectively improve the calibration of test-time prompt tuning without needing labeled data. The code is publicly accessible at https://github.com/hee-suk-yoon/C-TPT.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。