Skip to main content
QUICK REVIEW

[Paper Review] Beware of diffusion models for synthesizing medical images -- A comparison with GANs in terms of memorizing brain MRI and chest x-ray images

Muhammad Usman Akbar, Wuhao Wang|arXiv (Cornell University)|May 12, 2023
Advanced Neuroimaging Techniques and ApplicationsMedicine4 citations
TL;DR

This study compares diffusion models and StyleGAN for synthesizing brain MRI and chest X-ray images, finding that diffusion models memorize training data more strongly than GANs—especially on small datasets and 2D slices—raising privacy concerns for medical image generation.

ABSTRACT

Diffusion models were initially developed for text-to-image generation and are now being utilized to generate high quality synthetic images. Preceded by GANs, diffusion models have shown impressive results using various evaluation metrics. However, commonly used metrics such as FID and IS are not suitable for determining whether diffusion models are simply reproducing the training images. Here we train StyleGAN and a diffusion model, using BRATS20, BRATS21 and a chest x-ray pneumonia dataset, to synthesize brain MRI and chest x-ray images, and measure the correlation between the synthetic images and all training images. Our results show that diffusion models are more likely to memorize the training images, compared to StyleGAN, especially for small datasets and when using 2D slices from 3D volumes. Researchers should be careful when using diffusion models (and to some extent GANs) for medical imaging, if the final goal is to share the synthetic images.

Motivation & Objective

  • To evaluate the memorization behavior of diffusion models versus GANs in medical image synthesis.
  • To assess whether commonly used metrics like FID and IS can detect memorization in synthetic medical images.
  • To investigate how dataset size and 2D slice extraction affect memorization in diffusion models and GANs.
  • To provide guidance on the responsible use of generative models in medical imaging, particularly regarding data privacy.
  • To compare the generalization versus memorization trade-off between diffusion models and StyleGAN in clinical image generation.

Proposed method

  • Trained a StyleGAN and a diffusion model on BRATS20, BRATS21, and a chest X-ray pneumonia dataset for brain MRI and chest X-ray synthesis.
  • Used 2D axial slices extracted from 3D MRI volumes to evaluate memorization under realistic clinical conditions.
  • Measured correlation between synthetic images and all training images to quantify memorization, using image-level similarity metrics.
  • Evaluated performance across varying dataset sizes to assess the impact of data scarcity on memorization.
  • Applied standard generative model evaluation metrics (FID, IS) alongside memorization-specific analysis to contrast model behavior.
  • Compared memorization rates between diffusion models and StyleGAN under identical training and evaluation protocols.

Experimental results

Research questions

  • RQ1How does the memorization rate of diffusion models compare to StyleGAN when generating brain MRI and chest X-ray images?
  • RQ2To what extent do diffusion models reproduce training images rather than generalizing, especially on small datasets?
  • RQ3How does the use of 2D slices from 3D volumes affect memorization in diffusion models and GANs?
  • RQ4Are standard generative model metrics like FID and IS sufficient to detect memorization in medical image synthesis?
  • RQ5What are the privacy implications of using diffusion models for synthetic medical image generation in clinical settings?

Key findings

  • Diffusion models exhibit significantly higher memorization of training images compared to StyleGAN, particularly on small datasets.
  • Memorization is more pronounced when generating 2D slices from 3D MRI volumes, suggesting anatomical context influences memorization patterns.
  • The correlation between synthetic images and training images is consistently higher for diffusion models than for StyleGAN across all datasets.
  • Standard metrics like FID and IS fail to detect memorization, indicating they are insufficient for assessing privacy risks in medical image synthesis.
  • Even with similar FID scores, diffusion models produce more identical or near-identical copies of training images than GANs.
  • The risk of memorization increases with data scarcity, making diffusion models less suitable for privacy-sensitive medical image generation when training data is limited.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.