[Paper Review] SoC: Semantic Orthogonal Calibration for Test-Time Prompt Tuning
SoC introduces a Hub er-based regularizer for test-time prompt tuning in vision-language models to achieve smoother, semantically aware prompt prototype separation and improved calibration over full orthogonality methods, while maintaining strong discriminative performance.
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.
Motivation & Objective
- Motivate the need for calibrated uncertainty in VLM test-time prompt tuning (TPT).
- Identify limitations of full orthogonality constraints in O-TPT for semantically related classes.
- Propose SoC as a Hub er-based regularizer that preserves semantic proximity while ensuring smooth prototype separation.
- Theoretically analyze how prototype similarity controls confidence and calibration.
- Empirically validate SoC across diverse benchmarks and backbones, showing improved calibration with competitive accuracy.
Proposed method
- Formulate SoC as a Hub er-based regularizer added to the TPT loss to penalize pairwise prototype similarities with a capped gradient.
- Define sij as the cosine similarity between class prototypes ti and tj and apply a Hub er loss on these similarities with margin delta.
- Derive theoretical bounds showing how cosine coherence mu controls softmax confidence and how SoC mitigates excessive confidence inflation.
- Compare first-order gradient dynamics of SoC against full orthogonality (O-TPT) to explain calibration differences.
- Evaluate on 11 datasets with ViT backbones, using standard TPT prompts and evaluation metrics (accuracy and ECE).
- Analyze sensitivity to prompt templates and robustness to different backbones and distribution shifts.

Experimental results
Research questions
- RQ1Does a Hub er-based regularizer improve calibration over full orthogonality in test-time prompt tuning?
- RQ2How does semantic proximity influence confidence and calibration under different regularizers?
- RQ3Can SoC maintain competitive discriminative performance while improving calibration across diverse datasets and backbones?
- RQ4How sensitive is calibration to prompt templates under SoC compared to O-TPT?
- RQ5Is SoC robust under distribution shifts and multi-step prompt updates?
Key findings
- SoC consistently improves calibration (lower ECE) across 11 datasets compared with TPT, C-TPT, and O-TPT.
- SoC achieves best ECE on all but one dataset versus O-TPT, and approaches zero-shot calibration in many cases.
- SoC maintains competitive accuracy, with gains or parity across multiple datasets and backbones.
- Two-gradient-step experiments show SoC is less calibration-degrading than O-TPT under repeated updates.
- Backbone ablations (ViT-L/14 and ViT-B/16) show SoC outperforms O-TPT in both accuracy and ECE, including zero-shot improvements.
- Reliability diagrams indicate SoC produces flatter curves closer to the diagonal, reflecting better calibration than O-TPT.

Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.