SoC: Semantic Orthogonal Calibration for Test-Time Prompt Tuning
Leo Fillioux, Omprakash Chakraborty, Ismail Ben Ayed, Paul-Henry Cournède, Stergios Christodoulidis, Maria Vakalopoulou, Jose Dolz
TL;DR
Vision-language models require reliable uncertainty estimates during test-time prompt tuning. The authors show that full orthogonality constraints in O-TPT inflate confidence and harm calibration for semantically related classes, and they introduce Semantic Orthogonal Calibration (SoC), a Huber-based regularizer that enforces smoother prototype separation while preserving semantic proximity. They derive a confidence bound linked to cosine coherence and perform a first-order analysis to explain why SoC yields better calibration than O-TPT. Empirical evaluation across 11 datasets and multiple backbones demonstrates that SoC improves calibration (ECE) with competitive accuracy and robustness to prompts, distribution shifts, and post-hoc calibration methods, highlighting its practical impact for safe VLM adaptation.
Abstract
With the increasing adoption of vision-language models (VLMs) in critical decision-making systems such as healthcare or autonomous driving, the calibration of their uncertainty estimates becomes paramount. Yet, this dimension has been largely underexplored in the VLM test-time prompt-tuning (TPT) literature, which has predominantly focused on improving their discriminative performance. Recent state-of-the-art advocates for enforcing full orthogonality over pairs of text prompt embeddings to enhance separability, and therefore calibration. Nevertheless, as we theoretically show in this work, the inherent gradients from fully orthogonal constraints will strongly push semantically related classes away, ultimately making the model overconfident. Based on our findings, we propose Semantic Orthogonal Calibration (SoC), a Huber-based regularizer that enforces smooth prototype separation while preserving semantic proximity, thereby improving calibration compared to prior orthogonality-based approaches. Across a comprehensive empirical validation, we demonstrate that SoC consistently improves calibration performance, while also maintaining competitive discriminative capabilities.
