Saved in:
Bibliographic Details
Main Authors: Wang, Shuoyuan, Wang, Jindong, Wang, Guoqing, Zhang, Bob, Zhou, Kaiyang, Wei, Hongxin
Format: Preprint
Published: 2024
Subjects:
Online Access:https://arxiv.org/abs/2402.04655
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866909223463419904
author Wang, Shuoyuan
Wang, Jindong
Wang, Guoqing
Zhang, Bob
Zhou, Kaiyang
Wei, Hongxin
author_facet Wang, Shuoyuan
Wang, Jindong
Wang, Guoqing
Zhang, Bob
Zhou, Kaiyang
Wei, Hongxin
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2402_04655
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Open-Vocabulary Calibration for Fine-tuned CLIP
Wang, Shuoyuan
Wang, Jindong
Wang, Guoqing
Zhang, Bob
Zhou, Kaiyang
Wei, Hongxin
Machine Learning
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.
title Open-Vocabulary Calibration for Fine-tuned CLIP
topic Machine Learning
url https://arxiv.org/abs/2402.04655