Manuscript Offprint
arXiv:2609.10333Learning to Adapt and Calibrate: Score Distribution Alignment for Few-Shot Uncertainty Prediction in Medical VLMs
Abstract
Uncertainty estimation for medical vision-language models (VLMs) using conformal prediction has gained increasing attention due to its distribution-free coverage guarantees under exchangeability, but applying it in few-shot transfer is challenging. In this setting, only a small labeled support set is available, yet both supervised adaptation and conformal calibration require labeled data. A natural strategy is therefore to use the support set for supervised fine-tuning and then reuse it for conformal calibration. However, once the model has been adapted on these samples, their nonconformity scores are no longer exchangeable with those of unseen query samples, and naively applying split conformal prediction (SCP) can lead to unreliable coverage. Existing transductive conformal adaptation methods often avoid supervised updates to preserve the standard conformal protocol, but this sacrifices much of the value of few-shot supervision. In few-shot transfer, adaptation is the primary objective; conformal prediction should instead serve as an uncertainty estimation layer for the adapted model rather than restricting adaptation itself. We study this problem from the perspective of adaptation-induced non-exchangeability and propose ALIGNCP, a framework that reconciles supervised few-shot adaptation with conformal uncertainty estimation. ALIGNCP first adapts a medical VLM on the labeled support set and then reuses the same samples for calibration. To compensate for the resulting mismatch between support and query scores, ALIGNCP uses unlabeled query predictions to reweight the support non-conformity scores, producing a corrected calibration distribution from which the conformal threshold is computed. Since supervised adaptation breaks the exchangeability required by standard SCP, ALIGNCP does not claim its standard marginal coverage guarantee; instead, it aims to recover reliable empirical coverage as closely as possible by correcting the adaptation-induced score-distribution shift without requiring query labels. Extensive experiments across diverse medical domains show that ALIGNCP improves pre-
dictive performance over unsupervised conformal baselines while maintaining reliable empirical coverage and competitive prediction-set efficiency under distribution shift.
1. Introduction
Medical vision-language models (VLMs) have recently demonstrated strong transfer capabilities across a range of clinical applications, including image classification [11], visual question answering [25], and cross-modal reasoning. As a result, these models are increasingly adopted in high-stakes healthcare settings, with specialized medical VLMs developed for radiology [45, 48], histology [19, 26], and retinal imaging [39]. Their effectiveness largely stems from large-scale pretraining, which enables strong generalization even when labeled medical data is limited. However, despite these promising advances, the reliability and uncertainty behavior of medical VLMs under transfer remain insufficiently studied, with only a few recent works beginning to address this issue [38].
Split conformal prediction (SCP) provides a principled, distribution-free framework for uncertainty quantification, offering finite-sample coverage guarantees under the exchangeability assumption [12, 42]. Recent works have extended SCP to neural networks, showing that reliable prediction sets can be obtained using a small labeled calibration set [1, 10]. However, in transfer learning scenarios, it is common practice to perform supervised fine-tuning on available support data to improve predictive performance [18, 30]. When SCP is applied after such adaptation, the predictive model has already been updated using part of the target data. This violates the exchangeability assumption between calibration and test samples, thereby undermining the theoretical coverage guarantees of SCP [38].
To mitigate this issue, recent transductive conformal adaptation methods propose avoiding supervised updates and instead performing unsupervised adaptation jointly over calibration and test covariates [38]. These methods are de-signed to preserve empirical coverage by preventing label-driven shifts in the nonconformity score distribution. Nevertheless, this strategy is misaligned with the central goal of few-shot learning. In few-shot transfer, the main objective is to exploit the limited labeled support set as effectively as possible to adapt the model to the target task. Uncertainty estimation through conformal prediction should assist this adapted model by providing a calibrated view of its predictions, rather than becoming the constraint that prevents supervised adaptation. Therefore, while transductive conformal adaptation can maintain validity, it may do so by prioritizing conformal assumptions over task adaptation, effectively leaving valuable labeled supervision underused. This trade-off is especially undesirable in medical few-shot settings, where a small number of labeled examples can provide critical task-specific information and significantly improve predictive accuracy [15].
In this work, we develop a principled framework for supervised few-shot adaptation of medical VLMs with reliable conformal uncertainty estimation under distribution shift. Unlike transductive conformal adaptation methods that preserve exchangeability by avoiding supervised updates, we adopt a perspective that is more consistent to the goal of few-shot learning. In few-shot transfer, the scarce labeled support samples provide the most direct supervision for adapting a pretrained model to the target medical task; therefore, task adaptation should be the first priority. Conformal prediction should then serve as an auxiliary uncertainty estimation mechanism for the adapted model, rather than a constraint that prevents supervised learning from the available labels. However, once the model is fine-tuned on the support set, the calibration and test nonconformity scores are no longer exchangeable, causing standard conformal prediction to suffer from undercoverage. For this reason, our objective is not to guarantee the exact marginal coverage of standard conformal prediction, but to close the resulting coverage gap and provide the most trustworthy uncertainty estimates possible for the adapted medical VLM.
We begin by revisiting supervised few-shot conformal transfer from a distributional perspective. In this setting, the limited labeled support set is used both to fine-tune the model for the target task and to provide the calibration scores for conformal prediction. While supervised fine-tuning improves task adaptation, it can also bias the adapted model toward the support/calibration samples, shifting the induced nonconformity score distribution away from that of the test data. Since the coverage behavior of split conformal prediction depends on the calibration scores being representative of the test scores, this score-level mismatch can directly lead to coverage degradation. Recent theoretical results formalize this phenomenon by bounding the coverage gap in terms of discrepancies between the pushforward score distributions under calibration and test data [43]. These insights suggest that the central challenge is to control the score distribution shift induced by supervised adaptation, so that conformal prediction can provide reliable uncertainty estimates for the adapted model under distribution shift.
Motivated by this insight, we propose ALIGNCP, a framework that enables supervised few-shot fine-tuning while explicitly reducing the score distribution shift induced by adaptation. After adapting the VLM on the labeled support set, ALIGNCP learns a reweighted calibration score distribution that better matches the unlabeled test score distribution. This is achieved by minimizing a theoretically motivated objective derived from a coverage-gap bound defined over the two score distributions. Since supervised adaptation violates the exchangeability assumption through score-level distribution mismatch, reducing this mismatch helps narrow the resulting coverage gap and improve the reliability of conformal uncertainty estimates. Importantly, because nonconformity scores are one-dimensional, the proposed alignment is computationally efficient and remains stable in data-scarce few-shot regimes.
Extensive experiments across diverse medical domains demonstrate that ALIGNCP achieves stronger predictive performance than purely unsupervised transductive approaches, while maintaining reliable empirical coverage and competitive prediction set efficiency under distribution shift.
The main contributions are summarized as follows:
Supervised Few-Shot Conformal Adaptation: We propose ALIGNCP, a principled framework for uncertainty estimation in supervised few-shot adaptation of medical VLMs. Unlike transductive approaches that avoid supervised updates, ALIGNCP first adapts the model using the limited labeled support set and then corrects the induced score-level mismatch.
Coverage Gap Minimization Perspective: We reformulate conformal prediction after supervised few-shot adaptation as a coverage gap minimization problem. Building on recent theoretical bounds, ALIGNCP learns a reweighted calibration score distribution that better matches the unlabeled test score distribution by minimizing a theoretically motivated objective defined over the two score distributions.
Improved Accuracy-Coverage Trade-off: Extensive experiments across diverse medical domains demonstrate that ALIGNCP achieves stronger predictive performance than purely unsupervised transductive methods, while maintaining reliable empirical coverage and competitive prediction set efficiency.
Conformal prediction under distribution shift. Several works study conformal prediction beyond the standard i.i.d. setting. Weighted conformal prediction reweights calibration samples to address covariate shift [40], while more general approaches analyze conformal validity under distribution drift and non-exchangeability [3]. In medical imaging, distribution shift is especially common because datasets can differ in imaging protocol, patient population, disease prevalence, and annotation process. Recent studies show that conformal prediction can suffer from degraded coverage under such shifts [27]. Unlike prior reweighting-based methods, ALIGNCP does not assume any prior knowledge about the source-target distribution shift.
Few-shot adaptation and transductive learning. Few-shot adaptation improves target-domain performance using a small labeled support set, while transductive methods additionally use unlabeled test samples during inference. TIM optimizes mutual information over query predictions [5], and TransCLIP extends transductive inference to VLMs [47]. SCA-T applies transductive optimization to conformal prediction for few-shot medical VLMs [38]. These methods either avoid supervised adaptation to preserve calibration, or apply adaptation in a way that can change the calibration score distribution and cause undercoverage. In contrast, ALIGNCP explicitly combines supervised adaptation with score-distribution alignment, retaining the accuracy gain from adaptation while correcting the calibration mismatch needed for reliable conformal prediction.
Medical VLMs. VLMs such as CLIP learn transferable image-text representations through contrastive learning [30]. This paradigm has been adapted to medical imaging through methods such as ConVIRT [48], GLoRIA [17], BioViL [4], MedCLIP [45], and CheXzero [41]. These models provide strong zero-shot and few-shot transfer ability, but their predictions can still be miscalibrated when deployed on shifted target datasets. ALIGNCP is complementary to these representation-learning methods, focusing on reliable adaptation and conformal calibration for medical VLMs.
3. Methodology
3.1. Notation and Problem Setup
We first introduce the notation used throughout the method section. Let denote the input space and denote the label space. We use uppercase letters, e.g., , for random variables and lowercase letters, e.g., , for their
realizations. For a distribution over , denotes its marginal distribution over , and denotes the -fold product distribution obtained by drawing independent samples from .
We consider a source distribution and a target distribution over . The labeled calibration set is drawn from the source distribution,
while the unlabeled target query set is drawn from the target marginal distribution,
Let denote a pretrained VLM, and let denote the parameters after supervised adaptation. The nonconformity score is written as , where larger scores indicate lower conformity between an input and a candidate label. For simplicity, we write instead of when the model parameters are clear from context.
For any distribution over , the induced score random variable is for . The corresponding score distribution is the pushforward distribution . Thus, source examples induce , while target examples induce . We denote the cumulative distribution function of by and, when it exists, its density by .
For each calibration sample, the calibration score is , and the set of calibration scores is denoted by . Since , the induced calibration scores satisfy . Here, denotes the distribution of source data pairs, whereas denotes the distribution of their induced nonconformity scores.
Given , we denote the split conformal threshold at miscoverage level by . The corresponding prediction set is
For a test example , we write its nonconformity score as .
Finally, and denote the marginal coverage of the same conformal procedure when the test point is drawn from P and Q, respectively. The coverage gap between the source and target distributions is
This quantity will be used to characterize how distribution shift in score space affects conformal coverage.
3.2. Revisiting Conformal Prediction
Conformal prediction (CP) [42] constructs prediction sets with finite-sample coverage guarantees under exchangeability. We first consider the standard setting where the calibration and test examples are drawn from the same distribution
over . Given calibration scores , split conformal prediction (SCP) [28] chooses a threshold from the empirical quantile of the calibration scores.
Let denote the order statistics of . For a target miscoverage level , the split conformal threshold is
with the convention that when the index exceeds n. The prediction set for a test input x is then
For a test example , let denote its nonconformity score. Since and the calibration scores are drawn from the same score distribution , SCP guarantees
This formulation shows that conformal validity depends on the relationship between the calibration score distribution and the test score distribution. This perspective becomes central under distribution shift, where calibration scores follow but target test scores follow .
3.3. Coverage Gap under Distribution Shift
We now consider the distribution-shift setting, where the calibration scores are drawn from the source score distribution , while target test scores are drawn from . The conformal threshold is still computed from the source calibration scores . However, when evaluating on the target distribution, the test score follows . Therefore, if , the source calibration scores and target test scores are no longer drawn from the same score distribution, and the standard split conformal guarantee under does not directly transfer to .
Using the same source-calibrated threshold, the source coverage can be written as
Similarly, the target coverage is
Thus, both quantities use the same random threshold learned from , but differ in the distribution used to evaluate the test score. The coverage gap therefore captures the change in coverage caused by replacing the source test score distribution with the target test score distribution .
Under the source distribution, split conformal prediction guarantees
For the target distribution, the definition of the coverage gap gives
Combining the two inequalities yields
This inequality shows that target coverage degrades according to the coverage gap induced by the mismatch between and . Consequently, improving target reliability under distribution shift can be viewed as reducing the score-level discrepancy that contributes to .
3.4. Supervised Conformal Transfer under Distribution Shift
Building on the coverage-gap view above, our goal is to improve target coverage after supervised adaptation by reducing the score-level mismatch between the source calibration distribution and the target test distribution. Since the target labels are unavailable, we cannot directly observe target scores from . Instead, ALIGNCP learns a reweighted calibration score distribution from the labeled source calibration set and the unlabeled target query inputs.
Reweighted calibration distribution. To adjust the source calibration scores toward the target score distribution, ALIGNCP assigns a nonnegative weight to each calibration score , with and . These weights define the weighted empirical calibration score distribution
where denotes the Dirac measure at . When for all , reduces to the standard unweighted empirical calibration score distribution. The corresponding weighted empirical CDF is
The weighted conformal threshold is defined as
This gives the weighted prediction set
Thus, the central problem is to choose weights such that better matches the target score distribution and reduces the induced coverage gap.
Coverage gap as score distribution discrepancy. The previous subsection shows that target coverage is controlled by . Under mild regularity conditions, such as the existence of a density for , the total coverage gap can be bounded by a discrepancy between the source and target score CDFs [7]:
A proof is provided in the appendix. This bound motivates aligning calibration and target distributions directly in the one-dimensional score space.
Approximating the target score distribution from unlabeled queries. The bound in (17) depends on , which cannot be directly evaluated without target labels. However, in classification, we can compute the nonconformity score for every candidate label even when the true label is unknown. For each unlabeled query input , we define the lower and upper candidate scores as
These scores induce two empirical surrogate distributions,
For brevity, we write and .
Let denote the unknown target label and let be the corresponding unobserved target score. By construction, for every query sample. If the target labels were known, the empirical target score distribution would be . Although is unobserved, the lower and upper surrogate scores bracket each unobserved target score. Consequently, their empirical CDFs satisfy
This bracketing relation provides a computable way to approximate the unknown target score distribution using only unlabeled query inputs.
Sandwich upper bound. Directly minimizing the discrepancy in (17) is infeasible because is unknown. We therefore derive a computable surrogate using the lower and upper query-induced CDFs. For any surrogate distribution and any , the triangle inequality gives
(21)
Applying (21) with and , and then averaging the two inequalities, gives
Using the bracketing relation in (20), the last two terms reduce to the bracket width:
This yields the sandwich-type upper bound
(24)
The first two terms encourage the source score CDF to align with the two query-induced surrogate CDFs, while the last term accounts for the uncertainty interval between the lower and upper surrogate distributions.
Empirical objective. In practice, ALIGNCP replaces the population source score CDF with the weighted empirical calibration CDF . We evaluate the discrepancy on the fixed calibration score support, which gives
subject to and . Here, the weights affect the objective through the weighted CDF , rather than through the outer summation. Minimizing therefore learns a reweighted calibration distribution whose score CDF is closer to the query-induced surrogate target distributions. The learned distribution is then used to compute and construct the final weighted prediction set .
Why minimizing Eq. 25 helps? Eq. 25 is the empirical counterpart of the upper bound in Eq. 24, which in turn bounds the score-distribution discrepancy associated with in Eq. 17. Therefore, minimizing Eq. 25 reduces an empirical upper bound on . By Eq. 12, this tightens the lower bound on target coverage and helps recover the desired coverage level.
Table 1. Comparison of ALIGNCP with conformal prediction baselines, averaged over nine datasets across three modalities and three conformity scores.
| Score | Method | ACA↑ | Coverage Valid? | α = 0.10 | α = 0.05 | ||||
|---|---|---|---|---|---|---|---|---|---|
| Cov. | Size↓ | CCV↓ | Cov. | Size↓ | CCV↓ | ||||
| LAC | SCP | 50.1 | ✓ | 0.894 ±0.004 | 4.00 | 8.92 | 0.949 ±0.004 | 4.80 | 5.09 |
| Weighted CP | 63.9 | ✗ | 0.862 ±0.003 | 7.89 | 76.67 | 0.869 ±0.003 | 7.89 | 80.97 | |
| Adapt+SCP | 63.9 | ✗ | 0.885 ±0.004 | 2.86 | 5.70 | 0.940 ±0.003 | 3.48 | 3.58 | |
| SCAT | 55.2 | ✓ | 0.898 ±0.003 | 3.30 | 7.47 | 0.952 ±0.003 | 4.03 | 4.03 | |
| ALIGNCP (A) | 63.4 ±0.2 | ✓ | 0.896 ±0.004 | 2.17 ±1.13 | 7.97 ±0.50 | 0.949 ±0.003 | 3.64 ±0.30 | 4.61 ±0.58 | |
| ALIGNCP (LR) | 57.4 ±2.2 | ✓ | 0.916 ±0.004 | 3.62 ±0.32 | 7.91 ±0.45 | 0.951 ±0.003 | 4.61 ±0.26 | 4.16 ±0.13 | |
| ALIGNCP (LP) | 63.9 ±0.7 | ✓ | 0.898 ±0.004 | 2.99 ±0.31 | 7.46 ±0.01 | 0.951 ±0.003 | 3.64 ±0.30 | 4.09 ±0.06 | |
| APS | SCP | 50.1 | ✓ | 0.896 ±0.003 | 4.05 | 8.70 | 0.953 ±0.003 | 4.87 | 4.82 |
| Weighted CP | 63.9 | ✗ | 0.862 ±0.003 | 7.89 | 76.66 | 0.872 ±0.003 | 7.89 | 79.98 | |
| Adapt+SCP | 63.9 | ✗ | 0.885 ±0.004 | 2.86 | 5.70 | 0.940 ±0.003 | 3.48 | 3.58 | |
| SCAT | 55.2 | ✓ | 0.900 ±0.004 | 3.35 | 7.18 | 0.954 ±0.003 | 4.08 | 3.97 | |
| ALIGNCP (A) | 63.4 ±0.2 | ✓ | 0.899 ±0.003 | 2.27 ±1.06 | 8.73 ±1.12 | 0.948 ±0.002 | 4.92 ±0.14 | 5.83 ±1.14 | |
| ALIGNCP (LR) | 57.4 ±2.2 | ✓ | 0.907 ±0.004 | 3.59 ±0.27 | 7.82 ±0.40 | 0.951 ±0.002 | 4.83 ±0.27 | 4.19 ±0.22 | |
| ALIGNCP (LP) | 63.9 ±0.7 | ✓ | 0.900 ±0.004 | 3.01 ±0.24 | 5.77 ±1.41 | 0.954 ±0.002 | 3.77 ±0.21 | 3.55 ±0.42 | |
| RAPS | SCP | 50.1 | ✓ | 0.895 ±0.003 | 4.15 | 8.75 | 0.953 ±0.003 | 5.01 | 4.90 |
| Weighted CP | 63.9 | ✗ | 0.866 ±0.003 | 7.89 | 76.66 | 0.869 ±0.003 | 7.89 | 79.99 | |
| Adapt+SCP | 63.9 | ✗ | 0.885 ±0.003 | 2.85 | 5.71 | 0.939 ±0.003 | 3.50 | 3.58 | |
| SCAT | 55.2 | ✓ | 0.903 ±0.004 | 3.40 | 7.50 | 0.954 ±0.003 | 4.18 | 4.57 | |
| ALIGNCP (A) | 63.4 ±0.2 | ✓ | 0.897 ±0.003 | 2.27 ±1.13 | 8.75 ±1.12 | 0.948 ±0.002 | 2.91 ±1.27 | 5.89 ±1.32 | |
| ALIGNCP (LR) | 57.4 ±2.2 | ✓ | 0.906 ±0.003 | 3.61 ±0.21 | 8.12 ±0.40 | 0.960 ±0.002 | 4.99 ±0.41 | 4.26 ±0.31 | |
| ALIGNCP (LP) | 63.9 ±0.7 | ✓ | 0.900 ±0.004 | 3.00 ±0.40 | 5.79 ±1.71 | 0.953 ±0.002 | 3.77 ±0.41 | 3.57 ±1.00 | |
Table 2. Comparison of ALIGNCP with transductive solvers. () denotes supervised adaptation followed by unsupervised transductive optimization, while (SS) denotes semi-supervised optimization using the labeled support set.
| Score | Method | ACA↑ | Coverage Valid? | α = 0.10 | Complexity | ||
|---|---|---|---|---|---|---|---|
| Cov. | Size↓ | CCV↓ | T↓ GPU↓ | ||||
| LAC | SCP | 50.1 | ✓ | 0.894 ±0.003 | 4.00 | 8.92 | 0.00 |
| TIM [5] | 53.5±3.4 | ✗ | 0.888 ±0.004 | 3.96±0.04 | 8.08±0.84 | 1.12 | |
| TIM () [5] | 57.0±6.9 | ✗ | 0.878 ±0.004 | 3.54±0.46 | 8.69±0.23 | 1.24 | |
| TIM (SS) [5] | 63.0±12.9 | ✗ | 0.863 ±0.004 | 2.13±1.87 | 7.54±1.38 | 1.11 | |
| TransCLIP [47] | 54.8±4.7 | ✗ | 0.726 ±0.003 | 2.16±1.84 | 22.31±13.39 | 0.47 | |
| TransCLIP () [47] | 61.3±11.2 | ✗ | 0.866 ±0.003 | 2.05±1.95 | 8.06±0.86 | 0.83 | |
| TransCLIP (SS) [47] | 54.0±3.9 | ✗ | 0.863 ±0.004 | 3.04±0.96 | 7.41±1.51 | 0.45 | |
| SCAT [38] | 55.2±5.1 | ✓ | 0.898 ±0.003 | 3.30±0.70 | 7.47±1.45 | 1.04 | |
| ALIGNCP | 63.9±13.8 | ✓ | 0.898 ±0.004 | 2.99±1.01 | 7.46±1.46 | 1.43 | |
| APS | SCP | 50.1 | ✓ | 0.896 ±0.003 | 4.05 | 8.69 | 0.00 |
| TIM [5] | 53.5±3.4 | ✗ | 0.887 ±0.004 | 3.16±0.89 | 7.47±1.22 | 1.18 | |
| TIM () [5] | 57.0±6.9 | ✗ | 0.880 ±0.004 | 3.60±0.45 | 8.00±0.69 | 1.58 | |
| TIM (SS) [5] | 63.0±12.9 | ✗ | 0.863 ±0.004 | 2.13±1.92 | 7.54±1.15 | 1.22 | |
| TransCLIP [47] | 54.8±4.7 | ✗ | 0.733 ±0.003 | 2.52±1.53 | 21.78±13.09 | 0.40 | |
| TransCLIP () [47] | 61.3±11.2 | ✗ | 0.866 ±0.003 | 2.05±1.00 | 8.26±0.43 | 0.65 | |
| TransCLIP (SS) [47] | 54.0±3.9 | ✗ | 0.863 ±0.003 | 2.13±1.92 | 7.54±1.15 | 0.42 | |
| SCAT [38] | 55.2±5.1 | ✓ | 0.900 ±0.004 | 3.35±0.70 | 7.18±1.51 | 1.15 | |
| ALIGNCP | 63.9±13.8 | ✓ | 0.900 ±0.004 | 3.01±1.04 | 5.77±2.92 | 1.54 | |
4. Experiments
4.1. Experiment Settings
Dataset and Foundation Models. Following [38], we conduct experiments on nine datasets across three medical imaging modalities: histology (NCT-CRC [22], SICApV2 [35] and SkinCancer [23]), ophthalmology (MESSIDOR [8], MMAC [29], FIVES [21]), and chest X-ray (CheXpert [20, 45], NIH-LT [14, 44], COVID [6, 31]). For each modality, we employ a modality-specific pretrained foundation model: CONCH [26] for histology, FLAIR [39] for ophthalmology, and CONVIRT [48] for chest X-ray to en-

