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

Abstract

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. Our code is available at https://github.com/ashshaksharifdeen/O-TPT.

Cite

Text

Sharifdeen et al. "O-TPT: Orthogonality Constraints for Calibrating Test-Time Prompt Tuning in Vision-Language Models." Conference on Computer Vision and Pattern Recognition, 2025. doi:10.1109/CVPR52734.2025.01857

Markdown

[Sharifdeen et al. "O-TPT: Orthogonality Constraints for Calibrating Test-Time Prompt Tuning in Vision-Language Models." Conference on Computer Vision and Pattern Recognition, 2025.](https://mlanthology.org/cvpr/2025/sharifdeen2025cvpr-otpt/) doi:10.1109/CVPR52734.2025.01857

BibTeX

@inproceedings{sharifdeen2025cvpr-otpt,
  title     = {{O-TPT: Orthogonality Constraints for Calibrating Test-Time Prompt Tuning in Vision-Language Models}},
  author    = {Sharifdeen, Ashshak and Munir, Muhammad Akhtar and Baliah, Sanoojan and Khan, Salman and Khan, Muhammad Haris},
  booktitle = {Conference on Computer Vision and Pattern Recognition},
  year      = {2025},
  pages     = {19942-19951},
  doi       = {10.1109/CVPR52734.2025.01857},
  url       = {https://mlanthology.org/cvpr/2025/sharifdeen2025cvpr-otpt/}
}