TL;DR
Synthetic data is supposed to let us share sensitive datasets—like medical scans or human faces—without violating anyone’s privacy, except diffusion models have a nasty habit of memorizing and spitting out real people anyway. TraceDiffusion solves this by anchoring every synthetic image to a specific real source image and actively steering the generation away from that person’s identity while keeping their medically or semantically relevant traits intact. You get high-utility synthetic data where every single image comes with an auditable receipt proving who it isn't.
What Problem Does This Paper Address?
Suppose a hospital wants to release synthetic chest X-rays so researchers worldwide can train diagnostic models. Diffusion models can generate stunningly realistic X-rays, which is great—until the model accidentally memorizes and reconstructs a real patient's anatomy, violating privacy laws like the GDPR.
Right now, we have two flawed ways to handle this:
- Post-hoc filtering: Generate a massive pile of images, then delete anything that looks "too similar" to the training set. Unfortunately, defining a principled "similarity threshold" is notoriously arbitrary.
- Differential Privacy (DP): Inject mathematical noise during training to guarantee privacy across the dataset. It’s rigorous, but it hits model utility with a heavy upfront tax, degrading image quality and downstream usefulness.
Neither approach gives regulators what they actually want: per-sample, auditable evidence that a generated image does not single out a real person.
Methods
Instead of crossing their fingers with random Gaussian noise, the authors introduce traceability: every generated sample starts from a known training image and deterministically proves it has left that person's identity behind.
Here is how TraceDiffusion pulls this off:
- Adversarially Disentangled Encoders: They train two separate ResNet-50 encoders using mutual information minimization (CLUB). One extracts purely class attributes $z_c$ (e.g., "smiling, glasses" or "cardiomegaly"), while the other extracts purely identity $z_i$, stripping each stream of the other's information.
- Twin Diffusion Models: Two standard EDM2 latent diffusion models (operating in FLUX.2 latent space) are trained separately—one conditioned on class ($\epsilon_\theta^c$), the other on identity ($\epsilon_\theta^i$).
- Deterministic Inversion & Memory Guidance: To generate a traceable image, they take a real source image $x_j$ and run deterministic DDIM inversion using the identity model to find its exact starting noise latent. Then, during denoising, they apply a novel guidance rule: $\hat{\epsilon} = \epsilon_\theta^c + w(\epsilon_\theta^c - \epsilon_\theta^i)$. By subtracting the identity score from the class score, the trajectory actively pushes away from the source identity while staying firmly on the manifold of the desired class attributes.
- Two-Stage Auditing: A Siamese "Re-identification Oracle" checks each sample against its source and its 5 nearest neighbors in identity space to certify novelty. Finally, an independent memorization detector (LCMem) audits every sample against the entire training set.
Datasets
The authors evaluate the exact same pipeline across two very different domains:
- CelebA: 202,599 celebrity face images across 10,177 unique identities, annotated with 40 binary attributes (hair color, age, smiling, etc.).
- MIMIC-CXR: Chest X-ray studies from 48,496 unique patients, annotated with 14 binary pathology labels.
No new benchmarks are introduced, though the authors briefly augment CelebA with vision-language-derived ethnicity labels for a counterfactual editing test.
Key Insights and Ideas
- High-dimensional identity spaces are mostly empty: Using a neat sphere-packing argument, the authors show that if known identities occupy small $\delta$-balls in a sufficiently high-dimensional latent space, the vast majority of that space is uncovered. Steering away from a source identity doesn't automatically mean crashing into someone else's.
- Disentangled inputs yield disentangled generations: Because the encoders cleanly separate class and identity upfront, the diffusion models inherit this separation—the class model achieves near-chance identity retrieval (1.1%), while the identity model hits >62%.
- Flipping the math gives you counterfactual editing: Because class and identity are separated, you can invert the guidance formula—holding identity constant while steering toward a new class attribute (e.g., keeping a person's exact face and background while changing perceived ethnicity to audit downstream classifier fairness).
- Pathology and anatomy are entangled: In medical imaging, "identity" isn't cleanly separable from chronic conditions. Pushing away from a patient's unique ribcage or heart silhouette inevitably perturbs structural disease signals like cardiomegaly.
Key Results
Memory-guided generation smoothly transitions away from the original face or X-ray identity as guidance scale w increases.
- Leaving the source behind: When audited against the entire training set, unguided reconstructions ($w = -1$) match their source identity 96.9% of the time on CelebA and 95.0% on MIMIC-CXR. Turning on TraceDiffusion ($w = 1$) drops source matches to 1.3% on CelebA and 0.1% on MIMIC-CXR.
- No collateral collisions (on faces): On CelebA, guided samples match other training identities 5.6% of the time—statistically indistinguishable from the 5.4% false-alarm rate measured on real, unseen test images.
- Minimal utility tax: Under the Train Synthetic, Test Real (TSTR) protocol on CelebA, enforcing traceability costs just 0.12 percentage points of downstream classification AUC-ROC (91.86% vs. 91.99% untraceable)—5 to 10 times smaller than the penalty suffered by standard EDM-2 baselines. On MIMIC-CXR, the cost is 3.78 pp, localized primarily to chronic anatomical findings.
Limitations and Future Work
- Accountability, not mathematical immunity: Unlike Differential Privacy, traceability is an empirical, per-sample audit trail rather than a formal worst-case bound. Its strength depends entirely on the trustworthiness of the Oracle and auditor networks, and DDIM inversion roughly doubles sampling wall-clock time.
- Medical cross-patient collisions: On MIMIC-CXR, 24.3% of guided samples get flagged as matching another training patient (compared to 5.5% for real unseen X-rays). This overlap already exists in the base class-conditional model (15.3%) and is amplified by guidance.
- Future directions: To fix the X-ray overlap and utility gap, the authors suggest applying the one-vs-all audit dynamically during sampling to re-steer flagged images on the fly, as well as retraining the identity encoder with hard negatives drawn from anatomically similar patients.
Summary updated