cs.CVNov 21, 2026

CLASP: Complementary Layer Selection and Profiling for Zero-Shot OOD Detection using Vision-Language Models

Authors: Saahil Islam, Adarsh Bhandary Panambur, Teodora Spasojevic, Eduardo Castaneda, Andreas Maier

Organizations: Pattern Recognition Lab, Friedrich-Alexander-Universität Erlangen-Nürnberg · Artificial Intelligence in Biomedical Engineering, Friedrich-Alexander-Universität Erlangen-Nürnberg · Siemens Healthineers, Erlangen, Germany

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.

Figures & tables

Explore similar work

CardsList
  1. Layer Selection in VLMs for Zero-Shot OOD Detection via Multi-Resolution Entropy Estimation

    Sep 8, 2026Shyam Nandan Rai, Francesco Di Salvo, Sebastian Doerrich +1Vision-Language ModelsMedical VLMs

  2. PROTON: Prototype-Based Test-Time Online OOD Detection for Medical VLMs

    Jun 18, 2026Abhijit Das, Nichula Wasalathilaka, Yifan Lu +4Medical VLMsOOD Detection

  3. TCLA: Training-Free Class-wise Logit Adaptation for Medical Vision-Language Models

    Jul 10, 2026Tianyou Jiang, Ziyu ZhouFew-Shot Domain AdaptationLogit Adjustment