Visual Prompt Engineering for Vision Language Models in Radiology

Stefan Denner, Markus Bujotzek, Dimitrios Bounias, David Zimmerer, Raphael Stock +1 more
8/28/2024
cs.CV

Official code: MIC-DKFZ/VPE-in-Radiology (1 star, Apache-2.0, last commit 2025-06-10).

Abstract

Medical image classification plays a crucial role in clinical decision-making, yet most models are constrained to a fixed set of predefined classes, limiting their adaptability to new conditions. Contrastive Language-Image Pretraining (CLIP) offers a promising solution by enabling zero-shot classification through multimodal large-scale pretraining. However, while CLIP effectively captures global image content, radiology requires a more localized focus on specific pathology regions to enhance both interpretability and diagnostic accuracy. To address this, we explore the potential of incorporating visual cues into zero-shot classification, embedding visual markers, such as arrows, bounding boxes, and circles, directly into radiological images to guide model attention. Evaluating across four public chest X-ray datasets, we demonstrate that visual markers improve AUROC by up to 0.185, highlighting their effectiveness in enhancing classification performance. Furthermore, attention map analysis confirms that visual cues help models focus on clinically relevant areas, leading to more interpretable predictions.To support further research, we use public datasets and provide our codebase and preprocessing pipeline under https://github.com/MIC-DKFZ/VPE-in-Radiology, serving as a reference point for future work on localized classification in medical imaging.

View on arXivView PDF

Code Implementations(1)

Apache-2.0
10Shell, PythonJun 10, 20251 years agoApache-2.0

Similar Papers

Cite this paper

@article{denner2024visual,
  title  = {Visual Prompt Engineering for Vision Language Models in Radiology},
  author = {Stefan Denner and Markus Bujotzek and Dimitrios Bounias and David Zimmerer and Raphael Stock and Klaus Maier-Hein},
  year   = {2024},
  eprint = {2408.15802},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2408.15802v3}
}

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/2408.15802.svg)](https://codeofpaper.com/paper/2408.15802)

Discussion