XrayGPT: Chest Radiographs Summarization using Large Medical Vision-Language Models

Omkar Thawakar, Abdelrahman M. Shaker, Sahal Shaji Mullappilly, Hisham Cholakkal, Rao Muhammad Anwer, Salman H. Khan, Jorma Laaksonen, Fahad Khan

Abstract

XrayGPT is a novel conversational vision-language model (VLM) designed specifically to analyze chest radiographs and answer open-ended clinical questions. By aligning a specialized medical visual encoder with a fine-tuned Large Language Model (LLM), the system generates high-quality summaries and engages in multi-turn dialogues about X-ray findings. Evaluation shows over 70% scientific accuracy as rated by medical professionals, significantly outperforming general-purpose VLMs.

Introduction

While general-purpose vision-language models like GPT-4 have shown impressive reasoning capabilities, they often struggle in specialized medical domains. The primary hurdles include the scarcity of medical image-text pairs and the need for extreme precision to distinguish between subtle clinical findings, such as differentiating pneumonia from pleural effusion. XrayGPT addresses these challenges by providing a system that can "see" an X-ray and discuss findings, impressions, and potential treatments in a natural, interactive manner.

Methodology

The researchers developed XrayGPT using a modular architecture designed for domain-specific alignment. The system consists of three main components:

  1. Visual Encoder: A frozen MedClip encoder, specialized for medical imagery, extracts features from chest X-rays.
  2. Linear Transformation Layer: A learnable bridge that maps visual features into the embedding space of the language model.
  3. Language Backbone: A Vicuna LLM, fine-tuned on 120,000 medical conversations (from the ChatDoctor dataset) to ensure clinical linguistic proficiency.
The modular architecture of XrayGPT, illustrating the flow from a chest X-ray image through a frozen medical VLM and a learnable linear transformation layer into a frozen medical LLM.

Training was conducted in two stages: initial pre-training of the projection layer on 213,000 image-text pairs from the MIMIC-CXR dataset, followed by fine-tuning on a high-quality set of 3,000 pairs from the OpenI dataset. A key innovation was the use of GPT-3.5-turbo to clean and restructure raw radiology reports into a conversational format, providing a higher-quality signal for model alignment.

Key Results and Insights

XrayGPT demonstrated a significant performance leap over general-purpose baselines. Quantitatively, the model achieved a ROUGE-1 score of 0.3213 on the MIMIC-CXR test set, representing a 19% absolute improvement over Mini-GPT4. In comparative evaluations, ChatGPT preferred XrayGPT’s responses 82% of the time.

A qualitative example of XrayGPT engaging in a multi-turn clinical dialogue, identifying metastatic lung nodules and hyperinflation from a chest X-ray.

Expert validation by certified medical doctors further confirmed the model's utility, with over 70% of responses rated as scientifically accurate. The average quality score was 4 out of 5, highlighting the effectiveness of using domain-specific backbones and high-quality curated data.

Conclusion and Future Work

Despite its strong performance, XrayGPT faces limitations, including a viewpoint bias toward frontal X-rays and a level of reliability that is not yet sufficient for autonomous clinical use. Future research will focus on expanding the model to support multiple imaging modalities (such as CT or MRI) and improving its ability to reason across multiple views of the same patient to provide more comprehensive clinical decision support.

Summary updated

BibTeX
@inproceedings{thawakar2024xraygpt,
  author = {Omkar Thawakar and Abdelrahman M. Shaker and Sahal Shaji Mullappilly and Hisham Cholakkal and Rao Muhammad Anwer and Salman H. Khan and Jorma Laaksonen and Fahad Khan},
  title = {{XrayGPT: Chest Radiographs Summarization using Large Medical Vision-Language Models}},
  booktitle = {BioNLP @ ACL},
  year = {2024},
  doi = {10.18653/v1/2024.bionlp-1.35},
}
Figure