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

面向视觉-语言模型提示微调的校准

Towards Calibrating Prompt Tuning of Vision-Language Models

Mohamed bin Zayed University of AI(Mohamed bin Zayed人工智能大学);University of Colombo(科伦坡大学);Michigan State University(密歇根州立大学)
Ashshak Sharifdeen, Fahad Shamshad, Muhammad Akhtar Munir, Abhishek Basu, Mohamed Insaf Ismithdeen, Jeyapriyan Jeyamohan, Chathurika Sewwandi Silva, Karthik Nan… 展开作者

Ashshak Sharifdeen, Fahad Shamshad, Muhammad Akhtar Munir, Abhishek Basu, Mohamed Insaf Ismithdeen, Jeyapriyan Jeyamohan, Chathurika Sewwandi Silva, Karthik Nandakumar, Muhammad Haris Khan

AI总结:

本文提出一种校准框架,通过引入均值-方差边际惩罚和文本矩匹配损失,提升视觉-语言模型提示微调的预测可靠性与置信度校准。

摘要:

针对大规模视觉-语言模型(如CLIP)的提示微调能够实现高效的任务适应,而无需更新模型权重。然而,它常常导致预测置信度校准不佳和不可靠的预测不确定性。我们通过提出一个校准框架来解决这个问题,该框架在保持预训练CLIP嵌入空间几何结构的同时,增强了预测的可靠性,这对于稳健的泛化至关重要。我们的方法在标准交叉熵损失基础上扩展了两个互补的正则化器:(1)均值-方差边际惩罚,通过最大化平均值同时最小化分散度来稳定类间logit边际,缓解过度自信和不足自信的尖峰;(2)文本矩匹配损失,使微调文本嵌入的前二阶矩与冻结的CLIP对应项对齐,保留对泛化至关重要的语义分散度。通过在7种提示微调方法和11种多样化的数据集上进行广泛实验,我们证明我们的方法在基础类和新类上均显著降低了预期校准误差(ECE)与竞争校准技术相比。

英文摘要:

Prompt tuning of large-scale vision-language models such as CLIP enables efficient task adaptation without updating model weights. However, it often leads to poor confidence calibration and unreliable predictive uncertainty. We address this problem by proposing a calibration framework that enhances predictive reliability while preserving the geometry of the pretrained CLIP embedding space, which is required for robust generalization. Our approach extends the standard cross-entropy loss with two complementary regularizers: (1) a mean-variance margin penalty that stabilizes inter-class logit margins by maximizing their average while minimizing dispersion, mitigating underconfidence and overconfidence spikes; and (2) a text moment-matching loss that aligns the first and second moments of tuned text embeddings with their frozen CLIP counterparts, preserving semantic dispersion crucial for generalization. Through extensive experiments across 7 prompt-tuning methods and 11 diverse datasets, we demonstrate that our approach significantly reduces the Expected Calibration Error (ECE) compared to competitive calibration techniques on both base and novel classes

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

↑