Full Conformal Adaptation of Medical Vision-Language Models

Julio Silva-Rodríguez, Leo Fillioux, Paul-Henry Cournède, Maria Vakalopoulou, Stergios Christodoulidis, Ismail Ben Ayed, Jose Dolz · DOI

Abstract

Vision-Language Models (VLMs) have demonstrated significant potential in medical image classification, yet their clinical utility is limited by the challenge of providing reliable uncertainty estimates alongside task-specific adaptation. Traditional Conformal Prediction (CP) methods typically require separate datasets for calibration and adaptation, which is often unfeasible in data-scarce medical environments. We introduce Full Conformal Adaptation (FCA), a framework that enables transductive model adaptation while maintaining rigorous mathematical guarantees for prediction sets. Coupled with a novel, training-free solver named SS-Text, our approach achieves a 150x speedup over iterative methods, making real-time, reliable medical AI feasible.

Introduction

In clinical settings, the reliability of AI-driven diagnoses is paramount. While foundation models like CLIP have advanced zero-shot capabilities, they often require fine-tuning to excel in specialized medical niches, such as grading retinal diseases or identifying specific histopathological patterns. However, providing a "prediction set"—a group of labels guaranteed to contain the true diagnosis with high probability—remains difficult when data is limited.

The Reliability vs. Adaptation Paradox

Modern medical AI faces a fundamental conflict between adaptation and reliability. To ensure trust, researchers use Conformal Prediction (CP) to generate sets of possible labels. Standard Split Conformal Prediction (SCP) requires a labeled "calibration set" distinct from the training data. In few-shot medical scenarios, using scarce data for adaptation violates the "exchangeability" assumption required for CP calibration. Conversely, using data solely for calibration leaves the model's accuracy suboptimal.

Methodology: Full Conformal Adaptation (FCA)

To resolve this paradox, we propose Full Conformal Adaptation (FCA). Unlike the sequential "train then calibrate" pipeline of SCP, FCA employs a transductive strategy. For each new test instance, the framework evaluates the fit of the image under every possible label hypothesis. By adapting the model for each scenario, FCA preserves the exchangeability required for conformal guarantees even with minimal data.

Comparison of Conformal Prediction frameworks: (a) Split Conformal Prediction (SCP), (b) Full Conformal Prediction (FCP), and (c) the proposed Full Conformal Adaptation (FCA).

SS-Text: Efficient Transductive Adaptation

Transductive methods are traditionally computationally prohibitive, requiring model retraining for every test point and label. We address this with SS-Text (SimpleShot-Textual), a training-free linear probe solver. SS-Text provides a closed-form solution by integrating visual features with textual knowledge from the VLM's prompts. This algebraic approach replaces iterative gradient descent, resulting in a 150x speedup and enabling real-world clinical deployment.

Experimental Evaluation

We validated FCA across nine tasks in three medical modalities:

  • Histology: NCT-CRC, SICAPv2, and SkinCancer.
  • Ophthalmology: MESSIDOR, MMAC, and FIVES.
  • Chest X-rays (CXR): CheXpert, NIH-LT, and COVID-19 detection.

Experiments utilized specialized foundation models: CONCH (histology), FLAIR (retina), and CONVIRT (X-ray).

Key Results

  • Set Efficiency: FCA reduced average prediction set sizes by up to 27% compared to SCP, providing more precise diagnostic boundaries.
  • Computational Speed: The SS-Text solver processed images in approximately 30 milliseconds, a significant improvement over the 2.8 seconds required for gradient-based methods.
  • Guaranteed Coverage: FCA strictly maintained user-specified coverage targets (e.g., 90% or 95% confidence), whereas naive adaptation methods often failed to meet these error rates.
  • Adaptation Impact: Few-shot adaptation (16 shots) improved average accuracy by 16.9 points over zero-shot baselines, underscoring the necessity of task-specific tuning.

Conclusion and Future Work

Full Conformal Adaptation provides a robust pathway for deploying reliable medical VLMs in low-data regimes. By unifying adaptation and calibration through the efficient SS-Text solver, we achieve both high accuracy and mathematically grounded uncertainty. Future research will focus on scaling FCA to high-cardinality label spaces and extending transductive reliability to dense prediction tasks like medical image segmentation.

Code Availability: https://github.com/jusiro/FCA

Summary updated

BibTeX
@inproceedings{silvarodriguez2025full,
  author = {Julio Silva-Rodríguez and Leo Fillioux and Paul-Henry Cournède and Maria Vakalopoulou and Stergios Christodoulidis and Ismail Ben Ayed and Jose Dolz},
  title = {{Full Conformal Adaptation of Medical Vision-Language Models}},
  booktitle = {IPMI},
  year = {2025},
  doi = {10.1007/978-3-031-96625-5\_19},
}
Figure