Figure 1. Dataset-wise ACA comparison across nine datasets for SCP, SCAT, and ALIGNCP.
sure strong modality-specific representations. All datasets are treated as multi-class classification problems, with an average of eight classes per dataset.
Implementation Details. For ALIGNCP, we first fine-tune the VLMs in a supervised manner on the calibration set using linear probing (LP), LoRA (LR) and residual adapter (A) strategy with linear probing be the main baseline, following [13, 16, 36]. To learn the importance weights for distribution alignment, we parameterize the weights as free learnable variables and optimize them using Adam with a learning rate of for 300 epochs. The weights are initialized uniformly and normalized via a softmax function to ensure they form a valid probability distribution (i.e., sum to one). The training objective corresponds to the loss defined in Equation 25. All experiments are conducted on a single NVIDIA RTX 3090 GPU (24GB). Each configuration is repeated 100 times with different random seeds to ensure statistical robustness.
Conformal prediction. For conformal prediction, we employ three nonconformity scores for multi-class classification: RAPS [1], LAC [33], and APS [32]. For RAPS, we set the hyperparameters to k=1 and . Experiments are conducted at two level and
Metric. For evaluation metrics, following [37], we report balanced classwise accuracy (ACA), empirical coverage ("Cov."), average prediction set size ("Size"), and class-conditioned coverage gap ("CCV") [10]. To assess computational efficiency, we additionally report GPU memory consumption ("GPU", in GB) and inference time ("T", in seconds). We consider a method undercovered when its empirical coverage falls more than 0.01 below the target coverage level. In all tables, gray rows indicate undercoverage. The Coverage Valid column marks whether a method satisfies this coverage criterion. Among coverage-valid methods, bold and underlined values denote the best and second-best

