[Paper Review] Adapting Pretrained Vision-Language Foundational Models to Medical Imaging Domains
The paper investigates adapting Stable Diffusion for chest X-ray generation by analyzing and fine-tuning its VAE, U-Net, and CLIP text encoder to produce medically accurate synthetic CXRs, including controllable abnormalities.
Multi-modal foundation models are typically trained on millions of pairs of natural images and text captions, frequently obtained through web-crawling approaches. Although such models depict excellent generative capabilities, they do not typically generalize well to specific domains such as medical images that have fundamentally shifted distributions compared to natural images. Building generative models for medical images that faithfully depict clinical context may help alleviate the paucity of healthcare datasets. Thus, in this study, we seek to research and expand the representational capabilities of large pretrained foundation models to medical concepts, specifically for leveraging the Stable Diffusion model to generate domain specific images found in medical imaging. We explore the sub-components of the Stable Diffusion pipeline (the variational autoencoder, the U-Net and the text-encoder) to fine-tune the model to generate medical images. We benchmark the efficacy of these efforts using quantitative image quality metrics and qualitative radiologist-driven evaluations that accurately represent the clinical content of conditional text prompts. Our best-performing model improves upon the stable diffusion baseline and can be conditioned to insert a realistic-looking abnormality on a synthetic radiology image, while maintaining a 95% accuracy on a classifier trained to detect the abnormality.
Motivation & Objective
- Assess whether the Stable Diffusion VAE preserves radiologic features without domain-specific fine-tuning.
- Evaluate the CLIP text encoder and potential in-domain text encoders for medical prompting.
- Explore strategies to improve domain alignment: textual projection, textual inversion, and U-Net fine-tuning.
- Demonstrate capability to insert clinically relevant abnormalities into synthetic CXRs while preserving diagnostic content.
- Quantitatively and qualitatively validate image quality and clinical relevance with radiologist review and downstream classifiers.
Proposed method
- Use chest X-ray datasets (CheXpert, MIMIC-CXR) and a million LAION-400M prompts for training signals.
- Decompose Stable Diffusion into VAE, U-Net, and text encoder to test in-domain capabilities.
- Evaluate VAE reconstruction quality using RMSE, PSNR, SSIM, and Fréchet Inception Distance (FID).
- Assess multiple text encoders (including CLIP and domain-specific BERT variants) and extract embeddings with various methods (CLS token, mean, pooler).
- Experiment with textual projection to map in-domain text embeddings to CLIP latent space.
- Apply Textual Inversion to learn new domain-specific tokens (e.g., pleural effusion) in a few-shot manner.
- Fine-tune the U-Net (with and without prior) to improve radiology image generation and enable insertion of abnormalities.
Experimental results
Research questions
- RQ1Can a frozen CLIP text encoder generate medically valid embeddings for radiology prompts in Stable Diffusion when generating CXRs?
- RQ2Do in-domain text encoders or projection-based mappings improve radiology image quality over the original CLIP encoder?
- RQ3Is textual inversion effective for learning complex medical concepts with few examples?
- RQ4Does fine-tuning the U-Net enable high-fidelity CXR generation and accurate insertion of pathologies like pleural effusion?
- RQ5How do VAE reconstruction quality and downstream classifier performance reflect preservation of clinically relevant features after latent diffusion processing?
Key findings
- The VAE from Stable Diffusion can reconstruct CXRs at arbitrary resolutions without additional fine-tuning, preserving clinically relevant features.
- A frozen CLIP text encoder provides strong medical embeddings enabling medically accurate image generation in conjunction with other methods.
- Replacing CLIP with in-domain text encoders did not outperform the CLIP-based setup in their experiments.
- Textual inversion can learn complex medical concepts like pleural effusion in a few-shot manner.
- U-Net fine-tuning yields the most significant gains, enabling high-fidelity CXRs and the ability to insert specific pathologies while maintaining diagnostic cues, and achieving near-perfect downstream classifier AUC (0.98) for pleural effusion when prior is used.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.