Abstract
Large-scale vision-language models (VLMs) like CLIP have revolutionized zero-shot classification, yet their deployment in safety-critical domains is hindered by a lack of rigorous uncertainty quantification. Conformal Prediction (CP) offers a solution by providing statistical coverage guarantees, but its efficiency degrades significantly under the domain drift common in zero-shot applications. This paper introduces Conf-OT, a transductive Optimal Transport strategy that aligns model predictions with downstream task distributions. Conf-OT reduces prediction set sizes by up to 20% while maintaining valid coverage, offering a lightweight and mathematically sound bridge between foundation models and reliable decision-making.
Introduction
Vision-Language Models (VLMs) are increasingly used for their ability to generalize to unseen categories. However, in high-stakes environments like autonomous driving or medical diagnostics, a "best guess" is insufficient. We require models that can quantify their own uncertainty. Conformal Prediction (CP) addresses this by generating a prediction set—a collection of labels guaranteed to contain the ground truth with a user-specified probability (e.g., 95%).
The primary hurdle for CP in zero-shot settings is the exchangeability assumption. Standard CP assumes that calibration data and test data are drawn from the same distribution. Because VLMs are pre-trained on massive web-scale datasets and then applied to specific downstream tasks, this assumption is often violated. This "domain drift" leads to inefficient, overly large prediction sets or, if naive adaptation is attempted, a total breakdown of statistical guarantees.
The Conf-OT Framework
To address these challenges, the authors propose Conf-OT, a method that performs unsupervised transfer learning through a transductive lens. Unlike traditional adaptation methods that modify model weights—often breaking exchangeability—Conf-OT adapts the predictions themselves.
Methodology
Conf-OT operates on three core principles:
- Transductive Alignment: The method processes calibration data and a batch of query images simultaneously. By looking at the distribution of the current test batch, it can better align the model's internal representations with the target task.
- Optimal Transport (OT): The core mechanism involves solving an OT problem to map raw model logits to optimized "codes." These codes are constrained to respect the label-marginal distribution (class frequencies) estimated from the calibration set.
- Efficient Computation: To ensure real-time applicability, the method utilizes the iterative Sinkhorn-Knopp algorithm. This allows for rapid alignment without the need for expensive backpropagation or GPU-heavy fine-tuning.
By treating the calibration and test data as a joint optimal transport problem, Conf-OT bridges the domain gap while preserving the mathematical validity of the conformal framework.
Experimental Results
The authors evaluated Conf-OT across a diverse benchmark of 15 datasets, ranging from general object recognition (ImageNet) to fine-grained classification (FGVCAircraft, OxfordPets) and specialized domains (EuroSAT, DTD).
Key Findings
- Enhanced Efficiency: Conf-OT consistently produces smaller, more informative prediction sets. Compared to standard conformal methods, it achieves up to a 20% reduction in average set size.
- Computational Speed: The method is remarkably lightweight, running approximately 15x faster than competing transductive baselines like TIM or TransCLIP. On ImageNet, the overhead is negligible (approx. 1.1 seconds on a CPU).
- Accuracy Side-Effect: While designed for uncertainty quantification, the OT alignment also improves discriminative performance, yielding a 2.6% to 2.9% boost in Top-1 accuracy across various CLIP backbones.
- Robustness: The framework remains effective even with limited calibration data (as low as 10%) and small test batches, making it highly practical for real-world deployment.
Discussion and Insights
A critical insight from this work is that accuracy does not equal conformal efficiency. Simply making a model more accurate does not guarantee tighter prediction sets. Conf-OT succeeds because it specifically optimizes the distribution of scores used by the conformal predictor. Furthermore, the authors demonstrate that while naive fine-tuning on calibration data "breaks" exchangeability (leading to under-coverage), the transductive OT approach maintains the required statistical properties by adapting the score mapping rather than the model's underlying parameters.
Conclusion and Future Work
Conf-OT represents a significant step toward making foundation models reliable for safety-critical tasks. By leveraging Optimal Transport to mitigate domain drift, it provides a path to efficient and guaranteed uncertainty quantification in zero-shot settings. Future research may extend this transductive approach to other modalities, such as Large Language Models (LLMs) or multi-modal medical systems, and explore strategies for non-stationary environments where data distributions shift continuously over time.
Summary updated