The limits of reconstruction fidelity and evaluation in medical image synthesis with latent diffusion

Marvin Seyfarth, Yannik Frisch, Sandy Engelhardt, Salman Ul Hassan DararXiv 2026

TL;DR

When building Latent Diffusion Models (LDMs) to generate synthetic medical scans, researchers usually pick the sharpest image compressor (autoencoder) first, freeze it, and assume it will produce the best generative model later. Turns out, that assumption is flawed: the best reconstructor rarely makes the best generator. Even trickier, the standard metrics we use to judge synthetic scans have massive blind spots—meaning how we build and measure medical AI needs a serious rethink.

What Problem Does This Paper Address?

Generating high-resolution medical images—especially 3D volumes like lung CTs—is computationally brutal. Latent Diffusion Models (LDMs) make this tractable via a two-stage relay race: first, an autoencoder squeezes massive scans into a tiny, compressed "latent space"; second, a diffusion model learns to generate new data inside that compact space.

In practice, almost everyone picks their autoencoder based purely on reconstruction fidelity—how accurately it compresses and decompresses real scans—freezes it, and only then trains the diffusion generator. Nobody really checks if the best compressor actually leads to the best synthetic images downstream.

Compounding this is an evaluation crisis: once you generate synthetic X-rays or CTs, how do you know they are actually good? Most researchers borrow computer vision metrics like Fréchet Inception Distance (FID), which compares feature distributions of real and fake images using a pretrained neural network. Whether those metrics actually catch clinically relevant errors, anatomical warping, or memorization of real patient data remains dangerously murky.

Methods

Instead of proposing a shiny new architecture, the authors put the standard LDM workflow through a rigorous, 30,000-GPU-hour stress test across two main experiments:

Overview of the two-experiment study design: a controlled metric benchmark and a matched VQ-GAN–LDM evaluation.
  1. A Controlled Metrics Benchmark: Before judging AI generators, they judged the judges. They took real scans and injected 233 controlled, synthetic "failures" at varying severities—like shifting CT intensities, blurring X-rays, warping organs, dropping data modes, or slipping in exact copies of patient scans. They then tested which evaluation metrics actually caught the sabotage, and how swapping out the underlying feature extractor (e.g., medical-pretrained ResNets like MedicalNet/RadImageNet vs. general ImageNet or self-supervised CT-FM) changed the verdict.
  2. Matched Autoencoder–Generator Pipelines: Rather than freezing one "winner" autoencoder, they trained a full grid of VQ-GAN autoencoders—varying spatial compression ($f \in \{4, 8, 16\}$), codebook size, and embedding dimensions—and trained a separate, matched U-Net diffusion model for every single one (51 complete pipelines in total). Finally, they scaled U-Net sizes up and down and swapped U-Nets out for Diffusion Transformers (DiTs) to see if beefier generators could close the gap.

Datasets

  • LUNA16 (3D Lung CT): 888 volumetric CT scans split at the patient level (800 train, 39 validation, 49 test), standardized to $512 \times 512 \times 256$ voxels.
  • NIH ChestX-ray14 (2D Radiography): A fixed, patient-disjoint subset of 20,000 chest X-rays (10,000 train, 5,000 validation, 5,000 test).
  • Controlled Failure Benchmark (Newly Introduced): Built from patient-disjoint pools of the training data above, creating clean reference, source, and copy-donor cohorts to systematically test metric sensitivity against ground-truth perturbations.

Key Insights and Ideas

  • Less detail can mean better generation: Autoencoders with gentle compression ($f=4$) preserve fine details and ace reconstruction tests. Yet diffusion models consistently generated more realistic distributions in heavily compressed spaces ($f=16$). Throwing away some pixel-level detail gives a finite-capacity generator a smoother, simpler landscape to learn.
  • Bigger generators don't magically fix the gap: You might assume a larger U-Net or a sleek Diffusion Transformer (DiT) would easily master the detailed $f=4$ space. While DiTs improved scores, they shifted the sweet spot to $f=8$—never $f=4$. Autoencoder preference is fundamentally coupled to the generator sitting on top of it.
  • A metric is more than a math formula: Saying "we evaluated with FID" is incomplete. Switching the feature extractor inside the exact same FID formula completely reshuffled which models "won" and which image failures went unnoticed. Furthermore, medical-pretrained extractors weren't universally superior to generic ImageNet ones—each had distinct blind spots.
  • Better FID can hide worse memorization: Pipelines selected for the best FID scores consistently memorized and duplicated more real patient training scans than pipelines selected for reconstruction quality—a critical trade-off if synthetic data is meant for privacy-safe sharing.

Key Results

  • No silver-bullet metric: Across 233 controlled failure settings, zero metrics detected every failure type. Standard distributional metrics missed injected patient copies entirely (only dedicated copy-detectors caught them).
Figure 2: Detection of controlled failures in lung CT (A) and chest radiography (B). Each square shows the proportion of failure subtypes detected at a given severity level. Empty squares indicate no detection. Detection required a positive paired response, a bootstrap interval excluding zero, and an effect exceeding clean real–real variation. Severity levels are ordered within each failure type. FID and PRDC use the indicated feature encoders, while HU and grayscale metrics use image intensities. Copy detection refers to controlled donor-copy injection. Exact settings are provided in Supplementary Tables S2–S3.
  • Representation roulette: Simply swapping the evaluation feature extractor altered failure detection in 37.6% of CT comparisons and 60.8% of chest X-ray comparisons. Combining FID with complementary metrics (like Wasserstein diversity or organ-intensity stats) boosted cross-validated failure severity prediction ($R^2$) by 0.641 to 0.836.
  • The reconstruction–generation mismatch: All five reconstruction metrics (L1, LPIPS, PSNR, SSIM, NMSE) strongly agreed with one another (Spearman $\rho > 0.94$), unanimously crowning $f=4$ autoencoders. Yet when paired with baseline U-Nets, the best-reconstructing CT autoencoder ranked 22nd out of 27 in generative FID (0.0999 vs. 0.0070 for the $f=16$ winner). In X-ray, the top reconstructor came in 3rd out of 24, still losing to an $f=16$ configuration.

Limitations and Future Work

Because training 124 models and running 918 checkpoint evaluations is astronomically expensive, each pipeline configuration was trained once rather than averaged across multiple random seeds. Additionally, the controlled benchmark tests isolated, predefined failures, whereas real generative models fail in messy, overlapping ways.

For future work, the authors urge the field to abandon single-score leaderboards. Instead, practitioners should screen autoencoders for basic reconstruction, jointly evaluate shortlisted candidates with their target downstream generator, and report a transparent scorecard of complementary metrics tailored to the clinical task—explicitly tracking fidelity, diversity, anatomy, and patient-data memorization side by side.

Summary updated

BibTeX
@misc{seyfarth2026limits,
  author = {Marvin Seyfarth and Yannik Frisch and Sandy Engelhardt and Salman Ul Hassan Dar},
  title = {{The limits of reconstruction fidelity and evaluation in medical image synthesis with latent diffusion}},
  year = {2026},
  eprint = {2611.38239},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.38239},
}
Figure