Chest-Diffusion: A Light-Weight Text-to-Image Model for Report-to-CXR Generation

Yi Guo, Peng Huang, Xue Gao, Lihong Huang, Jing Jiao, Xiaokang Li, Yuanyuan Wang, Yi Guo 0002ISBI 2024

TL;DR

This paper introduces Chest-Diffusion, a novel, lightweight diffusion model for generating realistic Chest X-ray (CXR) images from medical reports. By employing a domain-specific CLIP text encoder and a transformer-based denoising architecture, Chest-Diffusion achieves state-of-the-art results in image realism and text-image alignment while significantly reducing computational complexity compared to existing methods.

What Problem Does This Paper Address?

Generating realistic medical images from textual descriptions is a challenging but crucial task for various applications, including medical education and data augmentation. While text-to-image models like Stable Diffusion (SD) have shown great promise, adapting them to the medical domain, specifically for Chest X-ray (CXR) generation from radiology reports, faces several hurdles. Medical reports use specialized vocabulary and have a different structure than natural language, leading to suboptimal performance when using standard pre-trained text encoders. Furthermore, the high computational cost of existing diffusion models limits their practical applicability. This paper aims to address these limitations by developing a more efficient and domain-adapted text-to-image generation model for CXRs.

Methods

The proposed Chest-Diffusion model consists of three main components:

  1. Domain-Specific CLIP Text Encoder: To better capture the nuances of medical reports, the authors adapt a pre-trained CLIP model called BiomedCLIP. This model is further fine-tuned on their dataset to learn a joint multi-modal embedding space for reports and CXRs, ensuring more representative and accurate textual features for guiding image generation.
  2. Pretrained Autoencoder: The diffusion process is applied in the latent space of CXRs. The authors leverage the autoencoder component from a pre-trained SD model, keeping it frozen. This autoencoder is responsible for encoding real CXRs into a latent representation and decoding generated latent representations back into CXR images.
  3. Light-Weight Transformer-Based Denoising Model: To reduce computational complexity, the authors adapt the Vision Transformer (ViT)-based architecture, specifically U-ViT. This model is designed to process noisy image representations, textual guidance, and temporal information simultaneously as tokens, reconstructing the clean image representation. The U-ViT architecture is augmented to handle the longer sequences typical of medical reports.

Datasets

  • MIMIC-CXR: This is the primary dataset used for training and evaluation. It comprises 377,110 chest X-ray images and 227,835 associated reports. The authors used a split of 70% for training, 10% for validation, and 20% for testing. Only anterior-posterior (AP) and posterior-anterior (PA) scans were considered, and duplicates were removed. The images were resized to 256x256.

Key Insights and Ideas

  • Domain Adaptation is Crucial: Directly applying models trained on natural language to medical reports leads to performance degradation. A domain-specific text encoder (like the fine-tuned BiomedCLIP) is essential for capturing the unique characteristics of medical text.
  • Transformer Efficiency: Adapting a transformer-based architecture (U-ViT) for the denoising process, rather than relying on the convolutional structures of SD, significantly reduces computational complexity and parameter count.
  • Latent Space Diffusion: Performing diffusion in the latent space of a pretrained autoencoder is an effective strategy for generating high-resolution medical images while managing computational resources.
  • Balancing Realism and Efficiency: Chest-Diffusion demonstrates that it's possible to achieve state-of-the-art image realism (low FID) and strong text-image alignment (high AUROC) without the prohibitive computational cost of larger models.

Key Results

  • Image Realism: Chest-Diffusion achieved the lowest FID score of 24.456, outperforming existing methods like RoentGen (56.499) and LLM-CXR (29.270).
  • Computational Complexity: The model operates with a computational budget of 118.918 GFLOPS, which is nearly one-third of the complexity of SD. Inference time per image is significantly faster, being 2.8 times faster than RoentGen and 5.4 times faster than LLM-CXR.
  • Vision-Language Alignment: Chest-Diffusion achieved an average AUROC score of 0.658, outperforming RoentGen (0.556) and LLM-CXR (0.628). The model consistently showed higher AUROC scores for nine specific diseases.
  • Qualitative Results: The generated CXRs are visually realistic and accurately reflect the descriptions in the input reports, including varying degrees of severity and specific lesions (as shown in Figure 2).

Limitations and Future Work

  • Limitations: The paper focuses on CXR generation. While the approach is promising, its direct applicability to other medical imaging modalities might require further investigation. The computational complexity, while reduced, is still a factor in large-scale deployments.
  • Future Work: The authors suggest that their Chest-Diffusion framework could be beneficial for primary medical education. Further research could explore extending this model to other medical imaging tasks or improving its ability to handle more complex and nuanced medical reports.

Summary updated

BibTeX
@inproceedings{guo2024chest,
  author = {Yi Guo and Peng Huang and Xue Gao and Lihong Huang and Jing Jiao and Xiaokang Li and Yuanyuan Wang and Yi Guo},
  title = {{Chest-Diffusion: A Light-Weight Text-to-Image Model for Report-to-CXR Generation}},
  booktitle = {ISBI},
  year = {2024},
  doi = {10.1109/isbi56570.2024.10635417},
}
Figure