Adapting Visual-Language Models for Generalizable Anomaly Detection in Medical Images

Chaoqin Huang, Aofan Jiang, Jinghao Feng, Ya Zhang, Xinchao Wang +1 more
2/9/2026

No official code found. Best implementation: MediaBrain-SJTU/MVFA-AD (249 stars, MIT, last commit 2024-04-06).

Abstract

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

View on arXivView PDF

Code Implementations(1)

MIT

[CVPR2024 Highlight] Adapting Visual-Language Models for Generalizable Anomaly Detection in Medical Images

24928PythonMar 8, 20242 years agoMIT

Similar Papers

Cite this paper

@article{huang2026adapting,
  title  = {Adapting Visual-Language Models for Generalizable Anomaly Detection in Medical Images},
  author = {Chaoqin Huang and Aofan Jiang and Jinghao Feng and Ya Zhang and Xinchao Wang and Yanfeng Wang},
  year   = {2026},
  eprint = {2403.12570},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/pdf/2403.12570},
  journal = {CVPR 2024 2024}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2403.12570.svg)](https://codeofpaper.com/paper/2403.12570)

Discussion