TRANSMISSION // 2611.28986v1
CLASP looks beyond a model’s final answer to spot unfamiliar medical images
Source published
A zero-shot method called CLASP combines vision-language model responses across selected layers with visual features. Its results vary by imaging shift and model backbone.

A medical AI system can be confidently wrong when an image differs from the data it learned from. CLASP aims to flag such unfamiliar inputs without retraining the vision-language model or using examples of out-of-distribution images.
Medical images vary with scanners, acquisition protocols, patient populations and the conditions being imaged. When an AI system encounters data unlike its usual inputs, its predictions may become unreliable—even if it appears confident. Out-of-distribution (OOD) detection is the task of identifying these unfamiliar cases so they can be treated with caution.
A team of researchers proposes CLASP, a method for OOD detection using medical vision-language models. These models connect images with textual descriptions, such as prompts naming known categories. Many existing approaches use a final-layer confidence score, or select internal layers according to how concentrated their confidence scores are on familiar images. CLASP’s motivating observation is that low confidence-score entropy on familiar, in-distribution (ID) images does not necessarily predict good discrimination of unfamiliar ones.
The central idea is to preserve more of the model’s responses. Rather than keeping only the strongest image-to-text match, CLASP records how each selected visual layer responds to each ID text prompt. It also retains a compact representation of visual features. The researchers argue that these two views can carry complementary signals: prompt responses capture relationships to described concepts, while visual features may reflect image characteristics not well represented by the prompts.
Selecting and combining information
The method first ranks visual encoder layers using Gaussian conditional mutual information, a statistical measure intended to estimate how much information a layer adds beyond information already represented by other features. It then uses an anchored spectral-selection procedure to choose a compact subset, without setting the number of layers in advance. A fixed visual-feature capacity is used in this selection process; the number of layers is not fixed beforehand.
CLASP combines the selected layers’ full layer–prompt response profile with compressed visual embeddings. It fits a single shrinkage-regularized Gaussian model to these combined features using unlabeled ID calibration images. At inference, an image’s squared Mahalanobis distance from that fitted distribution serves as its anomaly score: a larger distance indicates a greater departure from the calibration data.
The visual and text encoders remain frozen. According to the paper, CLASP needs no fine-tuning, external OOD training data or test-time adaptation. The researchers evaluated it with UniMedCLIP and BioMedCLIP on benchmarks involving histopathology, chest X-rays and brain MRI, reporting AUROC and FPR at 95% sensitivity. AUROC summarizes how well a score ranks OOD cases above ID cases; it does not establish that a system is safe for clinical use.
Strong results in some settings, not all
On MIDOG histopathology near-OOD evaluation, CLASP achieved 87.54% AUROC with UniMedCLIP, averaged across the benchmark’s near-OOD domains. It outperformed the confidence-based methods reported in that comparison. But the result depended on the backbone: with BioMedCLIP, CLASP reached 70.63% AUROC, while the visual-only Mahalanobis baseline reached 72.97%. The method therefore did not lead every comparison.
Results also differed by type of shift. CLASP performed strongly on some chest X-ray covariate and far-OOD tests, but semantic shifts—images with unfamiliar disease findings—were more difficult. On brain MRI, the paper reports near-perfect discrimination between its OASIS-3 healthy-image ID set and BraTS-GLI glioma-image OOD set for both backbones. That is a result on this particular benchmark, not evidence of comparable performance across clinical settings.
Ablations help explain the mixed picture. On MIDOG, preserving the complete layer–prompt profile gave 87.54% AUROC, versus 79.75% using layer-wise maximum scores and 80.09% using their mean. On the chest X-ray semantic-shift test, those aggregation methods performed similarly, with the mean marginally higher. Full covariance modeling also outperformed diagonal and identity covariance in the reported ablation, suggesting that relationships among the combined features mattered in those tests.
There is uncertainty even in how the method selects layers. When the researchers repeated calibration with less data, detection scores varied relatively little, but the identities of selected layers changed; the paper reports moderate agreement between selections. Its layer-selection stability checks measure variation within the observed ID calibration sources, not whether the chosen layers are optimal for unseen shifts.
CLASP is therefore best understood as a promising benchmarked approach, not a clinical safeguard. Its performance depends on the model backbone and the kind of distribution shift, and semantic OOD cases remain a challenge. The source is an arXiv preprint, which may not have undergone peer review. The reported results are retrospective benchmark evaluations and do not establish how the method would perform in prospective clinical use.
- out-of-distribution detection
- medical imaging
- vision-language models
- CLASP
- machine learning
Related reading
Automatically matched by shared topic keywords. These links do not imply that the sources agree or establish a consensus.
A confidence check for AI managing computer processors
Source published
Shared keywords: machine learning, out of distribution detection
How SCRA-CLIP Tries to Spot Subtle Image Anomalies
Source published
Shared keywords: medical imaging, vision language models
A rule bank helps revise AI-generated CT reports
Source published
Shared keywords: medical imaging, vision language models
VoluCompose compresses medical scans for AI while preserving benchmark performance
Source published
Shared keywords: medical imaging, vision language models
Teaching medical AI to stop inventing findings can also expose what it misses
Source published
Shared keywords: medical imaging, vision language models