Bridging Vision Foundation Model Priors with CLIP for Spatial-aware Few-shot Anomaly Detection in Medical Images
Abstract
Vision-Language Models such as CLIP enable effective few-shot medical anomaly detection (AD) via strong image-text semantic alignment. However, their globally contrastive pretraining lacks explicit spatial supervision, limiting precise lesion localization. In contrast, Vision Foundation Models (VFMs) such as DINO learn spatially coherent patch representations via self-distillation and local-to-global consistency, better capturing fine-grained anatomical structures. Leveraging this complementarity, we propose Spatial-FAD, a spatial-aware few-shot medical AD framework that improves lesion localization by combining VFM spatial priors with CLIP semantics. Specifically, we introduce a VFM-enhanced adapter that injects a structural affinity prior derived from DINO into CLIP features. This structure-guided refinement encourages visual embeddings to better adhere to lesion boundaries while maintaining semantic alignment. To address the loss of spatial detail from patchification and the limited input resolution of CLIP, we adopt a sliding-window aggregation strategy. This generates high-resolution, spatially dense embeddings to further enhance localization granularity. Moreover, we introduce a prototype-enhanced support memory scheme to efficiently exploit the few-shot support set. This module stores compact prototypes for normal and abnormal patterns, reducing memory costs while boosting performance by fusing patch-to-prototype and image-text similarities. Extensive experiments on three benchmark datasets, including Liver CT, Retinal OCT, and Brain MRI, demonstrate that Spatial-FAD significantly outperforms state-of-the-art methods, especially in lesion segmentation. Notably, in the 4-shot scenario, our method achieves an average improvement of over 11.4% in Dice score and 1.8% in AUC. Code is available at: https://github.com/JuzhengMiao/Spatial-FAD.
Create a lesson
Metadata
- Categories
- cs.CV, cs.AI, cs.LG
- Comments
- Accepted by MICCAI 2026
Related papers
Zero-shot video highlight detection based on text descriptions and synthetic images
Shared title terminologycs.CVMichal Byra, Alberto Presta, Grzegorz Stefanski et al.
Bridging the Synthetic-to-Real Gap for Few-Shot Cryo-ET Classification
Shared title terminologycs.CVSiddhant Bharadwaj, Ashish Vashist, Rashi Singh et al.
ProtoCAM: Interpretable Few-Shot Mask-Guided Prototypical Learning for Breast Lesion Classification in Ultrasound Imaging
Shared title terminologycs.CVAshkan Ebadi
MC-DeTra: Motion-Consistent Joint Object Detection and Socially-Aware Trajectory Forecasting in Bird's-Eye-View Images
Shared title terminologycs.CVVladislav Diuzhev, Dmitry Yudin
Your Model Already Knows Don't Teach It, Learn to Ask It: Soft Prompting for Few-Shot Adaptation of Vision-Language Models
Shared title terminologycs.CVGautam Rajendrakumar Gare, Siyi Li, Hewei Wang et al.
DocDUR-Net: Degradation-Aware Unified Document Image Restoration
Shared title terminologycs.CVHaowei Xu, Peirong Zhang, Xuhan Zheng et al.