Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

MadCLIP: Few-shot Medical Anomaly Detection with CLIP

About

An innovative few-shot anomaly detection approach is presented, leveraging the pre-trained CLIP model for medical data, and adapting it for both image-level anomaly classification (AC) and pixel-level anomaly segmentation (AS). A dual-branch design is proposed to separately capture normal and abnormal features through learnable adapters in the CLIP vision encoder. To improve semantic alignment, learnable text prompts are employed to link visual features. Furthermore, SigLIP loss is applied to effectively handle the many-to-one relationship between images and unpaired text prompts, showcasing its adaptation in the medical field for the first time. Our approach is validated on multiple modalities, demonstrating superior performance over existing methods for AC and AS, in both same-dataset and cross-dataset evaluations. Unlike prior work, it does not rely on synthetic data or memory banks, and an ablation study confirms the contribution of each component. The code is available at https://github.com/mahshid1998/MadCLIP.

Mahshid Shiri, Cigdem Beyan, Vittorio Murino• 2025

Related benchmarks

TaskDatasetResultRank
Anomaly SegmentationRESC
AUC99.45
74
Anomaly ClassificationLiverCT
AUC91.46
72
Anomaly ClassificationRESC
AUC (%)99.11
68
Anomaly ClassificationOCT 17
AUC99.71
54
WSI ClassificationBRACS (test)--
54
Anomaly ClassificationBrainMRI
AUC95.9
47
Anomaly SegmentationLiverCT
AUC99.81
45
Anomaly ClassificationHIS
AUC90.14
40
Anomaly SegmentationBrainMRI
AUC0.9802
39
Image ClassificationCRC (test)
Top-1 Acc89.74
34
Showing 10 of 18 rows

Other info

Code

Follow for update