Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

O-TPT: Orthogonality Constraints for Calibrating Test-time Prompt Tuning in Vision-Language Models

About

Test-time prompt tuning for vision-language models (VLMs) is getting attention because of their ability to learn with unlabeled data without fine-tuning. Although test-time prompt tuning methods for VLMs can boost accuracy, the resulting models tend to demonstrate poor calibration, which casts doubts on the reliability and trustworthiness of these models. Notably, more attention needs to be devoted to calibrating the test-time prompt tuning in vision-language models. To this end, we propose a new approach, called O-TPT that introduces orthogonality constraints on the textual features corresponding to the learnable prompts for calibrating test-time prompt tuning in VLMs. Towards introducing orthogonality constraints, we make the following contributions. First, we uncover new insights behind the suboptimal calibration performance of existing methods relying on textual feature dispersion. Second, we show that imposing a simple orthogonalization of textual features is a more effective approach towards obtaining textual dispersion. We conduct extensive experiments on various datasets with different backbones and baselines. The results indicate that our method consistently outperforms the prior state of the art in significantly reducing the overall average calibration error. Also, our method surpasses the zero-shot calibration performance on fine-grained classification tasks.

Ashshak Sharifdeen, Muhammad Akhtar Munir, Sanoojan Baliah, Salman Khan, Muhammad Haris Khan• 2025

Related benchmarks

TaskDatasetResultRank
Image ClassificationImageNet A
Top-1 Acc49.87
553
Image ClassificationFood-101
Accuracy89
494
Image ClassificationImageNet V2--
487
Image ClassificationFlowers102
Accuracy76.4
478
Image ClassificationStanford Cars
Accuracy77.8
477
Image ClassificationImageNet-R
Top-1 Acc72.55
474
Image ClassificationFood101--
309
Image ClassificationImageNet-Sketch
Accuracy47.12
77
Image ClassificationTiny-ImageNet
Top-1 Accuracy89.3
56
Image ClassificationImageNet V2 1.0 (test)
Top-1 Accuracy70
54
Showing 10 of 62 rows

Other info

Code

Follow for update