Patient-data memorization

Unconditional latent diffusion models memorize patient imaging data

Nature Biomedical Engineering 2026

Frontal chest radiograph from the public NIH ChestX-ray14 collection.
Chest radiograph Independent example · NIH Clinical Center · Dataset paper Published chest X-ray pairs

How many training images reappear?

≈300of 10,000 training radiographshad a detected copy.

Counts are estimates from the labeled checkpoints in Extended Data Fig. 7c. View values and precision

Explore the study

Compare the four datasets

See how often each model repeated training data in coronary CT, knee MRI, brain MRI, and chest radiographs.

Across seven model–dataset settings, an average of 37.2% of training samples had a detected copy, and 68.7% of generated outputs were classified as copies.

All reported values
Each model generated as many samples as its training set contained.
DatasetModelSamples per setTraining samples memorizedGenerated copies
PCCTAMedDiff24243.8%91.7%
PCCTAMONAI24240.5%83.1%
MRNetMedDiff90440.2%76.1%
MRNetMONAI90447.6%87.2%
fastMRIMedDiff1,00024.8%37.3%
fastMRIMONAI1,00030.8%51.0%
Chest X-rayMONAI-2D10,00032.6%54.5%

Rates and sample counts are from the main paper, Figure 3.

How copies were counted

One training image can return several times

The same set of matches answers two questions, each with its own denominator.

Follow a repeated sample

Illustrative example with six training items and six outputs.

Training items

Generated outputs

A marks a copy of the same item. Open circles represent other outputs.

1 of 6 training items was memorized. 3 of 6 generated outputs are copies.

  1. Describe each image

    A self-supervised encoder represented training, validation, and generated images in a common feature space.

  2. Assess similarity

    The authors used held-out validation images to calibrate the similarity expected between different samples and checked detected matches against human judgments.

  3. Count in both directions

    Each distinct training sample with a detected copy counts once. Each generated output classified as a copy counts separately.

The authors show matched images for coronary CT, knee MRI, brain MRI and chest radiographs. Credits and adaptations for the independent reference images

What changes with more outputs?

Drawing more samples reveals more training images

For a fixed training set, the authors compared three sizes of generated datasets.

Effect of the sampling budget

1,000 training MRI volumes

Quadrupling the number of outputs exposed copies of nearly half the training set. The proportion of generated samples identified as copies stayed close to one half.

fastMRI sample-budget experiment
OutputsTraining memorizedOutput copies
50020.8%48.8%
1,00031.5%49.4%
2,00049.7%49.5%

10,000 training radiographs

With four times as many outputs, the share of training images with a detected copy more than doubled. About 54% of the outputs were copies at each sample size.

Chest X-ray sample-budget experiment
OutputsTraining memorizedOutput copies
5,00021.0%54.0%
10,00032.7%54.7%
20,00046.0%54.3%

Values come from a separate sampling experiment. Supplementary Table S4

Training checkpoints and reading precision

Each value estimates the number of distinct training samples with a detected copy at one marked checkpoint. Iterations follow the paper’s tick labels. The X-ray table uses the 15 labeled positions with observations, and the 3D series use all 15 marked checkpoints.

Counts from the plot are rounded to the nearest 50 radiographs, 5 MRI volumes or 1 CT patch. Small differences can disappear at this precision. In the main evaluation, Figure 3 reports that 32.6% of the 10,000 training radiographs had a detected copy. Among generated radiographs, 54.5% were copies.

Chest X-ray · approximate memorized samples
Iterations MONAI-2D
13k300
26k450
40k400
53k500
66k700
80k850
93k1,100
106k1,550
120k1,950
133k2,400
146k2,400
160k2,800
173k2,450
186k2,800
200k3,250
3D models · approximate memorized samples
Iterations PCCTA · MedDiff PCCTA · MONAI MRNet · MedDiff MRNet · MONAI fastMRI · MedDiff fastMRI · MONAI
10k56531001204035
20k95322051406040
30k1118327513511050
40k916930512513555
50k875735018016070
60k1116935020514085
70k978736530516595
80k12279360240190125
90k11487315335190160
100k10342375290210170
110k11996355310185180
120k12397400405175220
130k11794375405260220
140k110125315340265250
150k10698365430250315

Training trajectories in Extended Data Fig. 7c · Published cohort percentages in Fig. 3

Paper and code

Resources and citation

Cite this work

@article{dar2026memorization,
  title = {Unconditional latent diffusion models memorize patient imaging
      data},
  author = {Dar, Salman Ul Hassan and Seyfarth, Marvin and Ayx, Isabelle and
      Papavassiliu, Theano and Schoenberg, Stefan O. and Siepmann, Robert
      Malte and Laqua, Fabian Christopher and Kahmann, Jannik and Frey,
      Norbert and Baeßler, Bettina and Foersch, Sebastian and Truhn, Daniel
      and Kather, Jakob Nikolas and Engelhardt, Sandy},
  journal = {Nature Biomedical Engineering},
  volume = {10},
  number = {3},
  pages = {458--472},
  year = {2026},
  doi = {10.1038/s41551-025-01468-8}
}