CheXGenBench

CheXGenBench: A Unified Benchmark For Fidelity, Privacy and Utility of Synthetic Chest Radiographs

PWC

Check out the pre-print on Arxiv

Fine-Tuned Checkpoints

We provide different fine-tuned checkpoints as a collection on HuggingFace.

SynthCheX-75K Dataset

We additionally release the SynthCheX-75K dataset comprising of >75K high-quality, synthetic radiographs using the best-performing model from our benchmark. The dataset is available for use on HuggingFace.

More details on the dataset are provided here.

CheXGenBench

The benchmark is available on GitHub.

Environment Setup

Adding a New Generative Model

The benchmark currently supports SD V1.x, SD V2.x, SD V3.5, Pixart Sigma, RadEdit, Sana (0.6B), Lumina 2.0, Flux.1-Dev, LLM-CXR.

In order to add a new model in the benchmark, follow these (easy) steps. Note: We assume that training of your T2I model is conducted separately from the benchmark.

Generating Synthetic Data (Step 0)

In order to evaluate T2I models, the first step is to generate synthetic images using a fixed set of prompts. Follow these steps to generate synthetic images to be used for evaluation.

Usage

This section provides instructions on how to use the benchmark to evaluate your Text-to-Image model’s synthetic data.

Quantitative Analysis: Generation Fidelity

The quantitative analysis assesses the synthetic data at two distinct levels to provide a granular understanding of its quality:

Overall Analysis: This level calculates metrics across the entire test dataset, consisting of all pathologies present in the MIMIC dataset. It provides a general indication of the synthetic data’s overall quality.

cd Benchmarking-Synthetic-Data
./scripts/image_quality_metrics.sh

Important Note: Calculating metrics like FID and KID can be computationally intensive and may lead to “Out of Memory” (OOM) errors, especially with large datasets (If using V100 GPUs or lower). If you encounter this issue, you can use the memory-saving version of the script:-

cd Benchmarking-Synthetic-Data
./scripts/image_quality_metrics_memory_saving.sh

The results would be stored in Results/image_generation_metrics.csv

Image-Text Alignment We calculate the alignment between a synthetic image and a prompt using the Bio-ViL-T model. Using this requires setting up a separate environment due to different dependencies.

  1. Create a new conda environment himl
  2. Navigate to health-multimodal repository and follow the instructions to install the required dependencies in himl.
  3. We have also provided a separate requirements file with the packages and their specific versions (untested).
    conda activate himl
    pip install -r requirements_himl.txt
    

When the environment is set-up, run the following command:

./scripts/img_text_alignment.sh

Conditional Analysis: This level calculates each metric separately for each individual pathology present in the dataset. This allows for a detailed assessment of how well the T2I model generates synthetic data for specific medical conditions.

cd Benchmarking-Synthetic-Data
./scripts/image_quality_metrics_conditional.sh

The results would be stored in Results/conditional_image_generation_metrics.csv

Tip: Enhance your results by providing additional information about the model or specific checkpoint used for generating the synthetic data. You can typically do this by setting the EXTRA_INFOargument when running the scripts (refer to the example scripts for specific usage).

Quantitative Analysis: Privacy Metrics

Run the following script to calculate privacy and patient re-identification metrics.

cd Benchmarking-Synthetic-Data
./scripts/privacy_metrics.sh

Quantitative Analysis: Downstream Utility

Image Classification

For image classification, we used 20,000 samples from the MIMIC Dataset for training. To evaluate, you first need to generate synthetic samples using the same 20,000 prompts with your T2I Model.

cd MIMIC_Splits/Downstream_Classification_Files
unzip training_data_20K.zip

Radiology Report Generation

To fine-tune LLaVA-Rad, the first step is creating a new environment following the steps mentioned in the official LLaVA-Rad repository.

If you found our work useful, please consider citing.

@article{dutt2025chexgenbench,
  title={CheXGenBench: A Unified Benchmark For Fidelity, Privacy and Utility of Synthetic Chest Radiographs},
  author={Dutt, Raman and Sanchez, Pedro and Yao, Yongchen and McDonagh, Steven and Tsaftaris, Sotirios A and Hospedales, Timothy},
  journal={arXiv preprint arXiv:2505.10496},
  year={2025}
}

For questions, please send your queries at raman.dutt@ed.ac.uk