Manuscript Offprint
arXiv:2610.39861M-PFT: Angular Margin for Calibrated Prompt-Tuning of Fine-Tuned Vision-Language Models
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
Prompt-tuning has emerged as a parameter-efficient technique for adapting large-scale vision-language models (VLMs) to downstream tasks while keeping the pre-trained weights frozen. However, prompt-tuned VLMs often suffer from a base-to-novel dual miscalibration problem, where models typically show underconfidence on base classes and overconfidence on novel classes. Current VLM calibration approaches address this dual miscalibration either separately or jointly, but lack a geometric understanding of the hyperspherical embedding space and thus fail to exploit angular discriminative properties to adjust distorted decision boundaries. To address this, we propose M-PFT, a novel angular-margin approach for prompt tuning that introduces two complementary objectives to promote class discriminability and semantic anchoring. This enlarges the angular margin by 1) minimizing the maximum cosine similarity between tunable class embeddings to reduce embedding collapse and 2) minimizing the angular distance between each tunable embedding and its corresponding zero-shot embedding to preserve semantic geometry. Extensive experiments across 9 prompt-tuning methods with various backbones on 15 diverse datasets show that our approach reduces the average calibration error on novel classes, while remaining competitive on base classes and maintaining comparable accuracy. Further analyses reveal that M-PFT effectively adjusts distorted decision boundaries induced by prompt tuning while preserving the pre-trained embedding space, improving calibration with negligible computational overhead. Our code is available at M-PFT.
1. Introduction
Foundational vision-language models (VLMs), such as CLIP [36] and ALIGN [16], have achieved remarkable progress in open-vocabulary image recognition by leveraging

Figure 1. Comparison of calibration scores with TCPT [39] and DAC [45] on 10 fine-grained classification datasets with CoOp [52] for base (left) and novel (right) classes. Each axis reports (percentage of the worst method's ECE removed; larger is better). Ours maximizes the covered area (a higher score indicates a larger footprint), indicating better calibration and effective addressing of the dual miscalibration problem.
ing large-scale natural-language supervision. To efficiently adapt such pre-trained large VLMs to domain-specific tasks, where full fine-tuning is often computationally prohibitive, Parameter-Efficient Fine-Tuning (PEFT) techniques have gained considerable attention [20]. Representative PEFT approaches, such as Low-Rank Adaptation [15], inject trainable low-rank decomposition matrices into transformer layers based on the hypothesis that weight updates have a low intrinsic rank, while Prompt-Tuning [20] optimizes a small subset of learnable prompt tokens while keeping the backbone frozen. Recently, attention has shifted toward Test-Time Prompt-Tuning [40], which, unlike standard prompt-tuning, requires no labeled training data and instead optimizes learnable prompt vectors via gradient descent, adapting them during inference on unlabeled test samples. In open-vocabulary settings, prompt-tuned VLMs can substantially improve performance on base classes while preserving the model's inherent capability to generalize to novel classes [17, 51]. Such low-cost adaptation is particularly valuable in safety-critical applications such as healthcare and autonomous systems, where full fine-tuning is often infeasible [8, 49].
However, existing few-shot prompt-tuning techniques [11,

○ Origin●● Base tunable □□ Base zero-shot ↘ : separability
▶ Novel tunable□□ Novel zero-shot ↘ : semantic drift
Figure 2. Hyperspherical visualization of the dual miscalibration problem. distorts decision boundaries by inducing embedding collapse and semantic drift . maximizes to mitigate collapse and improve class discriminability, while minimizes the drift by anchoring tunable embeddings to zero-shot embeddings to preserve semantic geometry. This dual design creates complementary objectives that act synergistically to enlarge the angular margin , yielding well-separated, discriminative decision boundaries while preserving pre-trained semantics and addressing the dual miscalibration.
17, 18, 23, 46, 50–53] for VLMs primarily focus on improving classification accuracy while often overlooking reliable confidence calibration, i.e., the degree to which a model's predicted confidence reflects the true likelihood of correctness [10, 42], which is evaluated with Expected Calibration Error (ECE). For example, prompt-tuned VLMs exhibit base-to-novel dual miscalibration, which typically shows underconfidence on base classes and overconfidence on novel classes [39, 44]. When deployed in safety-critical applications, this dual miscalibration is harmful in two ways: overconfidence often results in models assigning high confidence to incorrect predictions, leading to inappropriate automation or missed human review, while underconfidence assigns low confidence to correct predictions, which is associated with uncertain or unreliable confidence estimates undermining triage, wasting expert time, and eroding trust [3, 5, 26, 32, 54].
To maintain well-calibrated confidence estimates across both base and novel classes, some progress has been made toward addressing dual miscalibration. In light of this, prior works such as DAC [45] scale the temperature based on the textual deviation (TD) score between embeddings of each novel class. CAC [24] adjusts logits based on image-text alignment, while DOR [44] samples textual outliers that do not overlap with base classes. Another approach [29] normalizes logits and constrains them to the original zero-shot VLM distribution by modifying the softmax expression with margin penalization. TCPT [39] introduces an auxiliary regularization loss to stabilize decision boundaries with a mean-variance margin while preserving semantic dispersion by aligning the first and second moments of text embeddings. Despite these advances, we observe that these statistical approaches fail to adequately exploit the angular discriminative properties of the hyperspherical embedding space when adjusting distorted decision boundaries, which is crucial for resolving dual miscalibration. Specifically, most methods do not impose explicit geometric constraints during prompt tuning, allowing learned embeddings to deviate from the pre-trained embedding space. We define as the angle between tunable class embeddings and as the angle between a tunable embedding and its corresponding zero-shot embedding. This can result in issues like (1) embedding collapse, where tunable class embeddings cluster together ( ), reducing inter-class discriminability [22], and (2) semantic drift, where tunable embeddings move away from their corresponding zero-shot embeddings ( ), distorting decision boundaries, degrading model's ability to learn semantic relationships between class embeddings, and inducing spurious overconfident predictions on novel inputs [24, 44]. Furthermore, auxiliary losses employed by existing methods target statistical properties rather than angular discriminative properties of class embeddings. This can introduce gradients in opposing directions that partially offset each other, limiting their ability to adjust distorted decision boundaries [29, 39]. Consequently, these methods cannot effectively enlarge the angular margin and remain suboptimal for calibration.
Inspired by these insights, we propose M-PFT, a novel angular optimization approach that introduces a simple yet effective angular-margin approach into prompt tuning. This exploits the angular discriminative properties of the hyperspherical embedding space [21, 22] with negligible computational overhead. To address dual miscalibration, our proposed method 1) promotes class discriminability by minimizing the maximum cosine similarity between tunable class embeddings, encouraging discriminative decision boundaries, and 2) enforces semantic anchoring by minimizing the angular distance between each tunable embedding and its corresponding zero-shot embedding, thereby preserving semantic geometry. As shown in Fig. 2, these complementary objectives act synergistically to enlarge the angular margin ( ): maximizes , while minimizes . This absence of conflicting gradients (see Tab. 4 and Fig. 4) and yields well-separated, discriminative decision boundaries while preserving the pre-trained embedding space, thereby reducing base-class underconfidence and novel-class overconfidence, as shown in Fig. 1. Our major contributions are summarized as follows:
• We propose a novel angular-margin approach that exploits the angular discriminative properties of the hyperspherical embedding space to address dual miscalibration of prompt-tuned VLMs, improving upon leading calibration
These authors contributed equally to this work.
techniques for prompt tuning.
• We introduce two complementary objectives that adjust distorted decision boundaries while preserving the semantic geometry of the pre-trained embedding space. The angular margin is enlarged by 1) minimizing the maximum cosine similarity between tunable class embeddings and 2) minimizing the angle between each tunable embedding and its corresponding zero-shot embedding.
• We conduct extensive experiments across 9 prompt-tuning methods and 15 diverse datasets, showing that M-PFT achieves better calibration without compromising accuracy and outperforms post-hoc and training-time baselines.
Calibration of deep neural networks. Traditional post-hoc techniques, such as Temperature Scaling [10], Platt Scaling [35], and Histogram Binning [30], adjust confidence estimates after training by modifying logits on a held-out validation set. While effective for in-distribution data, these methods often struggle to generalize to out-of-distribution scenarios because they rely on labeled target-domain data. In contrast, train-time methods incorporate auxiliary losses during training to penalize miscalibrated predictions, including label smoothing [28], focal loss [27], and margin-based calibration [29]. Although these approaches improve reliable uncertainty estimates, they typically require fully labeled datasets and full fine-tuning, making them impractical for PEFT techniques such as prompt tuning in few-shot settings. Calibration for prompt-tuned VLMs. DAC [45] employs post-hoc temperature scaling guided by semantic distances between class embeddings, but may compromise the sharp decision boundaries of pre-trained models [39]. [29] introduced zero-shot normalization and sample-adaptive logit scaling to realign prompt-tuned models with zero-shot CLIP by adjusting expanded logit distributions. Other efforts focus on VLM calibration for test-time prompt tuning: C-TPT [47] maximizes average textual feature dispersion, A-TPT [1] promotes angular diversity, and AGI-TPT [2] enforces attainable geometric separation for uniformity. MVC-Bench [38] evaluates medical imaging calibration and stabilizes decision boundaries with a mean-variance margin, though these approaches introduce additional inference-time overhead. These collective studies highlight the importance of class discriminability for reducing base-class underconfidence, preserving the zero-shot CLIP embedding geometry for better novel-class calibration, and the limitations of post-hoc corrections in restoring pre-trained calibration properties. Our proposed method exploits the angular discriminative properties of the embedding space during training to address the observed base-to-novel dual miscalibration pattern without sacrificing discriminative strength.
3. Proposed Method
3.1. Preliminaries
Zero-shot inference with prompt-tuned VLMs. CLIP learns a shared multimodal embedding space for images and natural language descriptions through large-scale contrastive pre-training, enabling zero-shot classification without task-specific supervision. CLIP consists of two encoders: an image encoder and a text encoder , which map visual and textual inputs into corresponding feature space vectors, respectively. Given an input image , the image encoder extracts feature embedding . Similarly, the text encoder maps a textual prompt associated with a class label into a feature vector . During zero-shot inference, each class label is converted into a text prompt using a fixed template, such as \mathbf{p}_k = \text{“a photo of a } [\text{CLS}_k]^'', and encoded as , where . The similarity between the image embedding and each text embedding is computed using cosine similarity, . The predicted class probabilities are then computed with a softmax function as , where is a temperature parameter. The predicted label and confidence are and , respectively.
Prompt tuning of fine-tuned VLMs. While zero-shot classification with handcrafted templates is widely adopted, it often requires domain-specific heuristics and may not be optimal across a variety of tasks. To address this, prompt tuning optimizes learnable prompt tokens to adapt VLMs to domain-specific tasks. Instead of relying on handcrafted prompt templates, a set of learnable context tokens

