Prompting Medical Large Vision-Language Models to Diagnose Pathologies by Visual Question Answering

Danfeng Guo, Demetri TerzopoulosarXiv 2024 · DOI

Introduction

Large Vision-Language Models (LVLMs), such as GPT-4V and LLaVA, have demonstrated significant potential in various domains, including medicine. However, their clinical utility is often hampered by two critical issues: hallucination and data imbalance. Hallucination occurs when a model generates diagnoses based on linguistic biases rather than visual evidence. This is worsened by the inherent imbalance in medical datasets, where "normal" cases vastly outnumber specific pathologies, preventing models from learning rare visual signatures.

General architecture of a Large Vision-Language Model (LVLM) processing an image and a text prompt.

Methodology: Prompt Engineering Strategies

To address these challenges without the high cost of fine-tuning, researchers explored three levels of prompt engineering to improve Medical Large Vision-Language Models (MLVLMs):

  1. PT1 (Baseline): A direct query asking if a specific pathology is present in the image (e.g., "Does this image have pneumonia?").
  2. PT2 (Pathology Explanations): The prompt includes a detailed medical definition and key visual features. This provides the model with a "cheat sheet" to anchor its visual analysis in established medical knowledge.
  3. PT3 (Weak Learner Reference): A novel "second opinion" approach. A small, sensitive classifier (ResNet-50) provides a probability score, which is then included in the MLVLM's prompt. The MLVLM acts as the final arbiter, weighing its own analysis against the definition and the weak learner's suggestion.
Illustration of the PT2 (left) and PT3 (right) prompting strategies applied to chest X-ray diagnosis.

Experimental Setup

The strategies were evaluated using LLaVA-Med on two major chest X-ray datasets: MIMIC-CXR-JPG (377,000+ images) and Chexpert (224,000+ images). Additionally, the Polling-based Object Probing Evaluation (POPE) was used to test generalizability on general-domain models like MiniGPT-v2 using the MSCOCO dataset.

Key Results and Insights

The study revealed that providing text-based definitions (PT2) significantly boosted Recall, helping the model connect visual tokens to medical concepts. However, this sometimes increased False Positives. The PT3 strategy (weak learner) served as a corrective filter, improving Precision and overall performance.

  • Diagnostic Performance: On the Chexpert dataset, F1 scores for pathologies like Atelectasis and Edema saw improvements of up to 0.27.
  • Error Reduction: For "Edema," the PT3 strategy reduced False Positives by 78.5% (from 410 to 88 cases).
  • Benchmarking: LLaVA-Med with PT3 outperformed several specialized deep learning models and approached human radiologist performance in certain categories.

Conclusion and Future Directions

The "weak learner" approach demonstrates that even imperfect specialized models can significantly enhance the performance of large, general-purpose models. While these strategies are less effective for extremely scarce data, they offer a robust, fine-tuning-free method to reduce hallucinations. Future research will explore Retrieval-Augmented Generation (RAG) to provide dynamic visual exemplars and multi-agent debate frameworks for more complex diagnostic tasks.

Summary updated

Empirical ResultsBrowse all benchmarks →

BenchmarkMethodMetricScoreProtocol / Evidence
CheXpertLLaVA-Med (PT2)F123.2split: test · prompt=PT2 · category=Edema
Source quote
L242: F1 │ 23.2 │ 42.6
CheXpertLLaVA-Med (PT3)F142.6split: test · prompt=PT3 · category=Edema
Source quote
L242: F1 │ 23.2 │ 42.6
CheXpertLLaVA-Med (PT2)false positive count410 countsplit: test · prompt=PT2 · category=Edema
Source quote
L263: Edema │ 410 │ 88
CheXpertLLaVA-Med (PT3)false positive count88 countsplit: test · prompt=PT3 · category=Edema
Source quote
L263: Edema │ 410 │ 88
POPE · Adversarial (MSCOCOLLaVA with weak-learner referralRecall85.7+6.9 vs baselinesubset=Adversarial · referral=Fast-RCNN weak learner · image-source=MSCOCO
Source quote
L314: with referral │ 88.4 │ 85.7 │ 87.0 │ 92.8 │ 85.7 │ 89.0 │ 97.3 │ 85.7 │ 91.1
Reported baseline / comparator measurements (1)
BenchmarkMethodMetricScoreProtocol / Evidence
POPE · Adversarial (MSCOCOLLaVA baselineRecall78.8subset=Adversarial · referral=none · image-source=MSCOCO
Source quote
L313: LLaVA │ 91.0 │ 78.8 │ 84.5 │ 95.2 │ 78.8 │ 86.2 │ 97.4 │ 78.8 │ 87.1
BibTeX
@misc{guo2024prompting,
  author = {Danfeng Guo and Demetri Terzopoulos},
  title = {{Prompting Medical Large Vision-Language Models to Diagnose Pathologies by Visual Question Answering}},
  year = {2024},
  eprint = {2407.21368},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2407.21368},
}
Figure