NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Diagnostically Meaningful, Privacy-aware Synthetic Chest CT via Class-Conditional Latent Sampling in Diffusion Autoencoders

Johannes B. Thalhammer, Kacper Ogórek, Tina Dorosti, Sebastian Peterhansl, Daniel Frey, Zijin Huang, Theresa Hiu, Tobias Lasser, Daniela Pfeiffer, Franz Pfeiffer, Florian SchaffarXiv 2026

TL;DR

Training medical AI requires massive datasets, yet sharing patient scans is a privacy minefield. This paper shows how to use an unlabeled, pretrained diffusion autoencoder to map private chest CTs into a compact mathematical space, sample new points that aren't too close to any real patient, and decode them into synthetic scans. The result? Diagnostic classifiers trained purely on these "privacy-aware" synthetic images detect life-threatening blood clots nearly as well as models trained on real patient data—without memorizing a single scan.

What Problem Does This Paper Address?

Imagine a hospital sitting on a goldmine of annotated CT scans for Pulmonary Embolism (PE)—a dangerous blockage in the lung's arteries. Sharing this data could supercharge medical AI, but strict privacy regulations lock it inside institutional silos.

Generative AI offers a clever workaround: instead of sharing real patient scans, share synthetic scans that capture the same medical patterns. However, generative models have a notorious habit of memorizing their training data, risking accidental patient exposure. Furthermore, formal privacy methods (like Differential Privacy) often blur away the tiny, subtle visual cues a doctor or AI needs to make a diagnosis, and typically only protect the data the generator was trained on, not external proprietary datasets. The challenge is generating synthetic medical images that are both diagnostically sharp and measurably distinct from real patients.

Methods

Instead of training a standard class-conditional diffusion model from scratch on labeled private data, the authors decouple learning how to draw CT scans from learning what a disease looks like.

Figure 1: Overview of the proposed framework for generating privacy-aware, class-conditional synthetic images from proprietary data. A diffusion autoencoder, pretrained on a large unlabeled image corpus, provides a semantic encoder that extracts a latent vector for each image in a proprietary, labeled dataset. Distributions estimated from these latent vectors via kernel density estimation (KDE) enable sampling of new latent vectors, which are decoded into synthetic images. A filtering step rejects sampled vectors too close to real proprietary vectors, reducing the risk of regenerating real images. The pipeline is applied separately to each class (PE-positive and PE-negative).
  1. Label-Free Pretraining: They train a Diffusion Autoencoder (DiffAE) on 200,000 unlabeled chest CT slices. A DiffAE pairs a semantic encoder (which compresses a $256 \times 256$ image into a 512-dimensional latent vector $z$ capturing high-level anatomy) with a U-Net diffusion decoder (which reconstructs the image from noise, guided by $z$). They stabilize training using a frequency-domain low-pass ("blurring") filter alongside standard noise.
  2. Class-Conditional Density Estimation: A hospital passes its private, labeled images through the frozen encoder, sorting the resulting $z$ vectors into "PE-positive" and "PE-negative" piles. The authors fit a separate Kernel Density Estimate (KDE)—a non-parametric way to map out complex, multi-peaked data landscapes—to each pile.
  3. Privacy-Aware Rejection Sampling: To create a new image, they sample a fresh vector $z$ from the KDE. Crucially, they measure its Euclidean ($L_2$) distance to all real training vectors. If it falls too close to any real patient's vector (below the 5th percentile of real-to-real nearest-neighbor distances), they toss it out and resample. Accepted vectors are decoded into synthetic CT slices.

Datasets

The authors used two public, de-identified 2D slice-level chest CT datasets (no new benchmarks were introduced):

  • RSNA 2020 PE Dataset: Multi-institutional scans split strictly by patient into disjoint pools for DiffAE training (200,000 slices), classifier training/KDE fitting (200,000 slices), validation, and testing.
  • RadFusion (Stanford): Used strictly as an external generalizability test (over 722,000 slices across splits). The DiffAE never saw RadFusion images during training; its frozen encoder was simply applied to RadFusion's latent space.

Key Insights and Ideas

  • Disease separates naturally without labels: Even though the DiffAE was trained without knowing what a pulmonary embolism is, a simple linear classifier trained on its 512D latent vectors separated PE-positive from PE-negative cases with an impressive 0.927 AUC.
  • Latent vectors beat simple class tags: In an ablation study, training a standard diffusion model conditioned directly on binary class labels yielded poor downstream classifiers (0.777 AUC vs. 0.862 AUC for DiffAE+KDE). Giving the generator rich anatomical context via $z$ is vital.
  • Dimension correlations matter, complex shapes don't: Swapping the flexible KDE for a single multivariate Gaussian (with a full covariance matrix) worked just as well (0.865 AUC). However, using a diagonal Gaussian—which ignores correlations between the 512 dimensions—caused performance to drop (0.843 AUC). Anatomy lives in the relationships between latent features.
  • No shortcut learning: Grad-CAM saliency maps showed that ResNet-50 classifiers trained on synthetic data looked at the exact same clinically relevant blood vessel regions as models trained on real scans.

Key Results

  • Diagnostic Utility: On the held-out RSNA real test set, an ensemble of ResNet-50 classifiers trained exclusively on 38,000 synthetic slices achieved 0.862 AUC, trailing the real-data baseline (0.872 AUC) by just 0.01. Mixing real and synthetic data yielded 0.865 AUC.
  • Zero-Shot Encoder Generalization: On the external RadFusion dataset, synthetic data generated using the RSNA-trained DiffAE still trained capable classifiers (0.872 AUC vs. 0.928 AUC on real RadFusion data).
  • Zero Memorization Detected: Comparing all 38,000 synthetic RSNA slices against 400,000 real slices using both pixel correlation and self-supervised copy detection (SSCD) uncovered zero direct copies. Even the closest statistical matches showed visibly different vessel and organ shapes.

Limitations and Future Work

  • Practical vs. Formal Privacy: Latent-distance filtering is an empirical safeguard ("privacy-aware"), not a mathematical guarantee like Differential Privacy. Future work should explore formal privacy auditing.
  • Fidelity Gaps & Subtle Signs: Fréchet Inception Distance (FID) scores showed a measurable gap between synthetic and real distributions (0.055 vs. a 0.009 real-to-real baseline). Because PE clots are tiny and visible only in narrow contrast windows, label-free training occasionally smoothed over or degraded them.
  • Data Hungry: Estimating reliable latent distributions in 512 dimensions still requires thousands of labeled examples, limiting immediate use for ultra-rare diseases. Scaling up to 3D foundation models and incorporating radiologist review before data release are promising next steps.

Summary updated

BibTeX
@misc{thalhammer2026diagnostically,
  author = {Johannes B. Thalhammer and Kacper Ogórek and Tina Dorosti and Sebastian Peterhansl and Daniel Frey and Zijin Huang and Theresa Hiu and Tobias Lasser and Daniela Pfeiffer and Franz Pfeiffer and Florian Schaff},
  title = {{Diagnostically Meaningful, Privacy-aware Synthetic Chest CT via Class-Conditional Latent Sampling in Diffusion Autoencoders}},
  year = {2026},
  eprint = {2611.33234},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.33234},
}
Figure