Cosine Similarity vs. ECE
Mean cosine similarity between tunable class embeddings
Mean cosine similarity between tunable and zero-shot embeddings
Figure 3. Analyses of dual miscalibration of prompt-tuned VLMs. Base classes show underconfidence mitigated by our complementary objective, whereas novel classes show overconfidence alleviated by the proposed method. The cross-dataset cosine similarity analyses reveal a negative correlation between angular margin ( ) and ECE, where enlarging the margin lowers calibration error. This shows prompt tuning distorts decision boundaries with embedding collapse ( ) and semantic drift ( ), resulting in base-to-novel dual miscalibration. These conflicting trends motivate the angular margin framework’s class discriminability and semantic anchoring objectives.
, where is the context length, is introduced as a prefix to the class name. For class , the prompt is defined as , where is the static class-name embedding. The text encoder maps it into a class representation . Given image , the cosine similarity for class is computed as , and class probabilities are obtained via softmax as in zero-shot inference. The prompt tokens are optimized using a small labeled training set , typically by minimizing cross-entropy loss over predicted class probabilities. During prompt tuning, the model is trained only on the base classes in a few-shot setting, denoted as , and evaluated on remaining base class samples and novel classes encountered at test time as . In this section, we first analyze the base-to-novel dual miscalibration problem in prompt-tuned VLMs and then present our training-time method to address it.
Dual miscalibration analyses. To examine the calibration behavior of prompt-tuned VLMs, we conduct a systematic analysis across multiple prompt configurations and datasets. As shown in Fig. 3, reliability diagrams and cosine similarity analyses reveal a dual miscalibration pattern indexed by the angular margin . For base classes, reliability plots show underconfidence: predicted probabilities lag behind actual accuracy, reflecting reduced between tunable class embeddings. Fig. 3 (upper right), lower cosine similarity corresponds to lower calibration error, where maximizing enlarges the angular margin for better calibration, showing a negative correlation between angular margin and underconfidence. For novel classes, the opposite pattern emerges: predictions are overconfident, assigning high predicted probabilities to incorrect classes, which is exacerbated when tunable embeddings drift from their corresponding zero-shot embeddings ( ), distorting decision boundaries at test-time. Fig. 3 (lower right), higher cosine similarity is associated with lower ECE, where minimizing enlarges the angular margin for better calibration, which shows a negative correlation between angular margin and overconfidence. The scatter plot in Fig. 3 (right) quantifies these trends and reveals a negative correlation between angular margin and ECE. Although cross-dataset correlation for the base class is weak, further analyses in Tab. 4 show that increased reduces base ECE to 2.49, supporting the correlation. These findings show that prompt tuning distorts the well-calibrated decision boundaries of zero-shot CLIP. A well-calibrated open-vocabulary VLM should enlarge the angular margin while preserving the pre-trained embedding space, where increasing reduces base-class underconfidence, while decreasing suppresses novel-class overconfidence. This motivates our angular-margin approach to prevent embedding collapse and preserve semantic geometry.
3.2. Proposed Approach: Angular Margin
The primary objective of M-PFT is to improve confidence calibration for prompt-tuned discriminative VLMs, such as CLIP, with reliable confidence estimates for base-to-novel dual miscalibration. As shown in Fig. 2, this miscalibration arises because prompt tuning distorts the decision boundaries of the pre-trained embedding space, making them asymmetric and poorly separated. Specifically, base classes suffer from embedding collapse ( ), leading to underconfidence, while novel classes suffer from semantic drift ( ), causing overconfidence. Unlike existing calibration approaches [29, 45], which fail to exploit the angular discriminative properties of the hyperspherical embedding space. Our method addresses this dual miscalibration with two complementary objectives that enlarge the angular margin by 1) class discriminability, which promotes discriminative decision boundaries, and 2) semantic anchoring, which preserves the semantic geometry of the pre-trained embedding space.
Min-Max Regularization. Given a tunable class text embedding matrix , where is the embedding for class , denotes the number of classes, and is the embedding dimension, we normalize each embedding as s.t. to construct . For a predicted class and runner-up class , the log-ratio of their probabilities is given by . Since , applying the Cauchy–Schwarz inequality yields . We use this bound to motivate our approach: when inter-class embedding collapse drives , it shrinks the maximum attainable margin between the top-1 and runner-up classes. This caps the top-1 confidence regardless of sample separability, causing base underconfidence. Well-separated class embeddings yield discriminative decision boundaries, reducing base-class underconfidence. Therefore, we propose min-max regularization to promote class discriminability by maximizing angular distance between tunable class text embeddings. Since cosine similarity and angular distance are monotonically inversely related on the unit sphere, we implement this by minimizing the cosine similarity between class embeddings. We then compute , where is the cosine similarity between the -th and -th tunable class embeddings. Since computing the maximum cosine similarity is computationally expensive, we compute the mean of each embedding’s maximum cosine similarity. To well-separate class embeddings on the unit hypersphere, we penalize the minimally separated pairs by minimizing their maximum cosine similarity:
Anchoring Regularization. Let denote zero-shot embedding matrix, corresponds to class , is the number of classes, and is the embedding dimension. We normalize each embedding as s.t. to construct . While min-max regularization shapes confidence near decision boundaries, it operates on tunable class embeddings and does not constrain them within the pre-trained embedding space; their logits are bounded by . During training, tunes learnable context tokens, which increases in the base classes. Novel classes then apply these tuned tokens at test time. However, as semantic drift drives , the margin inflates, driving calibration error upward and yielding spurious confidence spikes in novel classes. In practice, maximizing angular distance can cause tunable embeddings to drift away from their corresponding zero-shot embeddings, disrupting semantic geometry and amplifying overconfidence in novel classes. As shown in Fig. 3 and Tab. 4, alone can increase ECE on novel classes. To preserve well-calibrated generalization, we anchor tunable embeddings to their corresponding zero-shot embeddings by minimizing the angle between them, preserving rich semantics. We then compute the alignment matrix , whose diagonal entries encode the cosine similarity between each tunable embedding and its corresponding zero-shot embedding. We convert these diagonal entries to angular distances , where quantifies the semantic drift for class . We minimize this drift with
where input-dependent prompts are regularized on the per-instance prototype matrix and averaged over the batch, with targeting the same fixed zero-shot embeddings.
Training objective. To address dual miscalibration, we combine the two regularization terms described in above with standard cross-entropy. Here, promotes discriminability, while preserves the semantic geometry of the pre-trained embedding space. Together, these objectives enable prompt-tuned models to inherit the well-calibrated behavior observed in zero-shot VLMs.
where control the relative importance of each term. The class discriminability and semantic anchoring objective addresses dual miscalibration by reducing base-class underconfidence and novel-class overconfidence while maintaining domain-specific task-adaptation capabilities.
Complementary objective. maximizes by pushing tunable class embeddings apart to enforce class discriminability and reduce base-class underconfidence, while minimizes by anchoring each tunable embedding close to its zero-shot counterpart to preserve semantic geometry and suppress novel-class overconfident predictions. alone can drift the tunable embeddings from their corresponding zero-shot embeddings, shrinking the angular margin and amplifying novel-class overconfidence, while alone leaves unconstrained, failing to address base-class underconfidence. This dual design of M-PFT with gradient blocking creates two complementary objectives that act synergistically to enlarge the angular margin and yield well-separated, discriminative boundaries without sacrificing discriminative strength (see Fig. 4 and Tab. 4).
Gradient blocking analyses. The gradient of anchoring regularization w.r.t. zero-shot embedding is blocked in Eq. 2. Without gradient blocking, zero-shot embeddings would also be pulled toward their corresponding tunable embeddings, resulting in tunable embeddings clustering together and reducing class discriminability ( , as shown in Fig. 4. This collapse in class discriminability can increase ECE, as confirmed by the analyses in Sec. 4.2. But gradient blocking is not always necessary to maintain class discriminability, since the variant without it has lower ECE on some datasets.
Numerical stability analyses. can suffer from instability and gradient explosion if its input gets too close to the ends or leaks outside the boundaries of , as its gradient is . In Eq. 2, where is computed by of cosine similarities (the dot product of normalized embeddings ). We therefore clamp it within to the interval before computing . This prevents NaNs in the calculation and infinite gradients at during backpropagation.
4. Experiments
The suppl. provides the evaluation setup, datasets, compared methods, implementation details, and evaluation metrics.
4.1. Results
Tab. 1 reports the average accuracy and ECE across 10 fine-grained classification datasets for 9 prompt-tuning methods on base and novel classes using CLIP and SigLIP backbones. We also evaluate using other calibration metrics, including MCE and ACE (see suppl. for details).
Calibration performance on base classes. As shown in Tab. 1, M-PFT reduces base-class miscalibration across backbones while preserving accuracy. Averaged across 10 datasets, M-PFT lower ECE from 4.54 to 3.85 on CLIP and from 2.75 to 2.54 on SigLIP, while maintaining or slightly improving accuracy. The gains are larger for the cross-entropy baseline highly miscalibrated: for CoOp on CLIP, ECE reduces from 6.82 to 2.94, while raising accuracy from 81.54 to 82.97. For already well-calibrated methods such as MMRL, calibration remains stable (1.60 ECE). Compared to competitive TCPT, M-PFT achieves the lowest average ECE on SigLIP (2.63 to 2.54). M-PFT trails TCPT on base-class ECE with CLIP backbones while retaining higher accuracy on CLIP. These results show that enforcing class discriminability mitigates embedding collapse and resulting base-class underconfidence.
Calibration performance on novel classes. We evaluate M-PFT on novel classes under open-vocabulary generalization using CLIP and SigLIP backbones. While prompt tuning improves zero-shot accuracy (74.30 Acc., 4.43 ECE on CLIP), it degrades calibration for overconfident methods such as CoOp (12.63 ECE) and ProDA (9.03 ECE). M-PFT significantly improves these miscalibrated methods, reducing ECE for CoOp to 4.75, ProDA to 3.99, and MaPLe from 6.18 to 4.08 while boosting accuracy. Well-calibrated methods like MMRL remain stable (3.72 to 3.47 ECE). We attribute this to anchoring tunable embeddings to the pretrained geometry, which locally corrects semantic drift. In contrast, post-hoc DAC only rescales confidence, partially aiding MaPLe (6.18 to 4.86 ECE) but overcorrecting MMRL (3.72 to 4.95 ECE). Overall, M-PFT achieves the lowest average ECE (3.86) and highest accuracy (75.32) on CLIP, outperforming the baseline (5.98), DAC (4.70), and TCPT (4.21). This trend holds on SigLIP, where M-PFT yields the lowest ECE (3.69) compared to the baseline (4.31) and TCPT (4.30) at a comparable accuracy (81.08), proving that semantic anchoring suppresses novel-class overconfidence without sacrificing generalization.
Calibration performance under natural distribution shifts. Tab. 2 shows average accuracy and ECE under natural distribution shifts across 5 ImageNet variants with MaPLe [17]. M-PFT achieves the lowest average ECE of 2.03 and 1.95 and higher average accuracy of 71.20 and 69.92 for base and novel classes, respectively. This shows that M-PFT outperforms Zero-Shot, Baseline, and TCPT, highlighting its robustness in generalizing to out-of-distribution scenarios.
Calibration performance with different backbones. Tab. 3 shows that M-PFT achieves better novel-class calibration compared to the Baseline and TCPT with MaPLe, achieving the lowest average ECE of 4.96 for CLIP RN-50 and 4.70 for CLIP ViT-B/32. For base classes, M-PFT remains competitive, achieving an ECE of 3.78 and 2.98 for RN-50 and ViT-B/32. These findings suggest that M-PFT provides robust calibration across different backbones.
4.2. Ablation Studies
Loss component analyses. Tab. 4 analyzes the contribution of each loss component to calibration across 10 datasets with MaPLe. All variants are built on a cross-entropy baseline. Adding alone reduces base-class ECE from 3.29 to 2.49 while maintaining accuracy at 81.74, confirming that maximizing angular distance improves class discriminabil-
| Class | Zero-Shot | Calibration | Model | Metric | CoOp | CoCoOp | KgCoOp | MaPLe | ProDA | ProGrad | PromptSRC | HiCroPL | MMRL | Average |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Base | 69.50Acc↑3.58ECE↓ | Baseline | CLIP | Acc. ↑ECE ↓ | 81.546.82 | 80.574.52 | 81.726.37 | 82.413.29 | 78.244.02 | 76.615.15 | 84.724.26 | 86.203.81 | 86.372.66 | 82.044.54 |
| SigLIP | Acc. ↑ECE ↓ | 85.282.54 | 85.392.51 | 85.963.33 | 86.112.56 | 85.824.20 | 84.074.12 | 88.612.11 | 88.901.82 | 88.511.60 | 86.522.75 | |||
| CLIP | TCPT | CLIP | Acc. ↑ECE ↓ | 83.192.98 | 80.164.08 | 81.345.80 | 82.752.78 | 78.513.50 | 76.984.88 | 85.313.04 | 86.663.23 | 86.393.24 | 82.373.73 | |
| SigLIP | Acc. ↑ECE ↓ | 85.482.79 | 85.232.65 | 85.973.49 | 86.191.67 | 85.853.28 | 84.563.62 | 88.882.25 | 89.351.97 | 88.601.99 | 86.682.63 | |||
| 77.67Acc↑4.64ECE↓SigLIP | M-PFT (Ours) | CLIP | Acc. ↑ECE ↓ | 82.972.94 | 79.924.16 | 81.705.94 | 82.382.80 | 80.024.50 | 77.675.32 | 84.913.30 | 86.253.16 | 86.422.50 | 82.473.85 | |
| SigLIP | Acc. ↑ECE ↓ | 85.232.79 | 85.042.36 | 85.793.24 | 86.311.95 | 85.663.56 | 83.633.51 | 88.431.99 | 88.871.90 | 88.461.60 | 86.382.54 | |||
| Novel | 74.30Acc↑4.43ECE↓CLIP | Baseline | CLIP | Acc. ↑ECE ↓ | 69.2512.63 | 73.445.55 | 74.073.90 | 75.646.18 | 70.229.03 | 74.034.52 | 75.804.57 | 77.523.69 | 76.883.72 | 74.095.98 |
| SigLIP | Acc. ↑ECE ↓ | 76.166.94 | 79.365.57 | 79.533.48 | 80.284.66 | 78.364.63 | 78.243.42 | 82.663.58 | 83.742.77 | 82.323.73 | 80.074.31 | |||
| DAC | CLIP | ECE ↓ | 7.13 | 5.15 | 4.57 | 4.86 | 4.15 | 3.91 | 3.81 | 3.75 | 4.95 | 4.70 | ||
| TCPT | CLIP | Acc. ↑ECE ↓ | 69.505.06 | 73.503.84 | 73.803.48 | 75.624.48 | 71.383.42 | 74.253.70 | 75.633.80 | 77.594.03 | 75.436.10 | 74.084.21 | ||
| SigLIP | Acc. ↑ECE ↓ | 75.827.35 | 79.574.71 | 78.844.47 | 82.273.33 | 79.474.30 | 79.613.48 | 82.814.46 | 84.002.99 | 82.853.64 | 80.584.30 | |||
| 81.67Acc↑3.22ECE↓SigLIP | M-PFT (Ours) | CLIP | Acc. ↑ECE ↓ | 72.684.75 | 74.613.79 | 74.103.72 | 76.104.08 | 75.743.99 | 73.893.51 | 76.183.74 | 77.813.71 | 76.813.47 | 75.323.86 | |
| SigLIP | Acc. ↑ECE ↓ | 78.614.87 | 81.183.48 | 79.593.81 | 82.293.49 | 78.704.18 | 79.743.67 | 83.643.23 | 83.802.92 | 82.163.55 | 81.083.69 |
Table 1. Comparison of calibration performance on base and novel classes averaged across 10 fine-grained classification datasets for top@1 Accuracy (Acc.) and Expected Calibration Error (ECE) with multiple prompt-tuning methods across various calibration baselines, where higher Acc. and lower ECE indicate better performance and calibration, respectively
| Class | Metric | Zero-Shot | Baseline | TCPT | M-PFT (Ours) |
|---|---|---|---|---|---|
| Base | Acc. ↑ | 60.52 | 70.19 | 70.04 | 71.20 |
| ECE ↓ | 3.92 | 3.00 | 2.73 | 2.03 | |
| Novel | Acc. ↑ | 60.52 | 68.95 | 68.77 | 69.92 |
| ECE ↓ | 4.03 | 2.90 | 2.55 | 1.95 |
Table 2. Calibration performance under natural distribution shifts.
ity. However, novel-class ECE remains high, ranging from 6.18 to 6.80, showing that promoting class discriminability without semantic constraints can amplify overconfidence on unseen classes. Adding the only variant preserves
| Class | Backbone | Metric | Baseline | TCPT | M-PFT (Ours) |
|---|---|---|---|---|---|
| Base | ResNet-50 | Acc. ↑ | 77.66 | 78.57 | 78.14 |
| ECE ↓ | 4.04 | 3.46 | 3.78 | ||
| ViT-B/32 | Acc. ↑ | 80.56 | 80.90 | 80.16 | |
| ECE ↓ | 3.15 | 2.87 | 2.98 | ||
| Novel | ResNet-50 | Acc. ↑ | 59.57 | 60.68 | 65.66 |
| ECE ↓ | 9.38 | 5.46 | 4.96 | ||
| ViT-B/32 | Acc. ↑ | 65.09 | 65.63 | 69.45 | |
| ECE ↓ | 10.13 | 5.82 | 4.70 |
Table 3. Calibration performance with different backbones.
semantic geometry, lowering novel ECE from 6.18 to 4.28, but base ECE remains high at 3.25 due to the collapsed embedding. Adding to improves novel-class calibration. Without gradient blocking, novel ECE reduces from 6.80 to 4.11 with accuracy of 75.88, but base ECE remains high, from 2.49 to 3.12, because without blocking, zero-shot embeddings are pulled toward tunable embeddings, leading to clustering and reduced class discriminability . With gradient blocking, the full M-PFT objective further reduces novel ECE from 4.11 to 4.08 and base ECE from 3.12 to 2.80, yielding a Pareto-optimal base-to-novel calibration trade-off across all datasets. Since the variant without gradient blocking achieves lower base and novel class ECE on some datasets like SUN397, Aircraft, and Caltech101 (see suppl. Tab. 10), confirming that gradient blocking is necessary but not always. Overall, improves base-class calibration, reduces novel-class overconfidence, and gradient blocking enables both objectives to operate synergistically, collectively constituting the full M-PFT objective.
| Loss Component | Base | Novel | ||
|---|---|---|---|---|
| Acc. ↑ | ECE ↓ | Acc. ↑ | ECE ↓ | |
| 82.41 | 3.29 | 75.64 | 6.18 | |
| 81.74 | 2.49 | 72.06 | 6.80 | |
| 82.64 | 3.25 | 75.36 | 4.28 | |
| (w/o gradient blocking) | 82.43 | 3.12 | 75.88 | 4.11 |
| (w/ gradient blocking) | 82.38 | 2.80 | 76.10 | 4.08 |
Table 4. Loss component analyses on the effect of min-max regularization and anchoring regularization with (w/) and without (w/o) gradient blocking on both base and novel classes.
Gradient blocking graph. We use the cosine similarity between tunable class embeddings to measure class discrimin-inability. Fig. 4 compares cosine similarity with and without blocking the gradient of the anchoring regularization term w.r.t. the zero-shot embedding. The mean cosine similarity between tunable class embeddings is lower with gradient blocking compared to without gradient blocking. This indicates that gradient blocking has larger class discriminability , consistent with the analysis in Sec. 3. As shown in Tab. 4, gradient blocking also achieves a Pareto-optimal base-to-novel calibration with lower ECE on both base and novel classes. However, the counterpart increases the ECE, particularly on base classes. These results show the importance of blocking the gradient w.r.t. the zero-shot embedding.

Figure 4. Cosine similarity comparison between tunable class embeddings. With gradient blocking w.r.t. zero-shot embeddings, cosine similarity is lower, corresponding to increased , showing higher class discriminability.
Anchor-based methods. Prior anchor-based methods like KgCoOp, ProGrad, and PromptSRC apply distance, alignment, or consistency to improve generalization to novel classes without connecting angular geometry to the base-to-novel calibration trade-off. We link angular geometry: inter-class embedding collapse shrinks top-1 and runner-up class margins (), capping base confidence, while semantic drift inflates margins to spike novel confidence. As shown in Tab. 5, on average across these three methods, M-PFT reduces CLIP base ECE from 5.26 to 4.85 at 81.43 accuracy and novel ECE from 4.33 to 3.66 at 74.72 accuracy. For SigLIP, it achieves a base ECE of 2.91 at 85.95 accuracy and a novel ECE of 3.57 at 80.99 accuracy.
| Class | Metric | Standard deviations (Std.) | Anchor-based Methods | ||||
|---|---|---|---|---|---|---|---|
| Baseline | M-PFT | Baseline | M-PFT (Ours) | ||||
| (Ours) | CLIP | SigLIP | CLIP | SigLIP | |||
| Base | Acc. ↑ | ± 0.36 | ± 0.35 | 81.02 | 86.21 | 81.43 | 85.95 |
| ECE ↓ | ± 0.29 | ± 0.26 | 5.26 | 3.17 | 4.85 | 2.91 | |
| Novel | Acc. ↑ | ± 0.51 | ± 0.52 | 74.63 | 80.14 | 74.72 | 80.99 |
| ECE ↓ | ± 0.47 | ± 0.42 | 4.33 | 3.49 | 3.66 | 3.57 | |
Table 5. Standard deviation and Anchor-based method analyses.
Computational overhead. We evaluate M-PFT's computational and memory overhead via per-batch calculation time, GPU memory usage, and ECE. M-PFT marginally increases calculation time, leaves memory usage essentially unchanged, and reduces ECE, demonstrating negligible overhead (see suppl. for details).
Impact of hyperparameters. We investigate the impact of different regularization hyperparameters on M-PFT calibration. Overly large hyperparameters may slightly improve or degrade performance, as too strong regularization can prevent training with standard cross-entropy loss. Hence, we set and via hyperparameter search on 3 of 15 datasets and held fixed across all remaining datasets in the following experiments. M-PFT shows strong cross-dataset transferability, is not highly sensitive to either hyperparameter, and shows a stable ECE for and , showing robustness without dataset-specific tuning. (see suppl. for details)
Standard deviation (Std.) analyses. Tab. 5 reports average standard deviations of accuracy and ECE across 10 datasets for 3 seed runs with MMRL. M-PFT yields lower average ECE variance than the baseline on base and novel classes, with a competitive accuracy variance of . This demonstrates superior stability w.r.t. random seed initialization.
Varying shots. Fig. 5 shows calibration across different 4, 8, 16, and 32 numbers of shots with MaPLe, CoOp, and CoCoOp. Baselines exhibit higher ECE with fewer shots on base classes and increasing ECE at higher shots on novel classes. In contrast, M-PFT maintains lower and stable ECE across 4, 8, 16, and 32-shot settings and backbones, showing superior calibration even in extreme few-shot scenarios. However, calibration gains may diminish under extreme domain gaps and extremely few-shot 1-shot scenarios.

Figure 5. Varying shots.
Different prompt initializations. We evaluate sensitivity across four hand-crafted templates (P1–P4) on 10 datasets with MaPLe (Fig. 6). M-PFT consistently yields lower ECE and higher accuracy with minimal fluctuation compared to the sensitive baseline. This demonstrates robustness rather than template overfitting (see suppl. for details).

Figure 6. Different prompt initialization.
5. Conclusion
In this paper, we propose M-PFT, a novel method for calibrated prompt tuning of fine-tuned VLMs that introduces two regularizers: (1) min-max regularization to improve class discriminability and (2) anchoring regularization to preserve the semantic geometry of the pre-trained embedding space. Compared with current methods, M-PFT promotes class discriminability while reducing semantic drift , thereby effectively enlarging the angular margin. This dual design with gradient blocking creates two complementary objectives that act synergistically to exploit the angular discriminative properties of the hyperspherical embedding space without distorting decision boundaries. Extensive experiments across 9 prompt-tuning techniques and 15 datasets demonstrate that M-PFT improves the calibration of prompt-tuned VLMs, particularly on novel classes, without compromising classification accuracy.
Acknowledgments. The computational resources were partially supported by the Ministry of Higher Education, Sri Lanka, funded by the World Bank (AHEAD Operation Grant No. 6026-LK/8743-LK), the National Research Council of Sri Lanka (Grant No. 19-080), and Manoj Bandara.
References
[1] Shihab Aaqil Ahamed, Udaya Sampath K. Perera Miriya Thanthrige, Ranga Rodrigo, and Muhammad Haris Khan. A-TPT: Angular diversity calibration properties for test-time prompt tuning of vision-language models. In The Fourteenth International Conference on Learning Representations, 2026. 3
[2] Anonymous. AGI-TPT: Adaptive geometry-informed test-time prompt tuning for calibrated zero-shot vision-language models. In Submitted to The Fifteenth International Conference on Learning Representations, 2026. under review. 3
[3] Shuang Ao, Stefan Rueger, and Advaith Siddharthan. Two sides of miscalibration: Identifying over and under-confidence prediction for network calibration. In Uncertainty in artificial intelligence, pages 77–87. PMLR, 2023. 2
[4] Lukas Bossard, Matthieu Guillaumin, and Luc Van Gool. Food-101-mining discriminative components with random forests. In Computer vision–ECCV 2014: 13th European conference, zurich, Switzerland, September 6-12, 2014, proceedings, part VI 13, pages 446–461. Springer, 2014. 1
[5] Zongjing Cao, Yan Li, Dong-Ho Kim, and Byeong-Seok Shin. Deep neural network confidence calibration from stochastic weight averaging. Electronics, 13(3):503, 2024. 2
[6] Mircea Cimpoi, Subhransu Maji, Iasonas Kokkinos, Sammy Mohamed, and Andrea Vedaldi. Describing textures in the wild. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 3606–3613, 2014. 1
[7] Jia Deng, Wei Dong, Richard Socher, Li-Jia Li, Kai Li, and Li Fei-Fei. Imagenet: A large-scale hierarchical image database. In 2009 IEEE conference on computer vision and pattern recognition, pages 248–255. Ieee, 2009. 1
[8] Mohammed Elhenawy, Huthaifa I Ashqar, Andry Rakotonirainy, Taqwa I Alhadidi, Ahmed Jaber, and Mohammad Abu Tami. Vision-language models for autonomous driving: Clip-based dynamic scene understanding. Electronics, 14(7):1282, 2025. 1
[9] Li Fei-Fei, Rob Fergus, and Pietro Perona. Learning generative visual models from few training examples: An incremental bayesian approach tested on 101 object categories. In 2004 conference on computer vision and pattern recognition workshop, pages 178–178. IEEE, 2004. 1
[10] Chuan Guo, Geoff Pleiss, Yu Sun, and Kilian Q Weinberger. On calibration of modern neural networks. In International conference on machine learning, pages 1321–1330. PMLR, 2017. 2, 3
[11] Yuncheng Guo and Xiaodong Gu. Mmrl: Multi-modal representation learning for vision-language models. In Proceedings of the Computer Vision and Pattern Recognition Conference, pages 25015–25025, 2025. 1, 3, 2, 5
[12] Patrick Helber, Benjamin Bischke, Andreas Dengel, and Damian Borth. Introducing eurosat: A novel dataset and deep learning benchmark for land use and land cover classification. In IGARSS 2018-2018 IEEE international geoscience and remote sensing symposium, pages 204–207. IEEE, 2018. 1
[13] Dan Hendrycks, Steven Basart, Norman Mu, Saurav Kada-vath, Frank Wang, Evan Dorundo, Rahul Desai, Tyler Zhu, Samyak Parajuli, Mike Guo, et al. The many faces of robustness: A critical analysis of out-of-distribution generalization. In Proceedings of the IEEE/CVF international conference on computer vision, pages 8340–8349, 2021. 1, 3
[14] Dan Hendrycks, Kevin Zhao, Steven Basart, Jacob Steinhardt, and Dawn Song. Natural adversarial examples. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pages 15262–15271, 2021. 1, 3
[15] Edward J Hu, Yelong Shen, Phillip Wallis, Zeyuan Allen-Zhu, Yuanzhi Li, Shean Wang, Liang Wang, Weizhu Chen, et al. Lora: Low-rank adaptation of large language models. ICLR, 1(2):3, 2022. 1
[16] Chao Jia, Yinfei Yang, Ye Xia, Yi-Ting Chen, Zarana Parekh, Hieu Pham, Quoc Le, Yun-Hsuan Sung, Zhen Li, and Tom Duerig. Scaling up visual and vision-language representation learning with noisy text supervision. In International conference on machine learning, pages 4904–4916. PMLR, 2021. 1
[17] Muhammad Uzair Khattak, Hanoona Rasheed, Muhammad Maaz, Salman Khan, and Fahad Shahbaz Khan. Maple: Multimodal prompt learning. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pages 19113–19122, 2023. 1, 2, 3, 6, 5
[18] Muhammad Uzair Khattak, Syed Talal Wasim, Muzammal Naseer, Salman Khan, Ming-Hsuan Yang, and Fahad Shahbaz Khan. Self-regulating prompts: Foundational model adaptation without forgetting. In Proceedings of the IEEE/CVF international conference on computer vision, pages 15190–15200, 2023. 2, 3, 1
[19] Jonathan Krause, Michael Stark, Jia Deng, and Li Fei-Fei. 3d object representations for fine-grained categorization. In Pro-ceedings of the IEEE international conference on computer vision workshops, pages 554–561, 2013. 1
[20] Pengfei Liu, Weizhe Yuan, Jinlan Fu, Zhengbao Jiang, Hiroaki Hayashi, and Graham Neubig. Pre-train, prompt, and predict: A systematic survey of prompting methods in natural language processing. ACM computing surveys, 55(9):1–35, 2023. 1
[21] Weiyang Liu, Rongmei Lin, Zhen Liu, Lixin Liu, Zhiding Yu, Bo Dai, and Le Song. Learning towards minimum hyperspherical energy. Advances in neural information processing systems, 31, 2018. 2
[22] Weiyang Liu, Rongmei Lin, Zhen Liu, Li Xiong, Bernhard Schölkopf, and Adrian Weller. Learning with hyperspherical uniformity. In International conference on artificial intelligence and statistics, pages 1180–1188. PMLR, 2021. 2
[23] Yuning Lu, Jianzhuang Liu, Yonggang Zhang, Yajing Liu, and Xinmei Tian. Prompt distribution learning. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pages 5206–5215, 2022. 2, 3, 1
[24] Song-Lin Lv, Yu-Yang Chen, Zhi Zhou, Yu-Feng Li, and Lan-Zhe Guo. Contrast-aware calibration for fine-tuned CLIP: Leveraging image-text alignment. arXiv preprint arXiv:2501.19060, 2025. 2
[25] Subhransu Maji, Esa Rahtu, Juho Kannala, Matthew Blaschko, and Andrea Vedaldi. Fine-grained visual classification of aircraft. arXiv preprint arXiv:1306.5151, 2013. 1, 5
[26] Matthias Minderer, Josip Djolonga, Rob Romijnders, Frances Hubis, Xiaohua Zhai, Neil Houlsby, Dustin Tran, and Mario Lucic. Revisiting the calibration of modern neural networks. Advances in neural information processing systems, 34:15682–15694, 2021. 2
[27] Jishnu Mukhoti, Viveka Kulharia, Amartya Sanyal, Stuart Golodetz, Philip Torr, and Puneet Dokania. Calibrating deep neural networks using focal loss. Advances in neural information processing systems, 33:15288–15299, 2020. 3
[28] Rafael Müller, Simon Kornblith, and Geoffrey E Hinton. When does label smoothing help? Advances in neural information processing systems, 32, 2019. 3
[29] Balamurali Murugesan, Julio Silva-Rodríguez, Ismail Ben Ayed, and Jose Dolz. Robust calibration of large vision-language adapters. In European Conference on Computer Vision, pages 147–165. Springer, 2024. 2, 3, 5
[30] Mahdi Pakdaman Naeini, Gregory Cooper, and Milos Hauskrecht. Obtaining well calibrated probabilities using bayesian binning. In Proceedings of the AAAI conference on artificial intelligence, 2015. 3, 2
[31] Maria-Elena Nilsback and Andrew Zisserman. Automated flower classification over a large number of classes. In 2008 Sixth Indian conference on computer vision, graphics & image processing, pages 722–729. IEEE, 2008. 1
[32] Jeremy Nixon, Michael W Dusenberry, Linchuan Zhang, Ghassen Jerfel, and Dustin Tran. Measuring calibration in deep learning. In CVPR workshops, 2019. 2
[33] Omkar M Parkhi, Andrea Vedaldi, Andrew Zisserman, and CV Jawahar. Cats and dogs. In 2012 IEEE conference on computer vision and pattern recognition, pages 3498–3505. IEEE, 2012. 1
[34] Adam Paszke, Sam Gross, Francisco Massa, Adam Lerer, James Bradbury, Gregory Chanan, Trevor Killeen, Zeming Lin, Natalia Gimelshein, Luca Antiga, et al. Pytorch: An imperative style, high-performance deep learning library. Advances in neural information processing systems, 32, 2019. 2, 5
[35] John Platt et al. Probabilistic outputs for support vector machines and comparisons to regularized likelihood methods. Advances in large margin classifiers, 10(3):61–74, 1999. 3
[36] Alec Radford, Jong Wook Kim, Chris Hallacy, Aditya Ramesh, Gabriel Goh, Sandhini Agarwal, Girish Sastry, Amanda Askell, Pamela Mishkin, Jack Clark, et al. Learning transferable visual models from natural language supervision. In International conference on machine learning, pages 8748–8763. PmLR, 2021. 1, 2
[37] Benjamin Recht, Rebecca Roelofs, Ludwig Schmidt, and Vaishaal Shankar. Do imagenet classifiers generalize to imagenet? In International conference on machine learning, pages 5389–5400. PMLR, 2019. 1, 3
[38] Ashshak Sharifdeen, Shihab Aaqil Ahamed, Ufaq Khan, Muhammad Akhtar Munir Sujair Ibrahim, Mohamed Rafeek Mareer Ahamed, Yutong Xie, Imran Razzak, and Muhammad Haris Khan. Mvc-bench: Benchmarking calibration of medical vision-language models. arXiv preprint arXiv:2608.27004, 2026. 3
[39] Ashshak Sharifdeen, Fahad Shamshad, Muhammad Akhtar Munir, Abhishek Basu, Mohamed Ismithdeen, Jeyapriyan Jeyamohan, Chathurika Silva, Karthik Nandakumar, and Muhammad Haris Khan. Towards calibrating prompt tuning of vision-language models. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 39131–39140, 2026. 1, 2, 3
[40] Manli Shu, Weili Nie, De-An Huang, Zhiding Yu, Tom Goldstein, Anima Anandkumar, and Chaowei Xiao. Test-time prompt tuning for zero-shot generalization in vision-language models. Advances in Neural Information Processing Systems, 35:14274–14289, 2022. 1
[41] Khurram Soomro, Amir Roshan Zamir, and Mubarak Shah. Ucf101: A dataset of 101 human actions classes from videos in the wild. arXiv preprint arXiv:1212.0402, 2012. 1
[42] Cheng Wang. Calibration in deep learning: A survey of the state-of-the-art. arXiv preprint arXiv:2308.01222, 2023. 2
[43] Haohan Wang, Songwei Ge, Zachary Lipton, and Eric P Xing. Learning robust global representations by penalizing local predictive power. Advances in neural information processing systems, 32, 2019. 1, 3
[44] Shuoyuan Wang, Yixuan Li, and Hongxin Wei. Understanding and mitigating miscalibration in prompt tuning for vision-language models. arXiv preprint arXiv:2410.02681, 2024. 2
[45] Shuoyuan Wang, Jindong Wang, Guoqing Wang, Bob Zhang, Kaiyang Zhou, and Hongxin Wei. Open-vocabulary calibration for fine-tuned CLIP. arXiv preprint arXiv:2402.04655, 2024. 1, 2, 3, 5
[46] Hantao Yao, Rui Zhang, and Changsheng Xu. Visual-language prompt tuning with knowledge-guided context optimization. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pages 6757–6767, 2023. 2, 3, 1
[47] Hee Suk Yoon, Eunseop Yoon, Joshua Tian Jin Tee, Mark Hasegawa-Johnson, Yingzhen Li, and Chang D Yoo. C-tpt: Calibrated test-time prompt tuning for vision-language models via text feature dispersion. arXiv preprint arXiv:2403.14119, 2024. 3
[48] Xiaohua Zhai, Basil Mustafa, Alexander Kolesnikov, and Lucas Beyer. Sigmoid loss for language image pre-training. In Proceedings of the IEEE/CVF international conference on computer vision, pages 11975–11986, 2023. 1, 2
[49] Zihao Zhao, Yuxiao Liu, Han Wu, Mei Wang, Yonghao Li, Sheng Wang, Lin Teng, Disheng Liu, Zhiming Cui, Qian Wang, et al. Clip in medical imaging: A survey. Medical Image Analysis, 102:103551, 2025. 1
[50] Hao Zheng, Shunzhi Yang, Zhuoxin He, Jinfeng Yang, and Zhenhua Huang. Hierarchical cross-modal prompt learning for vision-language models. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 1891–1901, 2025. 2, 3, 1
[51] Kaiyang Zhou, Jingkang Yang, Chen Change Loy, and Ziwei Liu. Conditional prompt learning for vision-language models. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pages 16816–16825, 2022. 1, 3, 2
[52] Kaiyang Zhou, Jingkang Yang, Chen Change Loy, and Ziwei Liu. Learning to prompt for vision-language models. International journal of computer vision, 130(9):2337–2348, 2022. 1, 3, 2, 12
[53] Beier Zhu, Yulei Niu, Yucheng Han, Yue Wu, and Hanwang Zhang. Prompt-aligned gradient for prompt tuning. In Proceedings of the IEEE/CVF international conference on computer vision, pages 15659–15669, 2023. 2, 3, 1
[54] Fei Zhu, Zhen Cheng, Xu-Yao Zhang, and Cheng-Lin Liu. Rethinking confidence calibration for failure prediction. In European conference on computer vision, pages 518–536. Springer, 2022. 2
M-PFT: Angular Margin for Calibrated Prompt-Tuning of Fine-Tuned Vision-Language Models Supplementary Material
This supplementary material provides the following:
• Experimental setup in Sec. A
-
Calibration analysis with CLIP and SigLIP backbones for base and novel classes across 10 fine-grained datasets in Sec. B.
-
Calibration performance under natural distribution shifts in Sec. C.
-
Other calibration metrics, like MCE and ACE in Sec. D.
-
Loss component analyses in Sec. E.
-
Impact of hyperparameters in Sec. F.
-
Results on various backbones in Sec. G.
-
Different prompt initializations in Sec. H.
-
Computational overhead in Sec. I
-
Standard deviation across random seeds in Sec. J
A. Experimental setup
Evaluation setup. We follow the standard open-vocabulary setting, and the datasets are divided into disjoint base and novel classes. The VLM is prompt-tuned only on base classes in a few-shot setting with a limited number of labeled samples per class, and we report calibration performance on both the base and novel classes.
Datasets. We evaluate the proposed approach along with comparison calibration methods on 15 datasets spanning various image classification tasks. These tasks include object recognition on ImageNet [7] and Caltech101 [9] datasets, fine-grained object recognition such as Oxford Pets [33], Food101 [4], Stanford Cars [19], Oxford Flowers102 [31], and FGVCAircraft [25] datasets. Additionally, we performed a remote sensing recognition task with the EuroSAT [12] dataset, a texture recognition task with the DTD [6] dataset, an action recognition task with the UCF101 [41] dataset, and a large-scale scene understanding task with the SUN397 dataset. And we also provide results on out-of-distribution tasks, including ImageNet-V2 [37] (natural images), ImageNet-A [14] (natural adversarial examples), ImageNet-R [13] (artistic renditions), and ImageNet-S [43] (black and white sketches) datasets. Following the base-to-new generalization protocol introduced by CoCoOp [51], downstream datasets are partitioned into disjoint base and novel class subsets. As detailed in Tab. 1, each dataset is divided into training and test splits. The fine-tuned CLIP model is prompt-tuned solely on the base classes. Then the model is tested on both class subsets and unseen categories.
Compared methods. We benchmark M-PFT against a diverse set of representative prompt tuning methods: CoOp [52], CoCoOp [51], KgCoOp [46], MaPLe [17],
| Dataset | Class Counts | Train Samples Base (16-shot) | ||
|---|---|---|---|---|
| Base | Novel | Total | ||
| Generic Objects | ||||
| Caltech101 | 50 | 50 | 100 | 800 |
| ImageNet | 500 | 500 | 1,000 | 8,000 |
| Fine-Grained | ||||
| OxfordPets | 19 | 18 | 37 | 304 |
| StanfordCars | 98 | 98 | 196 | 1,568 |
| Flowers102 | 51 | 51 | 102 | 816 |
| Food101 | 51 | 50 | 101 | 816 |
| FGVCAircraft | 50 | 50 | 100 | 800 |
| Specialized Contexts | ||||
| SUN397 | 199 | 198 | 397 | 3,184 |
| DTD | 24 | 23 | 47 | 384 |
| EuroSAT | 5 | 5 | 10 | 80 |
| UCF101 | 51 | 50 | 101 | 816 |
Table 1. The split strategy of downstream datasets categorized by domain. Prompt tuning utilizes few-shot (16) training samples only from the base classes ( ), while evaluated across separate base and novel ( ) test splits.
ProDA [23], ProGrad [53], PromptSRC [18], HiCroPL [50], and MMRL [11], and calibration baselines. We list the general hyperparameters in Tab 2. Here, we briefly introduce the corresponding exclusive hyperparameters of each VLM tuning method. All the methods are adopted from their official implementation. For CoOp and CoCoOp, they do not contain other hyperparameters. For ProDA, we set . For KgCoOp, we set . For MaPLe, we set prompt depth to 0 and the language and vision prompt lengths to 2. For ProGrad, we set . For PromptSRC, we set deep prompting with . and are used in the weight loss. For textual diversity, we use a total of standard prompt templates. Since methods like CoOp only consider the text modality and exhibit low accuracy, making their calibration significance minimal, we focused on testing and calibrating their optimized versions, CoCoOp and KgCoOp. For calibration, we select representative baselines: classical baselines include a post-hoc approach, DAC [45] for adapting CLIP to novel classes, and a training-time regularization method, TCPT [39].
Implementation details. For the main experiments, we use CLIP [7] and SigLIP ViT-B/16 [48] as the pre-trained VLM throughout and report results averaged over 3 seed runs. For all compared methods, we use the corresponding
| Methods | BS | LR | CTX |
|---|---|---|---|
| CoOp | 32 | 0.002 | 16 |
| CoCoOp | 1 | 0.002 | 4 |
| ProDA | 4 | 0.001 | 16 |
| KgCoOp | 32 | 0.002 | 16 |
| MaPLe | 4 | 0.0026 | 2 |
| ProGrad | 32 | 0.002 | 16 |
| PromptSRC | 4 | 0.0025 | 4 |
Table 2. Hyperparameters for prompt tuning methods. “BS” denotes the batch size. “LR” denotes the learning rate. “CTX” is the context length of the learnable prompt.
official implementations with the specified hyperparameter configurations. Prompt-tuning is conducted in a few-shot manner with 16 samples per class, using a learning rate of 0.005 and a batch size of 8. All experiments are conducted using PyTorch [34] on an NVIDIA RTX A6000 GPU with 48GB of memory. All experiments employ CLIP with a ViT-B/16 [36] as the pre-trained vision-language backbone. Prompt tuning is performed under the standard few-shot protocol with 16 labeled samples per class, using a learning rate of 0.005 and a batch size of 8. For each baseline method, we adopt the corresponding official implementation and follow the hyperparameter configurations recommended in the original publications to ensure a fair comparison. All experiments are conducted on a single NVIDIA RTX A6000 GPU with 48GB of memory.
Evaluation metrics. We use top-1 accuracy (Acc.) for classification performance and Expected Calibration Error (ECE) [30] for open-vocabulary confidence calibration in our evaluation, which is a widely used metric. We also use Adaptive Calibration Error (ACE) [32] and Maximum Calibration Error (MCE) [30], results carried in the supplementary material. All calibration errors are given by .
B. Calibration analysis across 10 fine-grained datasets
We evaluate the calibration performance of M-PFT across 10 fine-grained classification tasks, comparing it with 9 representative prompt-tuning methods: CoOp [52], CoCoOp [51], KgCoOp [46], MaPLe [17], ProDA [23], ProGrad [53], PromptSRC [18], HiCroPL [50], and MMRL [11]. To assess whether these gains generalize across vision-language backbones, we report results using both CLIP [36] and SigLIP [48] as the underlying backbone. While the main paper summaries focus on aggregate metrics, we provide comprehensive dataset-wise results in Tab. 3 and Tab. 5 for base classes, while Tab. 4 and Tab. 6 for novel classes to demonstrate the broad applicability and efficacy of M-PFT. All reported results are averaged across three random seeds.
Calibration performance on base classes (CLIP). As shown in Tab. 3, M-PFT consistently achieves superior calibration performance (lower ECE) while maintaining competitive accuracy across all evaluated prompt learning methods and datasets. For CoOp, M-PFT reduces the average ECE from 6.82 (Baseline) to 2.94, surpassing TCPT's 2.98 while improving accuracy from 81.54 to 82.97. In methods like CoCoOp and KgCoOp, M-PFT remains competitive with TCPT while consistently outperforming the Baseline, and for MaPLe, it achieves an average ECE of 2.80 without sacrificing accuracy 82.38. M-PFT also shows strong cross-method compatibility, achieving the best ECE for HiCroPL 3.16 and the most significant aggregate gain with MMRL, lowering the average ECE to 2.50 compared to 3.24 for TCPT. At the dataset level, on Flowers102 within PromptSRC, M-PFT achieves an ECE of 3.10 against the baseline's 5.15, and on OxfordPets within MMRL, it reaches an accuracy of 95.82, confirming that calibration gains do not come at the cost of accuracy. These results validate the generalizability of M-PFT in mitigating base-class underconfidence across diverse prompt-tuning techniques and datasets.
Calibration performance on novel classes (CLIP). We further evaluate the robustness and efficacy of M-PFT on novel classes, summarized in Tab. 4. Consistent with the trends observed on base classes, M-PFT maintains a superior balance between accuracy and ECE on unseen categories. For CoOp, M-PFT substantially reduces the average ECE from 12.63 (Baseline) to 4.75, surpassing both DAC (7.13) and TCPT (5.06), with accuracy improving from 69.25 to 72.68. For MaPLe, M-PFT yields a marked improvement on EuroSAT, lowering ECE from 11.68 (Baseline) to 5.23 while nearly matching the Baseline's accuracy. While ProDA achieves a notable accuracy gain on EuroSAT (51.86 to 74.64), its overall average ECE (3.99) trails several other methods, with MMRL achieving the lowest average ECE among all settings at 3.47. HiCroPL attains the best overall average accuracy (77.81) among the compared methods, closely followed by PromptSRC at 76.18. Crucially, these calibration gains do not come at the expense of discriminative strength, as M-PFT maintains high accuracy levels such as 97.84 on OxfordPets within ProGrad and 93.52 on Caltech101 within ProDA. These results confirm that M-PFT remains reliable and well-calibrated even when encountering novel, out-of-distribution classes.
Calibration performance on base classes (SigLIP). To assess whether the dataset-wise calibration gains of M-PFT extend beyond the CLIP backbone, we report the full dataset-wise breakdown using SigLIP in Tab. 5. M-PFT achieves lower or comparable ECE relative to both the Baseline and TCPT across most prompt-tuning methods, while accuracy remains largely on par with both. For CoOp, M-PFT's average ECE rises slightly from 2.54 (Baseline) to 2.79, though a dataset-wise improvement is still visible on Caltech101 (1.25 to 1.01). For KgCoOp, M-PFT reduces ECE on Aircraft from 5.84 to 4.46 while accuracy is essentially preserved. The most pronounced aggregate improvement is observed with MaPLe, where M-PFT lowers the average ECE from 2.56 (Baseline) to 1.95 while simultaneously achieving the highest accuracy among the three settings at 86.31. These results confirm that M-PFT's class-discriminability objective continues to mitigate base-class underconfidence across most prompt-tuning methods under a different vision-language backbone, such as SigLIP.
Calibration performance on novel classes (SigLIP). We further evaluate the generalization capability of M-PFT to novel classes under the SigLIP backbone, with the complete dataset-wise results presented in Tab. 6. Consistent with the trends observed on the CLIP backbone, M-PFT achieves the lowest or near-lowest average ECE across nearly all evaluated methods, while improving or maintaining accuracy relative to the Baseline, DAC, and TCPT. For CoOp, M-PFT substantially reduces the average ECE from 6.94 (Baseline) to 4.87, surpassing TCPT 7.35, with accuracy improving from 76.16 to 78.61. For MaPLe, M-PFT yields a marked improvement on EuroSAT, lowering ECE from 14.52 to 9.09 while raising accuracy from 57.51 to 69.65, the largest single-dataset accuracy gain observed in the novel-class setting. PromptSRC achieves the best overall average accuracy of 83.64 among the compared methods, while M-PFT remains competitive with EuroSAT in cross-modal methods such as HiCroPL and MMRL despite the dataset's inherently high variance. These results demonstrate that M-PFT's semantic-anchoring objective continues to suppress novel-class overconfidence at the dataset-wise level under the SigLIP backbone, reinforcing that the dual miscalibration problem and its mitigation generalize beyond CLIP.
C. Calibration performance under natural distribution shifts
We evaluate the robustness of M-PFT under natural distribution shifts across four out-of-distribution (OOD) datasets, representing diverse challenges: natural images (ImageNet-V2) [37], black and white sketches (ImageNet-S) [43], natural adversarial examples (ImageNet-A), [14], and artistic renditions (ImageNet-R) [13]. As shown in Tab. 7, we compare M-PFT against Zero-Shot, Baseline, DAC, and TCPT across both base and novel classes.
Calibration performance on base classes. As shown in Tab. 7, M-PFT consistently surpasses both the Baseline and TCPT under natural distribution shifts. M-PFT achieves the best overall calibration with an average ECE of 2.03, a significant reduction compared to Zero-Shot 3.92, Baseline 3.00 and TCPT 2.73. These improvements are particularly pronounced on challenging shifts; for instance, M-PFT reduces ECE from 3.14 to 1.52 on ImageNet-V2, from 3.94 to 2.02 on ImageNet-S, and from 3.14 to 2.13 on ImageNet-R. Importantly, these gains are achieved while maintaining competitive accuracy, with M-PFT simultaneously lowering ECE and improving accuracy over the Baseline on ImageNet-S and ImageNet-R, reaching accuracies of 58.77 and 86.06, respectively.
Calibration performance on novel classes. The generalization capability of M-PFT is further validated on novel classes. M-PFT reduces ECE from 3.16 to 1.52 on ImageNet-V2, from 3.73 to 2.05 on ImageNet-S, and from 3.14 to 2.13 on ImageNet-R. Consistent with the base-class trends, M-PFT maintains superior performance under distribution shift, achieving the lowest average ECE 1.95 and outperforming both the Baseline 2.90 and TCPT 2.55. The consistent performance across both base and novel classes indicates that M-PFT addresses the fundamental dual miscalibration problem rather than overfitting to dataset-specific artifacts, which is critical for real-world deployment where models must provide reliable confidence estimates even when encountering data that differs from the training distribution.
D. Other calibration metrics: MCE and ACE
To provide a more comprehensive evaluation of model calibration beyond the Expected Calibration Error (ECE) discussed in our main paper, we evaluate M-PFT using two additional metrics: Maximum Calibration Error (MCE) and Adaptive Calibration Error (ACE), both computed with the SigLIP backbone. These metrics offer a deeper look into the reliability of predicted probabilities, with MCE highlighting worst-case scenarios and ACE providing a more robust measure across varying data densities.
As shown in Tab. 8, our approach improves calibration performance across most of the 10 fine-grained classification datasets compared to prompt-tuning techniques on base classes, when using the SigLIP backbone. Our method significantly refines MaPLe's calibration, with the average MCE dropping from 0.78 to 0.63 and the average ACE dropping from 2.47 to 1.81. These shifts indicate a substantial decrease in both average and peak miscalibration. Similar trends were observed with PromptSRC, where M-PFT lowers the average MCE from 0.68 to 0.64 and the average ACE from 2.02 to 1.82. For MMRL, M-PFT achieves an average MCE comparable to the baseline (0.48 vs. 0.50) while reducing the average ACE from (1.54 to 1.46). The notable improvements in MCE for MaPLe and PromptSRC are particularly vital. Since MCE identifies the maximum gap between confidence and accuracy, these results suggest that M-PFT effectively mitigates extreme overconfidence, leading to more dependable model outputs even in the most challenging classification cases. Overall, these findings reinforce the versatility and effectiveness of M-PFT in producing well-calibrated models across diverse prompt-learning techniques, even when paired with a different vision-language backbone such as SigLIP.
Analysis of the novel class performance, shown in Tab. 9, largely mirrors the trends observed in the base classes, reinforcing the generalization capability of M-PFT. For MaPLe, M-PFT reduces the average MCE from 1.58 to 1.26 and the average ACE from 4.56 to 3.44, again indicating a marked reduction in both peak and average miscalibration. For PromptSRC, M-PFT lowers the average MCE from 1.05 to 0.85 and the average ACE from 3.49 to 3.11. For MMRL, M-PFT yields a more modest effect: the average ACE improves slightly from 3.61 to 3.45, while the average MCE remains comparable to the baseline (1.22 vs. 1.27). This stability across diverse metrics, including ECE, MCE, and ACE, indicates that our method resolves underlying miscalibration rather than merely overfitting to a single error type. By successfully mitigating both worst-case and peak calibration errors across most settings, the proposed method demonstrates the reliability required for deployment in safety-critical applications, regardless of the underlying vision-language backbone.
E. Loss component analyses
Fig. 1 illustrates how interacts directly with on both base and novel classes in the absence of . Applied in isolation, marginally reduces underconfidence on base classes by preserving the pre-trained semantic geometry of CLIP without enforcing class discriminability. Nevertheless, it effectively suppresses overconfidence on novel classes by anchoring tunable embeddings to their corresponding zero-shot embeddings, thereby maintaining the relative class structure of the pre-trained embedding space and preventing semantic drift ( ). As shown in Fig. 1, incorporating alongside further reduces the dual miscalibration problem on both base and novel classes by simultaneously enforcing class discriminability ( ) and preserving the pre-trained semantic geometry. Together, these two complementary objectives address the geometric root causes of the dual miscalibration problem, embedding collapse and semantic drift, yielding well-separated, adjusted decision boundaries that consistently reduce underconfidence on base classes and overconfidence on novel classes.
Tab. 10 provides a detailed dataset-wise ablation of the loss components, extending the average findings reported in the main paper across 10 diverse datasets.
The addition of to the cross-entropy baseline consistently improves base class calibration. For instance, on OxfordPets, ECE drops from 2.68 to 1.68, and on Caltech101, it significantly decreases from 1.54 to 0.67. While this confirms improved discriminability for base classes, novel-class ECE often remains high or increases (e.g., from 2.21 to 5.45 on SUN397), highlighting overconfidence in novel classes. Integrating is pivotal for novel class performance. On SUN397, novel ECE drastically improves from 5.45 to 1.02 (w/o gradient blocking). Similarly, EuroSAT shows a reduction in novel ECE from 9.30 to 4.92. These results validate that anchoring zero-shot embeddings prevents the distortion typically caused by unconstrained angular maximization. The inclusion of gradient blocking yields the most stable results across both categories. In the DTD base class, ECE improves from 3.12 to 2.14 when gradient blocked. Crucially, it prevents the collapse of class discriminability, on Aircraft, the full M-PFT objective maintains a competitive novel ECE of 8.70, whereas baseline cross-entropy suffers at 11.61. Across all individual datasets, the full M-PFT objective (with gradient blocking) achieves the most robust calibration-accuracy trade-off, demonstrating that the synergy between and is a consistent requirement regardless of the specific data domain.

Figure 1. analyses on both base and novel classes.
F. Impact of hyperparameters
For M-PFT, we introduce two regularization coefficients: for min-max regularization ( ) and for zero-shot anchoring regularization ( ). To determine their optimal values, we perform a sensitivity analysis by sweeping each coefficient independently while holding the other fixed. As shown in Tab. 13, we evaluate the impact of these parameters on model accuracy and Expected Calibration Error (ECE), averaged across the Food101, Caltech, and Oxford Flowers datasets. We observe that setting and yields a superior balance between base/novel class accuracy and calibration performance (achieving an average Accuracy of 94.64 and a low average ECE of 1.48). To ensure a consistent and fair evaluation setting, these heuristically determined values are held fixed across all datasets and prompt-tuning backbones. All reported results are averaged over three random seeds.
G. Results on different backbones
To assess the generalizability and adaptability of the M-PFT, we evaluate calibration performance when applied to CoOp across two different backbones: ResNet-50 and ViT-B/32. As shown in Tab. 11 and Tab. 12, M-PFT demonstrates robust performance across varying backbones, effectively reducing calibration error while maintaining accuracy.
On the ResNet-50 backbone, M-PFT achieves a significant reduction in ECE, reaching an average of 3.78, compared to the 4.04 reported for the baseline. This trend remains consistent for the ViT-B/32 backbone, where M-PFT attains an average ECE of 2.98, notably outperforming the baseline's 3.15. These results indicate that M-PFT consistently improves the reliability of model predictions.
M-PFT also exhibits strong competitive performance in zero-shot scenarios for novel classes. In ResNet-50, M-PFT achieved the lowest average ECE, down from 9.38 to 4.96, compared to TCPT at 5.46. In ViT-B/32, M-PFT lowers ECE from 10.13 to 4.70, compared to TCPT 5.82. Overall, these findings suggest that M-PFT provides a versatile solution for model calibration that scales effectively across different model backbones without sacrificing discriminative power.
H. Different prompt initializations
We assess robustness using four diverse prompt templates that reflect different context and semantic variations found in prompt engineering literature, P1: “a nice image of a [class]”, P2: “an example of [class]”, P3: “a picture of a [class]”, and P4: “a photo of the cool [class]”. Such robustness is valuable for real-world prompt-based VLM deployment, where the most effective prompt template may be unknown in advance or chosen heuristically.
I. Computational overhead
To assess the overhead of M-PFT, we compared per-batch computation time, GPU memory usage, and ECE against MaPLe [17] on FGVC Aircraft [25] (16-shot, ViT-B/16) using PyTorch [34]. M-PFT's average per-batch training time is 0.057 s versus 0.055 s for the MaPLe Baseline, an increase of under 2 ms, and GPU memory usage remains virtually unchanged, while ECE decreases from 4.77 to 3.76. These results confirm that M-PFT improves calibration with negligible computational overhead.
J. Standard deviation across random seeds
Tab. 15 presents the standard deviation of accuracy and Expected Calibration Error (ECE) over three random runs with different seeds for M-PFT across 10 datasets for base and novel classes with MMRL [11] as the backbone. Compared to the Baseline, M-PFT generally exhibits a lower average standard deviation across both metrics. Specifically, for Base classes, M-PFT achieves an average standard deviation of 0.26 for ECE (compared to 0.29 for Baseline) and a competitive 0.35 for Accuracy. In the Novel class setting, M-PFT shows a marked improvement in stability, reducing the average standard deviation of ECE to 0.42 from the Baseline's 0.47. These results indicate more stable performance with respect to randomness in prompt initialization and greater consistency in calibration. This consistency highlights M-PFT's reliability in maintaining stable performance across runs, a critical property for practical deployment in scenarios that demand reproducibility and calibration stability.
| Method | Calibration | Metric | DD | Flowers102 | Food101 | SUN597 | Aircrafts | OxfordPets | Caltech101 | UCF101 | EuroSAT | Stanford Cars | Average |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Baseline | Zero-Shot | Acc. ↑ | 53.00 | 71.80 | 90.10 | 69.40 | 27.70 | 91.30 | 97.20 | 71.00 | 57.00 | 63.60 | 69.21 |
| ECE ↓ | 4.53 | 3.11 | 1.57 | 1.59 | 3.03 | 2.25 | 6.49 | 3.24 | 8.35 | 3.74 | 3.79 | ||
| CoOp | Baseline | Acc. ↑ | 76.27 | 90.00 | 90.20 | 81.14 | 35.23 | 94.77 | 97.98 | 83.32 | 90.24 | 76.22 | 81.54 |
| ECE ↓ | 12.17 | 4.93 | 3.66 | 8.11 | 25.70 | 1.00 | 0.66 | 6.44 | 1.75 | 3.73 | 6.82 | ||
| TCPT | Acc. ↑ | 80.44 | 97.21 | 90.38 | 81.68 | 38.62 | 94.95 | 98.06 | 84.68 | 88.56 | 77.32 | 83.19 | |
| ECE ↓ | 2.42 | 4.80 | 0.30 | 1.22 | 4.96 | 1.94 | 1.01 | 1.11 | 4.90 | 7.10 | 2.98 | ||
| M-PFT (Ours) | Acc. ↑ | 80.36 | 96.58 | 90.54 | 81.84 | 38.50 | 95.07 | 98.04 | 83.44 | 88.54 | 76.84 | 82.97 | |
| ECE ↓ | 2.21 | 5.15 | 0.69 | 1.17 | 4.12 | 2.13 | 1.81 | 2.28 | 3.21 | 6.59 | 2.94 | ||
| MaPLe | Baseline | Acc. ↑ | 79.63 | 96.00 | 90.80 | 80.55 | 36.33 | 95.53 | 97.97 | 83.20 | 91.13 | 72.93 | 82.41 |
| ECE ↓ | 4.18 | 4.28 | 0.78 | 1.27 | 4.77 | 2.68 | 1.54 | 2.68 | 3.42 | 7.25 | 3.29 | ||
| TCPT | Acc. ↑ | 80.73 | 96.20 | 90.43 | 81.10 | 36.80 | 94.93 | 97.97 | 84.50 | 92.00 | 72.80 | 82.75 | |
| ECE ↓ | 3.56 | 3.45 | 0.65 | 1.55 | 4.50 | 1.54 | 1.19 | 2.12 | 1.33 | 7.92 | 2.78 | ||
| M-PFT (Ours) | Acc. ↑ | 79.21 | 94.65 | 90.55 | 80.93 | 36.37 | 95.29 | 97.87 | 84.20 | 92.71 | 72.04 | 82.38 | |
| ECE ↓ | 2.14 | 4.16 | 0.66 | 2.14 | 3.76 | 2.15 | 1.82 | 2.56 | 3.33 | 5.28 | 2.80 | ||
| KgCoOp | Baseline | Acc. ↑ | 79.40 | 95.16 | 90.57 | 80.59 | 36.77 | 94.68 | 97.70 | 83.51 | 86.14 | 72.70 | 81.72 |
| ECE ↓ | 8.39 | 12.12 | 1.68 | 4.92 | 3.27 | 3.27 | 2.92 | 5.03 | 11.90 | 10.16 | 6.37 | ||
| TCPT | Acc. ↑ | 78.47 | 95.22 | 90.52 | 80.70 | 36.03 | 94.84 | 97.68 | 83.16 | 85.10 | 71.65 | 81.34 | |
| ECE ↓ | 7.01 | 11.21 | 1.12 | 4.12 | 4.81 | 2.96 | 1.88 | 4.14 | 12.64 | 8.10 | 5.80 | ||
| M-PFT (Ours) | Acc. ↑ | 79.59 | 93.92 | 90.62 | 80.78 | 37.26 | 94.86 | 97.61 | 83.35 | 85.65 | 73.41 | 81.70 | |
| ECE ↓ | 8.04 | 10.37 | 1.25 | 3.86 | 5.21 | 3.1 | 1.58 | 4.58 | 12.28 | 9.13 | 5.94 | ||
| CoCoOp | Baseline | Acc. ↑ | 75.54 | 94.62 | 90.43 | 79.19 | 35.33 | 95.02 | 97.77 | 81.71 | 85.40 | 70.72 | 80.57 |
| ECE ↓ | 3.88 | 7.85 | 0.86 | 3.78 | 5.42 | 3.21 | 1.43 | 3.78 | 8.09 | 6.89 | 4.52 | ||
| TCPT | Acc. ↑ | 74.77 | 94.11 | 90.51 | 78.92 | 34.25 | 94.69 | 97.93 | 82.34 | 84.70 | 69.42 | 80.16 | |
| ECE ↓ | 3.70 | 7.98 | 0.49 | 2.63 | 5.81 | 2.31 | 1.13 | 3.23 | 6.47 | 7.01 | 4.08 | ||
| M-PFT (Ours) | Acc. ↑ | 76.00 | 92.18 | 90.55 | 78.62 | 34.47 | 94.95 | 97.85 | 81.45 | 84.18 | 68.98 | 79.92 | |
| ECE ↓ | 4.23 | 8.17 | 0.65 | 3.10 | 4.18 | 2.27 | 2.02 | 3.37 | 7.26 | 6.39 | 4.16 | ||
| ProDA | Baseline | Acc. ↑ | 70.02 | 89.96 | 89.33 | 76.17 | 33.01 | 94.75 | 97.61 | 79.99 | 81.83 | 69.76 | 78.24 |
| ECE ↓ | 10.25 | 6.07 | 0.86 | 6.66 | 3.52 | 1.67 | 1.06 | 2.56 | 3.73 | 3.86 | 4.02 | ||
| TCPT | Acc. ↑ | 72.91 | 87.88 | 90.02 | 76.96 | 32.99 | 94.31 | 97.20 | 80.63 | 82.70 | 69.50 | 78.51 | |
| ECE ↓ | 2.27 | 8.21 | 1.18 | 1.18 | 3.38 | 2.29 | 1.75 | 2.50 | 5.37 | 6.91 | 3.50 | ||
| M-PFT (Ours) | Acc. ↑ | 76.12 | 92.72 | 90.27 | 78.68 | 34.77 | 95.04 | 97.79 | 81.13 | 83.87 | 69.80 | 80.02 | |
| ECE ↓ | 3.11 | 8.62 | 1.93 | 3.38 | 3.84 | 3.10 | 1.97 | 4.13 | 7.25 | 7.67 | 4.50 | ||
| ProGrad | Baseline | Acc. ↑ | 67.13 | 81.26 | 90.33 | 76.88 | 31.35 | 94.67 | 97.72 | 78.20 | 79.27 | 69.29 | 76.61 |
| ECE ↓ | 6.38 | 6.82 | 1.65 | 3.70 | 2.60 | 3.83 | 3.53 | 3.92 | 12.24 | 6.84 | 5.15 | ||
| TCPT | Acc. ↑ | 68.52 | 82.62 | 90.29 | 77.03 | 31.57 | 94.45 | 97.55 | 79.04 | 79.78 | 68.95 | 76.98 | |
| ECE ↓ | 6.41 | 6.90 | 1.36 | 3.10 | 3.06 | 3.46 | 3.18 | 3.12 | 11.20 | 7.01 | 4.88 | ||
| M-PFT (Ours) | Acc. ↑ | 67.48 | 86.51 | 90.04 | 76.7 | 33.97 | 94.33 | 97.55 | 80.09 | 79.62 | 70.44 | 77.67 | |
| ECE ↓ | 7.20 | 7.72 | 1.40 | 3.59 | 4.92 | 3.45 | 3.77 | 3.35 | 10.50 | 7.27 | 5.32 | ||
| PromptSRC | Baseline | Acc. ↑ | 83.41 | 97.95 | 90.60 | 82.63 | 40.74 | 95.36 | 98.08 | 87.09 | 93.17 | 78.15 | 84.72 |
| ECE ↓ | 2.56 | 5.15 | 1.17 | 2.75 | 5.26 | 2.64 | 2.31 | 2.84 | 9.27 | 8.65 | 4.26 | ||
| TCPT | Acc. ↑ | 83.83 | 98.39 | 90.67 | 82.77 | 42.50 | 95.57 | 98.30 | 86.87 | 95.05 | 79.11 | 85.31 | |
| ECE ↓ | 4.59 | 0.97 | 0.90 | 1.34 | 6.04 | 0.89 | 1.03 | 1.39 | 4.33 | 8.96 | 3.04 | ||
| M-PFT (Ours) | Acc. ↑ | 83.03 | 98.23 | 90.67 | 82.27 | 40.56 | 95.39 | 98.24 | 87.52 | 93.90 | 79.29 | 84.91 | |
| ECE ↓ | 2.62 | 3.10 | 0.68 | 2.26 | 5.00 | 1.25 | 1.91 | 1.82 | 6.24 | 8.09 | 3.30 | ||
| HiCroPL | Baseline | Acc. ↑ | 83.45 | 97.98 | 90.79 | 83.09 | 47.42 | 95.62 | 98.45 | 87.73 | 94.85 | 82.65 | 86.20 |
| ECE ↓ | 3.68 | 5.64 | 0.59 | 1.61 | 4.95 | 1.95 | 1.62 | 2.09 | 7.02 | 8.95 | 3.81 | ||
| TCPT | Acc. ↑ | 84.45 | 98.52 | 90.82 | 83.14 | 47.94 | 95.37 | 98.84 | 88.12 | 96.46 | 82.98 | 86.66 | |
| ECE ↓ | 3.89 | 2.72 | 2.83 | 1.86 | 5.96 | 1.28 | 0.69 | 1.83 | 2.83 | 8.39 | 3.23 | ||
| M-PFT (Ours) | Acc. ↑ | 83.99 | 97.79 | 90.82 | 83.16 | 48.02 | 95.55 | 98.41 | 87.54 | 94.78 | 82.43 | 86.25 | |
| ECE ↓ | 3.42 | 3.37 | 0.62 | 1.61 | 5.03 | 1.22 | 1.58 | 2.15 | 4.55 | 8.07 | 3.16 | ||
| MMRL | Baseline | Acc. ↑ | 83.99 | 98.64 | 90.52 | 82.90 | 46.30 | 95.77 | 98.99 | 88.26 | 97.17 | 81.17 | 86.37 |
| ECE ↓ | 2.66 | 2.51 | 1.39 | 1.92 | 7.11 | 1.07 | 0.83 | 1.51 | 1.08 | 6.53 | 2.66 | ||
| TCPT | Acc. ↑ | 83.95 | 98.45 | 90.54 | 83.19 | 45.80 | 95.73 | 98.69 | 88.76 | 96.99 | 81.79 | 86.39 | |
| ECE ↓ | 4.22 | 1.84 | 2.84 | 2.37 | 7.23 | 2.51 | 0.99 | 2.06 | 1.91 | 6.47 | 3.24 | ||
| M-PFT (Ours) | Acc. ↑ | 84.30 | 98.67 | 90.55 | 83.12 | 45.80 | 95.82 | 98.92 | 88.38 | 97.36 | 81.30 | 86.42 | |
| ECE ↓ | 2.11 | 2.38 | 1.67 | 1.73 | 6.56 | 1.17 | 0.75 | 1.60 | 0.58 | 6.50 | 2.50 |
Table 3. Comparison of calibration performance on base classes across 10 fine-grained classification datasets using CLIP backbone for top@1 Accuracy (Acc.) and Expected Calibration Error (ECE) with multiple prompt-tuning methods across various calibration baselines, where higher Acc and lower ECE indicate better performance and calibration, respectively
| Method | Calibration | Metric | DTD | Flowers102 | Food101 | SUN397 | Aircrafts | OxfordPets | Caltech101 | UCF101 | EuroSAT | Stanford Cars | Average |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Baseline | Zero-Shot | Acc. ↑ | 60.60 | 77.50 | 91.10 | 75.50 | 35.90 | 97.10 | 94.10 | 78.60 | 63.80 | 75.00 | 74.92 |
| ECE ↓ | 6.86 | 4.91 | 1.83 | 3.48 | 6.55 | 3.42 | 1.55 | 5.52 | 9.12 | 3.31 | 4.65 | ||
| CoOp | Baseline | Acc. ↑ | 52.98 | 69.90 | 90.57 | 70.77 | 24.79 | 96.49 | 94.18 | 62.83 | 64.68 | 65.29 | 69.25 |
| ECE ↓ | 20.82 | 12.13 | 3.03 | 13.70 | 30.44 | 1.67 | 2.16 | 18.74 | 11.88 | 11.73 | 12.63 | ||
| DAC | ECE ↓ | 10.48 | 10.19 | 1.78 | 4.05 | 17.38 | 1.82 | 3.17 | 8.67 | 8.62 | 5.16 | 7.13 | |
| TCPT | Acc. ↑ | 48.07 | 71.63 | 90.84 | 70.03 | 30.83 | 97.36 | 93.56 | 66.49 | 56.70 | 69.49 | 69.50 | |
| ECE ↓ | 9.31 | 3.51 | 0.87 | 3.08 | 10.64 | 3.03 | 2.21 | 4.75 | 11.15 | 2.10 | 5.06 | ||
| M-PFT (Ours) | Acc. ↑ | 57.00 | 72.29 | 91.49 | 75.68 | 30.81 | 97.62 | 94.83 | 70.71 | 62.64 | 73.73 | 72.68 | |
| ECE ↓ | 5.07 | 6.62 | 1.33 | 2.22 | 12.56 | 3.37 | 1.23 | 3.91 | 9.06 | 2.08 | 4.75 | ||
| MaPLe | Baseline | Acc. ↑ | 58.47 | 72.80 | 92.10 | 78.20 | 34.53 | 97.85 | 95.10 | 77.85 | 75.90 | 73.57 | 75.64 |
| ECE ↓ | 12.16 | 11.67 | 1.19 | 2.21 | 11.61 | 2.63 | 1.62 | 3.98 | 11.68 | 3.09 | 6.18 | ||
| DAC | ECE ↓ | 8.16 | 11.28 | 1.50 | 1.22 | 9.06 | 2.51 | 1.26 | 2.30 | 8.55 | 2.75 | 4.86 | |
| TCPT | Acc. ↑ | 61.27 | 73.87 | 91.77 | 78.13 | 36.03 | 97.57 | 94.87 | 79.87 | 67.60 | 75.27 | 75.62 | |
| ECE ↓ | 7.37 | 10.07 | 0.86 | 1.11 | 8.33 | 2.29 | 1.42 | 3.32 | 7.45 | 2.60 | 4.48 | ||
| M-PFT (Ours) | Acc. ↑ | 59.10 | 75.25 | 91.70 | 77.76 | 36.63 | 97.60 | 94.10 | 78.09 | 75.86 | 74.95 | 76.10 | |
| ECE ↓ | 6.60 | 9.19 | 1.14 | 1.12 | 8.70 | 2.43 | 1.13 | 3.05 | 5.23 | 2.22 | 4.08 | ||
| KGCoOp | Baseline | Acc. ↑ | 54.23 | 75.10 | 91.65 | 76.33 | 36.77 | 97.67 | 94.43 | 75.59 | 64.68 | 74.25 | 74.07 |
| ECE ↓ | 4.38 | 5.03 | 2.04 | 1.66 | 6.06 | 3.42 | 1.71 | 2.65 | 8.67 | 3.36 | 3.90 | ||
| DAC | ECE ↓ | 7.09 | 5.90 | 1.94 | 1.67 | 11.78 | 3.11 | 1.84 | 2.69 | 6.59 | 3.12 | 4.57 | |
| TCPT | Acc. ↑ | 55.92 | 73.80 | 91.64 | 76.30 | 31.63 | 97.72 | 94.21 | 76.62 | 65.76 | 74.39 | 73.80 | |
| ECE ↓ | 3.37 | 4.78 | 1.61 | 1.91 | 7.67 | 3.50 | 1.22 | 3.01 | 4.15 | 3.60 | 3.48 | ||
| M-PFT (Ours) | Acc. ↑ | 54.59 | 73.78 | 91.53 | 76.89 | 33.89 | 97.58 | 94.28 | 77.25 | 66.24 | 74.99 | 74.10 | |
| ECE ↓ | 3.23 | 5.47 | 1.77 | 1.73 | 7.58 | 3.17 | 1.58 | 3.63 | 5.76 | 3.24 | 3.72 | ||
| CoCoOp | Baseline | Acc. ↑ | 57.65 | 72.27 | 91.02 | 76.54 | 33.47 | 97.69 | 94.51 | 74.89 | 63.14 | 73.26 | 73.44 |
| ECE ↓ | 11.26 | 9.17 | 1.64 | 2.21 | 10.93 | 2.64 | 1.84 | 4.90 | 9.06 | 1.88 | 5.55 | ||
| DAC | ECE ↓ | 7.47 | 7.74 | 1.64 | 1.09 | 9.03 | 2.43 | 3.65 | 2.70 | 13.49 | 2.21 | 5.15 | |
| TCPT | Acc. ↑ | 56.40 | 71.91 | 91.62 | 76.41 | 33.97 | 97.45 | 94.43 | 76.40 | 61.67 | 74.71 | 73.50 | |
| ECE ↓ | 4.77 | 6.36 | 0.96 | 0.87 | 8.85 | 2.58 | 1.51 | 2.76 | 6.68 | 3.05 | 3.84 | ||
| M-PFT (Ours) | Acc. ↑ | 57.93 | 74.33 | 91.75 | 78.47 | 34.79 | 97.50 | 94.21 | 77.20 | 64.24 | 75.70 | 74.61 | |
| ECE ↓ | 4.11 | 5.59 | 1.30 | 1.69 | 6.97 | 2.58 | 1.50 | 2.50 | 8.22 | 3.48 | 3.79 | ||
| ProDA | Baseline | Acc. ↑ | 53.99 | 72.51 | 90.64 | 65.02 | 31.35 | 96.90 | 93.99 | 72.76 | 51.86 | 73.16 | 70.22 |
| ECE ↓ | 16.90 | 8.51 | 0.84 | 14.08 | 15.03 | 1.96 | 3.22 | 4.74 | 21.85 | 3.18 | 9.03 | ||
| DAC | ECE ↓ | 5.68 | 6.32 | 0.70 | 1.06 | 7.40 | 4.72 | 4.87 | 4.14 | 3.33 | 3.28 | 4.15 | |
| TCPT | Acc. ↑ | 53.82 | 72.74 | 91.14 | 66.18 | 30.57 | 97.56 | 93.56 | 75.79 | 58.58 | 73.81 | 71.38 | |
| ECE ↓ | 4.60 | 5.12 | 1.01 | 1.90 | 6.78 | 3.25 | 1.48 | 2.35 | 4.91 | 2.77 | 3.42 | ||
| M-PFT (Ours) | Acc. ↑ | 60.54 | 77.28 | 90.14 | 78.91 | 36.13 | 96.63 | 93.52 | 74.25 | 74.64 | 75.32 | 75.74 | |
| ECE ↓ | 3.34 | 4.24 | 2.21 | 1.91 | 3.65 | 5.55 | 2.36 | 2.70 | 10.00 | 3.90 | 3.99 | ||
| ProGrad | Baseline | Acc. ↑ | 56.44 | 75.29 | 91.06 | 75.42 | 34.43 | 97.32 | 94.76 | 78.74 | 61.98 | 74.85 | 74.03 |
| ECE ↓ | 4.48 | 7.46 | 1.76 | 2.05 | 9.21 | 3.52 | 1.67 | 3.57 | 8.83 | 2.68 | 4.52 | ||
| DAC | ECE ↓ | 3.49 | 5.04 | 1.85 | 1.32 | 10.46 | 3.31 | 1.97 | 2.42 | 6.90 | 2.29 | 3.91 | |
| TCPT | Acc. ↑ | 55.60 | 74.66 | 91.21 | 74.81 | 32.87 | 97.48 | 94.29 | 78.53 | 67.91 | 75.09 | 74.25 | |
| ECE ↓ | 3.30 | 5.14 | 1.47 | 2.32 | 9.34 | 3.26 | 1.03 | 3.06 | 6.06 | 1.98 | 3.70 | ||
| M-PFT (Ours) | Acc. ↑ | 52.74 | 75.58 | 90.76 | 76.42 | 32.89 | 97.84 | 94.32 | 77.54 | 65.83 | 74.94 | 73.89 | |
| ECE ↓ | 2.84 | 4.73 | 1.81 | 2.07 | 6.95 | 3.14 | 1.87 | 3.39 | 4.81 | 3.52 | 3.51 | ||
| PromptSRC | Baseline | Acc. ↑ | 61.03 | 77.28 | 91.51 | 78.79 | 29.73 | 97.31 | 94.21 | 77.86 | 74.72 | 75.58 | 75.80 |
| ECE ↓ | 6.68 | 5.50 | 1.77 | 1.07 | 12.92 | 3.26 | 1.51 | 2.81 | 8.08 | 2.06 | 4.57 | ||
| DAC | ECE ↓ | 5.50 | 5.03 | 1.55 | 0.79 | 8.55 | 2.98 | 1.58 | 2.46 | 7.24 | 2.39 | 3.81 | |
| TCPT | Acc. ↑ | 57.53 | 75.44 | 91.68 | 78.39 | 36.85 | 97.28 | 94.29 | 77.72 | 72.64 | 74.49 | 75.63 | |
| ECE ↓ | 6.81 | 5.44 | 0.72 | 0.77 | 9.26 | 1.19 | 1.14 | 1.89 | 8.37 | 2.39 | 3.80 | ||
| M-PFT (Ours) | Acc. ↑ | 60.51 | 77.54 | 91.58 | 78.82 | 37.15 | 97.35 | 93.93 | 78.99 | 71.22 | 74.72 | 76.18 | |
| ECE ↓ | 5.66 | 5.34 | 1.13 | 0.88 | 9.61 | 2.28 | 1.73 | 2.12 | 6.21 | 2.42 | 3.74 |
| Method | Calibration | Metric | DTD | Flowers102 | Food101 | SUN397 | Aircrafts | OxfordPets | Caltech101 | UCF101 | EuroSAT | Stanford Cars | Average |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| HiCroPL | Baseline | Acc. ↑ | 65.14 | 76.15 | 91.88 | 78.16 | 39.47 | 97.49 | 95.52 | 82.03 | 74.45 | 74.92 | 77.52 |
| ECE ↓ | 5.33 | 5.34 | 0.87 | 1.14 | 7.76 | 2.72 | 1.01 | 2.03 | 8.81 | 1.90 | 3.69 | ||
| DAC | ECE ↓ | 4.16 | 6.04 | 1.33 | 1.41 | 7.68 | 2.18 | 1.10 | 3.15 | 8.24 | 2.26 | 3.75 | |
| TCPT | Acc. ↑ | 66.51 | 76.10 | 91.79 | 77.37 | 38.89 | 97.69 | 95.20 | 82.39 | 74.74 | 75.21 | 77.59 | |
| ECE ↓ | 4.95 | 7.53 | 0.50 | 2.07 | 7.99 | 1.49 | 1.12 | 1.73 | 10.83 | 2.11 | 4.03 | ||
| M-PFT (Ours) | Acc. ↑ | 67.79 | 76.50 | 91.80 | 78.15 | 38.33 | 97.54 | 95.74 | 82.28 | 74.60 | 75.35 | 77.81 | |
| ECE ↓ | 4.76 | 5.21 | 0.81 | 0.82 | 8.50 | 2.51 | 0.97 | 2.65 | 8.69 | 2.15 | 3.71 | ||
| MMRL | Baseline | Acc. ↑ | 62.48 | 77.00 | 91.50 | 79.32 | 37.17 | 97.56 | 94.28 | 79.45 | 75.11 | 74.91 | 76.88 |
| ECE ↓ | 4.25 | 5.18 | 1.26 | 1.10 | 9.04 | 0.85 | 1.54 | 2.63 | 8.96 | 2.34 | 3.72 | ||
| DAC | ECE ↓ | 3.26 | 10.59 | 0.49 | 0.95 | 8.65 | 2.16 | 5.02 | 1.90 | 14.35 | 2.15 | 4.95 | |
| TCPT | Acc. ↑ | 62.80 | 75.63 | 91.78 | 79.20 | 36.49 | 95.90 | 93.19 | 79.57 | 65.44 | 74.34 | 75.43 | |
| ECE ↓ | 4.05 | 11.09 | 0.75 | 0.86 | 9.16 | 2.15 | 4.39 | 2.59 | 23.83 | 2.11 | 6.10 | ||
| M-PFT (Ours) | Acc. ↑ | 62.80 | 77.00 | 91.43 | 78.98 | 36.89 | 96.85 | 94.40 | 79.27 | 75.66 | 74.84 | 76.81 | |
| ECE ↓ | 4.25 | 5.55 | 0.86 | 0.83 | 9.60 | 0.88 | 1.82 | 2.18 | 6.34 | 2.34 | 3.47 |
Table 4. Comparison of calibration performance on novel classes across 10 fine-grained classification datasets using CLIP backbone for top@1 Accuracy (Acc.) and Expected Calibration Error (ECE) with multiple prompt-tuning methods across various calibration baselines, where higher Acc and lower ECE indicate better performance and calibration, respectively
| Method | Calibration | Metric | DTD | Flowers102 | Food101 | SUN397 | Aircrafts | OxfordPets | Caltech101 | UCF101 | EuroSAT | Stanford Cars | Average |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Baseline | Zero-Shot | Acc. ↑ | 76.16 | 91.17 | 92.28 | 75.24 | 29.05 | 96.49 | 98.52 | 75.75 | 57.05 | 85.01 | 77.67 |
| ECE ↓ | 3.80 | 5.07 | 0.61 | 3.81 | 5.81 | 2.07 | 1.00 | 4.76 | 18.42 | 1.07 | 4.64 | ||
| CoOp | Baseline | Acc. ↑ | 88.39 | 98.86 | 92.42 | 82.13 | 34.19 | 95.78 | 98.97 | 83.61 | 90.20 | 88.22 | 85.28 |
| ECE ↓ | 2.36 | 2.02 | 1.45 | 0.92 | 4.38 | 1.79 | 1.25 | 2.26 | 4.97 | 3.99 | 2.54 | ||
| TCPT | Acc. ↑ | 88.62 | 99.05 | 92.48 | 82.12 | 35.20 | 95.94 | 98.95 | 83.63 | 90.14 | 88.67 | 85.48 | |
| ECE ↓ | 2.16 | 2.26 | 1.61 | 0.88 | 4.77 | 1.91 | 1.29 | 2.61 | 6.19 | 4.25 | 2.79 | ||
| M-PFT (Ours) | Acc. ↑ | 88.97 | 98.45 | 92.80 | 82.56 | 35.05 | 96.56 | 98.73 | 82.87 | 89.36 | 86.97 | 85.23 | |
| ECE ↓ | 3.42 | 3.71 | 1.04 | 1.35 | 5.54 | 1.52 | 1.01 | 1.52 | 6.03 | 2.73 | 2.79 | ||
| MaPLe | Baseline | Acc. ↑ | 88.35 | 98.70 | 92.96 | 82.95 | 37.17 | 95.99 | 98.75 | 84.87 | 92.36 | 89.02 | 86.11 |
| ECE ↓ | 2.14 | 1.59 | 1.41 | 1.35 | 2.99 | 1.41 | 1.32 | 2.44 | 7.69 | 3.21 | 2.56 | ||
| TCPT | Acc. ↑ | 89.62 | 99.05 | 93.04 | 83.21 | 37.22 | 96.77 | 98.71 | 84.87 | 90.22 | 89.19 | 86.19 | |
| ECE ↓ | 1.58 | 0.75 | 0.36 | 0.83 | 2.43 | 0.55 | 0.63 | 2.09 | 5.90 | 1.59 | 1.67 | ||
| M-PFT (Ours) | Acc. ↑ | 89.43 | 98.74 | 93.09 | 82.95 | 38.00 | 96.70 | 98.43 | 85.38 | 91.09 | 89.29 | 86.31 | |
| ECE ↓ | 2.89 | 2.26 | 0.84 | 1.12 | 2.53 | 1.12 | 0.75 | 2.03 | 3.96 | 1.97 | 1.95 | ||
| KgCoOp | Baseline | Acc. ↑ | 88.70 | 98.51 | 92.98 | 82.36 | 39.54 | 96.74 | 98.77 | 83.52 | 90.60 | 87.87 | 85.96 |
| ECE ↓ | 4.66 | 4.59 | 1.47 | 1.65 | 5.84 | 1.81 | 1.06 | 2.09 | 7.16 | 3.01 | 3.33 | ||
| TCPT | Acc. ↑ | 88.12 | 98.52 | 92.97 | 82.27 | 39.84 | 96.79 | 98.79 | 83.88 | 90.61 | 87.88 | 85.97 | |
| ECE ↓ | 4.79 | 4.58 | 1.45 | 1.47 | 6.85 | 1.88 | 1.03 | 1.87 | 7.86 | 3.08 | 3.49 | ||
| M-PFT (Ours) | Acc. ↑ | 88.97 | 98.48 | 92.99 | 82.21 | 39.36 | 96.60 | 98.88 | 83.09 | 89.71 | 87.60 | 85.79 | |
| ECE ↓ | 5.79 | 4.67 | 1.13 | 1.04 | 4.46 | 1.51 | 1.07 | 2.00 | 7.84 | 2.89 | 3.24 | ||
| CoCoOp | Baseline | Acc. ↑ | 88.58 | 98.07 | 92.96 | 80.49 | 37.62 | 96.60 | 98.79 | 82.59 | 90.57 | 87.59 | 85.39 |
| ECE ↓ | 1.97 | 1.94 | 1.59 | 2.47 | 3.02 | 2.02 | 1.53 | 2.30 | 5.60 | 2.65 | 2.51 | ||
| TCPT | Acc. ↑ | 88.35 | 98.20 | 92.83 | 81.68 | 37.11 | 96.15 | 98.82 | 82.47 | 89.00 | 87.74 | 85.23 | |
| ECE ↓ | 2.13 | 2.07 | 1.84 | 3.08 | 2.36 | 2.02 | 1.55 | 2.82 | 5.89 | 2.73 | 2.65 | ||
| M-PFT (Ours) | Acc. ↑ | 87.73 | 97.95 | 92.99 | 81.64 | 35.81 | 96.79 | 98.60 | 82.89 | 88.30 | 87.74 | 85.04 | |
| ECE ↓ | 3.25 | 3.63 | 0.85 | 1.46 | 2.96 | 1.30 | 0.83 | 1.64 | 5.83 | 1.82 | 2.36 | ||
| ProDA | Baseline | Acc. ↑ | 89.31 | 98.86 | 93.10 | 82.31 | 37.94 | 97.06 | 99.01 | 82.11 | 90.71 | 87.77 | 85.82 |
| ECE ↓ | 3.97 | 2.85 | 2.41 | 3.96 | 4.85 | 2.68 | 2.09 | 3.92 | 10.10 | 5.16 | 4.20 | ||
| TCPT | Acc. ↑ | 89.58 | 98.83 | 93.15 | 82.33 | 37.41 | 97.02 | 98.66 | 82.73 | 91.02 | 87.73 | 85.85 | |
| ECE ↓ | 4.26 | 3.22 | 0.90 | 2.16 | 6.25 | 2.00 | 0.83 | 2.59 | 7.39 | 3.15 | 3.28 | ||
| M-PFT (Ours) | Acc. ↑ | 89.04 | 98.77 | 93.08 | 82.12 | 38.04 | 97.06 | 98.68 | 81.99 | 90.52 | 87.30 | 85.66 | |
| ECE ↓ | 3.89 | 3.81 | 1.51 | 2.28 | 4.68 | 2.08 | 1.00 | 3.84 | 9.54 | 2.94 | 3.56 |
| Method | Calibration | Metric | DTD | Flowers102 | Food101 | SUN397 | Aircrafts | OxfordPets | Caltech101 | UCF101 | EuroSAT | Stanford Cars | Average |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ProGrad | Baseline | Acc. ↑ | 85.73 | 96.96 | 92.84 | 81.63 | 39.10 | 96.69 | 98.79 | 82.69 | 78.16 | 88.11 | 84.07 |
| ECE ↓ | 9.38 | 6.29 | 1.70 | 3.04 | 5.87 | 2.44 | 1.21 | 3.02 | 4.23 | 3.99 | 4.12 | ||
| TCPT | Acc. ↑ | 86.92 | 97.57 | 92.89 | 82.10 | 38.46 | 96.46 | 98.95 | 83.18 | 81.02 | 88.09 | 84.56 | |
| ECE ↓ | 9.14 | 5.05 | 0.74 | 2.20 | 6.45 | 1.61 | 0.74 | 2.43 | 4.49 | 3.31 | 3.62 | ||
| M-PFT (Ours) | Acc. ↑ | 85.45 | 96.90 | 92.94 | 81.20 | 36.51 | 96.71 | 98.77 | 81.92 | 78.37 | 87.54 | 83.63 | |
| ECE ↓ | 9.34 | 6.33 | 1.08 | 1.66 | 4.50 | 1.90 | 0.78 | 2.27 | 4.27 | 2.95 | 3.51 | ||
| PromptSRC | Baseline | Acc. ↑ | 89.66 | 99.31 | 93.17 | 84.42 | 52.18 | 96.76 | 99.01 | 87.44 | 93.19 | 90.98 | 88.61 |
| ECE ↓ | 1.81 | 1.80 | 0.44 | 0.57 | 3.07 | 1.30 | 0.90 | 1.68 | 7.78 | 1.80 | 2.11 | ||
| TCPT | Acc. ↑ | 89.51 | 99.53 | 92.93 | 84.15 | 52.58 | 96.56 | 99.16 | 87.80 | 95.20 | 91.33 | 88.88 | |
| ECE ↓ | 6.10 | 0.32 | 1.72 | 2.03 | 4.26 | 1.15 | 0.48 | 2.22 | 3.52 | 0.68 | 2.25 | ||
| M-PFT (Ours) | Acc. ↑ | 90.16 | 99.31 | 93.25 | 84.02 | 51.84 | 96.76 | 98.97 | 87.02 | 92.18 | 90.81 | 88.43 | |
| ECE ↓ | 1.96 | 2.04 | 0.43 | 0.52 | 3.22 | 1.11 | 0.68 | 1.86 | 6.57 | 1.55 | 1.99 | ||
| HiCroPL | Baseline | Acc. ↑ | 89.58 | 99.21 | 93.00 | 84.28 | 52.54 | 96.53 | 99.12 | 87.01 | 96.12 | 91.65 | 88.90 |
| ECE ↓ | 1.45 | 2.53 | 0.39 | 1.00 | 3.00 | 0.63 | 0.93 | 1.59 | 4.29 | 2.41 | 1.82 | ||
| TCPT | Acc. ↑ | 90.20 | 99.81 | 92.98 | 84.33 | 53.06 | 96.40 | 99.42 | 87.68 | 97.66 | 91.95 | 89.35 | |
| ECE ↓ | 4.93 | 0.67 | 1.48 | 2.78 | 3.89 | 1.43 | 0.80 | 1.98 | 0.80 | 0.97 | 1.97 | ||
| M-PFT (Ours) | Acc. ↑ | 89.74 | 99.24 | 93.05 | 84.12 | 52.66 | 96.49 | 99.08 | 86.83 | 96.01 | 91.45 | 88.87 | |
| ECE ↓ | 2.26 | 2.38 | 0.53 | 1.36 | 3.58 | 0.38 | 0.91 | 1.68 | 3.87 | 2.07 | 1.90 | ||
| MMRL | Baseline | Acc. ↑ | 89.66 | 99.27 | 91.93 | 83.90 | 48.66 | 96.38 | 99.29 | 86.97 | 97.67 | 91.37 | 88.51 |
| ECE ↓ | 1.82 | 1.39 | 0.33 | 1.14 | 4.82 | 0.86 | 0.96 | 1.35 | 0.49 | 2.87 | 1.60 | ||
| TCPT | Acc. ↑ | 89.24 | 99.40 | 92.07 | 84.04 | 49.16 | 96.38 | 99.29 | 87.14 | 97.91 | 91.37 | 88.60 | |
| ECE ↓ | 2.15 | 0.33 | 1.26 | 1.85 | 5.98 | 1.86 | 0.57 | 2.55 | 1.48 | 1.82 | 1.99 | ||
| M-PFT (Ours) | Acc. ↑ | 89.39 | 99.21 | 91.98 | 84.01 | 48.86 | 96.60 | 99.25 | 86.76 | 97.14 | 91.38 | 88.46 | |
| ECE ↓ | 1.68 | 1.40 | 0.37 | 1.01 | 4.88 | 0.76 | 0.90 | 1.32 | 0.80 | 2.88 | 1.60 |
Table 5. Comparison of calibration performance on base classes across 10 fine-grained classification datasets using SigLIP backbone for top@1 Accuracy (Acc.) and Expected Calibration Error (ECE) with multiple prompt-tuning methods, where higher Acc and lower ECE indicate better performance and calibration, respectively.
| Method | Calibration | Metric | DTD | Flowers102 | Food101 | SUN397 | Aircrafts | OxfordPets | Caltech101 | UCF101 | EuroSAT | Stanford Cars | Average |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Baseline | Zero-Shot | Acc. ↑ | 74.88 | 85.67 | 93.59 | 78.57 | 40.85 | 98.15 | 97.82 | 83.78 | 67.21 | 96.21 | 81.67 |
| ECE ↓ | 3.10 | 3.98 | 0.96 | 2.78 | 12.00 | 0.97 | 0.83 | 2.76 | 4.11 | 0.69 | 3.22 | ||
| CoOp | Baseline | Acc. ↑ | 67.47 | 81.04 | 91.48 | 77.49 | 30.90 | 97.80 | 97.05 | 75.12 | 48.78 | 94.46 | 76.16 |
| ECE ↓ | 13.28 | 8.48 | 0.98 | 3.82 | 17.82 | 1.24 | 1.14 | 3.77 | 16.90 | 1.93 | 6.94 | ||
| TCPT | Acc. ↑ | 67.75 | 81.09 | 91.85 | 77.46 | 33.44 | 97.50 | 97.71 | 74.94 | 42.16 | 94.26 | 75.82 | |
| ECE ↓ | 12.85 | 8.68 | 1.14 | 3.08 | 14.50 | 0.97 | 1.13 | 3.63 | 25.63 | 1.90 | 7.35 | ||
| M-PFT (Ours) | Acc. ↑ | 72.14 | 83.29 | 93.05 | 80.39 | 35.60 | 98.10 | 97.78 | 80.62 | 49.72 | 95.37 | 78.61 | |
| ECE ↓ | 4.55 | 5.16 | 0.87 | 1.27 | 12.09 | 1.05 | 0.83 | 3.27 | 17.82 | 1.74 | 4.87 | ||
| MaPLe | Baseline | Acc. ↑ | 74.56 | 84.11 | 93.72 | 80.70 | 39.21 | 97.82 | 97.12 | 81.85 | 57.51 | 96.19 | 80.28 |
| ECE ↓ | 7.20 | 6.19 | 1.20 | 0.63 | 10.05 | 1.08 | 1.34 | 2.94 | 14.52 | 1.40 | 4.66 | ||
| TCPT | Acc. ↑ | 73.35 | 85.06 | 94.00 | 80.48 | 41.97 | 98.10 | 97.71 | 83.34 | 72.25 | 96.47 | 82.27 | |
| ECE ↓ | 6.32 | 6.05 | 0.45 | 1.65 | 7.40 | 0.69 | 0.87 | 2.56 | 6.48 | 0.86 | 3.33 | ||
| M-PFT (Ours) | Acc. ↑ | 73.67 | 86.26 | 93.98 | 81.08 | 42.41 | 98.30 | 97.38 | 83.67 | 69.65 | 96.46 | 82.29 | |
| ECE ↓ | 5.93 | 3.58 | 0.85 | 1.05 | 9.06 | 0.93 | 0.63 | 2.96 | 9.09 | 0.85 | 3.49 | ||
| KgCoOp | Baseline | Acc. ↑ | 75.88 | 84.09 | 93.21 | 80.25 | 32.42 | 98.23 | 97.86 | 82.32 | 55.56 | 95.51 | 79.53 |
| ECE ↓ | 2.48 | 4.52 | 1.15 | 1.51 | 5.14 | 1.04 | 0.85 | 3.14 | 12.96 | 1.96 | 3.48 | ||
| TCPT | Acc. ↑ | 75.60 | 84.44 | 93.34 | 80.27 | 29.00 | 98.15 | 97.96 | 81.77 | 52.46 | 95.43 | 78.84 | |
| ECE ↓ | 2.59 | 4.34 | 1.16 | 1.23 | 6.40 | 1.07 | 1.00 | 3.34 | 21.71 | 1.86 | 4.47 | ||
| M-PFT (Ours) | Acc. ↑ | 75.89 | 83.71 | 93.22 | 79.67 | 31.44 | 98.17 | 98.03 | 82.30 | 58.04 | 95.46 | 79.59 | |
| ECE ↓ | 2.82 | 5.08 | 0.85 | 2.02 | 4.16 | 0.95 | 1.11 | 2.81 | 16.46 | 1.86 | 3.81 | ||
| CoCoOp | Baseline | Acc. ↑ | 73.19 | 84.56 | 93.44 | 80.40 | 39.73 | 98.10 | 96.58 | 79.99 | 51.33 | 96.32 | 79.36 |
| ECE ↓ | 7.96 | 5.59 | 1.28 | 1.02 | 12.64 | 1.49 | 1.38 | 3.17 | 20.04 | 1.13 | 5.57 | ||
| TCPT | Acc. ↑ | 72.95 | 83.83 | 93.26 | 79.64 | 41.41 | 97.87 | 96.69 | 80.06 | 53.67 | 96.28 | 79.57 | |
| ECE ↓ | 7.08 | 6.22 | 1.40 | 1.08 | 11.30 | 1.38 | 1.14 | 3.00 | 13.41 | 1.09 | 4.71 | ||
| M-PFT (Ours) | Acc. ↑ | 75.00 | 86.05 | 93.72 | 80.55 | 42.53 | 98.13 | 98.14 | 83.07 | 58.27 | 96.30 | 81.18 | |
| ECE ↓ | 3.08 | 4.11 | 0.80 | 0.78 | 9.06 | 0.94 | 1.02 | 2.93 | 11.25 | 0.78 | 3.48 |
| Method | Calibration | Metric | DD | Flowers102 | Food101 | SUN397 | Aircrafts | OxfordPcs | Caltech101 | UCF101 | EuroSAT | Stanford Cars | Average |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ProDA | Baseline | Acc. ↑ | 70.25 | 82.84 | 91.99 | 80.52 | 39.27 | 97.85 | 97.24 | 77.82 | 49.94 | 95.86 | 78.36 |
| ECE ↓ | 7.91 | 6.34 | 1.63 | 1.68 | 8.48 | 1.45 | 0.79 | 2.17 | 13.87 | 1.95 | 4.63 | ||
| TCPT | Acc. ↑ | 74.76 | 83.78 | 93.33 | 80.67 | 40.89 | 98.30 | 98.07 | 81.68 | 46.88 | 96.31 | 79.47 | |
| ECE ↓ | 3.32 | 5.76 | 0.85 | 0.76 | 5.18 | 1.15 | 0.78 | 2.46 | 21.39 | 1.30 | 4.30 | ||
| M-PFT (Ours) | Acc. ↑ | 70.49 | 83.60 | 92.98 | 80.91 | 39.33 | 98.21 | 98.00 | 77.47 | 49.79 | 96.23 | 78.70 | |
| ECE ↓ | 7.16 | 5.54 | 1.14 | 0.81 | 8.60 | 1.25 | 0.93 | 2.57 | 12.58 | 1.24 | 4.18 | ||
| ProGrad | Baseline | Acc. ↑ | 70.33 | 82.62 | 92.82 | 79.45 | 35.24 | 98.25 | 97.63 | 80.5 | 50.58 | 94.98 | 78.24 |
| ECE ↓ | 3.12 | 4.60 | 1.72 | 0.67 | 5.86 | 1.38 | 1.20 | 2.89 | 10.36 | 2.39 | 3.42 | ||
| TCPT | Acc. ↑ | 76.05 | 82.39 | 93.14 | 79.52 | 33.65 | 97.89 | 97.71 | 81.38 | 59.16 | 95.19 | 79.61 | |
| ECE ↓ | 4.06 | 5.03 | 0.93 | 0.93 | 6.46 | 1.18 | 0.89 | 3.90 | 9.38 | 2.03 | 3.48 | ||
| M-PFT (Ours) | Acc. ↑ | 74.92 | 83.05 | 93.43 | 80.07 | 34.68 | 98.15 | 97.67 | 81.49 | 58.51 | 95.40 | 79.74 | |
| ECE ↓ | 3.61 | 4.94 | 0.98 | 1.12 | 6.34 | 1.24 | 0.92 | 3.82 | 11.75 | 2.00 | 3.67 | ||
| PromptSRC | Baseline | Acc. ↑ | 73.83 | 86.26 | 93.86 | 80.69 | 45.37 | 98.43 | 97.96 | 84.12 | 69.82 | 96.27 | 82.66 |
| ECE ↓ | 5.6 | 3.40 | 0.48 | 1.75 | 11.72 | 1.18 | 0.93 | 2.36 | 7.58 | 0.81 | 3.58 | ||
| TCPT | Acc. ↑ | 75.97 | 84.25 | 93.74 | 80.25 | 44.95 | 98.53 | 97.75 | 83.48 | 72.84 | 96.35 | 82.81 | |
| ECE ↓ | 10.31 | 7.90 | 0.91 | 2.95 | 11.88 | 0.50 | 0.72 | 2.01 | 6.50 | 0.96 | 4.46 | ||
| M-PFT (Ours) | Acc. ↑ | 77.66 | 86.97 | 93.85 | 80.64 | 47.17 | 98.38 | 97.82 | 84.31 | 73.31 | 96.33 | 83.64 | |
| ECE ↓ | 2.80 | 3.75 | 0.47 | 1.76 | 10.79 | 0.93 | 0.65 | 2.92 | 7.41 | 0.78 | 3.23 | ||
| HiCroPL | Baseline | Acc. ↑ | 77.49 | 84.56 | 93.71 | 80.59 | 48.21 | 98.21 | 97.78 | 84.44 | 76.05 | 96.39 | 83.74 |
| ECE ↓ | 2.88 | 3.74 | 0.43 | 3.08 | 9.03 | 0.70 | 1.05 | 2.37 | 3.30 | 1.16 | 2.77 | ||
| TCPT | Acc. ↑ | 78.78 | 84.80 | 93.68 | 80.79 | 48.63 | 98.28 | 97.78 | 84.70 | 76.23 | 96.36 | 84.00 | |
| ECE ↓ | 2.84 | 4.92 | 0.84 | 3.31 | 8.52 | 0.58 | 1.01 | 2.32 | 4.64 | 0.88 | 2.99 | ||
| M-PFT (Ours) | Acc. ↑ | 78.42 | 85.04 | 93.77 | 80.87 | 47.79 | 98.30 | 97.71 | 84.32 | 75.56 | 96.27 | 83.80 | |
| ECE ↓ | 3.00 | 4.17 | 0.44 | 2.91 | 9.17 | 0.70 | 1.08 | 2.61 | 4.00 | 1.07 | 2.92 | ||
| MMRL | Baseline | Acc. ↑ | 75.73 | 85.89 | 93.78 | 80.25 | 46.45 | 97.97 | 97.60 | 83.92 | 65.26 | 96.31 | 82.32 |
| ECE ↓ | 2.91 | 4.85 | 2.37 | 0.58 | 5.60 | 0.99 | 1.09 | 2.18 | 15.26 | 1.51 | 3.73 | ||
| TCPT | Acc. ↑ | 75.60 | 85.53 | 93.69 | 80.09 | 46.85 | 98.19 | 96.76 | 83.92 | 71.59 | 96.24 | 82.85 | |
| ECE ↓ | 2.07 | 4.59 | 0.83 | 1.09 | 6.03 | 0.69 | 1.60 | 2.18 | 16.19 | 1.12 | 3.64 | ||
| M-PFT (Ours) | Acc. ↑ | 76.41 | 85.56 | 93.77 | 79.97 | 45.95 | 98.19 | 97.93 | 83.49 | 64.01 | 96.28 | 82.16 | |
| ECE ↓ | 3.17 | 4.10 | 2.42 | 0.84 | 6.07 | 1.03 | 1.32 | 2.77 | 12.32 | 1.51 | 3.55 |
Table 6. Comparison of calibration performance on novel classes across 10 fine-grained classification datasets using SigLIP backbone for top@1 Accuracy (Acc.) and Expected Calibration Error (ECE) with multiple prompt-tuning methods, where higher Acc and lower ECE indicate better performance and calibration, respectively.
| Class | Calibration | Metric | ImageNet-1k | ImageNet-V2 | ImageNet-S | ImageNet-A | ImageNet-R | Average |
|---|---|---|---|---|---|---|---|---|
| Base | Zero-Shot | Acc. ↑ | 72.40 | 60.87 | 46.09 | 47.81 | 75.41 | 60.52 |
| ECE ↓ | 1.51 | 2.43 | 4.88 | 8.34 | 2.42 | 3.92 | ||
| Baseline | Acc. ↑ | 76.71 | 67.35 | 53.35 | 68.31 | 85.22 | 70.19 | |
| ECE ↓ | 2.27 | 3.14 | 3.94 | 2.52 | 3.14 | 3.00 | ||
| TCPT | Acc. ↑ | 76.72 | 67.19 | 53.15 | 67.86 | 85.28 | 70.04 | |
| ECE ↓ | 2.39 | 3.09 | 3.91 | 2.21 | 2.05 | 2.73 | ||
| M-PFT (Ours) | Acc. ↑ | 76.83 | 66.60 | 58.77 | 67.72 | 86.06 | 71.20 | |
| ECE ↓ | 2.06 | 1.52 | 2.02 | 2.45 | 2.13 | 2.03 | ||
| Novel | Zero-Shot | Acc. ↑ | 72.40 | 60.87 | 46.09 | 47.81 | 75.41 | 60.52 |
| ECE ↓ | 2.09 | 2.43 | 4.88 | 8.34 | 2.42 | 4.03 | ||
| Baseline | Acc. ↑ | 70.50 | 67.36 | 53.36 | 68.31 | 85.22 | 68.95 | |
| ECE ↓ | 1.93 | 3.16 | 3.73 | 2.52 | 3.14 | 2.90 | ||
| TCPT | Acc. ↑ | 70.28 | 67.20 | 53.21 | 67.86 | 85.28 | 68.77 | |
| ECE ↓ | 1.74 | 3.11 | 3.63 | 2.20 | 2.05 | 2.55 | ||
| M-PFT (Ours) | Acc. ↑ | 70.39 | 66.60 | 58.84 | 67.72 | 86.06 | 69.92 | |
| ECE ↓ | 1.60 | 1.52 | 2.05 | 2.45 | 2.13 | 1.95 |
Table 7. Comparison of calibration performance on both base and novel classes across 4 natural distribution shift datasets for top@1 Accuracy (Acc.) and Expected Calibration Error (ECE) with MaPLe and various calibration baselines, where higher Acc and lower ECE indicate better performance and calibration, respectively.
| Method | Calibration | Metric | DTD | Flowers102 | Food101 | SUN397 | Aircrafts | OxfordRets | Caltech101 | UCF101 | EuroSAT | Stanford Cars | Average |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| MaPLe | Baseline | MCE ↓ | 0.70 | 0.71 | 0.46 | 0.39 | 0.89 | 0.51 | 0.62 | 0.71 | 1.96 | 0.86 | 0.78 |
| ACE ↓ | 1.96 | 1.31 | 1.37 | 1.35 | 3.04 | 1.44 | 1.15 | 2.13 | 7.68 | 3.31 | 2.47 | ||
| TCPT | MCE ↓ | 0.51 | 0.29 | 0.12 | 0.28 | 0.81 | 0.18 | 0.21 | 0.55 | 1.84 | 0.55 | 0.53 | |
| ACE ↓ | 1.36 | 0.71 | 0.34 | 0.80 | 2.68 | 0.46 | 0.34 | 1.60 | 5.98 | 1.48 | 1.57 | ||
| M-PFT (Ours) | MCE ↓ | 0.64 | 1.16 | 0.27 | 0.25 | 0.69 | 0.57 | 0.34 | 0.60 | 1.20 | 0.60 | 0.63 | |
| ACE ↓ | 2.29 | 2.14 | 0.80 | 1.09 | 2.41 | 0.99 | 0.53 | 1.92 | 3.83 | 2.08 | 1.81 | ||
| MMRL | Baseline | MCE ↓ | 0.57 | 0.78 | 0.10 | 0.31 | 1.00 | 0.35 | 0.41 | 0.38 | 0.20 | 0.73 | 0.48 |
| ACE ↓ | 1.64 | 1.13 | 0.27 | 1.00 | 5.55 | 0.72 | 0.77 | 1.01 | 0.41 | 2.94 | 1.54 | ||
| TCPT | MCE ↓ | 0.74 | 0.18 | 0.53 | 0.69 | 1.42 | 1.19 | 0.34 | 0.71 | 1.22 | 0.52 | 0.75 | |
| ACE ↓ | 2.39 | 0.23 | 1.26 | 1.78 | 5.80 | 1.50 | 0.43 | 2.35 | 1.46 | 1.83 | 1.90 | ||
| M-PFT (Ours) | MCE ↓ | 0.45 | 0.80 | 0.10 | 0.33 | 1.01 | 0.27 | 0.38 | 0.49 | 0.37 | 0.75 | 0.50 | |
| ACE ↓ | 1.23 | 1.00 | 0.32 | 0.92 | 5.26 | 0.47 | 0.67 | 1.26 | 0.57 | 2.91 | 1.46 | ||
| PromptSRC | Baseline | MCE ↓ | 0.56 | 1.07 | 0.14 | 0.18 | 0.66 | 0.51 | 0.40 | 0.57 | 2.22 | 0.50 | 0.68 |
| ACE ↓ | 1.45 | 1.70 | 0.36 | 0.62 | 3.46 | 1.16 | 0.68 | 1.22 | 7.78 | 1.78 | 2.02 | ||
| TCPT | MCE ↓ | 4.02 | 0.16 | 0.79 | 0.81 | 1.28 | 0.55 | 0.17 | 0.73 | 1.24 | 0.27 | 1.00 | |
| ACE ↓ | 6.07 | 0.23 | 1.72 | 1.96 | 4.40 | 1.04 | 0.13 | 2.22 | 3.47 | 0.88 | 2.21 | ||
| M-PFT (Ours) | MCE ↓ | 0.51 | 1.12 | 0.13 | 0.14 | 0.83 | 0.47 | 0.34 | 0.57 | 1.78 | 0.55 | 0.64 | |
| ACE ↓ | 1.73 | 1.90 | 0.33 | 0.62 | 3.23 | 0.81 | 0.53 | 0.86 | 6.55 | 1.68 | 1.82 |
Table 8. Comparison of calibration performance on base classes across 10 fine-grained classification datasets using SigLIP backbone for Maximum Calibration Error (MCE) and Adaptive Calibration Error (ACE) with multiple prompt-tuning methods across various calibration baselines, where lower MCE and ACE indicate better performance and calibration.
| Method | Calibration | Metric | DTD | Flowers102 | Food101 | SUN397 | Aircrafts | OxfordRets | Caltech101 | UCF101 | EuroSAT | Stanford Cars | Average |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| MaPLe | Baseline | MCE ↓ | 2.50 | 1.50 | 0.48 | 0.21 | 2.3 | 0.50 | 0.38 | 0.75 | 6.72 | 0.48 | 1.58 |
| ACE ↓ | 7.00 | 6.23 | 1.14 | 0.46 | 10.03 | 0.61 | 1.03 | 2.68 | 14.89 | 1.53 | 4.56 | ||
| TCPT | MCE ↓ | 1.57 | 1.46 | 0.16 | 0.38 | 1.68 | 0.31 | 0.28 | 0.73 | 1.76 | 0.25 | 0.86 | |
| ACE ↓ | 6.23 | 6.09 | 0.37 | 1.54 | 7.19 | 0.38 | 0.53 | 2.04 | 7.11 | 1.12 | 3.26 | ||
| M-PFT (Ours) | MCE ↓ | 1.65 | 0.85 | 0.41 | 0.30 | 2.28 | 0.50 | 0.22 | 0.83 | 5.28 | 0.29 | 1.26 | |
| ACE ↓ | 6.08 | 3.70 | 0.81 | 0.97 | 9.06 | 0.65 | 0.35 | 2.66 | 9.06 | 1.04 | 3.44 | ||
| MMRL | Baseline | MCE ↓ | 0.81 | 1.22 | 0.92 | 0.15 | 1.56 | 0.48 | 0.42 | 1.03 | 5.03 | 0.58 | 1.22 |
| ACE ↓ | 2.93 | 4.66 | 2.35 | 0.71 | 5.6 | 0.41 | 0.62 | 2.07 | 15.15 | 1.58 | 3.61 | ||
| TCPT | MCE ↓ | 0.61 | 1.04 | 0.34 | 0.33 | 1.81 | 0.27 | 0.62 | 0.58 | 11.45 | 0.41 | 1.75 | |
| ACE ↓ | 2.43 | 4.68 | 0.76 | 0.95 | 5.88 | 0.46 | 1.29 | 1.98 | 16.15 | 1.22 | 3.58 | ||
| M-PFT (Ours) | MCE ↓ | 1.07 | 1.35 | 0.92 | 0.23 | 1.46 | 0.48 | 0.39 | 1.14 | 5.11 | 0.55 | 1.27 | |
| ACE ↓ | 3.29 | 4.31 | 2.35 | 0.73 | 6.14 | 0.51 | 0.89 | 2.44 | 12.27 | 1.54 | 3.45 | ||
| PromptSRC | Baseline | MCE ↓ | 1.35 | 0.76 | 0.25 | 0.50 | 2.58 | 0.50 | 0.39 | 0.70 | 3.27 | 0.24 | 1.05 |
| ACE ↓ | 5.61 | 3.54 | 0.40 | 1.46 | 11.73 | 1.00 | 0.59 | 2.18 | 7.55 | 0.87 | 3.49 | ||
| TCPT | MCE ↓ | 3.80 | 2.65 | 0.36 | 0.76 | 2.51 | 0.17 | 0.28 | 0.51 | 3.04 | 0.30 | 1.44 | |
| ACE ↓ | 9.98 | 7.91 | 0.90 | 2.90 | 11.88 | 0.29 | 0.31 | 2.27 | 6.45 | 0.88 | 4.38 | ||
| M-PFT (Ours) | MCE ↓ | 0.80 | 0.89 | 0.16 | 0.55 | 1.89 | 0.50 | 0.26 | 0.79 | 2.42 | 0.22 | 0.85 | |
| ACE ↓ | 2.79 | 3.63 | 0.35 | 1.65 | 10.77 | 0.66 | 0.32 | 2.51 | 7.48 | 0.91 | 3.11 |
Table 9. Comparison of calibration performance on novel classes across 10 fine-grained classification datasets using the SigLIP backbone for Maximum Calibration Error (MCE) and Adaptive Calibration Error (ACE), with multiple prompt-tuning methods and across various calibration baselines, where lower MCE and ACE indicate better calibration performance.
| Class | Loss Component | Metric | DTD | Flowers102 | Food101 | SUN397 | Aircrafts | OxfordPets | Caltech101 | UCF101 | EuroSAT | Stanford Cars | Average |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Base | Acc. ↑ | 79.63 | 96.00 | 90.80 | 80.55 | 36.33 | 95.53 | 97.97 | 83.20 | 91.13 | 72.93 | 82.41 | |
| ECE ↓ | 4.18 | 4.28 | 0.78 | 1.27 | 4.77 | 2.68 | 1.54 | 2.68 | 3.42 | 7.25 | 3.29 | ||
| Acc. ↑ | 78.47 | 96.01 | 90.07 | 80.12 | 33.13 | 95.64 | 97.61 | 83.00 | 90.67 | 72.70 | 81.74 | ||
| ECE ↓ | 3.50 | 3.14 | 1.49 | 2.09 | 3.32 | 1.68 | 0.67 | 1.65 | 3.76 | 3.60 | 2.49 | ||
| (w/o gradient blocking) | Acc. ↑ | 79.55 | 96.07 | 90.42 | 80.62 | 36.81 | 95.30 | 97.55 | 84.25 | 91.55 | 72.17 | 82.43 | |
| ECE ↓ | 2.15 | 4.50 | 0.80 | 1.54 | 3.73 | 2.38 | 1.77 | 2.91 | 6.83 | 4.54 | 3.12 | ||
| (w/ gradient blocking) | Acc. ↑ | 79.21 | 94.65 | 90.55 | 80.93 | 36.37 | 95.29 | 97.87 | 84.20 | 92.71 | 72.04 | 82.38 | |
| ECE ↓ | 2.14 | 4.16 | 0.66 | 2.14 | 3.76 | 2.15 | 1.82 | 2.56 | 3.33 | 5.28 | 2.80 | ||
| Novel | Acc. ↑ | 58.47 | 72.80 | 92.10 | 78.20 | 34.53 | 97.85 | 95.10 | 77.85 | 75.90 | 73.57 | 75.64 | |
| ECE ↓ | 12.16 | 11.67 | 1.19 | 2.21 | 11.61 | 2.63 | 1.62 | 3.98 | 11.68 | 3.09 | 6.18 | ||
| Acc. ↑ | 53.42 | 71.82 | 91.00 | 76.68 | 25.27 | 97.76 | 94.25 | 77.82 | 58.02 | 74.58 | 72.06 | ||
| ECE ↓ | 17.14 | 11.41 | 1.13 | 5.45 | 12.13 | 1.90 | 2.46 | 4.35 | 9.30 | 2.77 | 6.80 | ||
| (w/o gradient blocking) | Acc. ↑ | 59.26 | 75.56 | 91.67 | 78.12 | 36.83 | 97.63 | 94.91 | 79.36 | 70.80 | 74.65 | 75.88 | |
| ECE ↓ | 7.67 | 9.09 | 1.34 | 1.02 | 8.28 | 2.70 | 1.03 | 2.70 | 4.92 | 2.35 | 4.11 | ||
| (w/ gradient blocking) | Acc. ↑ | 59.10 | 75.25 | 91.70 | 77.76 | 36.63 | 97.60 | 94.10 | 78.09 | 75.86 | 74.95 | 76.10 | |
| ECE ↓ | 6.60 | 9.19 | 1.14 | 1.12 | 8.70 | 2.43 | 1.13 | 3.05 | 5.23 | 2.22 | 4.08 |
Table 10. Loss component ablation on the effect of min-max regularization and anchoring regularization with (w/) and without (w/o) gradient blocking on both base and novel classes.
| Method | Calibration | Metric | DTD | Flowers102 | Food101 | SUN397 | Aircrafts | OxfordPets | Caltech101 | UCF101 | EuroSAT | Stanford Cars | Average |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| CoOp-ResNet50 | Baseline | Acc. | 74.85 | 95.25 | 82.54 | 76.37 | 29.95 | 90.5 | 95.22 | 80.4 | 81.32 | 70.22 | 77.66 |
| ECE | 8.65 | 4.22 | 1.15 | 2.81 | 2.62 | 2.32 | 1.27 | 1.82 | 9.34 | 6.15 | 4.04 | ||
| TCPT | Acc. | 75.42 | 95.22 | 82.77 | 77.07 | 29.01 | 91.08 | 95.44 | 79.96 | 89.79 | 69.90 | 78.57 | |
| ECE | 5.87 | 4.74 | 0.84 | 1.23 | 3.32 | 2.21 | 1.37 | 2.21 | 4.12 | 8.65 | 3.46 | ||
| M-PFT (Ours) | Acc. | 75.12 | 94.02 | 84.18 | 77.41 | 28.45 | 91.94 | 95.16 | 79.25 | 87.29 | 68.55 | 78.14 | |
| ECE | 2.57 | 5.19 | 1.21 | 3.03 | 3.89 | 3.09 | 2.29 | 3.64 | 5.43 | 7.42 | 3.78 | ||
| CoOp-ViT-B/32 | Baseline | Acc. | 77.55 | 95.28 | 84.93 | 79.16 | 31.87 | 92.71 | 97.05 | 82.83 | 91.10 | 73.13 | 80.56 |
| ECE | 6.15 | 4.18 | 1.06 | 2.50 | 3.12 | 2.45 | 1.17 | 2.09 | 3.91 | 4.86 | 3.15 | ||
| TCPT | Acc. | 79.01 | 95.09 | 85.12 | 79.58 | 31.83 | 93.14 | 97.46 | 82.87 | 91.09 | 73.78 | 80.90 | |
| ECE | 4.77 | 4.53 | 0.79 | 0.95 | 2.91 | 1.68 | 0.92 | 1.87 | 3.52 | 6.77 | 2.87 | ||
| M-PFT (Ours) | Acc. | 77.82 | 94.49 | 86.10 | 79.68 | 29.83 | 93.37 | 96.88 | 83.35 | 88.06 | 72.0 | 80.16 | |
| ECE | 3.26 | 4.12 | 0.78 | 1.45 | 3.18 | 2.17 | 1.15 | 2.19 | 4.28 | 7.23 | 2.98 |
Table 11. Comparison of calibration performance on base classes across 10 fine-grained classification tasks using ResNet-50 and ViT-B/32. We report top-1 accuracy (Acc.) and Expected Calibration Error (ECE) for CoOp [52], a prompt-tuning technique, evaluated with different backbones.
| Method | Calibration | Metric | DTD | Flowers102 | Food101 | SUN397 | Aircrafts | OxfordPets | Caltech101 | UCF101 | EuroSAT | Stanford Cars | Average |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| CoOp-ResNet50 | Baseline | Acc. | 41.67 | 61.87 | 82.55 | 64.46 | 18.72 | 92.11 | 87.27 | 55.07 | 34.15 | 57.84 | 59.57 |
| ECE | 5.47 | 10.24 | 0.86 | 9.07 | 18.75 | 2.10 | 3.57 | 13.47 | 22.18 | 8.08 | 9.38 | ||
| TCPT | Acc. | 39.05 | 61.47 | 82.50 | 64.94 | 21.66 | 93.08 | 87.52 | 53.94 | 42.75 | 59.88 | 60.68 | |
| ECE | 8.83 | 4.13 | 1.72 | 4.53 | 5.36 | 2.68 | 2.82 | 10.16 | 10.93 | 3.43 | 5.46 | ||
| M-PFT (Ours) | Acc. | 46.46 | 71.07 | 84.68 | 70.71 | 21.72 | 94.93 | 91.38 | 65.66 | 45.76 | 64.22 | 65.66 | |
| ECE | 10.91 | 4.61 | 1.98 | 1.1 | 10.41 | 3.63 | 1.56 | 3.77 | 9.26 | 2.34 | 4.96 | ||
| CoOp-ViT-B/32 | Baseline | Acc. | 47.95 | 60.31 | 85.16 | 68.98 | 22.12 | 94.00 | 92.25 | 63.57 | 56.47 | 60.04 | 65.09 |
| ECE | 19.74 | 13.28 | 1.33 | 8.57 | 16.75 | 2.30 | 3.29 | 10.32 | 17.18 | 8.53 | 10.13 | ||
| TCPT | Acc. | 50.23 | 61.65 | 84.22 | 70.59 | 23.08 | 93.48 | 91.41 | 64.02 | 56.55 | 61.10 | 65.63 | |
| ECE | 14.30 | 5.92 | 0.74 | 3.72 | 9.90 | 2.15 | 2.23 | 5.80 | 9.14 | 4.33 | 5.82 | ||
| M-PFT (Ours) | Acc. | 51.49 | 67.11 | 87.23 | 73.63 | 24.92 | 96.78 | 95.34 | 69.5 | 63.92 | 64.59 | 69.45 | |
| ECE | 7.19 | 7.11 | 1.24 | 1.53 | 11.15 | 3.24 | 1.5 | 3.77 | 8.10 | 2.21 | 4.70 |
Table 12. Comparison of calibration performance on novel classes across 10 fine-grained classification tasks using ResNet-50 and ViT-B/32. We report top-1 accuracy (Acc.) and Expected Calibration Error (ECE) for CoOp [52], a prompt-tuning technique, evaluated with different backbones.
| Acc. ↑ | ECE ↓ | ||||||
|---|---|---|---|---|---|---|---|
| Base | Novel | Average | Base | Novel | Average | ||
| 0.0 | 1.4 | 96.82 | 92.65 | 94.73 | 1.72 | 1.98 | 1.85 |
| 0.2 | 1.4 | 96.92 | 92.46 | 94.69 | 1.63 | 1.85 | 1.74 |
| 0.4 | 0.0 | 96.45 | 91.45 | 93.95 | 0.83 | 3.29 | 2.06 |
| 0.4 | 0.5 | 96.78 | 92.19 | 94.48 | 1.00 | 1.90 | 1.45 |
| 0.4 | 1.0 | 96.77 | 92.41 | 94.59 | 1.24 | 2.01 | 1.62 |
| 0.4 | 1.4 | 96.73 | 92.55 | 94.64 | 1.28 | 1.69 | 1.48 |
| 0.4 | 2.0 | 96.83 | 92.46 | 94.64 | 1.41 | 2.21 | 1.81 |
| 0.4 | 3.0 | 96.79 | 92.65 | 94.72 | 1.62 | 1.92 | 1.77 |
| 0.6 | 1.4 | 96.74 | 92.29 | 94.52 | 1.23 | 1.98 | 1.60 |
| 0.8 | 1.4 | 96.74 | 92.49 | 94.61 | 1.11 | 1.86 | 1.49 |
| 1.0 | 1.4 | 96.68 | 92.48 | 94.58 | 1.02 | 1.72 | 1.37 |
Table 13. Hyperparameter tuning for (min-max) and (anchor), averaged across Food101, Caltech, and Oxford Flowers, reported on both base and novel classes.
| Method | Time (s) | Memory (MiB) | ||
|---|---|---|---|---|
| / Batch | ||||
| Baseline | 0.055 | 2078 | ||
| M-PFT (Ours) | 0.057 | 2078 | ||
Table 14. Calculation time per batch (in seconds) and occupied memory usage.
| Method | Calibration | Metric | DTD | Flowers102 | Food101 | SUN397 | Aircrafts | OxfordPets | Caltech101 | UCF101 | EuroSAT | Stanford Cars | Average |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Base | Baseline | Std. Acc | 0.44 | 0.18 | 0.14 | 0.00 | 0.78 | 0.27 | 0.11 | 0.32 | 0.96 | 0.42 | 0.36 |
| Std. ECE | 0.24 | 0.08 | 0.20 | 0.00 | 0.60 | 0.20 | 0.17 | 0.55 | 0.64 | 0.19 | 0.29 | ||
| M-PFT (Ours) | Std. Acc | 0.45 | 0.18 | 0.14 | 0.00 | 0.79 | 0.28 | 0.12 | 0.25 | 0.84 | 0.43 | 0.35 | |
| Std. ECE | 0.19 | 0.08 | 0.20 | 0.00 | 0.46 | 0.22 | 0.17 | 0.56 | 0.53 | 0.18 | 0.26 | ||
| Novel | Baseline | Std. Acc | 1.33 | 0.24 | 0.05 | 0.00 | 1.61 | 0.27 | 0.16 | 0.47 | 0.50 | 0.46 | 0.51 |
| Std. ECE | 0.12 | 0.58 | 0.01 | 0.00 | 2.08 | 0.15 | 0.23 | 0.39 | 1.03 | 0.15 | 0.47 | ||
| M-PFT (Ours) | Std. Acc | 1.33 | 0.24 | 0.06 | 0.00 | 1.44 | 0.24 | 0.17 | 0.69 | 0.60 | 0.44 | 0.52 | |
| Std. ECE | 0.12 | 0.58 | 0.02 | 0.00 | 1.74 | 0.18 | 0.22 | 0.36 | 0.86 | 0.16 | 0.42 |
Table 15. Standard deviation (Std.) across 3 random seeds for base and novel classes across 10 fine-grained classification benchmarks.