CLASP: Complementary Layer Selection and Profiling for Zero-Shot OOD Detection using Vision-Language Models
Saahil Islam, Adarsh Bhandary Panambur, Teodora Spasojevic, Eduardo Castaneda, Andreas Maier
Abstract
Vision-language models (VLMs) enable zero-shot out-of-distribution (OOD) detection in medical imaging, yet existing approaches often rely on final-layer confidence or entropy-based layer selection, potentially missing complementary information. We show that low in-distribution (ID) confidence entropy does not reliably predict OOD discrimination. We introduce CLASP (Complementary Layer Selection and Profiling), an ID-only framework that jointly models layer--prompt responses and visual features. CLASP ranks visual encoder layers using Gaussian conditional mutual information and selects a compact subset through anchored spectral selection, without fixing the number of layers. It then combines the selected layer--prompt profiles with PCA-compressed visual embeddings and fits a single shrinkage-regularized Gaussian. OOD scores are computed using squared Mahalanobis distance, without fine-tuning, OOD training data, or test-time adaptation. Across histopathology, chest X-ray, and brain MRI benchmarks with UniMedCLIP and BioMedCLIP, CLASP performs strongly under varied distribution shifts. On MIDOG near-OOD, it achieves 87.54% AUROC with UniMedCLIP, outperforming confidence-based baselines; with BioMedCLIP, it remains competitive but trails visual-only Mahalanobis modeling. Ablations highlight the value of layer--prompt interactions and cross-feature dependencies, while exposing shift-dependent contributions and limitations under semantic shifts.
Create a lesson
Related papers
Elicitation format changes zero-shot classification accuracy in a medical vision-language model: a two-center evaluation on colorectal histopathology
Shared title terminology · Anay Sinhal, Amit Sinhal, Arpana Sinhal
Diagnosing Verbalized Confidence in a Medical Vision-Language Model for Selective Prediction on Colorectal Histopathology Patches
Shared title terminology · Anay Sinhal, Amit Sinhal, Ashish Pandey et al.
Self-prediction residuals improve single-pass detection of wrong-object boxes in grounded vision-language models
Shared title terminology · Enhao Cui, Junzhi Yang, Yaoshun Lin et al.
Task-Agnostic Incremental Vision-Language Object Detection via Prompt Augmentation and Distribution-Aware Fusion
Shared title terminology · Yonghan Jiang, Zhengyuan Xie, Wenchu Liu et al.
From Pairwise to Collective: Encoder Collections Make Unpaired Vision-Language Alignment Reliable
Shared title terminology · Xuanhua Yin, Shunqi Mao, Chuanzhi Xu et al.
When Fog Becomes a Weapon: Atmospheric Attacks on Visible-Infrared Vision-Language Models
Shared title terminology · Chengyin Hu, Dehe Zhao, Dingyi Lu et al.