arXiv:2506.22819cs.CVcs.LG2025-06被引 2

通过属性感知初始化提升视觉语言模型测试时校准能力

Prompting without Panic: Attribute-aware, Zero-shot, Test-Time Calibration

  • 用大模型先验属性指导提示词初始化,避免过拟合
  • 平均预期校准误差降至4.11,显著优于现有方法
  • 适合对可靠性要求高的图像识别应用

视觉语言模型(VLM)在图像识别中表现优异,其性能可通过测试时提示调优(TPT)进一步提升。然而,现有TPT方法过度关注准确率,导致置信度校准恶化,限制了其在关键场景的应用。本文提出三种贡献:(1)指出提示词随机初始化易导致对单个样本过拟合,是校准偏差的主要原因;为此,我们利用大语言模型(LLM)提供的目标标签属性先验,对测试时提示词进行精心初始化;(2)设计新型正则化损失,减少类内距离、增大类间距离,维持提示质量;(3)在不同CLIP架构和15个数据集上验证,所提方法TCA可显著改善校准效果。平均预期校准误差(ECE)为4.11,优于基线方法(如vanilla TPT的11.7,C-TPT的6.12,DiffTPT的6.78,PromptAlign的8.43)。代码已开源。

原文摘要 · Abstract (English)

Vision-language models (VLM) have demonstrated impressive performance in image recognition by leveraging self-supervised training on large datasets. Their performance can be further improved by adapting to the test sample using test-time prompt tuning (TPT). Unfortunately, the singular focus of TPT approaches on improving the accuracy suffers from tunnel vision, and leads to degradation in confidence calibration. This limits the applicability of TPT in critical applications. We make three contributions in this work. (1) We posit that random or naive initialization of prompts leads to overfitting on a particular test sample, and is the main reason for miscalibration of the VLM after TPT. To mitigate the problem, we propose careful initialization of test time prompt using prior knowledge about the target label attributes from a large language model (LLM); (2) To further maintain the quality of prompts during \tpt, we propose a novel regularization loss to reduce intraclass distance, and increase inter-class distance between the learnt Through extensive experiments on different CLIP architectures and 15 datasets, we show that our approach can effectively improve the calibration after TPT. We report an average expected calibration error (ECE) of 4.11 with our method, TCA, compared to 11.7 for vanilla TPT, 6.12 for C-TPT (ICLR'24), 6.78 for DiffTPT (CVPR'23), and 8.43 for PromptAlign (NeurIPS'23). The code is publicly accessible at: https://github.com/rhebbalaguppe/TCA_PromptWithoutPanic.

视觉语言模型提示调优校准零样本

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。