Figure 2. CCV and average prediction set size using LAC at for SCAT, SCP, and ALIGNCP across different labeled shots. Lower is better.
results, respectively.
4.2. Experiment Result
Overall Performance. Table 1 compares ALIGNCP with SCP, Adapt+SCP, Weighted CP [3], and SCAT [38] across nine datasets and three nonconformity scores. Adapt+SCP uses the same supervised adaptation as ALIGNCP but directly applies standard SCP afterward, without the proposed score-distribution alignment. This makes it the most direct baseline for isolating the effect of our calibration step.
ALIGNCP preserves the accuracy gains from supervised adaptation while maintaining coverage close to the target at both and . In contrast, Adapt+SCP achieves the same ACA as the linear-probe variant of ALIGNCP (63.9) but consistently undercovers, while Weighted CP shows even more severe undercoverage. Among coverage-valid methods, ALIGNCP also yields smaller prediction sets than SCP and SCAT with competitive CCV. The consistent performance across Adapter, LoRA, and Linear Probe further shows that the proposed alignment is robust to the adaptation strategy. Overall, ALIGNCP provides a better balance of accuracy, coverage validity, set efficiency, and class-conditional reliability under target shift.
Comparison with Transductive Baselines. Table 2 compares ALIGNCP with TIM, TransCLIP, and SCAT under LAC and APS. Although transductive adaptation improves classification accuracy, most TIM and TransCLIP variants suffer from undercoverage. In contrast, ALIGNCP achieves the best accuracy while maintaining target coverage. Among methods that preserve coverage, ALIGNCP also produces the most efficient prediction sets with the lowest CCV, while incurring computational cost comparable to existing transductive solvers. These results show that ALIGNCP provides a stronger trade-off between adaptation performance, uncertainty reliability, and prediction-set efficiency.
Effect of Calibration Shots. Figure 2 studies the effect of calibration-set size on prediction-set size and class-conditioned coverage variation (CCV). Across all shot regimes, ALIGNCP consistently produces smaller prediction sets than SCP and SCAT, demonstrating improved set efficiency.

