Localized Conformal Prediction for Image Classification with Vision-Language Models

TL;DR

Localized Conformal Prediction (LCP) combined with vision-language models and nonlinear cosine similarity transformation reduces average prediction set size while maintaining coverage.

cs.CV 🔴 Advanced 2026-06-30 38 views
Clément Fuchs Tim Bary Benoît Macq
uncertainty quantification conformal prediction vision-language models local methods image classification

Key Findings

Methodology

This work builds on recent localized conformal prediction algorithms, integrating features from CLIP-like vision-language models. The core process involves computing conformal scores and visual features, then applying a nonlinear sigmoid transformation to cosine similarities to weight calibration samples. Hyperparameters (m, τ) are tuned via cross-validation to optimize set efficiency. The weighted empirical distribution guides the construction of test-specific prediction sets, ensuring marginal coverage guarantees. Experiments across nine datasets compare traditional and transformed similarity-based weighting, assessing conformal scores like LAC, APS, and RAPS with models such as ViT and ResNet.

Key Results

  • Applying the nonlinear transformation consistently reduces mean set sizes across all datasets, with improvements up to 15%. For example, in UCF101 with ViT-B/16, the average set size decreased from 4.80 to 3.44 (p<0.01). EuroSAT's RAPS score saw a reduction from 1.65 to 1.29, indicating significant efficiency gains. The results demonstrate that the transformation enhances local weighting effectiveness without compromising coverage, validated by statistical tests. The approach is robust across models and datasets, confirming its broad applicability.
  • The study shows that naive cosine similarity weighting fails to improve efficiency and can even increase set sizes. The nonlinear sigmoid transformation effectively addresses this, leading to statistically significant reductions. While coverage metrics like CovGap remain stable, the MCCC metric improves in some cases, indicating better class-conditional coverage control. Overall, the method balances efficiency and reliability, advancing the practical deployment of conformal prediction in complex visual tasks.
  • The experiments validate that the nonlinear cosine similarity transformation is a key innovation, enabling localized conformal prediction to outperform non-local baselines. The approach's consistency across diverse datasets and models underscores its potential as a general technique for uncertainty quantification in vision tasks. The findings suggest promising directions for integrating multi-modal features and adaptive hyperparameter tuning to further enhance model reliability and efficiency.

Significance

This research advances the application of conformal prediction in high-dimensional visual tasks by effectively leveraging deep features from vision-language models. The nonlinear similarity adjustment addresses a critical bottleneck—balancing prediction set size and coverage—making uncertainty quantification more practical for real-world deployment. Its broad validation across datasets and models demonstrates robustness, paving the way for safer AI systems in autonomous driving, medical diagnostics, and industrial automation. The method's ability to produce smaller, more informative prediction sets without sacrificing reliability marks a significant step forward in trustworthy AI development.

Technical Contribution

The main technical innovation is the introduction of a nonlinear sigmoid transformation of cosine similarities within the localized conformal prediction framework, ensuring marginal coverage while reducing set sizes. This approach extends the classical CP methodology by incorporating deep feature representations and local weighting, providing theoretical guarantees and empirical validation. The work systematically compares multiple conformal scores and models, establishing the transformation's generality. It also offers a practical hyperparameter tuning procedure via cross-validation, facilitating adaptation to various datasets and architectures.

Novelty

This study is the first to incorporate a nonlinear sigmoid transformation of cosine similarity into localized conformal prediction for image classification. Unlike prior works that relied on linear or fixed similarity measures, this approach dynamically adjusts the influence of calibration samples based on feature similarity, significantly improving efficiency. The integration with vision-language models like CLIP and the comprehensive benchmarking across diverse datasets and conformal scores further distinguish its novelty. It bridges the gap between deep feature representations and rigorous uncertainty quantification, opening new research avenues.

Limitations

  • The effectiveness depends heavily on the quality of deep features; poor feature extraction reduces the benefit of the nonlinear transformation. Hyperparameter tuning adds computational overhead, especially in large-scale settings.
  • In highly imbalanced datasets or noisy feature spaces, local weighting may be less reliable, potentially leading to suboptimal set sizes or coverage deviations.
  • The increased computational complexity limits real-time deployment, particularly for large datasets or high-dimensional features, necessitating further optimization.

Future Work

Future directions include exploring multi-modal feature fusion to enhance local similarity measures, integrating self-supervised learning for more robust feature representations, and developing adaptive hyperparameter tuning methods. Additionally, efforts to optimize computational efficiency—such as approximate nearest neighbor search—will facilitate real-time applications. Extending the framework to other tasks like object detection and segmentation, and investigating active learning strategies for calibration set construction, are promising avenues to broaden the impact of localized conformal prediction.

AI Executive Summary

In the rapidly evolving field of computer vision, deep learning models have achieved remarkable accuracy but often lack reliable uncertainty estimates. Traditional conformal prediction (CP) methods guarantee marginal coverage but fall short in capturing local distributional nuances, leading to inconsistent performance across subpopulations. Addressing this, the paper introduces a localized conformal prediction (LCP) framework that leverages deep features from vision-language models like CLIP to adapt prediction sets based on local similarity. The key innovation lies in applying a nonlinear sigmoid transformation to cosine similarities, which effectively weights calibration samples, balancing the trade-off between prediction set size and coverage.

Extensive experiments across nine diverse image classification datasets demonstrate that this approach significantly reduces average set sizes—up to 15%—without compromising coverage guarantees. For instance, in UCF101 with ViT-B/16, the average set size decreased from 4.80 to 3.44, a statistically significant improvement. The method's robustness is validated across multiple conformal scores (LAC, APS, RAPS) and model architectures, confirming its broad applicability.

The significance of this work extends beyond technical novelty; it provides a practical pathway for deploying trustworthy AI in safety-critical domains such as autonomous vehicles and medical diagnostics. By intelligently adjusting the influence of local features, the approach enhances the efficiency of uncertainty quantification, making models more reliable and interpretable. While computational costs and feature dependence pose challenges, ongoing research aims to optimize these aspects, promising a future where AI systems can deliver precise, reliable predictions in complex real-world scenarios.

Deep Dive

Abstract

Conformal predictions have attracted significant attention in the field of uncertainty quantification, mainly because of their strong marginal coverage guarantees. Full conditional guarantee is not an attainable goal, a well known fact in conformal predictions literature. As a result, several approaches have tried to approximate this behavior by adapting the conformal sets of test-time samples according to their similarity to calibration examples. Although the latter has gained traction and shown impressive performances for regression problems, its application to image classification remains under-explored. We conduct an extensive benchmarking on natural image classification tasks with vision-language models (VLMs), using our open source implementation of a recent localized conformal prediction algorithm. We show that straightforward usage of the cosine similarity between test-time and calibration visual features, an intuitive choice for VLMs, is not sufficient to improve over the non-local baselines. In response, we propose a simple non-linear transformation of the cosine similarities, which conserves marginal coverage guarantees and achieves statistically significant mean set sizes reduction. Code is available at https://github.com/cfuchs2023/lcp-vlm/.

cs.CV cs.LG