Contrastive Language Prompting to Ease False Positives in Medical Anomaly Detection
YeongHyeon Park, Myung Jin Kim, Hyeong Seok Kim
TL;DR
This work tackles the challenge of false positives in medical anomaly detection with general-purpose visual-language models. It introduces Contrastive Language Prompting (CLAP), which uses positive prompts to guide attention toward potential lesions and negative prompts to suppress normal regions, producing an attention map $A_{CLAP} = A_{positive} - A_{negative}$. The approach is paired with a reconstruction-by-inpainting unsupervised anomaly detector that obfuscates high-attention regions and evaluates reconstruction error via MSGMS to decide disease presence. Experiments on the BMAD dataset show CLAP improves anomaly detection across multiple anatomies and outperforms baselines like DINO and PLP, with particular strength on small or irregular lesions; future work includes automating language-prompt generation for practical clinical deployment.
Abstract
A pre-trained visual-language model, contrastive language-image pre-training (CLIP), successfully accomplishes various downstream tasks with text prompts, such as finding images or localizing regions within the image. Despite CLIP's strong multi-modal data capabilities, it remains limited in specialized environments, such as medical applications. For this purpose, many CLIP variants-i.e., BioMedCLIP, and MedCLIP-SAMv2-have emerged, but false positives related to normal regions persist. Thus, we aim to present a simple yet important goal of reducing false positives in medical anomaly detection. We introduce a Contrastive LAnguage Prompting (CLAP) method that leverages both positive and negative text prompts. This straightforward approach identifies potential lesion regions by visual attention to the positive prompts in the given image. To reduce false positives, we attenuate attention on normal regions using negative prompts. Extensive experiments with the BMAD dataset, including six biomedical benchmarks, demonstrate that CLAP method enhances anomaly detection performance. Our future plans include developing an automated fine prompting method for more practical usage.
