[Paper Review] Adapting Visual-Language Models for Generalizable Anomaly Detection in Medical Images
This paper proposes a lightweight multi-level adaptation framework to repurpose the CLIP model for zero- and few-shot medical anomaly detection across diverse imaging modalities and anatomical regions. By integrating residual adapters at multiple encoder layers and guiding them with pixel-wise visual-language alignment losses, the method enhances feature discrimination for anomalies, achieving state-of-the-art performance with a 6.24% average AUC gain in anomaly classification and 2.03% in segmentation under zero-shot settings.
Recent advancements in large-scale visual-language pre-trained models have led to significant progress in zero-/few-shot anomaly detection within natural image domains. However, the substantial domain divergence between natural and medical images limits the effectiveness of these methodologies in medical anomaly detection. This paper introduces a novel lightweight multi-level adaptation and comparison framework to repurpose the CLIP model for medical anomaly detection. Our approach integrates multiple residual adapters into the pre-trained visual encoder, enabling a stepwise enhancement of visual features across different levels. This multi-level adaptation is guided by multi-level, pixel-wise visual-language feature alignment loss functions, which recalibrate the model's focus from object semantics in natural imagery to anomaly identification in medical images. The adapted features exhibit improved generalization across various medical data types, even in zero-shot scenarios where the model encounters unseen medical modalities and anatomical regions during training. Our experiments on medical anomaly detection benchmarks demonstrate that our method significantly surpasses current state-of-the-art models, with an average AUC improvement of 6.24% and 7.33% for anomaly classification, 2.03% and 2.37% for anomaly segmentation, under the zero-shot and few-shot settings, respectively. Source code is available at: https://github.com/MediaBrain-SJTU/MVFA-AD
Motivation & Objective
- To address the domain gap between natural images and medical images that limits the transferability of pre-trained visual-language models (VLMs) like CLIP to medical anomaly detection (AD).
- To enable zero- and few-shot generalization across unseen medical modalities and anatomical regions without retraining from scratch.
- To improve feature representation for anomaly detection by shifting the model's focus from object semantics to pixel-level irregularity detection.
- To develop a lightweight, adaptable framework that enhances CLIP’s generalization through multi-level feature adaptation and visual-language alignment.
Proposed method
- Introduces a multi-level visual feature adaptation architecture by inserting residual adapters into multiple layers of the pre-trained CLIP visual encoder.
- Guides adaptation using multi-level, pixel-wise visual-language feature alignment loss functions that align image and text embeddings at different feature hierarchy levels.
- Uses text prompts such as 'normal' and 'anomalous' to guide the model in learning anomaly-sensitive representations rather than semantic object recognition.
- Performs anomaly detection via comparison between adapted visual features and text prompt features, optionally incorporating reference image features for improved localization.
- Employs feature ensemble strategies across multiple layers to combine multi-level representations, enhancing discriminative power.
- Utilizes t-SNE visualization to demonstrate improved separation between normal and abnormal samples after adaptation.
Experimental results
Research questions
- RQ1Can pre-trained visual-language models like CLIP be effectively adapted for zero- and few-shot anomaly detection in medical images despite the domain shift from natural to medical imagery?
- RQ2How does multi-level feature adaptation across different layers of the visual encoder improve generalization across diverse medical modalities and anatomical regions?
- RQ3To what extent does pixel-wise visual-language alignment loss enhance the model’s ability to detect subtle anomalies at the pixel level?
- RQ4Does combining features from multiple network layers outperform single-layer adaptation in anomaly detection performance?
- RQ5How does the proposed method compare to existing state-of-the-art approaches in both anomaly classification and segmentation under zero- and few-shot settings?
Key findings
- The proposed MVFA-AD framework achieves a 6.24% average AUC improvement in anomaly classification and a 2.03% improvement in anomaly segmentation under zero-shot settings compared to state-of-the-art methods.
- In few-shot settings, the method achieves a 7.33% average AUC gain in classification and a 2.37% gain in segmentation, demonstrating strong few-shot generalization.
- The multi-level adapter ensemble outperforms single-layer adaptation, achieving 88.97% AUC in classification and 98.67% in segmentation, surpassing the best single-layer result of 88.84% and 98.62%.
- t-SNE visualization confirms that adapted features exhibit better separation between normal and abnormal samples, indicating improved decision boundary learning.
- Visualizations of anomaly segmentation show that MVFA produces more accurate and precise masks than the SOTA method April-GAN, especially in complex regions like retinal OCT and brain MRI.
- The ablation study confirms that multi-level training consistently outperforms single-layer training, validating the effectiveness of hierarchical feature adaptation.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.