D-TPT: Dimensional Entropy Maximization for Calibrating Test-Time Prompt Tuning in Vision-Language Models
Jisu Han, Wonjun Hwang
TL;DR
The paper investigates calibration challenges in test-time prompt tuning for vision-language models, identifying a modality gap driven by a single dominant feature dimension in text and image embeddings. It introduces D-TPT, a dimensional entropy maximization approach that regularizes the intra-text feature distribution via a new regularization term L_DEM, integrated with the TPT objective. Empirical results across ImageNet variants, fine-grained datasets, and multiple CLIP backbones show consistent calibration improvements (ECE, AECE, MCE, AURC) and competitive accuracy, with a geometric interpretation on a hypersphere explaining the reductions in modality gap. The work offers a simple, plug-in solution to enhance reliability of VLMs under domain shifts, with limitations acknowledged and directions for theory-backed future work.
Abstract
Test-time adaptation paradigm provides flexibility towards domain shifts by performing immediate adaptation on unlabeled target data from the source model. Vision-Language Models (VLMs) leverage their generalization capabilities for diverse downstream tasks, and test-time prompt tuning has emerged as a prominent solution for adapting VLMs. In this work, we explore contrastive VLMs and identify the modality gap caused by a single dominant feature dimension across modalities. We observe that the dominant dimensions in both text and image modalities exhibit high predictive sensitivity, and that constraining their influence can improve calibration error. Building on this insight, we propose dimensional entropy maximization that regularizes the distribution of textual features toward uniformity to mitigate the dependency of dominant dimensions. Our method alleviates the degradation of calibration performance in test-time prompt tuning, offering a simple yet effective solution to enhance the reliability of VLMs in real-world deployment scenarios.
