Conformal Prediction for Zero-Shot Models

Julio Silva-Rodríguez, Ismail Ben Ayed, Jose Dolz

Introduction

Large-scale Vision-Language Models (VLMs) like CLIP have revolutionized computer vision through their zero-shot capabilities. However, deploying these models in safety-critical domains—such as autonomous driving or medical diagnostics—requires more than just high accuracy; it requires a rigorous measure of uncertainty. Conformal Prediction (CP) provides a framework for this by generating prediction sets that are guaranteed to contain the true label with a user-specified probability (e.g., 95%).

The Challenge: Domain Gaps and Exchangeability

The mathematical validity of Conformal Prediction relies on the "exchangeability" assumption: the calibration data must be statistically similar to the test data. VLMs are typically pre-trained on massive, opaque internet datasets, creating a significant domain gap when applied to specific downstream tasks like aircraft identification or satellite imagery.

Standard attempts to bridge this gap through fine-tuning or adaptation often inadvertently break the exchangeability assumption. As shown in the coverage density plots, naive adaptation methods can cause the guaranteed coverage to fail, leading to unreliable predictions where the actual coverage drops below the target threshold.

Overview of Conformal Prediction in VLMs and the impact of transfer learning on exchangeability.

Conf-OT: A Training-Free Solution

To address these issues, researchers introduced Conf-OT, a transductive and unsupervised transfer learning strategy. Conf-OT leverages Optimal Transport (OT)—specifically the Sinkhorn algorithm—to align model predictions with the target task's label distribution without altering the underlying model weights.

Key components of the method include:

  • Transductive Inference: The model processes a batch of unlabeled query images alongside a small labeled calibration set, allowing it to capture the structural distribution of the new domain.
  • Label-Marginal Prior: By using the label distribution from the calibration set as a prior, Conf-OT guides the OT process to better map images to relevant text descriptions.
  • Efficiency: Because it operates on raw output scores (logits) rather than performing backpropagation, it remains extremely fast and lightweight.

Experimental Results

The authors evaluated Conf-OT across 15 diverse datasets, ranging from general objects (ImageNet) to fine-grained categories (FGVCAircraft, OxfordPets) and specialized textures (DTD).

Performance comparison of Conf-OT against baseline and state-of-the-art methods across different conformal scores.

As detailed in the performance benchmarks, the method demonstrates three primary advantages:

  1. Set Efficiency: Conf-OT reduces the average size of prediction sets by up to 20%. In CP, smaller sets indicate higher model certainty while maintaining the same statistical guarantee.
  2. Improved Accuracy: The alignment process yields a side-benefit of increasing Top-1 accuracy by 2.6% to 2.9% across various CLIP architectures.
  3. Computational Speed: Conf-OT is approximately 15x faster than existing transductive methods like TIM or TransCLIP. For instance, the overhead on ImageNet is a mere 1.1 seconds.

Conclusion

Conf-OT represents a significant step forward in making zero-shot models reliable for real-world applications. By providing a training-free method to maintain conformal guarantees while improving prediction efficiency, it allows practitioners to deploy powerful VLMs with rigorous statistical confidence. While the method currently relies on batch processing, its ability to bridge domain gaps without expensive fine-tuning makes it a highly practical tool for uncertainty quantification in the wild.

Summary updated

BibTeX
@inproceedings{silvarodriguez2025conformal,
  author = {Julio Silva-Rodríguez and Ismail Ben Ayed and Jose Dolz},
  title = {{Conformal Prediction for Zero-Shot Models}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2025},
  doi = {10.1109/cvpr52734.2025.01856},
}
Figure