Figure 3. Coverage distributions across nine datasets at the target level . The dashed vertical line denotes the desired coverage. Compared with Adapt+SCP, which applies standard SCP after supervised adaptation without our calibration alignment, ALIGNCP produces coverage distributions closer to the target level across most datasets, reducing the undercoverage introduced by adaptation.
For CCV, ALIGNCP is slightly worse than SCAT in the extremely low-shot regime, where classwise estimates are noisy. As more calibration samples become available, however, ALIGNCP quickly achieves the lowest CCV and remains consistently better than both baselines. Overall, ALIGNCP benefits effectively from additional calibration data, yielding both compact prediction sets and improved classwise coverage balance.
4.3. Coverage Distribution Analysis
Figure 3 isolates the effect of the proposed calibration alignment by comparing ALIGNCP with Adapt+SCP under the same supervised adaptation setting. Both methods use the same labeled support set and the same adapted predictor; therefore, they share the same predictive model and accuracy. The only difference is the conformal calibration step. Adapt+SCP applies standard SCP after adaptation, whereas ALIGNCP additionally learns the calibration weights by minimizing the empirical alignment objective in Eq. 25.
Figure 3 provides direct empirical evidence for this effect. Adapt+SCP frequently produces coverage distributions shifted below the target level, with clear undercoverage on Gleason, NCT, MESSIDOR, CheXpert5x200, NIH, and COVID. In contrast, ALIGNCP shifts the distributions toward the target across the nine datasets. The distributions are centered close to the target on Gleason, MESSIDOR, MMAC, and CheXpert5x200, while Skin, FIVES, and NIH show slightly conservative coverage. Even on COVID, where the remaining shift is larger, ALIGNCP substantially reduces the undercoverage relative to Adapt+SCP.
Since the two methods use the same supervised predictor, these differences cannot be attributed to improved classification accuracy. They directly reflect the effect of minimizing Eq. 25. Together, Fig. 3 and Table 1 show that supervised
Table 3. Results on natural-image datasets. Entries report Coverage / Size / CCV.
| Dataset | Method | Acc. | LAC | APS | ||||
|---|---|---|---|---|---|---|---|---|
| ImageNet | SCP | 59.37 | 0.895 / 6.67 / 8.0 | 0.946 / 17.58 / 5.0 | 0.896 / 19.78 / 6.0 | 0.949 / 42.29 / 3.0 | ||
| Adapt+SCP | 69.43 | 0.867 / 5.48 / 6.0 | 0.932 / 14.92 / 5.0 | 0.869 / 9.66 / 6.0 | 0.931 / 20.52 / 5.0 | |||
| SCA-T | 58.86 | 0.890 / 26.23 / 8.0 | 0.903 / 35.90 / 5.0 | 0.895 / 43.60 / 8.0 | 0.922 / 140.78 / 5.0 | |||
| AlignCP | 69.43 | 0.899 / 8.48 / 6.0 | 0.952 / 22.72 / 5.0 | 0.898 / 11.77 / 6.0 | 0.952 / 28.84 / 5.0 | |||
| CIFAR-10 | SCP | 88.32 | 0.892 / 1.01 / 6.5 | 0.948 / 1.30 / 3.8 | 0.917 / 1.60 / 2.2 | 0.959 / 1.96 / 1.8 | ||
| Adapt+SCP | 93.50 | 0.868 / 0.94 / 5.7 | 0.912 / 1.06 / 5.3 | 0.910 / 1.35 / 1.4 | 0.957 / 1.64 / 1.1 | |||
| SCA-T | 89.17 | 0.880 / 0.93 / 4.7 | 0.930 / 1.04 / 2.4 | 0.904 / 1.05 / 2.75 | 0.947 / 1.16 / 1.9 | |||
| AlignCP | 93.50 | 0.891 / 0.97 / 5.3 | 0.950 / 1.27 / 2.5 | 0.906 / 1.33 / 1.6 | 0.956 / 1.63 / 1.6 | |||
Table 4. Sensitivity of ALIGNCP to initialization, learning rate, and optimization iterations under LAC at . Results for each hyperparameter are averaged over the remaining settings.
| Hyperparameter | Setting | Cov. | Size↓ | CCV↓ |
|---|---|---|---|---|
| Initialization | Random | 0.899 | 3.08 | 7.950 |
| Uniform | 0.898 | 3.01 | 7.849 | |
| Learning Rate | 0.899 | 3.045 | 7.9 | |
| 0.898 | 3.045 | 7.9 | ||
| 0.899 | 3.045 | 7.9 | ||
| Iterations | 100 | 0.898 | 3.045 | 7.9 |
| 500 | 0.898 | 3.045 | 7.9 | |
| 1000 | 0.898 | 3.045 | 7.9 |
Table 5. Statistical comparison of ACA over 100 matched runs. We report the mean paired difference, paired-bootstrap 95% confidence interval, and two-sided Wilcoxon signed-rank test.
| Comparison | ACA | 95% CI | p-value |
|---|---|---|---|
| ALIGNCP vs. SCP | +13.815 | [13.807, 13.821] | |
| ALIGNCP vs. SCAT | +8.729 | [8.720, 8.735] |
adaptation alone improves prediction but can degrade conformal validity, while the proposed score-distribution alignment preserves the adapted predictor and brings empirical coverage substantially closer to the target level.
4.4. Natural-Image Generalization.
Table 3 evaluates ALIGNCP with CLIP on ImageNet [9] and CIFAR-10 [24]. ALIGNCP preserves the accuracy gains from supervised adaptation while maintaining coverage close to the target levels, whereas Adapt+SCP frequently undercovers despite similar accuracy. Across both datasets and conformal scores, ALIGNCP also maintains competitive prediction-set size and CCV. These results confirm that the proposed score-distribution alignment is not specific to medical imaging and generalizes to standard natural-image benchmarks.
4.5. Sensitivity Analysis.
Table 4 evaluates sensitivity to weight initialization, learning rate, and optimization iterations. Coverage, set size, and CCV vary only marginally across all settings, including random versus uniform initialization. The results also remain essentially unchanged across learning rates and iteration counts, indicating that the learned weighting and resulting conformal predictions are stable to the optimization configuration.
4.6. Statistical Significance.
Table 5 reports paired statistical comparisons over 100 matched runs. ALIGNCP improves ACA over SCP and SCAT by 13.815 and 8.729, respectively. The corresponding 95% confidence intervals are narrow and remain well above zero, while the two-sided Wilcoxon signed-rank tests [46] yield for both comparisons. These results confirm that the observed accuracy gains are consistent and statistically significant across repeated runs.
5. Conclusion
In this work, we proposed ALIGNCP, a principled framework for supervised few-shot conformal transfer in medical VLMs. ALIGNCP addresses the score-level mismatch introduced by supervised adaptation by learning a reweighted calibration score distribution that better matches the target-domain behavior. This allows the model to benefit from few-shot fine-tuning while reducing the resulting coverage gap. Experiments across diverse medical tasks and modalities show that ALIGNCP improves adaptation performance, maintains reliable coverage, produces smaller prediction sets, and reduces class-conditioned coverage disparities. These results highlight score-distribution alignment as an effective way to combine supervised adaptation with conformal reliability.
Limitation. The coverage gap bound depends on surrogate score distributions and can loosen when they poorly approximate the test distribution. In extremely low-shot settings, limited calibration data may also make the bounds less stable and increase CCV. Future work will improve score modeling for more reliable guarantees in data-scarce regimes.
References
[1] Anastasios Angelopoulos, Stephen Bates, Jitendra Malik, and Michael I Jordan. Uncertainty sets for image classifiers using conformal prediction. arXiv preprint arXiv:2009.14193, 2020. 1, 3, 6
[2] Anastasios Angelopoulos, Stephen Bates, Adam Fisch, Lihua Lei, and Tal Schuster. Conformal risk control. In International conference on learning representations, pages 55198–55218, 2024. 2
[3] Rina Foygel Barber, Emmanuel J Candes, Aaditya Ramdas, and Ryan J Tibshirani. Conformal prediction beyond exchangeability. The Annals of Statistics, 51(2):816–845, 2023. 3, 7
[4] Benedikt Boecking, Naoto Usuyama, Shruthi Bannur, Daniel C Castro, Anton Schwaighofer, Stephanie Hyland, Maria Wetscherek, Tristan Naumann, Aditya Nori, Javier Alvarez-Valle, et al. Making the most of text semantics to improve biomedical vision-language processing. In European conference on computer vision, pages 1–21. Springer, 2022. 3
[5] Malik Boudiaf, et al. Information maximization for few-shot learning. NeurIPS, 2020. 3, 6
[6] Muhammad EH Chowdhury et al. Can ai help in screening viral and covid-19 pneumonia? IEEE Access, 8:132665–132676, 2020. 6
[7] Alvaro Correia and Christos Louizos. Non-exchangeable conformal prediction with optimal transport: Tackling distribution shift with unlabeled data. Advances in Neural Information Processing Systems, 38:157924–157960, 2026. 5
[8] Etienne Decencière et al. Feedback on a publicly distributed image database: the messidor database. Image Analysis & Stereology, pages 231–234, 2014. 6
[9] 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. 8
[10] Tiffany Ding, Anastasios Angelopoulos, Stephen Bates, Michael Jordan, and Ryan J Tibshirani. Class-conditional conformal prediction with many classes. NeurIPS, 36:64555–64576, 2023. 1, 6
[11] Ye Du, Nanxi Yu, and Shujun Wang. Medical knowledge intervention prompt tuning for medical image classification. IEEE Transactions on Medical Imaging, 2025. 1
[12] Alex Gammerman, Volodya Vovk, and Vladimir Vapnik. Learning by transduction. arXiv preprint arXiv:1301.7375, 2013. 1
[13] Peng Gao et al. Clip-adapter: Better vision-language models with feature adapters. IJCV, 132(2):581–595, 2024. 6
[14] Gregory Holste et al. Long-tailed classification of thorax diseases on chest x-ray: A new benchmark study. In MICCAI Workshop on Data Augmentation, Labelling, and Imperfections, pages 22–32. Springer, 2022. 6
[15] Ruibing Hou, Hong Chang, Bingpeng Ma, Shiguang Shan, and Xilin Chen. Cross attention network for few-shot classification. Advances in neural information processing systems, 32, 2019. 2
[16] Edward J Hu, Yelong Shen, Phillip Wallis, Zeyuan Allen-Zhu, Yuanzhi Li, Shean Wang, Lu Wang, and Weizhu Chen. Lora: Low-rank adaptation of large language models. arXiv preprint arXiv:2106.09685, 2021. 6
[17] Shih-Cheng Huang, Liyue Shen, Matthew P Lungren, and Serena Yeung. Gloria: A multimodal global-local representation learning framework for label-efficient medical image recognition. In Proceedings of the IEEE/CVF international conference on computer vision, pages 3942–3951, 2021. 3
[18] Yunshi Huang et al. Lp++: A surprisingly strong linear probe for few-shot clip. In CVPR, pages 23773–23782, 2024. 1
[19] Zhi Huang, Federico Bianchi, Mert Yuksekgonul, Thomas J Montine, and James Zou. A visual-language foundation model for pathology image analysis using medical twitter. Nature medicine, 29(9):2307–2316, 2023. 1
[20] Jeremy Irvin et al. Chexpert: A large chest radiograph dataset with uncertainty labels and expert comparison. In Proceedings of the AAAI conference on artificial intelligence, pages 590–597, 2019. 6
[21] Kai Jin, Xingru Huang, Jingxing Zhou, Yunxiang Li, Yan Yan, Yibao Sun, Qianni Zhang, Yaqi Wang, and Juan Ye. Fives: A fundus image dataset for artificial intelligence based vessel segmentation. Scientific data, 9(1):475, 2022. 6
[22] Jakob Nikolas Kather, Niels Halama, and Alexander Marx. 100,000 histological images of human colorectal cancer and healthy tissue. (No Title), 2018. 6
[23] Katharina Kriegsmann, Frithjof Lobers, Christiane Zgorzelski, Joerg Kriegsmann, Charlotte Janssen, Rolf Rüdinger Meliß, Thomas Muley, Ulrich Sack, Georg Steinbuss, and Mark Kriegsmann. Deep learning for the detection of anatomical tissue structures and neoplasms of the skin on scanned histopathological tissue sections. Frontiers in Oncology, 12:1022967, 2022. 6
[24] Alex Krizhevsky, Geoffrey Hinton, et al. Learning multiple layers of features from tiny images. 2009. 8
[25] Yunyi Liu, Zhanyu Wang, Dong Xu, and Luping Zhou. Q2atransformer: Improving medical vqa via an answer querying decoder. In International conference on information processing in medical imaging, pages 445–456. Springer, 2023. 1
[26] Ming Y Lu et al. A visual-language foundation model for computational pathology. Nature medicine, 30(3):863–874, 2024. 1, 6
[27] Hendrik Mehtens, Tabea Bucher, and Titus J Brinker. Pitfalls of conformal predictions for medical image classification. In International workshop on uncertainty for safe utilization of machine learning in medical imaging, pages 198–207. Springer, 2023. 3
[28] Harris Papadopoulos, Kostas Proedrou, Volodya Vovk, and Alex Gammerman. Inductive confidence machines for regression. In ECCV, pages 345–356. Springer, 2002. 4
[29] Bo Qian et al. A competition for the diagnosis of myopic maculopathy by artificial intelligence algorithms. JAMA ophthalmology, 142(11):1006–1015, 2024. 6
[30] Alec Radford et al. Learning transferable visual models from natural language supervision. In ICML, pages 8748–8763. PmLR, 2021. 1, 3
[31] Tawsifur Rahman et al. Exploring the effect of image enhancement techniques on covid-19 detection using chest x-ray images. Computers in biology and medicine, 132:104319, 2021. 6
[32] Yaniv Romano, Matteo Sesia, and Emmanuel Candes. Classification with valid and adaptive coverage. Advances in neural information processing systems, 33:3581–3591, 2020. 3, 6
[33] Mauricio Sadinle, Jing Lei, and Larry Wasserman. Least ambiguous set-valued classifiers with bounded error levels. Journal of the American Statistical Association, 114(525): 223–234, 2019. 3, 6
[34] Glenn Shafer and Vladimir Vovk. A tutorial on conformal prediction. Journal of machine learning research, 9(3), 2008. 2
[35] Julio Silva-Rodríguez, Adrián Colomer, María A Sales, Rafael Molina, and Valery Naranjo. Going deeper through the gleason scoring scale: An automatic end-to-end system for histology prostate grading and cribriform pattern detection. Computer methods and programs in biomedicine, 195: 105637, 2020. 6
[36] Julio Silva-Rodriguez, Sina Hajimiri, Ismail Ben Ayed, and Jose Dolz. A closer look at the few-shot adaptation of large vision-language models. In CVPR, pages 23681–23690, 2024. 6
[37] Julio Silva-Rodríguez, Ismail Ben Ayed, and Jose Dolz. Conformal prediction for zero-shot models. In Proceedings of the Computer Vision and Pattern Recognition Conference, pages 19931–19941, 2025. 6
[38] Julio Silva-Rodríguez, Ismail Ben Ayed, and Jose Dolz. Trustworthy few-shot transfer of medical vlms through split conformal prediction. In MICCAI, pages 658–668. Springer, 2025. 1, 3, 6, 7
[39] Julio Silva-Rodriguez, Hadi Chakor, Riadh Kobbi, Jose Dolz, and Ismail Ben Ayed. A foundation language-image model of the retina (flair): Encoding expert knowledge in text supervision. Medical Image Analysis, 99:103357, 2025. 1, 6
[40] Ryan J Tibshirani, Rina Foygel Barber, Emmanuel Candes, and Aaditya Ramdas. Conformal prediction under covariate shift. Advances in neural information processing systems, 32, 2019. 3
[41] Ekin Tiu, Ellie Talius, Pujan Patel, Curtis P Langlotz, Andrew Y Ng, and Pranav Rajpurkar. Expert-level detection of pathologies from unannotated chest x-ray images via self-supervised learning. Nature biomedical engineering, 6(12): 1399–1406, 2022. 3
[42] Vladimir Vovk, Alexander Gammerman, and Glenn Shafer. Algorithmic learning in a random world. Springer, 2005. 1, 2, 3
[43] Tuo Wang, Jian Kang, Yujun Yan, Adithya Kulkarni, and Dawei Zhou. Non-exchangeable conformal prediction for temporal graph neural networks. In Proceedings of the 31st ACM SIGKDD Conference on Knowledge Discovery and Data Mining V. 2, pages 3031–3042, 2025. 2
[44] Xiaosong Wang, Yifan Peng, Le Lu, Zhiyong Lu, Mohammadhadi Bagheri, and Ronald M Summers. Chestx-ray8: Hospital-scale chest x-ray database and benchmarks
on weakly-supervised classification and localization of common thorax diseases. In CVPR, pages 2097–2106, 2017. 6
[45] Zifeng Wang, Zhenbang Wu, Dinesh Agarwal, and Jimeng Sun. Medclip: Contrastive learning from unpaired medical images and text. In Proceedings of the 2022 Conference on Empirical Methods in Natural Language Processing, pages 3876–3887, 2022. 1, 3, 6
[46] Frank Wilcoxon. Individual comparisons by ranking methods. In Breakthroughs in statistics: Methodology and distribution, pages 196–202. Springer, 1992. 8
[47] Maxime Zanella, Benoît Gérin, and Ismail Ayed. Boosting vision-language models with transduction. Advances in Neural Information Processing Systems, 37:62223–62256, 2024. 3, 6
[48] Yuhao Zhang, Hang Jiang, Yasuhide Miura, Christopher D Manning, and Curtis P Langlotz. Contrastive learning of medical visual representations from paired images and text. In Machine learning for healthcare conference, pages 2–25. PMLR, 2022. 1, 3, 6