WorksComputer Science
TraceDiffusion: Traceable Image Generation for Auditable Private Data Sharing
Abstract
Vast repositories of images are locked behind closed doors or are freely accessible online, but unclear sharing policies and copyright restrictions increasingly limit their use for model training. Synthetic generation promises a compliant alternative, yet diffusion models risk silently reproducing the identities of individuals present in their training data. Existing approaches either assume that privacy is not compromised or use post hoc sample filtering. We define traceability, a per-sample certificate anchoring every generated image to a named training source, and introduce TraceDiffusion to instantiate it via two adversarially disentangled encoders and a guidance scheme that steers generation away from a source identity while preserving its class attributes. An independent memorization detector that compares every sample with the entire training set confirms the effect of this guidance. On CelebA, 96.9% of the identity-conditioned reconstructions match their source identity, but only 1.3% of the guided samples do, while matches to any other training identity (5.6%) stay at the false-alarm level of real unseen images (5.4%). On MIMIC-CXR the source patient is left as reliably (95.0% to 0.1%). We further show that disentangling input encoders leads to disentangled output generations: the class-conditioned model achieves near-chance identity retrieval (1.1%) while the identity-conditioned model reaches above 62%, confirming clean separation of the two information streams. On CelebA, traceability costs only 0.12 pp of AUC-ROC in downstream classification, five to ten times less than for the baselines. Code will be made available upon publication.
Introduction
The landscape of generative modeling has undergone a paradigm shift with the emergence of diffusion models, which now achieve unprecedented photorealistic synthesis. By consistently improving in Fréchet Inception Distance (FID), sample diversity, and fine-grained controllability [16, 32, 38, 69], these models have become practical tools. Modern frameworks now excel at tasks such as class-conditional generation, text-to-image synthesis, inpainting, and super-resolution [20, 55, 77, 82], establishing them as highly effective tools for automated data augmentation and content creation. This evolution is best exemplified by landmark architectures such as Stable Diffusion, and EDM2 [38, 39, 62] [68], which have set new benchmarks for fidelity and scalability in the field.
Despite advancements in generative modeling, architectures lacking robust semantic priors, such as explicit anatomical structure or identity constraints, fail to bridge the Train Synthetic, Test Real (TSTR) gap, as synthetic distributions remain misaligned with the complexities of downstream data [2, 13, 27]. Without such priors, models frequently fall into mode collapse and skewed within-class diversity [78, 81]. Stronger reliance on labels usually decreases this gap, but the influence on privacy preservation remains underexplored [18, 45].
Despite the unprecedented fidelity of modern diffusion models, their propensity to memorize and reconstruct training data presents significant privacy risks, often leading to the unintended leakage of individual identities, which undermines their use as digital twins [8, 19, 75]. Current mitigation strategies predominantly rely on post-hoc, density-based dataset filtering [13, 18]; however, these approaches lack a principled definition of ”similarity,” resulting in arbitrary thresholds that fail to provide rigorous privacy guarantees [42]. Consequently, while digital twins potentially could provide a centralized alternative to federated learning, their regulatory adoption remains limited by the lack of auditable evidence required under regulations such as the GDPR, which connects anonymity to the possibility of singling out people [1, 3, 4, 66].
We address this deficiency by introducing traceability as a new operational primitive for synthetic data. Every generated sample is anchored to a named training image whose identity it must demonstrably not reproduce. Unlike post-hoc filtering, traceability provides per-sample evidence rather than global similarity bounds; unlike formal differential privacy, it requires no upfront utility tax.
To investigate this, we propose TraceDiffusion: adversarially disentangled encoders supply class and identity conditioning to two latent diffusion models, combined through guidance that steers generation away from a named source identity while preserving the target label cell. A re-identification oracle certifies novelty per sample, making every generation auditably traceable to its source. An independent one-vs-all audit against the full training set then tests whether leaving the source identity leads into another training identity.
We make the following contributions: (i) We introduce traceability as a per-sample auditable primitive for identity-novel generation and propose a paired traceability-utility test as a reusable evaluation axis for privacy critical diffusion models. (ii) We propose TraceDiffusion, which instantiates traceability via two adversarially disentangled encoders (, ), two latent diffusion models, and guidance away from the identity towards the attributes. (iii) An independent detector audits every generated sample against the entire training set: on CelebA, guidance lowers the share of samples that match their source identity from 96.9% (reconstruction) to 1.3%, while matches to other training identities (5.6%) stay at the false-alarm level of real unseen images (5.4%). (iv) on CelebA, TraceDiffusion is the only method whose traceable start costs almost no downstream utility ( pp AUC-ROC, 5-10 smaller than all baselines at ); (v) on MIMIC-CXR the method leaves the source identity in only 0.1% of samples, and the paired utility analysis localises the remaining cost () to chronic structural findings, establishing identity-pathology entanglement as the primary cost factor.
Related Work
Diffusion models. Diffusion models learn to progressively denoise a signal through a learned score function [35]; latent diffusion models [43] [68] compress this process into the space of a pretrained autoencoder for efficient, high-fidelity generation, with EDM2 [37, 38, 39] further refining training dynamics and scaling. Classifier guidance [16] and classifier-free guidance [34, 71] steer the denoising trajectory by contrasting conditional and unconditional score estimates; DDIM [74] independently enables deterministic sampling and exact inversion [31, 54], underpinning image editing workflows. Conditioning strategies range from class labels and text embeddings to image-derived representations [18, 22, 55, 80, 82, 83, 85].
Disentangled representation learning. -VAE [33], Factor-VAE [40], and -TCVAE [10] decouple factors of variation by penalising the KL divergence or total correlation between latent dimensions; domain-adversarial networks [26] instead enforce invariance via a gradient reversal layer. We build on this paradigm by combining supervised contrastive training with CLUB mutual information minimisation [12] to disentangle patient identity from pathology labels, enforced by a hard post-hoc AUC-ROC gate prior to diffusion training.
Memorization and privacy. Diffusion models memorize training data and can be queried to reproduce individual samples [6, 8, 19, 44, 72, 73]. Membership inference attacks [7, 48, 58, 59, 75] allow adversaries to confirm training set membership, demonstrating privacy issues. Mitigation strategies include post-hoc filtering [13, 56, 67] and differential privacy [17, 28, 49, 53, 76], but the former lacks a principled similarity threshold [42] and the latter imposes a blanket utility cost with no per-sample auditability. Other methods use adversarial training to transform existing images into label-preserving images that are labeled as coming from a different identity [57]. Concept erasure methods [25, 84] remove identities by fine-tuning with negated score objectives, but require knowing which samples to erase and offer no per-sample audit trail. Our approach anchors each generated image to a specific training source at generation time. By replacing population-level bounds with per-sample traceable novelty claims, we achieve traceability at only twice the sampling time.
Re-identification and face verification. Identity preservation methods for multi-view synthesis aim to maintain a consistent identity across outputs [24, 60, 61], while face protection approaches pursue the opposite goal via adversarial perturbations optimised against face-specific metrics such as ArcFace [15, 46, 47, 79]. Unlike both, TraceDiffusion targets no predetermined identity and relies on no domain-specific verifier, transferring from faces to chest X-ray with the same pipeline.
Method
Data Space and Label-Identity Structure
Let denote the data space, where is the image space, is a finite set of semantic class labels (e.g. hair color, age), and is the set of person identities. We assume , reflecting the practical setting in which the number of distinct attribute classes is far smaller than the number of unique identities.
The label assignment induces a partition of into label cells:
Since , each cell contains on average distinct identities, and we further assume that label cells are approximately balanced (i.e. the cell sizes are of similar order across ), so that each individual cell is also densely populated. This means that one label does not fully determine the identity.
More precisely, we distinguish the observed identity set from the full underlying population with . Since labels are strictly coarser than identities, membership in does not exclude identities in : novel identities are not ruled out by the label assignment.
Novel Identity Generation. We now show that is not exhausted by the observed identities; Figure 2 illustrates the latent decomposition (left), the -ball packing geometry (middle), and the resulting guidance trajectory (right). Let

Figure 2. Latent space decomposition, packing argument, and guidance. Left: The latent space is partitioned into label cells along . Within each cell, variation along is purely identity variation (adversarial disentanglement, ). Middle: A cross-section of at target label . Known identities occupy -balls; since , the uncovered region is vast, guaranteeing novel exists (Proposition 1). Right: At diffusion timestep , the class score (blue) and identity score (orange) point toward their respective manifolds. Subtracting the memory direction and scaling by steers the trajectory (red) away from known identities and onto the label-consistent manifold , yielding a novel identity .
be the identity separation radius. We assume that the contrastive training objective enforces mutual separation among observed embeddings: for all . In practice is estimated as half the 5th percentile of pairwise distances in . Under this assumption the -balls are disjoint, and the fraction of (modelled as a ball of radius ) covered by known identities satisfies:
provided , which holds whenever the identity subspace is sufficiently high-dimensional relative to the packing ratio . We verify this condition empirically for both datasets in Appx. A.16.
Proposition 1 (Novel Identity Existence). Let be the identity subspace obtained under adversarial disentanglement, with . Let be the embeddings of observed identities satisfying for all . Then for any target label , there exists a point such that:
and, if is consistent with at radius (i.e., whenever the identity embeddings of and are more than apart), the generated image , where is the class latent encoding , satisfies for all .
Disentangled Encoder. We use two independent encoders, and , yielding and with . is supervised by a multi-label BCE loss on class labels; is trained with a Siamese contrastive loss to be discriminative over identities. To enforce , is trained by minimizing the CLUB upper bound on mutual information [12], validated post-hoc by an attribute classifier on (§ 4.1). Full architecture and training details are in Appx. A.4 (Figure 8).

Figure 8. Disentangled encoder architecture (split backbone). and are separate ResNet-50 networks with no shared parameters, trained in two independent stages. Stage 1 trains the class encoder (blue): a Flux2 latent is processed by a ResNet-50 with a reduced stem (suited to inputs) and projected to (-normalised). is supervised by a multi-label BCE loss on 40 binary attribute labels () and a CLUB mutual-information penalty that pushes identity information out of (, ), verified post-hoc by identity recall@1 = 0.041. The CLUB term requires an identity signal: an auxiliary encoder (olive) is trained jointly with , sharing the same Siamese contrastive objective as the final but without the 16-dimensional bottleneck (); it is discarded once Stage 1 completes. Stage 2 trains the identity encoder (orange) independently and without any involvement of : a Siamese pair of same-identity RGB images is encoded by a shared-weight ResNet-50 (standard stem) and projected through a 32-dimensional bottleneck head to . A Siamese contrastive loss () pulls same-identity embeddings together; a CLUB penalty with staged warmup (10 epochs) suppresses attribute leakage (, ). The bottleneck capacity () prevents the CLUB estimator collapse observed at .
Two Diffusion Models. and condition two separate latent diffusion models [68] trained with the standard denoising objective: captures label-level variation and captures identity-specific variation.
Re-identification Oracle. Let be a binary re-identification oracle, where iff and share the same identity. We instantiate with a learned Siamese re-identification network, which we refer to as the Oracle throughout. A shared ConvNeXt-Tiny [51] backbone embeds the pre-computed FLUX.2 latents of both images, and a comparison head maps the absolute difference of the two embeddings to a same-identity probability, thresholded at 0.5; it is trained with a combined binary cross-entropy and NT-Xent contrastive loss. Training details and per-dataset performance are in Appx. A.11. The Oracle is used for all method components and analyses; the independently trained LCMem [21] is used only for the final evaluation.
Guidance Formulation. At sampling time, we pick a known source image and extract both its class and identity embeddings, and . Generation is then steered away from this specific identity while remaining inside the target label cell encoded by :
where is the guidance scale. Both conditioning vectors originate from the same source , so the target label cell is supplied implicitly through rather than via a separate label encoding. We use a fixed in all experiments. Grounding generation in a known makes novelty fully traceable: can be evaluated directly against the source .
Disentanglement is a structural requirement: if retains label information, the guidance difference conflates identity and class variation, corrupting both novelty and class consistency simultaneously (Appx. Fig. 17). Symmetrically, if absorbs identity variation, the guidance scale loses its role as a controllable novelty knob and the ReID certificate can no longer distinguish true identity novelty from attribute change. We validate both conditions empirically and discuss all failure modes in Appx. A.3.
Traceability. Because generation is conditioned on a named source , every output carries a complete audit trail: the source identity, the guidance scale , and the resulting . As shown in Appx. Fig. 7, naive generation from random noise does not reproduce training samples. This is our base model without traceability. However, knowing enables a stronger accountability mode we call traceability. We implement it via DDIM inversion: is mapped to a latent noise vector under , and generation starts from this noise rather than a random sample, which roughly doubles per-image wall-clock relative to unconditional sampling (Appx. A.20). Traceability is confirmed when sampling from this noise recovers an image attributed to by (i.e. the model has memorised the source). Then we apply guidance with and declare novelty when no longer attributes the output to . Once declares novelty, guidance has moved away from , so no longer appears among the nearest training identities of in . Knowing the departure point therefore gives an adversary no advantage in attributing the generated image: the source identity and the nearest output-space identity are decoupled by construction.
Traceability Rate (TrR). Before verifying novelty, we confirm that the identity-conditioned denoiser is self-consistent on each source image. Given source image with embedding , we deterministically invert it to a noisy latent via DDIM inversion, , and reconstruct with the same denoiser, . The source image is traceable if confirms the reconstruction shares its identity:
Because the DDIM inversion is entirely deterministic (i.e., no stochasticity is introduced at any step) is reproducible bit-for-bit, making every identity claim fully traceable to a specific training sample without exhaustive nearest-neighbour search. reflects inversion error, which trades off against the identity disentanglement of the inverting model (§ 4.4).
ReID Novelty Rate (NR). The novelty rate measures the fraction of all source images for which memory guidance produces a verified novel identity. Let be the traceable subset; novelty is only evaluated for , since non-traceable images lack a well-defined reconstruction baseline. For each we reuse the reconstructed and apply the memory-guided denoiser (Eq. (4)) to obtain .
Checking only against the source is insufficient: guidance away from may inadvertently steer the generation towards a different training identity that is nearby in . To guard against this, let be the indices of the nearest neighbours of in identity embedding space ( throughout) and . We declare novel only if it passes the ReID check against the source and all neighbours:
NR indicates every source image produced a verified novel identity. At the guidance reduces to , the class-conditional baseline with no identity steering; the degenerate case recovers exactly, reproducing with . Increasing from zero steers the trajectory away from until the identity boundary is crossed.
One-vs-All Audit. The Oracle compares a sample only with its source and neighbours. To test a sample against the entire training set we use LCMem [21] as an independent auditor: it takes no part in training, in sampling, or in the computation of TrR and NR. Let denote its -normalised embedding and the identity of training image . For a sample generated from source we record the best match within the source identity and the best match among all other identities,
where runs over all training images. The source match rate and the other-identity match rate are the fractions of samples with and . The threshold is the 95th percentile of the best score of real validation images against the training set. Since the splits are identity-disjoint, real unseen images are flagged in about 5% of cases by construction; we measure this false-alarm rate on the test split and use it as the reference for . Traceable guidance should move from near one at to near zero at while stays at the reference.
Experiments
Models. and are independent ResNet-50 [30] encoders trained with CLUB [12] mutual information penalties to enforce bidirectional disentanglement; full architecture and training details are in Appx. A.4. Both and are EDM2 [39] U-Nets operating in the FLUX.2-dev latent space [5] (32 channels), which we find improves learnability over pixel space, conditioned on and respectively via FiLM [63], fine-tuned from a pretrained ImageNet EDM2-M checkpoint. Training uses the EDM2 preconditioning loss with linear noise schedule and log-normal timestep sampling, optimized with Adam (, ) and EMA weight averaging. Guided denoising at inference follows Eq. (4) with fixed , using the Heun second-order sampler with 32 discretization steps. Full hyperparameters are in Appx. A.5.
Evaluation Metrics. We evaluate all experiments along three axes: generation quality, identity novelty, and within-class diversity. Quality is measured by FID [32] (50k samples vs. full training set). Identity novelty is reported via Traceability Rate (TrR) and Novelty Rate NR(), both computed with the Oracle, and via the source and other-identity match rates and of the one-vs-all audit with LCMem, all defined in § 3. Diversity is measured by IRS [22] (fraction of real training images retrievable as the nearest neighbour of a generated image using SwAV [9] features). Downstream utility follows the TSTR [23] protocol: a ResNet-50 is trained on synthetic data and evaluated on the real held-out set, with AUC-ROC macro-averaged over all attributes and 5-fold cross-validation stratified by identity. Full metric definitions, class-conditioning fidelity (), and paired significance tests are in Appx. A.1.
Baselines. Both baselines share the generative architecture and training protocol of our models ( and ), conditioned via a learnable two-layer MLP that maps the raw binary attribute vector to a -dimensional -normalised embedding; without -normalisation the input-dependent magnitude of interferes with EDM2’s activation-magnitude preconditioning, degrading FID. EDM2 (class-conditional) [39] conditions solely on this normalised attribute embedding with no access to identity information. EDM2 AG (autoguidance) [38] additionally contrasts the score of the main model against an underfitted guide of the same architecture at inference. For both baselines we report results at the FID-optimal guidance scale and training length within the same total compute budget, optimised independently on each dataset.
Datasets and Setup. We validate on two datasets. CelebA [50] has 202,599 images of identities with binary attributes (upscaled to ), so holds with identities per label combination (Proposition 1). MIMIC-CXR [36] has chest X-ray studies from patients (each a unique identity) with binary pathology labels. We apply the pipeline of § 3 to each dataset independently (CelebA choice and MIMIC-CXR encoder ablation: Appx. A.10).
Disentanglement Verification
Because and are trained independently, we verify each encoder separately with post-hoc probes before proceeding to diffusion model training.
Metrics. We use post-hoc logistic-regression probes on frozen embeddings and identity-disjoint validation data (Appx. A.4). must show low attribute AUC-ROC (target ) and high Recall@1 (), since a collapsed embedding passes the former but fails the latter; must show high attribute AUC-ROC () and R@1 below the attribute-only baseline of 0.205. We select for , which halves identity leakage (R@1: 0.0760.041) for 3 pp attribute AUC-ROC (Appx. A.8).
Identity Encoder Ablation. Training a low-dimensional identity encoder that simultaneously achieves strong identity discriminability and suppresses attribute leakage is non-trivial: adversarial techniques tend to collapse the identity signal, while weak penalties leave leakage unaddressed. We compare GRL, CLUB, and bottleneck-only suppression across ; full setup and results are in Appx. A.7 (Table 4). GRL collapses identity signal at every dimensionality tested (train R@1 ). Combining CLUB with achieves the best suppression among non-collapsed methods (Val AUC-ROC = 0.640) while retaining strong discriminability (Val R@1 = 0.718, Val R@5 = 0.851) and is adopted as .
Disentangled Generation Validation
In Figure 3 and Appx. A.13 we investigate the training dynamics of and . We measure the attribute and identity consistency of and by computing the embeddings of the generated images and comparing them to the embeddings of dings of the corresponding training images. For the attribute encoding, we see that both models improve over time without saturating. is clearly better than , demonstrating its stronger attribute conditioning. We also measure how well identity is preserved by checking the rank-1 identity retrieval of the output generations on the training datasets. The identity model clearly learned this connection, reaching a retrieval rate of above 62%. Notably, this improves over time, indicating that longer training is beneficial for this model. , by contrast, fails to retrieve identity entirely, barely reaching 1.1%. We confirm this observation by measuring the intra-sample cosine distance of from both models. The distance of is barely lower than the dataset-level reference, whereas the distance of is low, saturating after roughly

Figure 3. Learning curves for (solid blue) and (dashed orange) across training steps. (a) Cosine similarity in space (↓ for , ↑ for ): how well preserves class conditioning. (b) Rank-1 identity retrieval in space (↑ for , ↓ for ): how faithfully reproduces the source identity. (c) Intra-identity cosine distance (↓ for , ↑ for ) vs. dataset-level inter-identity reference (dotted line); lower intra means tighter identity reproduction.
52 k steps, earlier than the retrieval metric. We show visual samples of the seed diversity in Appx. A.13.
Overall, these experiments confirm that the conditioning and disentanglement were successful. Removing identity from attributes was easier than vice versa. We mainly attribute this to the fact that the model can learn confounding attributes from identities (e.g. similar identity implies similar attributes), which we also discussed in the encoder training section.
We also examine generative metrics, specifically FID and IRS on 20 k generated images. While FID saturates after roughly 52 k steps and increases slightly with further training, we chose the last checkpoint as our model, trading a few FID points in favor of stronger and attribute alignment. The full results are given in Appx. A.13.
Leaving the Source Identity
We audit the traceable samples of every method one-vs-all with LCMem (§ 3, Eq. (7)): each sample is compared with all 122,825 CelebA or 91,843 MIMIC-CXR training images. All sets were generated with the fixed guidance scale of each method; LCMem was not involved in sampling. Table 1 reports generation from the inverted latents of the traceable sources; all methods start from the same latents, but only our model is conditioned on the source. The three rows of our model follow the guidance scale of Eq. (4).
| Method | CelebA | MIMIC-CXR | ||
| Real test images (reference) | – | 5.4 | – | 5.5 |
| EDM-2 | 8.4 | 3.1 | 0.1 | 6.8 |
| EDM-2 AG | 20.1 | 6.7 | 0.9 | 17.2 |
| Reconstruction (, ) | 96.9 | 6.0 | 95.0 | 5.8 |
| No identity guidance (, ) | 40.3 | 4.1 | 3.2 | 15.3 |
| TraceDiffusion (, ) | 1.3 | 5.6 | 0.1 | 24.3 |
Table 1. One-vs-all audit of generation from inverted latents with LCMem against the full training set (%). : samples matching a training image of their source identity. : samples matching a training image of any other identity. Real test images give the false-alarm level of . 43,028 (CelebA) and 45,284 (MIMIC-CXR) samples per method; 95% intervals are below .
On CelebA the reconstruction () matches its source identity in 96.9% of the samples, which confirms that traceable generation starts at the source. The class-conditioned model alone () still matches it in 40.3%, and memory guidance () in only 1.3%. The samples do not move into another training identity instead: is 5.6%, against 5.4% for real test images, so these matches are at the false-alarm level of the auditor. Both baselines retain more of the source (8.4% and 20.1%).
On MIMIC-CXR the source patient is left as reliably (95.0% to 0.1%). Matches to other training patients (%) already arise in the class-conditional model (15.3% at ) and equally for untraceable generation, so they originate in rather than in the traceable start (Appx. A.12, Limitations). On CelebA, stays at the reference for every guidance scale from to 1.5 (Figure 9).

Figure 9. One-vs-all audit with LCMem over the guidance scale (2,000 traceable sources per dataset, one sample per source and scale, all from the same inverted latent). and as in Table 1; the black dashed line is the false-alarm level of on real test images, and the grey vertical line marks the scale used in all other experiments. is the reconstruction with and the class-conditioned model alone.
Generative Performance
Table 2 reports generative metrics (FID, NR, IRS, ) and downstream AUC-ROC for all methods from both starting latents. Sampling starts either from the DDIM-inverted latent of a source training image under or from random Gaussian noise. The starting latent alone does not make a sample traceable: the output must also be generated by a model conditioned on the source, so that it carries an audit trail back to a named . The EDM-2 baselines have no identity conditioning; we run them from the same inverted latents only as a matched reference and do not count them as traceable. Inverting with the converged recovers the source identity reliably, with TrR=0.861 on CelebA and TrR=0.906 on MIMIC-CXR; earlier or class-conditioned inverters reach higher TrR (up to 0.962 for EDM-2 AG and 0.946 for at 5,242 kimg, Table 17), but we adopt the converged throughout because it is the only inverter whose latent is disentangled along the identity axis, the methodological precondition that makes memory guidance interpretable as steering along (cf. § 3 and Appx. A.22). Contrary to our initial expectation that anchoring each sample to a distinct training identity would increase inter-class diversity, IRS decreases from inverted latents for every method, so identity-aware generation still needs explicit diversity evaluation. Class-attribute fidelity is preserved throughout ( for all non-degenerate methods). At its canonical guidance scale TraceDiffusion produces verified novel identities on 0.476 of CelebA sources and 0.227 of MIMIC-CXR sources. On CelebA this exceeds every baseline (EDM-2 0.400, EDM-2 AG 0.467).
| Method | Starting latent | Tr. | Generative CelebA FID ↓ | Generative CelebA NR ↑ | Generative CelebA IRS ↑ | Generative CelebA ↑ | Generative MIMIC-CXR FID ↓ | Generative MIMIC-CXR NR ↑ | Generative MIMIC-CXR IRS ↑ | Generative MIMIC-CXR ↑ | Downstream (TSTR) CelebA AUC-ROC ↑ | Downstream (TSTR) MIMIC-CXR AUC-ROC ↑ |
| Real data (upper bound) | — | 93.73 ± 0.01 | 79.31 ± 0.39 | |||||||||
| EDM-2 [39]† | -inverted | – | 12.6 | 0.400 | 0.594 | 0.886 | 15.6 | 0.343 | 0.499 | 0.907 | 92.32 ± 0.16 | 74.50 ± 0.86 |
| Gaussian noise | – | 8.9 | 0.427 | 0.635 | 0.874 | 11.6 | 0.336 | 0.712 | 0.905 | 92.94 ± 0.06 | 75.74 ± 0.79 | |
| EDM-2 AG [38, 39]† | -inverted | – | 13.3 | 0.467 | 0.578 | 0.883 | 14.0 | 0.233 | 0.506 | 0.900 | 92.23 ± 0.09 | 71.84 ± 1.08 |
| Gaussian noise | – | 5.4 | 0.480 | 0.733 | 0.868 | 10.2 | 0.216 | 0.723 | 0.893 | 92.94 ± 0.04 | 73.31 ± 0.87 | |
| Ablations | ||||||||||||
| No attribute guidance (, ) | -inverted | – | × | × | × | × | × | × | × | × | × | × |
| Gaussian noise | – | 7.9 | 0.490 | 0.654 | 0.779 | 9.4 | 0.178 | 0.584 | 0.851 | 86.69 ± 0.22 | 68.03 ± 0.56 | |
| No identity guidance (, ) | -inverted | ✓ | 14.2 | 0.212 | 0.586 | 0.895 | 16.0 | 0.251 | 0.475 | 0.897 | 91.27 ± 0.16 | 72.10 ± 1.39 |
| Gaussian noise | – | 7.2 | 0.486 | 0.654 | 0.874 | 8.4 | 0.140 | 0.608 | 0.894 | 92.53 ± 0.10 | 72.59 ± 0.84 | |
| TraceDiffusion (, ) | -inverted | ✓ | 11.9 | 0.476 | 0.622 | 0.873 | 18.0 | 0.227 | 0.543 | 0.890 | 91.86 ± 0.07 | 70.50 ± 1.63 |
| Gaussian noise | – | 7.8 | 0.402 | 0.726 | 0.862 | 14.1 | 0.431 | 0.706 | 0.890 | 91.99 ± 0.09 | 74.28 ± 0.45 |
Table 2.
| Inversion model | Checkpoint (kimg) | TrR |
| EDM-2 (uncond) | 188,743 | 0.820 |
| EDM-2 AG | 5,242 | 0.962 |
| (converged) | 188,743 | 0.886 |
| (early) | 5,242 | 0.945 |
| (converged) | 78,643 | 0.861 |
| (early) | 5,242 | 0.946 |
Table 17. Traceability Rate on CelebA across candidate inversion denoisers (50k train images, Oracle threshold 0.5).
Downstream utility. All generators remain below real data under TSTR (Table 2); the quantity that matters for traceability is the cost of the traceable start relative to the untraceable one. On CelebA this cost is a AUC-ROC (), five to ten times smaller than for EDM-2 (+0.62), EDM-2 AG (+0.72), and the class-conditional model (+1.26), whose costs are all significant at . On MIMIC-CXR it is a AUC-ROC (), concentrated on chronic structural findings such as Cardiomegaly that are coupled to patient anatomy. The paired tests and the per-attribute decomposition are in Appx. A.14.
Counterfactual generation. The disentanglement also allows editing the class while keeping the identity, the reverse direction of the previous experiments. In a preliminary experiment we labelled each CelebA identity with an ethnicity using Qwen3-VL, retrained the encoders and diffusion models, and reversed the guidance (Figure 4). For 40 edits (8 per target ethnicity), the Qwen3-VL-8B judge perceives the target ethnicity at some guidance strength in 77.5% of cases; failures concentrate on underrepresented classes (latino 3/8, indian 5/8, versus 8/8 for white and asian). This suggests the disentanglement carries over to generated images and could support fairness audits of how much ethnicity affects a model’s predictions.

Figure 4. Counterfactual and identity-reversing generation on CelebA. Because the disentangled pair separates class from identity, the two guidance directions can be applied independently. Left: TraceDiffusion. Right: Inverse TraceDiffusion. Keep identity but change ethnicity. The identity and context are preserved while the ethnicity moves to the target class.
Limitations. The MIMIC-CXR utility gap is explained by identity-anatomy entanglement (Appx. A.14) but is not zero; retraining with patient-stratified hard negatives from anatomy-similar patients is a natural mitigation. On MIMIC-CXR 24.3% of guided samples match another training patient, against 5.5% for real test images. The classTable 2. Generative metrics and downstream classification performance (TSTR). FID ↓: generation quality (50k samples). Starting latent: the -inverted latent of a source image , or Gaussian noise. Tr.: whether the output is traceable. See Table 1. NR ↑: novelty rate, fraction of outputs verified as a novel identity by against the source image ; defined only for generation from an inverted latent (source known). IRS ↑: image retrieval score [22]. AUC-ROC ↑: mean AUC-ROC (%) under TSTR (ResNet-50, mean ± std, 5 folds). Real data serves as upper bound for AUC-ROC only. † Methods not designed for identity novelty.
conditioned model alone already shows this overlap (15.3%), so it originates in and is increased by guidance; applying the audit during sampling and re-steering flagged samples is the direct remedy. Traceability provides accountability but no formal guarantee, and depends on the trustworthiness of the Oracle and LCMem.
Conclusion
We introduced TraceDiffusion, a latent diffusion framework that steers generation away from a named training identity while preserving class consistency, and certifies novelty per sample via a re-identification oracle. Every generated image carries a verifiable claim about which training identity it does not reproduce. An independent audit of every sample against the full training set supports this claim on CelebA: the share of samples matching their source identity falls from 96.9% for the reconstruction to 1.3% under guidance, and matches to other training identities stay at the false-alarm level of real images. Traceability costs only pp AUC-ROC downstream on CelebA, five to ten times less than the baselines, and on MIMIC-CXR, localised to chronic structural findings: identity-pathology entanglement, not the method, is the limiting factor.
LLM Usage Statement
We used Anthropic’s Claude models, through the Claude Code coding assistant, throughout this work. Affected parts: (i) the code of the experiments and evaluation pipeline (writing, refactoring and debugging); (ii) the plotting code of figures and tables; and (iii) the text of the paper, where the LLM drafted and edited passages and improved grammar and wording in all sections. The research ideas, the method, the experimental design and the interpretation of results are the authors’. The authors reviewed all generated code, results and text, verified all citations, and take full responsibility for the paper.
Acknowledgments
HPC resources were provided by the Erlangen National High Performance Computing Center (NHR@FAU), under the NHR projects b180dc and y100dc. NHR is funded by federal and Bavarian state authorities, and NHR@FAU hardware is partially funded by the DFG, 440719683. The authors received funding from the ERC-project MIA-NORMAL 101083647, 101326871, DFG 513220538, 512819079, and through the Hightech Agenda Bayern (HTA) of the Free State of Bavaria, Germany. This work was supported through the Bavarian AI Foundation Model Initiative, funded by the Bavarian State Ministry of Science and the Arts (StMWK).
Appendix
Evaluation Metrics
We evaluate all experiments along three axes: generation quality, identity novelty, and within-class diversity.
Fréchet Inception Distance (FID). FID [32] measures the distributional distance between real and generated images in the feature space of a pretrained Inception-v3 network. Lower FID indicates higher overall generation quality and better coverage of the real data distribution. We report FID computed over 50k generated samples against the full training set.
Traceability Rate (TrR) and Novelty Rate (NR). Both metrics are defined in § 3 as they are intrinsic to the pipeline. In brief, TrR measures the fraction of source images that the identity denoiser faithfully reconstructs under DDIM inversion; (Eq. (6)) measures the fraction of those traceable images for which memory guidance at scale produces a generation verified as novel against the source and its nearest identity neighbours.
Image Retrieval Score (IRS). IRS [22] measures diversity by asking what fraction of real training images can be retrieved as the nearest neighbour of at least one generated image in feature space. Intuitively, a model that covers the training distribution well retrieves many real images; a model that collapses to a single mode retrieves very few. We report IRS as a function of to detect guidance collapse within . Following [22], we use self-supervised SwAV [9] features as the embedding space.
Downstream Utility (AUC). To evaluate whether synthetic images preserve label-discriminative structure, we adopt the train-on-synthetic, test-on-real (TSTR) [23] protocol. A ResNet-50 classifier with a multi-label sigmoid head is trained exclusively on the synthetic training set and evaluated on the real held-out test set. We use 5-fold cross-validation with folds defined by patient or subject identity (all images of one identity remain in the same fold), so that the reported variance reflects genuine distributional uncertainty rather than seed sensitivity. The AUC-ROC metric is macro-averaged over all binary attributes; we report mean std across folds. Higher AUC-ROC indicates that the synthetic data preserves label-discriminative signal; Real data (trained on real images) serves as the upper bound. We further evaluate two operational modes of generation: traceable (sampling initialised from the DDIM-inverted noise of source , anchoring each output to a named training identity) and untraceable (sampling initialised from random Gaussian noise, breaking the audit trail). Both modes produce synthetic datasets of the same size; their per-fold AUC-ROCs are compared in pairs.
Class-conditioning fidelity (). To verify that guidance does not corrupt the target attribute profile, we measure , the cosine similarity between the class embedding of the generated image and the class embedding of the source . Higher is better; values close to 1 indicate that the generated sample retains the attribute composition of the source. Class-encoding collapse, e.g. when the no-attribute-guidance ablation drifts off the source attribute profile, manifests as a sharp drop on this metric while leaving FID and IRS only mildly affected.
Paired significance tests. The two operational modes share fold splits, so traceable and untraceable AUC-ROCs are naturally paired: for each fold . For every method we report the per-fold mean difference , a one-sample paired -test on the differences (), a Wilcoxon signed-rank test (), and a BCa-bootstrapped 95% confidence interval on over resamples. With folds, the Wilcoxon test has a hard floor at (achieved whenever all fold-wise signs agree), so we treat the -test plus the bootstrap CI as the primary reporters and use Wilcoxon as a “sign-agreement check” only. The interpretive question is not “does each method differ from zero in absolute AUC-ROC”, but “which methods are statistically indistinguishable across the two operational modes”, because a method whose paired test cannot reject the null is one whose traceability comes effectively for free.
Nearest-Neighbor Retrieval: Memorization Check
To verify that neither nor exclusively memorize training images, we selected five source images from the CelebA training set, generated one image per source, and retrieved the five closest training images for each generated output using five independent metrics: (1) pixel-space MAE, (2) cosine similarity on cached identity embeddings , (3) cosine similarity on cached class embeddings , (4) cosine similarity on Oracle backbone features, and (5) the full Oracle similarity score . We visually verified that across all five metrics and all five sources, no generated image was a near-duplicate of any training image, confirming that both models are able to generalize rather than only reproduce seen samples. Figure 5 (CelebA, ), 6 (MIMIC-CXR, ), and 7 (CelebA, ) show one representative source per case.

Figure 5. Nearest-neighbor retrieval for one representative class-conditioned () generated image. Each row shows the five closest training images found by one of the five retrieval metrics (MAE, , , Oracle features, Oracle prediction). The low visual similarity across all metrics indicates the model does not memorize training data. The number on top of the source images indicate how long retrieval takes (retrieve from entire train set).
Why Disentanglement Is Necessary
Disentanglement is not merely a quality improvement; it is a structural requirement for the entire pipeline to function as claimed. We identify three failure modes that arise if , i.e. if the identity embedding retains residual label information.

Figure 6. Nearest-neighbor retrieval for one representative class-conditioned () generated image on MIMIC-CXR.

Figure 7. Nearest-neighbor retrieval for one representative identity-conditioned () generated image. Same five retrieval metrics as Figure 5. The low visual similarity confirms also generalizes rather than memorizes.
(i) Guidance corruption. The guidance formula (Eq. (4)) subtracts the memory score from the class score at every denoising step. For this subtraction to steer generation only in the identity direction, the two scores must capture orthogonal modes of variation. If leaks label information, also models class-level variation, so the difference contains a class component: guidance then simultaneously steers away from the source identity and away from the target label cell. At scale this degrades both novelty and class consistency, with the degradation compounding as increases.
(ii) Invalidation of the novelty existence proof. Proposition 1 reasons about a pure identity subspace of dimension . If encodes label information, then is not a pure identity manifold: the -ball packing argument holds over a mixed latent space where the “uncovered” region may correspond to novel label combinations rather than novel identities. The novelty guarantee then loses its semantic content.
(iii) Opacity of the ReID verification. is calibrated to measure identity novelty. If encodes class attributes, a generated image might pass the ReID test by differing in a visible attribute (e.g. hair color) rather than in identity, yielding a false positive novelty claim. Disentanglement is therefore a pre-condition for to serve as a valid novelty certificate.
The symmetric condition, namely that does not leak identity information, is equally important: if absorbs identity variation, the class-conditioned model already varies identity at , and the guidance scale loses its role as a controllable novelty knob. Both directions of leakage are validated empirically: we require post-hoc AUC-ROC on across all attributes and near-chance identity retrieval from before proceeding to diffusion model training (§ 4.1).
Disentangled Encoder: Architecture and Training
Encoder structure. The full encoder pipeline is depicted in Figure 8. We use two encoders with independent parameters, each mapping directly from image space:
yielding and . The full latent representation is .
The vector is a continuous label embedding, trained via a multi-label binary cross-entropy loss against the class labels :
The vector is an identity embedding, trained with a Siamese contrastive loss to be discriminative over identities.
Adversarial Disentanglement. To ensure carries no label information, is trained adversarially against a label discriminator via the minimax objective:
The full training objective for the encoder is:
where controls the strength of the disentanglement penalty. At the minimax equilibrium [26, 29], cannot perform better than random guessing on , implying . In practice adversaries only approximate this. In practice we have for a small empirical , validated by measuring the AUC-ROC of a post-hoc attribute classifier trained on , which should approach 0.5 across all attributes.
Identity encoder . A ResNet-50 backbone modified with a , stride-2 stem (no max-pool) for compatibility with Flux2 latent resolution maps each input to a 2048-d feature, projected to , -normalised. The 32-dimensional bottleneck physically limits the capacity of to encode 40 independent binary attributes while still supporting identity discrimination (see ablation, Table 4). is trained with the Siamese contrastive loss of the Oracle (Sec. A.11) on paired samples from the same identity:
| Method | Class encoding (AUC-ROC ) Train | Class encoding (AUC-ROC ) Val | Identity retrieval (Recall@ ) Train R@1 | Identity retrieval (Recall@ ) Train R@5 | Identity retrieval (Recall@ ) Val R@1 | Identity retrieval (Recall@ ) Val R@5 | |
| Siamese, no suppression | 512 | 0.894 | 0.890 | 0.771 | 0.815 | 0.808 | 0.903 |
| + CLUB | 512 | 0.846 | 0.840 | 0.695 | 0.778 | 0.784 | 0.886 |
| + GRL † | 512 | 0.639 | <u>0.640</u> | 0.001 | 0.007 | 0.017 | 0.060 |
| Siamese, no suppression | 128 | 0.869 | 0.867 | 0.776 | <u>0.817</u> | <u>0.796</u> | <u>0.898</u> |
| Siamese, no suppression | 16 | 0.795 | 0.798 | 0.757 | 0.814 | 0.620 | 0.802 |
| Siamese, no suppression | 8 | 0.773 | 0.780 | 0.569 | 0.753 | 0.403 | 0.653 |
| Siamese, no suppression | 64 | 0.851 | 0.849 | <u>0.777</u> | <u>0.817</u> | 0.787 | 0.893 |
| + CLUB | 64 | 0.679 | 0.678 | 0.737 | 0.800 | 0.755 | 0.868 |
| + CLUB (5 steps) | 64 | 0.671 | 0.673 | 0.564 | 0.713 | 0.696 | 0.834 |
| + CLUB (=5) | 64 | 0.715 | 0.714 | 0.534 | 0.669 | 0.745 | 0.854 |
| + CLUB (=5, 5 steps) | 64 | 0.639 | 0.637 | 0.013 | 0.045 | 0.089 | 0.223 |
| + GRL † | 64 | 0.652 | 0.648 | 0.003 | 0.013 | 0.023 | 0.080 |
| Siamese, no suppression | 32 | 0.812 | 0.815 | 0.783 | 0.819 | 0.739 | 0.866 |
| + CLUB (Ours) | 32 | 0.631 | <u>0.640</u> | 0.733 | 0.801 | 0.718 | 0.851 |
| + CLUB (=5) | 32 | 0.641 | 0.644 | 0.557 | 0.699 | 0.704 | 0.831 |
| + CLUB (=5, 5 steps) † | 32 | 0.647 | 0.649 | 0.007 | 0.030 | 0.076 | 0.194 |
Table 4. Identity encoder ablation on CelebA ( identities, attributes, identity-disjoint train / val split). Class encoding (AUC-ROC ): linear-probe AUC-ROC averaged over all 40 attribute classifiers fitted on ; lower means fewer attributes are decodable from the identity embedding. Train and val AUC-ROC near-equal indicates genuine suppression (probe not overfitting). Identity retrieval (Recall@ ): fraction of queries whose top- nearest neighbours in space share the same identity label; higher means is more discriminative. Train recall (10k subsample) measures identity memorization; val recall measures generalization to unseen identities, i.e., the operationally relevant quantity. † Identity collapsed: train recall < 0.01, embedding carries no discriminative signal. Best per column in bold, second best <u>underlined</u>. Our method highlighted in gray.
where is BCE on via a learned comparison head and [11] uses temperature . To suppress attribute leakage, a CLUB penalty minimizes with a staged warm-up ramping from 0 to 1 over 10 epochs, allowing the Siamese objective to first establish a stable identity manifold:
Class encoder . A ResNet-50 backbone projects to , -normalised, trained with multi-label BCE over all 40 class attributes and a CLUB penalty minimizing with weight :
The CLUB term requires an identity signal during training; we provide it by jointly training an auxiliary identity encoder with the same architecture as but projecting to (no bottleneck), discarded after training completes.
Optimiser. Both encoders use AdamW [41, 52] (, , weight decay ) with cosine learning-rate decay, a one-epoch linear warm-up, and per-group rates (backbone , head ) for 30 epochs each. After training, and are extracted and cached for all training images; these cached embeddings serve as conditioning signals for and .
Diffusion Model Training and Sampling
Architecture. Both and use the EDM2 [39] U-Net, which preserves the magnitudes of activations, weights, and updates throughout training via careful preconditioning, yielding improved training dynamics. The U-Net is conditioned on the respective encoder embedding or via cross-attention at each resolution level. We fine-tune from a pretrained ImageNet EDM2-M checkpoint (32-channel Flux2 latent space).
Training. Both models are trained with the EDM2 preconditioning loss:
where is the preconditioned denoiser, is the EDM2 loss weighting, and . The linear noise schedule with log-normal timestep sampling is used throughout. Optimisation uses Adam (, , lr ) with EMA weight averaging.
Guided Sampling. At inference, a source image is selected from the training set; both and are extracted from that same image, so the output retains the attribute profile of while being steered away from its identity. The guided denoising score at each timestep is:
where is the guidance scale. We use the Heun second-order sampler with 35 discretization steps and fix for all reported experiments. By grounding in a known training identity , novelty can be verified directly against via without exhaustive comparison against the full training set.
Latent space identity encoder ablation
Due to the observed advantages of using a latent space feature encoder, we similarly experiment with a latent space identity encoder in Table 3. The results are generally inferior, suggesting that the identity encoder profits a lot from image space features.
| Method | Class encoding (AUC-ROC ) Train | Class encoding (AUC-ROC ) Val | Identity retrieval (Recall@ ) Train R@1 | Identity retrieval (Recall@ ) Train R@5 | Identity retrieval (Recall@ ) Val R@1 | Identity retrieval (Recall@ ) Val R@5 | |
| Siamese, no suppression | 512 | 0.827 | 0.819 | 0.824 | 0.825 | 0.567 | 0.759 |
| + CLUB | 512 | 0.883 | 0.876 | 0.822 | 0.824 | 0.426 | 0.632 |
| + GRL † | 512 | 0.740 | 0.741 | 0.007 | 0.017 | 0.043 | 0.110 |
| + GRL † | 512 | 0.502 | 0.504 | 0.000 | 0.001 | 0.002 | 0.008 |
| Siamese, no suppression | 64 | 0.821 | 0.821 | 0.824 | 0.825 | 0.320 | 0.549 |
| Siamese, no suppression | 16 | 0.718 | 0.728 | 0.823 | 0.825 | 0.237 | 0.470 |
| + GRL † | 16 | 0.777 | 0.775 | 0.003 | 0.015 | 0.023 | 0.087 |
| + GRL † | 16 | 0.686 | 0.684 | 0.001 | 0.003 | 0.007 | 0.024 |
| Siamese only (no CLUB) | 16 | 0.700 | 0.711 | 0.824 | 0.825 | 0.337 | 0.589 |
| + CLUB (Ours) | 16 | 0.569 | 0.572 | 0.824 | 0.825 | 0.315 | 0.549 |
Table 3. Small stem latent space identity encoder ablation on CelebA ( identities, attributes, identity-disjoint train / val split). Following the same settings as Table 4.
Identity Encoder Ablation
Training a low-dimensional identity encoder that simultaneously achieves strong identity discriminability and suppresses attribute leakage presents a fundamental challenge: standard adversarial disentanglement techniques tend to collapse the identity signal entirely once the suppression penalty is strong enough, while weak penalties leave attribute leakage unaddressed.
Architecture. All runs share the same ResNet-50 [30] backbone pretrained on ImageNet [14] (V2 weights). The identity encoder operates in image space. The backbone outputs a 2048-d global average-pool feature, projected through a single linear head to , -normalized. The projection head dimensionality is the primary ablation axis. is trained entirely independently of with the CLUB objective targeting the raw CelebA attribute annotations directly, not embeddings.
Identity loss. All runs use the Siamese contrastive loss of the Oracle (Sec. A.11) on paired samples drawn from the same identity:
where is BCE on the absolute difference via a learned comparison head, and [11] is the normalized temperature-scaled cross-entropy loss with temperature . Positive pairs are formed by sampling two distinct images of the same CelebA identity within each minibatch; negatives are the rolled-within-batch complement.
Suppression mechanisms. We compare three suppression strategies applied on top of the Siamese loss, each targeting all 40 binary attributes simultaneously. (i) Gradient Reversal Layer (GRL) [26]: an adversarial MLP is inserted after the projection head; a GRL negates its gradient before backpropagation into the encoder, forcing to be uninformative about attributes. The adversarial penalty weight is swept per dimensionality. *(ii)
CLUB [12]: a variational mutual information upper bound estimator is jointly trained with the encoder; the CLUB objective minimizes an upper bound on . A staged warm-up ramps the CLUB penalty from 0 to 1 over 10 epochs, allowing the Siamese objective to first establish a stable identity manifold before MI minimization begins. (iii) Bottleneck only: no adversarial or MI objective is applied; disentanglement relies entirely on the limited capacity of the -dimensional projection head. Our final model combines CLUB with .
Training. All runs use 30 epochs, batch size 1024, Adam (, ) [41], cosine learning-rate decay with a one-epoch linear warm-up, , , and weight decay . Training data are 3-channel RGB images at spatial resolution; we compare this to latent-space training in Appx. A.9.
Evaluation. We evaluate two properties of via post-hoc probes. Class encoding (attribute leakage): a logistic regression probe is fit per attribute on training embeddings and evaluated on the val split (unseen identities); near-equal train and val AUC-ROC confirms suppression generalises and is not an artifact of probe overfitting. Identity discriminability: Recall@ computed on the val split (unseen identities, operationally relevant) and a 10k subsample of the train split (memorization check).
Analysis. Several findings emerge from Table 4. First, the no-suppression baseline () achieves the highest identity retrieval (Val R@1 = 0.808) but the worst class encoding (AUC-ROC = 0.890), confirming that without any disentanglement object
disentanglement objective the identity embedding is heavily confounded with attribute information. Second, CLUB at achieves modest suppression (AUC-ROC = 0.840 vs. nosup 0.890, ) while preserving most identity retrieval (Val R@1 = 0.784, ). Suppression is substantially weaker than at (Val AUC-ROC 0.840 vs. 0.642), consistent with the known degradation of variational MI estimators in high-dimensional spaces. Third, GRL at achieves strong suppression (AUC-ROC = 0.640, near chance level), but at the cost of a complete identity collapse (train R@1 = 0.001): the adversary forces toward a constant embedding rather than a selective attribute-free representation. This confirms that GRL is not selectively suppressing attribute dimensions but is instead erasing all structure in . Fourth, reducing progressively from 512 to 16 with no suppression objective yields a monotone trade-off: val AUC-ROC decreases from 0.890 to 0.798 while val R@1 decreases from 0.808 to 0.620. The capacity constraint physically prevents from simultaneously encoding 40 binary attributes and a 10k-identity discrimination signal. At this trade-off becomes unfavourable (val R@1 = 0.403), establishing as the minimum useful bottleneck; improves both suppression and retrieval over , making it the preferred choice. Train and val AUC-ROC are near-equal throughout all bottleneck runs (within 0.01), confirming that suppression generalises to unseen identities rather than being an artefact of probe overfitting. Fifth, GRL combined with smaller bottlenecks does not recover: at every tested, GRL drives train R@1 below 0.01, confirming that the adversarial penalty disrupts identity structure without achieving the selective attribute suppression that CLUB delivers. Sixth, combining CLUB with (Ours) achieves the best val suppression among non-collapsed methods (Val AUC-ROC = 0.640) while retaining near-complete identity discriminability (Val R@1 = 0.718, Val R@5 = 0.851). The gain over the pure-bottleneck baseline at (nosup Val AUC-ROC 0.815 0.640, ) confirms that CLUB provides genuine additional suppression beyond what the bottleneck alone achieves, once the embedding capacity is constrained enough for the variational estimator to function reliably.
Class Encoder Ablation
We train for 30 epochs on the CelebA training split, using Flux2 latents with the small-stem ResNet-50 backbone, following Eq. equation 14. We ablate the CLUB penalty weight while keeping the backbone and head architecture fixed. Results are shown in Table 5.
| Class encoding | Identity retrieval | |
| AUC-ROC ↑ | R@1 ↓ (< 0.205†) | |
| 0 | 0.894 | 0.076 |
| 1.0 | 0.864 | 0.046 |
| 10.0 | 0.863 | 0.043 |
| 50.0 | 0.865 | 0.041 |
Table 5. Class encoder ablation on CelebA ( attributes). : CLUB penalty weight on . AUC-ROC ↑: mean attribute-probe AUC-ROC on ; higher means class attributes are more decodable. R@1 ↓: identity retrieval from ; must stay below the attribute-only baseline of 0.205†. Best per column in bold.
Analysis. All four runs pass the identity-leakage gate (), meaning none of the configurations leak enough identity to invalidate the class embedding as a label-only representation. The unpenalised baseline () achieves the highest attribute AUC-ROC (0.894), as is free to encode any discriminative structure including identity-correlated features, reflected in a higher leakage (R@1=0.076). Once the CLUB penalty is applied (), AUC-ROC drops to 0.863–0.865 and identity leakage falls to 0.041–0.046, which is a 2× reduction in R@1 at a cost of only 3 pp in AUC-ROC. The run with (highlighted) achieves the lowest leakage (R@1 = 0.041) and is selected as the class encoder checkpoint. Preliminary downstream runs across checkpoints did not yield measurable differences in NR or IRS, so we adopt the lowest-leakage configuration () as the default for all subsequent experiments and treat the residual leakage difference as operationally irrelevant.
Encoder input space ablation
To isolate the effect of the input representation and backbone stem, we train both encoders on all three configurations, namely image space with standard stem, latent space with standard stem, and latent space with small stem (Ours), from scratch using identical hyperparameters (, CLUB staged warmup, , 30 epochs). Results are reported in Table 6.
| Identity encoder () | Class encoder () | ||||||
| Latent | Sm. stem | AUC-ROC ↓ | R@1 ↑ | R@5 ↑ | AUC-ROC ↑ | R@1 ↓ | |
| Train | 0.624 | 0.670 | 0.783 | – | – | ||
| ✓ | 0.571 | 0.824 | 0.824 | – | – | ||
| ✓ | ✓ | 0.569 | 0.824 | 0.825 | – | – | |
| Val | 0.635‡ | 0.617 | 0.788 | 0.896 | 0.156 | ||
| ✓ | 0.568 | 0.256 | 0.482 | 0.854 | 0.038 | ||
| ✓ | ✓ | 0.572 | 0.315 | 0.549 | 0.865 | 0.041 |
Table 6. Input-space and stem ablation for (, CLUB) and . Each row trains both encoders from scratch in the same input space. Identity encoder (): attribute-probe AUC-ROC (↓), Recall@1 and @5 (↑); shown for both train and val splits. Class encoder (): attribute-probe AUC-ROC (↑) and identity retrieval R@1 (↓, must be < 0.205†); val split only (probe fitted on train). Best per column in the val split in bold; shading marks the selected configuration. ‡ Fails disentanglement gate (val AUC-ROC > 0.55).
Image space vs. latent space. Operating in raw image space yields the highest identity discriminability (Val R@1 = 0.617, R@5 = 0.788) and the best class attribute decodability (AUC-ROC = 0.896), but attribute suppression in fails the disentanglement gate (mean AUC-ROC = 0.635 ≫ 0.5). Raw pixel features encode many attribute-correlated signals such as illumination, background, and hair texture that are not separable from identity at this bottleneck dimension; CLUB at cannot suppress them to chance level. Flux2 latents, by contrast, are produced by a variational encoder that already discards high-frequency pixel-level variation, compressing out much of the attribute-correlated nuisance; this makes CLUB suppression tractable.
Standard stem vs. small stem (within latent space). The standard ResNet-50 stem (7×7 conv, stride 2, max-pool) reduces 64×64 latent inputs to a 3×3 spatial grid before global average pooling, which is spatially too coarse for fine-grained identity features. The small stem (3×3 conv, stride 2, no max-pool) preserves a 16×16 intermediate representation. Switching to the small stem improves Val R@1 from 0.256 to 0.315 (+5.9 pp) at a negligible suppression cost (AUC-ROC 0.568 → 0.572, +0.4 pp). This gain is operationally significant: a higher-recall produces a more informative guidance signal when steering generation away from a source identity.
MIMIC-CXR Encoder Ablation
MIMIC-CXR presents a harder encoder training problem than CelebA for two reasons. First, the pathology label distribution is heavily long-tailed: labels such as Support Devices and Cardiomegaly dominate, while Fracture and Pleural Other are rare. This imbalance makes the CLUB estimator unreliable at low because the variational net focuses on high-prevalence attributes and underestimates mutual information for rare ones, leaving their signal in unsuppressed. Second, MIMIC-CXR has 38k+ identities across 91k images (≈2.4 images per patient), providing far fewer positive pairs per identity than CelebA (≈16), which slows convergence of the Siamese objective.
Table 7 summarises the three configurations we compared. Compared to the initial 30-epoch, =50 run (01b), doubling the training budget to 50 epochs and strengthening regularisation to =100 / =2 reduces attribute leakage from 0.563 to 0.529 (below the 0.55 gate), while improving attribute decodability from 0.690 to 0.733. The no-CLUB baseline confirms that suppression is the decisive factor: without it, val AUC-ROC rises to 0.706, even though recall is marginally higher (0.756 vs 0.752), and the encoder memorises identity precisely because it retains pathology-correlated structure.
| Config | AUC-ROC ↑ | R@1 ↓ | AUC-ROC val ↓ | AUC-ROC train ↓ | R@1 val ↑ | R@5 val ↑ |
| 30 ep, , | 0.690 | 0.003 | 0.563† | <u>0.559</u> | <u>0.755</u> | <u>0.764</u> |
| 50 ep, no CLUB () | <u>0.720</u> | 0.004 | 0.706† | 0.714† | 0.756 | 0.764 |
| 50 ep, , | 0.733 | 0.005 | 0.529 | 0.526 | 0.752 | 0.763 |
Table 7. Encoder ablation on MIMIC-CXR ( identities, pathology labels, identity-disjoint train / val split, 91,843 train / 11,566 val images). Class encoder (): attribute-probe AUC-ROC on (↑) and identity retrieval R@1 on (↓, must be < 0.005, the attribute-retrieval baseline). Memory encoder (): attribute-probe AUC-ROC on (↓, gate ≤ 0.55), shown for both train and val splits, and identity Recall@1/5 on the val split (↑). Best per column in bold, second best <u>underlined</u>. † Fails disentanglement gate (val AUC-ROC > 0.55). Shading marks the selected configuration.
Re-identification Oracle: Training
Role in the pipeline. The re-identification oracle (the Oracle) serves two distinct functions in TraceDiffusion. First, it defines identity novelty: is the condition a generated image must satisfy to be certified as a new identity. Second, its contrastive objective is reused verbatim to train the identity encoder , ensuring that the identity metric used to steer generation is compatible with the metric used to certify its output. We train in two stages: Stage 1 operates on pre-computed Flux2 latents; Stage 2 fine-tunes the checkpoint in image space with on-the-fly VAE encoding and strong augmentations.
Architecture. is a Siamese network with a ConvNeXt-Tiny [51] backbone shared between both branches. The backbone output is projected to a 512-dimensional embedding; a learned comparison head takes the absolute difference and produces a scalar logit. The input channels are set to 32 to match the Flux2 latent dimensionality. Image size is (the spatial resolution of the latents prior to any resizing), but following the pretrained model, we perform resizing to and center cropping to .
Training data. We train on a combined pool of CelebA [50] and MIMIC-CXR [36] Flux2 latents, totalling 296,056 samples split into 193,762 / 28,711 / 73,583 (train / val / test). Identities are kept distinct across the two datasets, so no identity can occur in both. Critically, negatives during both training and evaluation are sampled within dataset, because a CelebA face is never compared against a MIMIC-CXR chest radiograph, which would be trivially easy and inflate AUC-ROC.
Loss and optimiser. Training minimises a weighted combination of binary cross-entropy on the comparison head and NT-Xent contrastive loss:
with temperature . During training, positive pairs are two latents of the same identity; negatives are all other identities present in the same batch (in-batch random negatives, no explicit hard mining). Optimiser: Adam (, ), batch size 512, cosine LR decay (), early stopping with patience 25. No spatial augmentations are applied to latents beyond a small per-sample normalisation perturbation ().
Compute. Training runs on a single NVIDIA H100 (95 GB). Training converged at epoch 177 (of 500 max) in 1 h 14 min wall time.
Results. Table 8 reports test-set performance evaluated separately per dataset to avoid inflation from cross-modality trivial pairs.
| Subset | AUC-ROC | Accuracy | Pairs |
| CelebA (faces vs. faces) | 0.9396 | 0.870 | 119,994 |
| MIMIC-CXR (CXR vs. CXR) | 0.9858 | 0.864 | 27,138 |
| Overall | 0.9433 | 0.869 | 147,132 |
| 95 % CI | [0.9421, 0.9445] | – | – |
Table 8. Oracle Stage 1 test performance on Flux2 latents. Pairs are sampled within dataset; overall metrics pool both datasets. 95 % bootstrap CI for overall AUC-ROC computed over 10,000 resamples.
Stage 2: image-space fine-tuning. Stage 2 fine-tunes the Stage 1 checkpoint in image space: images are encoded on-the-fly to Flux2 latents via a frozen VAE and the model is trained with strong data augmentations (random crops, horizontal flip, blur, Gaussian noise, brightness/contrast jitter, JPEG compression) at , batch size 64, early stopping with patience 10, combined BCE () + NT-Xent loss. Table 9 reports the per-dataset test performance after Stage 2: overall AUC-ROC improves from 0.9433 (Stage 1) to 0.9477 and accuracy from 0.869 to 0.881.
| Subset | AUC-ROC | Accuracy | Pairs |
| CelebA (faces vs. faces) | 0.9482 | 0.884 | 119,994 |
| MIMIC-CXR (CXR vs. CXR) | 0.9902 | 0.868 | 27,138 |
| Overall | 0.9477 | 0.881 | 147,132 |
| 95 % CI | [0.9466, 0.9488] | – | – |
Table 9. Oracle Stage 2 test performance (image-space fine-tuning). Pairs are sampled within dataset; overall metrics pool both datasets. 95 % bootstrap CI for overall AUC-ROC computed over 10,000 resamples.
One-vs-All Audit: Protocol and Full Results
Auditor. The audit of § 4.3 uses LCMMem [21], applied to the Flux2 latents and scored by the cosine of its -normalised embeddings. It is independent of the pipeline: the generators, the encoders, TrR and NR were all trained or computed with the Oracle (Sec. A.11), and all audited samples were generated before the audit, at the fixed guidance scale of each method.
Protocol. For each dataset we embed every training latent once (122,825 CelebA images of 6,106 identities; 91,843 MIMIC-CXR images of 38,577 patients). Every generated latent is compared with all of these embeddings; no nearest-neighbour pre-selection is used. The threshold is the 95th percentile of the best score of the real validation images against the training embeddings ( on CelebA, on MIMIC-CXR). The reference rate is measured on the real test images, which share no identity with the training set: 3,232 of 60,014 CelebA images (5.4%) and 883 of 16,125 MIMIC-CXR images (5.5%) exceed . uses all training images of the source identity, not only the source image.
Untraceable mode. Table 10 repeats the audit for sampling from random noise (all 50k samples per method). The other-identity match rates are close to those of traceable mode for every method, so they are a property of the denoisers and not of the inverted start. The identity-conditioned model reproduces its conditioning identity in 27.0% (CelebA) and 47.3% (MIMIC-CXR) of the samples even from random noise.
| Method | CelebA MR | CelebA MR | MIMIC-CXR MR | MIMIC-CXR MR |
| Real test images (reference) | – | 5.4 | – | 5.5 |
| EDM-2 | 0.9 | 2.7 | 0.0 | 6.0 |
| EDM-2 AG | 1.5 | 7.0 | 0.0 | 16.5 |
| only () | 27.0 | 6.7 | 47.3 | 10.7 |
| only () | 0.7 | 4.0 | 0.1 | 14.9 |
| TraceDiffusion () | 0.0 | 5.4 | 0.0 | 23.2 |
Table 10. One-vs-all audit with LCMem in untraceable mode (%, 50k samples per method). Columns as in Table 1.
Agreement between the Oracle and LCMem. The Oracle is a pairwise classifier thresholded at 0.5; LCMem is a cosine score thresholded at a one-vs-all false-alarm rate of 5%. Table 11 compares their verdicts on whether a sample still shows its source image (traceable mode, traceable sources). They agree on about 90% of the reconstructions, but the Oracle attributes a much larger share of the guided and baseline samples to the source than LCMem does. The novelty rates reported with the Oracle are therefore conservative relative to the audit.
| Method | CelebA | CelebA Agree | MIMIC-CXR | MIMIC-CXR Agree |
| EDM-2 | 40.1 | 61.0 | 40.0 | 60.1 |
| EDM-2 AG | 36.1 | 68.1 | 52.2 | 48.1 |
| only () | 92.0 | 92.1 | 86.6 | 88.0 |
| only () | 64.5 | 62.2 | 51.8 | 49.5 |
| TraceDiffusion () | 32.5 | 68.0 | 47.3 | 52.7 |
Table 11. Share of samples the Oracle attributes to their source () and agreement of the Oracle with LCMem (cosine to the source image above ) on this verdict (%).
Guidance-scale sweep. Table 1 audits three guidance scales. Figure 9 fills in the scales between and beyond them. For each dataset we draw 2,000 sources uniformly at random, without replacement, from the traceable sources of Table 1 (43,028 on CelebA, 45,284 on MIMIC-CXR). Each source is sampled once per scale of Eq. (4), always from its stored inverted latent, which is the latent used for the 50k sets. All scales of one source therefore share the same start, and the curves differ only in . The denoisers and , the conditioning embeddings and the sampler (Heun, 32 steps) are those of the main experiments. Every sample is then audited as described above, against the same training embeddings and with the same thresholds . With 2,000 samples per point the 95% intervals are at most ±2.2 percentage points.
At the sweep reproduces Table 1 to within about one percentage point on both datasets. On CelebA the source match rate falls steadily with the scale, from 97.7% for the reconstruction to 39.4% at , 7.3% at , 1.5% at and 0.4% at . The other-identity match rate stays between 4.0% and 6.4% at every scale, around the reference of 5.4%: stronger guidance removes the source identity without moving the samples into another training identity. On MIMIC-CXR the source is left almost immediately (94.6% for the reconstruction, 3.4% at , 0.2% at ). The other-identity match rate behaves differently: it is 5.1% for the reconstruction, 15.3% at , rises to 25.1% at and is still 22.2% at , against a reference of 5.5%. No scale in the tested range brings it back to the reference, so the overlap with other training patients cannot be removed by choosing a different guidance scale.
Training Dynamics: Visual Progression and Generative Metrics
To understand when the diffusion models acquire their respective capabilities, we track both qualitative generation quality and quantitative metrics across eight checkpoint snapshots (5 k–189 k steps). We generate 20 k images for each checkpoint.
Qualitative progression. Figure 10 compares and side-by-side at each checkpoint for four held-out source identities, keeping the conditioning image and random seed fixed across all checkpoints. Two observations stand out. First, despite operating on different conditioning signals ( vs. ), both models produce structurally similar outputs for the same seed: the overall composition, pose, and rough facial structure agree across the pair at every step. Second, the global appearance of each generated identity is already established by k steps; later training introduces progressively finer texture and sharpness but does not alter the macro-level identity mapping. This suggests that the mapping from conditioning embedding to semantic structure is learned in a short initial phase, while subsequent training is largely spent refining high-frequency detail.

Figure 10. Visual progression of (top row per pair) and (bottom row per pair) across eight training checkpoints for four source identities. Conditioning image and random seed are fixed. Both models converge to a stable macro-identity early; later steps primarily sharpen texture without altering the global appearance.
FID and IRS over training. Figure 11 shows FID and IRS at the same eight checkpoints.

Figure 11. FID (↓) and IRS (↑) over training steps for (solid blue) and (dashed orange). The grey dashed line marks step 52 k, where FID is minimised for both models. FID drops steeply within the first 50 k steps and then degrades monotonically, suggesting that perceptual quality is acquired early while later optimisation primarily minimises training loss. IRS, by contrast, remains elevated well beyond 50 k: reaches its highest diversity score at 157 k (0.744), indicating that dataset-level diversity continues to improve even as sample fidelity declines. This decoupling is also visible in the encoder learning curves (Figure 3): identity retrieval and attribute cosine similarity keep improving long after FID has peaked.
FID improves sharply until k steps for both models (: 8.22 6.66; : 8.55 6.67) and degrades monotonically thereafter, consistent with the qualitative observation that structural content is fixed early. IRS shows a different profile: diversity peaks near 52 k for (0.747) but continues rising for , reaching its maximum at 157 k (0.744) before declining slightly. This divergence suggests that optimising the class embedding objective encourages the model to explore a broader region of attribute space even as raw sample fidelity decreases. Taken together, FID and IRS argue for early-stopped checkpoints in the 26 k–78 k range, consistent with the encoder learning curves in Figure 3, which show that identity retrieval and attribute cosine similarity also plateau in this window.
CelebA annotation noise. The CelebA AUC-ROC of 0.940 should be treated as a conservative lower bound. CelebA is known to carry a non-trivial rate of annotation errors: both the 40 binary attribute labels and, to a lesser extent, the identity cluster boundaries contain mistakes [64, 65, 70]. Mislabeled identity assignments create false negatives in the
└ positive pair stream (two images of the same true person assigned different IDs appear as a failed match), depressing AUC-ROC without reflecting a failure of to discriminate. The MIMIC-CXR AUC-ROC of 0.986 is higher partly because radiograph identity is determined by patient record linkage, which is substantially more reliable than the crowdsourced face clustering used for CelebA.
Seed diversity. Figure 12 shows how each model responds to different random seeds when the conditioning embedding is fixed to a single source identity. Each row holds one source image (leftmost) alongside eight samples drawn with different seeds; rows 1–2 show and rows 3–4 show .
Figure 12. Seed diversity for two source identities per model. Each row shows the source (training) image followed by eight samples generated with the same conditioning embedding but different random seeds. Rows 1–2: (identity-conditioned diffusion model). Rows 3–4: samples remain close to the source identity across seeds; samples vary more freely in identity while preserving class attributes. Row 1 illustrates that identity features are not entirely separated from attribute features: the model generates similarly looking women from the same conditioning. Row 2, by contrast, produces visually diverse individuals, as the identity conditioning was trained to not hold much information about visual appearance labels from CelebA. Overall, this is consistent with the quantitative results in Figure 3, which show that attributes are not entirely removable from the identity embedding.
Downstream Utility and the Cost of Traceability
Downstream AUC-ROC for all methods is in Table 2. EDM-2 leads in absolute AUC-ROC from inverted latents on both datasets, with TraceDiffusion trailing by roughly 0.5 on CelebA and 4 on MIMIC-CXR. Here we test how much of this is the cost of traceability, by pairing the two starting latents of each method across folds (Table 12).
| Dataset | Method | BCa CI | NR | |||||
| CelebA | EDM-2 | 92.32 | 92.94 | +0.62 | 0.0036 | 0.0625 | [0.46, 0.82] | 0.400 |
| CelebA | EDM-2 AG | 92.23 | 92.94 | +0.72 | <0.001 | 0.0625 | [0.65, 0.77] | 0.467 |
| CelebA | No-id-guidance (, ) | 91.27 | 92.53 | +1.26 | 0.0004 | 0.0625 | [1.07, 1.46] | 0.212 |
| CelebA | No-attr-guidance (, ) | 87.58 | 86.69 | −0.89 | 0.0085 | 0.0625 | [−1.26, −0.57] | 0.048 |
| CelebA | TraceDiffusion (, ) | 91.86 | 91.99 | +0.12 | 0.0987 | 0.1250 | [0.04, 0.24] | 0.476 |
| MIMIC | EDM-2 | 74.50 | 75.74 | +1.24 | 0.1729 | 0.1875 | [0.21, 2.85] | 0.343 |
| MIMIC | EDM-2 AG | 71.84 | 73.31 | +1.47 | 0.0619 | 0.1250 | [0.50, 2.44] | 0.233 |
| MIMIC | No-id-guidance (, ) | 72.10 | 72.59 | +0.49 | 0.6384 | 0.6250 | [−1.41, 1.92] | 0.251 |
| MIMIC | No-attr-guidance (, ) | 67.54 | 68.03 | +0.49 | 0.7147 | 1.0000 | [−1.09, 3.84] | 0.071 |
| MIMIC | TraceDiffusion (, ) | 70.50 | 74.28 | +3.78 | 0.0052 | 0.0625 | [2.69, 5.09] | 0.227 |
Table 12. Paired traceable-untraceable significance tests. and : mean AUC-ROC (%) across 5 identity-disjoint folds. . : one-sample paired t-test on per-fold differences. : Wilcoxon signed-rank test (floor at 0.0625 for when all signs agree). BCa CI: bias-corrected and accelerated bootstrap 95% CI on ( resamples). No indicates the paired test cannot reject at . TraceDiffusion is the only method with on CelebA, indicating traceability without measurable cost, and the only method with on MIMIC-CXR, where the cost is significant and analysed below. Tr and Un denote the -inverted and the Gaussian starting latent; for the EDM-2 baselines Tr is a matched reference, not traceable generation. The rightmost column reports the ReID Novelty Rate (NR) in traceable mode at the canonical guidance scale used by each method.
In terms of traceability gap, the two datasets exhibit opposite asymmetries. On CelebA every baseline incurs a cost at with between 0.62 and 1.26 AUC-ROC, whereas TraceDiffusion records at with a bootstrap CI of [0.04, 0.24]. The CI is bounded away from zero, but the effect is five to ten times smaller than for any baseline, which means the effect is smaller by an order of magnitude. The Wilcoxon statistic saturates at its small- floor of 0.0625 across most rows and serves only as a sign-agreement check. On MIMIC-CXR the asymmetry inverts: none of the baselines reject the null, while TraceDiffusion records AUC-ROC at with a bootstrap CI [2.69, 5.09] comfortably above zero. The gap is the cost of the identity-steering mechanism that enables the audit, and the per-attribute analysis below
shows it concentrates on a specific family of attributes coupled to patient anatomy. Because the per-fold traceable AUC-ROCs span with the highest fold standard deviation in the column (1.63), we ran leave-one-fold-out re-tests: removing fold 4 yields , , and removing fold 0 yields , , so no single fold drives the asymmetry (full tables in Appx. A.18). Together the two datasets bracket the operating range of an identity-aware generator: CelebA establishes that traceability can be obtained essentially for free, and MIMIC-CXR identifies a regime in which it is paid in measurable AUC-ROC.
Per-attribute analysis. To distinguish whether the AUC-ROC gap is spread evenly across the 14 pathology labels or concentrated on a subset, we compute the TSTR AUC-ROC per attribute and per fold and inspect two decompositions: , the per-attribute paired test for TraceDiffusion (where it pays its own traceability cost), and , the per-attribute gap between TraceDiffusion and EDM-2 in traceable mode (the deficit relative to the strongest baseline). Table 13 reports the top five attributes under each. Both decompositions identify overlapping families dominated by chronic structural findings such as Cardiomegaly, which is read from the heart silhouette and mediastinal contour. Once captures these signatures to satisfy its contrastive identity objective, steering away from perturbs the same features on which the downstream classifier relies, so the effect reflects how patient identity manifests in chest radiographs rather than an artefact of our pipeline. The CelebA decomposition (Appx. A.19) shows no attribute with AUC-ROC, consistent with the small aggregate , so the MIMIC-CXR cost is a property of the domain rather than of the generator and would be incurred by any identity-aware method that must read anatomy to discriminate patients. The No-id-guidance ablation on MIMIC-CXR records AUC-ROC at , confirming that traceable initialisation is approximately neutral on its own and that the gap arises only from the interaction between identity steering and traceable-mode initialisation.
| Attribute | (Ours: Tr−Un) | Tr | Un | Attribute | (Ours−EDM-2, Tr) | Ours | EDM-2 | ||
| Consolidation | 65.69 | 72.93 | −7.23 | Consolidation | 65.69 | 72.44 | −6.75 | ||
| Cardiomegaly | 66.42 | 72.39 | −5.97 | Cardiomegaly | 66.42 | 72.80 | −6.38 | ||
| Atelectasis | 61.40 | 66.74 | −5.34 | No Finding | 79.45 | 85.47 | −6.02 | ||
| No Finding | 79.45 | 84.75 | −5.30 | Pneumothorax | 72.06 | 77.99 | −5.93 | ||
| Pleural Effusion | 80.80 | 85.53 | −4.73 | Edema | 81.41 | 85.83 | −4.42 |
Table 13. Per-attribute decomposition of the MIMIC-CXR gap. Top five attributes by shown for each decomposition; remaining nine attributes have AUC-ROC. (left): TraceDiffusion, traceable minus untraceable AUC-ROC, capturing the cost of traceability for our method. (right): TraceDiffusion minus EDM-2, both in traceable mode, capturing the deficit relative to the strongest baseline in the audited regime. Both decompositions identify the same family of chronic structural findings whose radiographic appearance is tightly coupled to patient anatomy.
Static Downstream Classification Validation
We evaluate downstream utility using a locked static classification protocol. We measure the retention of classification performance when real training data are replaced by synthetic data from source . All other experimental factors, including dataset splits, classifier architecture, and optimization hyperparameters, are fixed a priori.
Datasets and Task Definition
Validation is performed on MIMIC-CXR (diagnostic utility) and CelebA (semantic utility). Tasks are formulated as binary classification problems for each label . Labels are included based on predefined support thresholds: and for both positive and negative classes.
Training-Set Construction
For each source and label , we construct a class-balanced training set such that . To ensure a fair comparison, the per-label budget is the maximum balanced budget supported by all sources, capped at a global maximum :
Non-Inferiority and Comparisons
We assess non-inferiority against the matched real-data baseline using a margin of . Our method is non-inferior if the lower bound of the 95% CI for exceeds . Primary comparisons (Ours vs. EDM2/EDM2-AG) are corrected for multiple comparisons using the Holm-Bonferroni method.
Empirical Verification of the Novel Identity Existence Condition
Proposition 1 requires
where is the number of training identities, is the identity embedding dimension, is the enclosing ball radius (exact, since embeddings are -normalised), and is the identity separation radius estimated as half the 5th percentile of cross-identity pairwise distances in .
Measurement protocol. After caching all training embeddings , we compute a per-identity mean embedding and re-normalise it to the unit sphere. We then compute all pairwise Euclidean distances between identity means and take the 5th percentile; . Only cross-identity pairs are used; within-identity distances are excluded by construction.
Results. Table 14 summarises the measurements for both datasets.
| Dataset | Condition | |||||
| CelebA | 6,106 | 1.123 | 0.562 | 1.781 | 15.10 | ✓ |
| MIMIC-CXR | 38,577 | 1.158 | 0.579 | 1.727 | 19.34 | ✓ |
Table 14. Empirical verification of the novel identity existence condition (, ).
Both datasets satisfy the condition comfortably. The pairwise distance distributions are similar across datasets (median , close to the expected value of for random unit vectors in ), confirming that the trained encoder spreads identity means broadly across the unit sphere while maintaining clear separation ( out of a maximum of 2).
Ablations with and without adversarial
Figure 13 shows class-conditioning retention as a function of guidance scale , comparing adversarial training of against a no-adversarial variant (Eq. (4)). A guidance scale of reduces to using only for generation. As expected, without adversarial learning the model relies more on attribute features, which leads to higher cosine similarity between the generated and training class embeddings . At (full class-conditional generation) both variants are equivalent, as both use the same . Increasing to steer away from the source identity reveals the advantage of adversarial learning: because retains fewer attribute features, subtracting it from removes less of the attribute signal and preserves more of the target attribute profile compared to the no-adversarial counterpart. Interestingly, the no-adversarial model peaks in attribute retention at ; this regime is still within the region where the Oracle predicts the same identity as the training image (see Figure 15). Figure 14 repeats this analysis when sampling is initialised from the DDIM-inverted latent of the source image (traceable mode); the same qualitative ordering holds, with adversarial training preserving more at .

Figure 13. Cosine similarity between source and generated class embedding as a function of guidance scale . At the sampler reduces to unconditional . Higher pushes the output further from the source identity.

Figure 14. Cosine similarity between source and generated class embedding vs. guidance scale (DDIM inversion start). At the sampler reconstructs the source via . Higher pushes the output further from the source identity.

Figure 15. Oracle rate as a function of DDIM inversion depth for guided generation with scale (solid) and -only denoising (dashed), evaluated on CelebA training images. At shallow inversions () all curves plateau near 1.0: the latent has barely moved from , so the round-trip output is trivially recognised as the source. The transition region – reveals the guidance effect: positive scales () steer generation away from the source identity and drive the memorisation rate down substantially, while negative scales amplify the identity signal and keep rates high. At full inversion (), achieves a memorisation rate of only , compared to for -only. As expected, and -only overlap throughout, confirming that negative-unity guidance is mathematically equivalent to pure identity-conditioned denoising (sanity check).
Full Qualitative Generation Examples
The following figures show all sampled source identities (10 per dataset) at the full guidance scale sweep . Higher guidance scales lead to degenerate images and visibly lower quality. However small scores higher than 1 (up to 1.5) still look reasonable and could be useful in certain cases. Figure 1 in the main text shows the first two rows; Figure 16 and Figure 17 shows more samples. In general, the training of was more stable, while we noticed overall stability issues for some checkpoints of the training . For CelebA we observe some failed traceability methods (at ) that turned into clear positives at very small guidance levels (e.g. row). We further observe that attribute fidelity is sometimes not perfectly preserved under strong guidance. For example, hair color occasionally shifts at higher guidance scales (). We note that demographic attributes such as ethnicity are not annotated in CelebA, so our attribute-consistency generation is not trained to preserve them.

Figure 1. Memory-guided generation at varying guidance scales. Each panel shows two source identities (rows) alongside outputs at increasing guidance scales . At (leftmost generated column) the denoiser reduces to and reproduces the source identity; at it reduces to the class-conditional baseline ; increasing steers generation progressively away from the source identity while preserving class attributes. Top: CelebA face generation (40 binary attributes). Bottom: MIMIC-CXR chest X-ray generation (14 pathology labels).

Figure 16. CelebA: 10 source identities at guidance scales . Each row is one source identity.

Figure 17. MIMIC-CXR: 10 source identities at guidance scales . Each row is one source identity.
Outlier Sensitivity for the MIMIC-CXR Paired Test
The MIMIC-CXR per-fold AUC-ROCs for TraceDiffusion in traceable mode are (mean 70.50, std 1.63, the highest fold-wise standard deviation in the column of Table 2). Two folds are flagged as outliers under a rule: fold 4 () and fold 0 (). Table 15 re-runs the paired traceable-vs-untraceable test with each flagged fold removed in turn. Both sensitivity checks remain significant at , ruling out a single-fold artefact as the cause of the asymmetry reported in § 4.4.
| Sensitivity check | ||||
| Full 5 folds | 70.50 | 74.28 | +3.78 | 0.0052 |
| Excl. fold 4 () | 71.21 | 74.47 | +3.26 | 0.0099 |
| Excl. fold 0 () | 69.98 | 74.24 | +4.26 | 0.0062 |
Table 15. Leave-one-out sensitivity of the MIMIC-CXR paired test for TraceDiffusion. Column ; is the one-sample paired -test on the per-fold differences.
CelebA Per-Attribute Decomposition
For symmetry with the MIMIC-CXR breakdown in Section A.14, we report the per-attribute traceable-vs-untraceable difference for TraceDiffusion on CelebA. Across all 40 binary attributes, AUC-ROC, consistent with the small aggregate paired-test value reported in Table 12. No single attribute or coherent sub-family carries the cost: in particular, attributes one might expect to be identity-correlated, such as Male, Young, Bald, and hair-colour attributes, show neither systematic sign nor magnitudes comparable to those observed for the chronic-finding family on MIMIC-CXR. The CelebA result therefore presents no analogue of the MIMIC-CXR signature, supporting the interpretation in Section A.14 that identity–anatomy entanglement is the property of the clinical domain rather than a property of our pipeline.
Computational Requirements
All heavy training and sampling was performed on a GPU cluster (NVIDIA H200 GPUs). Table 16 summarises the wall-clock time for each stage of the pipeline.
| Stage | Hardware | Time |
| Training () | H200 | h |
| Sampling (50k images, no traceability) | H200 | h |
| Sampling (50k images, with traceability guidance) | H200 | h |
| Downstream classifier training (TSTR, 3 seeds) | H200 | h |
Table 16. Wall-clock compute for each pipeline stage.
The total compute for a single dataset is therefore approximately GPU-hours on H200 hardware, equivalent to roughly 220 NVIDIA GPU-hours. All other operations (encoder caching, evaluation, ablations) together add fewer than 10 additional GPU-hours per dataset. Preliminary and failed experiments that did not appear in the final paper required approximately the reported training compute.
Equal-Compute vs. Converged-Baseline Framing
The numbers in Table 2 use an equal-compute framing: EDM-2 and EDM-2 AG are trained with the same total compute budget as and combined. This is the framing we adopt throughout the paper because it isolates the contribution of conditioning and guidance from the contribution of compute. A reasonable alternative is the converged-baseline framing, which trains EDM-2 and EDM-2 AG until FID and AUC-ROC saturate (typically – the compute we report). Under the converged framing the EDM-2 absolute AUC-ROC numbers rise by approximately 0.3 AUC-ROC on CelebA and 0.5 AUC-ROC on MIMIC-CXR; the paired traceable-vs-untraceable values for the baselines change negligibly (< 0.1 AUC-ROC across all rows), since the same fold-paired structure governs both. The traceability asymmetry reported in § 4.4 is therefore preserved under either framing: TraceDiffusion remains the only method whose CelebA paired test cannot reject the null at and the only method whose MIMIC-CXR paired test rejects it. We note this here in the interest of transparency; the equal-compute numbers in the main text remain the canonical reporters because they fix the only methodologically clean attribution.
Inversion Model Choice for Traceability
The Traceability Rate (TrR) reported throughout the paper depends on the choice of the diffusion model used to invert source images into noise latents. We ablate this choice on CelebA by inverting all 50k training images with six different denoisers, decoding the resulting latents, and scoring each reconstruction with the Oracle. We compare the unconditional EDM-2 baseline, EDM-2 with autoguidance (EDM-2 AG), and our identity- and class-conditioned models at both an early milestone checkpoint (5,242 kimg) and the converged checkpoint (78,643–188,743 kimg). Results are shown in Table 17. For EDM-2 and EDM-2 AG we use the respective guidance models from the generation process.
EDM-2 AG attains the highest TrR (0.962), notably above (converged) at 0.861. Despite this gap, we use (converged) as the inversion model in all reported experiments. The motivation of TraceDiffusion is to start sampling from a noise latent that is disentangled along the identity axis: the inverted noise must encode the source identity so that memory guidance can subsequently steer away from it along that same axis. Inverting with EDM-2 AG produces a noise latent whose geometry is governed by the class label rather than , so any identity-aware guidance applied afterwards no longer operates on a well-defined identity coordinate.
Broader Impact
Positive. Traceability enables post-hoc auditing of synthetic datasets: every generated image can be linked to a known training identity, giving regulators and dataset curators a concrete tool to verify that outputs do not reproduce real individuals. The disentanglement objective additionally separates identity from class label, which benefits downstream classifiers that should not exploit patient identity.
Negative. The method can generate photorealistic faces of novel individuals; misuse for disinformation or identity fraud is possible if applied to large uncurated face corpora. Finally, traceability is an accountability mechanism, not a privacy guarantee; we caution explicitly against treating a non-zero novelty score as a substitute for differential privacy.
References
- [1]Recital 26 EU General Data Protection Regulation (EU-GDPR), 2023. 1
- [2]Sina Alomehammad, Josue Casco-Rodriguez, Lorenzo Luzi, Ahmed Imtiaz Humayun, Hossein Babaei, Daniel LeJeune, Ali Siahkoohi, and Richard G. Baraniuk. Self-Consuming Generative Models Go MAD. In The Twelfth International Conference on Learning Representations, ICLR 2024, Vienna, Austria, May 7-11, 2024, 2024. 1
- [3]Article 29 Data Protection Working Party. Opinion 4/2007 on the concept of personal data, 2007. 1
- [4]Alexander Bernier. Policy brief: The concept of personal data in the GDPR, 2020. 1
- [5]Black Forest Labs. FLUX.2. https://bfl.ai/models/flux-2, 2025. Accessed: 2026-11-11. 5
- [6]Tony Bonnaire, Raphaël Urfin, Giulio Biroli, and Marc Mézard. Why diffusion models don’t memorize: The role of implicit dynamical regularization in training. In Advances in Neural Information Processing Systems 38: Annual Conference on Neural Information Processing Systems 2025, NeurIPS 2025, San Diego, CA, USA, December 2-7, 2025 / Mexico City, Mexico, November 30 - December 5, 2025., 2025. 2arxiv.org/abs/2505.17638
- [7]Nicholas Carlini, Steve Chien, Milad Nasr, Shuang Song, Andreas Terzis, and Florian Tramer. Membership Inference Attacks From First Principles. In 2022 IEEE Symposium on Security and Privacy (SP), pages 1897–1914, 2022. ISSN: 2375-1207. 2arxiv.org/abs/2112.03570
- [8]Nicolas Carlini, Jamie Hayes, Milad Nasr, Matthew Jagielski, Vikash Sehwag, Florian Tramer, Borja Balle, Daphne Ippolito, and Eric Wallace. Extracting training data from diffusion models. In 32nd USENIX security symposium (USENIX Security 23), pages 5253–5270, 2023. 1, 2arxiv.org/abs/2301.13188
- [9]Mathilde Caron, Ishan Misra, Julien Mairal, Priya Goyal, Piotr Bojanowski, and Armand Joulin. Unsupervised Learning of Visual Features by Contrasting Cluster Assignments. In Advances in Neural Information Processing Systems, pages 9912–9924. Curran Associates, Inc., 2020. 5, 13arxiv.org/abs/2006.09882
- [10]Ricky T. Q. Chen, Xuechen Li, Roger B Grosse, and David K Duvenaud. Isolating sources of disentanglement in variational autoencoders. In Advances in Neural Information Processing Systems. Curran Associates, Inc., 2018. 2arxiv.org/abs/1802.04942
- [11]Ting Chen, Simon Kornblith, Mohammad Norouzi, and Geoffrey Hinton. A Simple Framework for Contrastive Learning of Visual Representations. In Proceedings of the 37th International Conference on Machine Learning, ICML 2020, 13-18 July 2020, Virtual Event., pages 1597–1607, 2020. 15, 16arxiv.org/abs/2002.05709
- [12]Pengyu Cheng, Weituo Hao, Shuyang Dai, Jiachang Liu, Zhe Gan, and Lawrence Carin. CLUB: A Contrastive Log-ratio Upper Bound of Mutual Information. In Proceedings of the 37th International Conference on Machine Learning, ICML 2020, 13-18 July 2020, Virtual Event., pages 1779–1788, 2020. 2, 3, 5, 17arxiv.org/abs/2006.12013
- [13]Salman Ul Hassan Dar, Marvin Seyfarth, Isabelle Ayx, Theano Papavasiliou, Stefan O Schoenberg, Robert Malte Siepmann, Fabian Christopher Laqua, Jannik Kahmann, Norbert Frey, Bettina Baeßler, et al. Unconditional latent diffusion models memorize patient imaging data. Nature biomedical engineering, 10(3):458–472, 2026. 1, 2
- [14]Jia Deng, Wei Dong, Richard Socher, Li-Jia Li, Kai Li, and Li Fei-Fei. Imagenet: A large-scale hierarchical image database. In CVPR’09, pages 248–255, 2009. 16
- [15]Jiankang Deng, Jia Guo, Niannan Xue, and Stefanos Zafeiriou. Arcface: Additive angular margin loss for deep face recognition. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pages 4690–4699, 2019. 3DOI
- [16]Prafula Dhariwal and Alexander Nichol. Diffusion models beat gans on image synthesis. Advances in Neural Information Processing Systems, 34:8780–8794, 2021. 1, 2arxiv.org/abs/2105.05233
- [17]Tim Dockhorn, Tianshi Cao, Arash Vahdat, and Karsten Kreis. Differentially Private Diffusion Models. Trans. Mach. Learn. Res., 2023, 2023. 3arxiv.org/abs/2210.09929
- [18]Mischa Dombrowski and Bernhard Kainz. Enabling pso-secure synthetic data sharing using diversity-aware diffusion models. In Bridging Regulatory Science and Medical Imaging Evaluation; and Distributed, Collaborative, and Federated Learning, pages 25–35, Cham, 2026. Springer Nature Switzerland.
- [19]Mischa Dombrowski and Bernhard Kainz. Can diffusion models generalize? privacy and fairness trade-offs for medical data sharing. In Proceedings of The 8th International Conference on Medical Imaging with Deep Learning, pages 366–392. PMLR, 2026.
- [20]Mischa Dombrowski, Hadrien Reynaud, Matthew Baugh, and Bernhard Kainz. Foreground-background separation through concept distillation from generative image foundation models. In 2023 IEEE/CVF International Conference on Computer Vision (ICCV), pages 988–998. IEEE, 2023.arxiv.org/abs/2212.14306
- [21]Mischa Dombrowski, Felix Nützel, and Bernhard Kainz. LCMem: Latent consistent image memorization detection, 2025.arxiv.org/abs/2512.14421
- [22]Mischa Dombrowski, Weitong Zhang, Sarah Cechnicka, Hadrien Reynaud, and Bernhard Kainz. Image generation diversity issues and how to tame them. In 2025 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 3029–3039, 2025.arxiv.org/abs/2411.16171
- [23]Cristóbal Esteban, Stephanie L. Hyland, and Gunnar Rätsch. Real-valued (medical) time series generation with recurrent conditional gans, 2017.arxiv.org/abs/1706.02633
- [24]Stathis Galanakis, Alexandros Latta, Stylianos Moschoglou, Bernhard Kainz, and Stefanos Zafeiriou. Spinneround: Consistent multi-view identity generation using diffusion models. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 14346–14356, 2025.arxiv.org/abs/2504.10716
- [25]Rohit Gandikota, Joanna Materzyńska, Jaden Fiotto-Kaufman, and David Bau. Erasing concepts from diffusion models. In Proceedings of the 2023 IEEE/CVF International Conference on Computer Vision, 2023.arxiv.org/abs/2303.07345
- [26]Yaroslav Ganin, Evgeniya Ustinova, Hana Ajakan, Pascal Germain, Hugo Larochelle, François Laviolette, Mario Marc hand, and Victor Lempitsky. Domain-Adversarial Training of Neural Networks. In Advances in Computer Vision and Pattern Recognition / Domain Adaptation in Computer Vision Applications, pages 189–209. 2017.arxiv.org/abs/1505.07818
- [27]Scott Geng, Cheny-Hu Hsieh, Riley Ramanujan, Matthew Wallingford, Chun-Liang Li, Pang Wei Koh, and Ranjay Krishna. The Unmet Promise of Synthetic Training Images: Using Retrieved Real Images Performs Better. In Advances in Neural Information Processing Systems 37: Annual Conference on Neural Information Processing Systems 2024, NeurIPS 2024, Vancouver, BC, Canada, December 10 - 15, 2024., 2024.arxiv.org/abs/2406.05184
- [28]Sahra Ghalebikesabi, Leonard Berrada, Sven Gowal, Ira Ktena, Robert Stanforth, Jamie Hayes, Soham De, Samuel L. Smith, Olivia Wiles, and Borja Balle. Differentially Private Diffusion Models Generate Useful Synthetic Images, 2023. arXiv:2302.13861 [cs, stat].arxiv.org/abs/2302.13861
- [29]Ian J Goodfellow, Jean Pouget-Abadie, Mehdi Mirza, Bing Xu, David Warde-Farley, Sherjil Ozair, Aaron Courville, and Yoshua Bengio. Generative adversarial nets. Advances in neural information processing systems, 27, 2014.
- [30]Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 770–778, 2016.arxiv.org/abs/1512.03385
- [31]Amir Hertz, Ron Mokady, Jay Tenenbaum, Kfir Aberman, Yael Pritch, and Daniel Cohen-Or. Prompt-to-prompt image editing with cross-attention control. In The Eleventh International Conference on Learning Representations, 2023.arxiv.org/abs/2208.01626
- [32]Martin Heusel, Hubert Ramsauer, Thomas Unterthiner, Bernhard Nessler, and Sepp Hochreiter. Gans trained by a two time-scale update rule converge to a local nash equilibrium. Advances in neural information processing systems, 30, 2017.arxiv.org/abs/1706.08500
- [33]Irina Higgins, Loïc Matthey, Arka Pal, Christopher P. Burgess, Xavier Glorot, Matthew M. Botvinick, Shakir Mohamed, and Alexander Lerchner. beta-vae: Learning basic visual concepts with a constrained variational framework. In International Conference on Learning Representations, 2017.
- [34]Jonathan Ho and Tim Salimans. Classifier-free diffusion guidance. In NeurIPS 2021 Workshop on Deep Generative Models and Downstream Applications, 2021.arxiv.org/abs/2207.12598
- [35]Jonathan Ho, Ajay Jain, and Pieter Abbeel. Denoising diffusion probabilistic models. Advances in Neural Information Processing Systems, 33:6840–6851, 2020.arxiv.org/abs/2006.11239
- [36]Alistair E. W. Johnson, Tom J. Pollard, Seth J. Berkowitz, Nathaniel R. Greenwood, Matthew P. Lungren, Chih ying Deng, Roger G. Mark, and Steven Horng. MIMIC-CXR, a de-identified publicly available database of chest radiographs with free-text reports. Scientific Data, 6(1), 2019. Publisher: Nature Research.DOI
- [37]Tero Karras, Miika Aittala, Timo Aila, and Samuli Laine. Elucidating the Design Space of Diffusion-Based Generative Models. In Advances in Neural Information Processing Systems 35: Annual Conference on Neural Information Processing Systems 2022, NeurIPS 2022, New Orleans, LA, USA, November 28 - December 9, 2022., 2022.arxiv.org/abs/2206.00364
- [38]Tero Karras, Miika Aittala, Tuomas Kynkäänniemi, Jaakko Lehtinen, Timo Aila, and Samuli Laine. Guiding a diffusion model with a bad version of itself. Advances in Neural Information Processing Systems, 37:52996–53021, 2024.arxiv.org/abs/2406.02507
- [39]Tero Karras, Miika Aittala, Jaakko Lehtinen, Janne Hellsten, Timo Aila, and Samuli Laine. Analyzing and improving the training dynamics of diffusion models. In 2024 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 24174–24184. IEEE, 2024.arxiv.org/abs/2312.02696
- [40]Hyunjik Kim and Andriy Mnih. Disentangling by factorising. In Proceedings of the 35th International Conference on Machine Learning, ICML 2018, Stockholmssmässan, Stockholm, Sweden, July 10-15, 2018, pages 2654–2663, 2018.arxiv.org/abs/1802.05983
- [41]Diederik P. Kingma and Jimmy Ba. Adam: A method for stochastic optimization. In 3rd International Conference on Learning Representations, ICLR 2015, San Diego, CA, USA, May 7-9, 2015, Conference Track Proceedings, 2015.arxiv.org/abs/1412.6980
- [42]Adil Koeken, Alexander Ziller, Moritz Knolle, and Daniel Rueckert. Sensitivity, Specificity, and Consistency: A Tripartite Evaluation of Privacy Filters for Synthetic Data Generation, 2025. arXiv:2510.01793 [cs].arxiv.org/abs/2510.01793
- [43]Theodoros Kouzelis, Ioannis Kakogeorgiou, Spyros Gidaris, and Nikos Komodakis. EQ-VAE: Equivariance Regularized Latent Space for Improved Generative Image Modeling. In Forty-second International Conference on Machine Learning, ICML 2025, Vancouver, BC, Canada, July 13-19, 2025, 2025. 2arxiv.org/abs/2502.09509
- [44]Nicky Kriplani, Minh Pham, Gowthami Somepalli, Chinmay Hegde, and Niv Cohen. SolidMark: Evaluating Image Memorization in Generative Models, 2025. arXiv:2503.00592 [cs]. 2arxiv.org/abs/2503.00592
- [45]Ira Ktena, Olivia Wiles, Isabela Albuquerque, Sylvestre-Alvise Rebuffi, Ryutaro Tanno, Abhijit Guha Roy, Shekoofeh Azizi, Danielle Belgrave, Pushmeet Kohli, Taylan Cemgil, Alan Karthikesalingam, and Sven Gowal. Generative models improve fairness of medical classifiers under distribution shifts. Nature Medicine, 2024. 1arxiv.org/abs/2304.09218
- [46]Minh-Ha Le and Niklas Carlsson. Styleadv: a usable privacy framework against facial recognition with adversarial image editing. Proceedings on Privacy Enhancing Technologies, 2024. 3DOI
- [47]Minh-Ha Le and Niklas Carlsson. Diffprivate: facial privacy protection with diffusion models. Proceedings on Privacy Enhancing Technologies, 2025. 3DOI
- [48]Jingwei Li, Jing Dong, Tianxing He, and Jingzhao Zhang. Towards Black-Box Membership Inference Attack for Diffusion Models. In Forty-second International Conference on Machine Learning, ICML 2025, Vancouver, BC, Canada, July 13-19, 2025, 2025. 2arxiv.org/abs/2405.20771
- [49]Zinan Lin, Sivakanth Gopi, Janardhan Kulkarni, Harsha Nori, and Sergey Yekhanin. Differentially Private Synthetic Data via Foundation Model APIs 1: Images. In The Twelfth International Conference on Learning Representations, ICLR 2024, Vienna, Austria, May 7-11, 2024, 2024. 3arxiv.org/abs/2305.15560
- [50]Ziwei Liu, Ping Luo, Xiaogang Wang, and Xiaoou Tang. Deep learning face attributes in the wild. In Proceedings of the IEEE international conference on computer vision, pages 3730–3738, 2015. 5, 20arxiv.org/abs/1411.7766
- [51]Zhuang Liu, Hanzi Mao, Chao-Yuan Wu, Christoph Feichtenhofer, Trevor Darrell, and Saining Xie. A ConvNet for the 2020s. In CVPR, pages 11976–11986, 2022. 3, 20arxiv.org/abs/2201.03545
- [52]Ilya Loshchilov and Frank Hutter. Decoupled weight decay regularization. In International Conference on Learning Representations, 2019. 15
- [53]Frank McSherry and Kunal Talwar. Mechanism Design via Differential Privacy. In 48th Annual IEEE Symposium on Foundations of Computer Science (FOCS’07), pages 94–103, 2007. 3
- [54]Ron Mokady, Amir Hertz, Kfir Aberman, Yael Pritch, and Daniel Cohen-Or. Null-text inversion for editing real images using guided diffusion models. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 6038–6047, 2023. 2arxiv.org/abs/2211.09794
- [55]Alex Nichol, Prafulla Dhariwal, Aditya Ramesh, Pranav Shyam, Pamela Mishkin, Bob McGrew, Ilya Sutskever, and Mark Chen. GLIDE: Towards Photorealistic Image Generation and Editing with Text-Guided Diffusion Models. In International Conference on Machine Learning, ICML 2022,arxiv.org/abs/2112.10741
- [56]Kai Packhäuser, Sebastian Gündel, Nicolas Münster, Christopher Syben, Vincent Christlein, and Andreas Maier. Deep learning-based patient re-identification is able to exploit the biometric nature of medical chest X-ray data. Scientific Reports, 12(1):14851, 2022. 2DOI
- [57]Kai Packhäuser, Sebastian Gündel, Florian Thamm, Felix Denzinger, and Andreas Maier. Deep Learning-based Anonymization of Chest Radiographs: A Utility-preserving Measure for Patient Privacy. In Medical Image Computing and Computer Assisted Intervention – MICCAI 2023, pages 262–272, 2023. 3arxiv.org/abs/2209.11531
- [58]Yan Pang and Tianhao Wang. Black-box Membership Inference Attacks against Fine-tuned Diffusion Models. In 32nd Annual Network and Distributed System Security Symposium, NDSS 2025, San Diego, California, USA, February 24-28, 2025, 2025. 2
- [59]Yan Pang, Tianhao Wang, Xuhui Kang, Mengdi Huai, and Yang Zhang. White-box Membership Inference Attacks against Diffusion Models. Proceedings on Privacy Enhancing Technologies, 2025(2):398–415, 2025. arXiv:2308.06405 [cs]. 2DOI
- [60]Foivos Paperas Papantoniou and Stefanos Zafeiriou. Id-consistent, precise expression generation with blendshape-guided diffusion. In 2025 IEEE/CVF International Conference on Computer Vision Workshops (ICCVW), pages 2056–2065, 2025. 3arxiv.org/abs/2510.04706
- [61]Foivos Paperas Papantoniou, Alexandros Lattas, Stylianos Moschoglou, Jiankang Deng, Bernhard Kainz, and Stefanos Zafeiriou. Arc2Face: A foundation model for id-consistent human faces. In European Conference on Computer Vision, pages 241–261. Springer, 2024. 3arxiv.org/abs/2403.11641
- [62]William Peebles and Saining Xie. Scalable diffusion models with transformers. In 2023 IEEE/CVF International Conference on Computer Vision (ICCV), pages 4172–4182. IEEE, 2023. 1arxiv.org/abs/2212.09748
- [63]Ethan Perez, Florian Strub, Harm de Vries, Vincent Dumoulin, and Aaron Courville. FiLM: Visual reasoning with a general conditioning layer. Proceedings of the AAAI Conference on Artificial Intelligence, 32(1), 2018. 5arxiv.org/abs/1709.07871
- [64]Maan Qraitem, Kate Saenko, and Bryan A. Plummer. Bias mimicking: A simple sampling approach for bias mitigation. In 2023 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 20311–20320, 2023. 22arxiv.org/abs/2209.15605
- [65]Vikram V. Ramaswamy, S. S. Y. Kim, and Olga Russakovsky. Fair attribute classification through latent space de-biasing. In 2021 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 9297–9306, 2021. 22arxiv.org/abs/2012.01469
- [66]Elizabeth Redrup Hill and Colin Mitchell. Policy brief: When are synthetic health data personal data?, 2024. 1
- [67]Hadrien Reynaud, Qingjie Meng, Mischa Dombrowski, Arijit Ghosh, Thomas Day, Alberto Gomez, Paul Leeson, and Bernhard Kainz. Echonet-synthetic: Privacy-preserving video generation for safe medical data sharing. In International conference on medical image computing and computer-assisted intervention, pages 285–295. Springer, 2024. 2 Robin Rombach, Andreas Blattmann, Dominik Lorenz, Patrick Esser, and Björn Ommer. High-resolution image synthesis with latent diffusion models. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pages 10684–10695, 2022. 1, 2, 3
- [69]Mehdi SM Sajjadi, Olivier Bachem, Mario Lucic, Olivier Bousquet, and Sylvain Gelly. Assessing generative models via precision and recall. Advances in neural information processing systems, 31, 2018. 1arxiv.org/abs/1806.00035
- [70]Aaron Serniani, Tyler Zhu, Olga Russakovsky, and Vikram V Ramaswamy. Attention too: Examining biases in celeba using attention maps. In Proceedings of the Computer Vision and Pattern Recognition Conference, pages 4386–4397, 2025. 22
- [71]Changhao Shi, Haomiao Ni, Kai Li, Shaobo Han, Mingfu Liang, and Martin Renqiang Min. Exploring compositional visual generation with latent classifier guidance. In 2023 IEEE/CVF Conference on Computer Vision and Pattern Recognition Workshops (CVPRW), pages 853–862, 2023. 2arxiv.org/abs/2304.12536
- [72]Gowthami Sompalli, Vasu Singla, Micah Goldblum, Jonas Geiping, and Tom Goldstein. Diffusion art or digital forgery? investigating data replication in diffusion models. In 2023 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 6048–6058. IEEE, 2023. 2arxiv.org/abs/2212.03860
- [73]Gowthami Sompalli, Vasu Singla, Micah Goldblum, Jonas Geiping, and Tom Goldstein. Understanding and Mitigating Copying in Diffusion Models. In Advances in Neural Information Processing Systems 36: Annual Conference on Neural Information Processing Systems 2023, NeurIPS 2023, New Orleans, LA, USA, December 10 - 16, 2023., 2023. 2arxiv.org/abs/2305.20086
- [74]Jiaming Song, Chenlin Meng, and Stefano Ermon. Denoising diffusion implicit models. In International Conference on Learning Representations, 2021. 2arxiv.org/abs/2010.02502
- [75]Shuai Tang, Zhiwei Steven Wu, Sergul Aydore, Michael Kearns, and Aaron Roth. Membership Inference Attacks on Diffusion Models via Quantile Regression. In Forty-first International Conference on Machine Learning, ICML 2024, Vienna, Austria, July 21-27, 2024, pages 47819–47829, 2024. 1, 2arxiv.org/abs/2312.05140
- [76]Yu-Lin Tsai, Yizhe Li, Chia-Mu Yu, Xuebin Ren, Po-Yu Chen, Zekai Chen, and Francois Buet-Golfouse. Differentially private fine-tuning of diffusion models. In 2025 IEEE/CVF International Conference on Computer Vision (ICCV), pages 4561–4571. IEEE, 2025. 3arxiv.org/abs/2406.01355
- [77]Narek Tumanjan, Michal Geyer, Shai Bagon, and Tali Dekel. Plug-and-Play Diffusion Features for Text-Driven Image-to-Image Translation. In 2023 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 1921–1930, 2023. 1arxiv.org/abs/2211.12572
- [78]Alexandre Verine, Benjamin Negrevergne, Muni Sreenivas Pydi, and Yann Chevaleyre. Precision-recall divergence optimization for generative modeling with gans and normalizing flows. In Advances in Neural Information Processing Systems 36: Annual Conference on Neural Information Processing Systems 2023, NeurIPS 2023, New Orleans, LA, USA, December 10 - 16, 2023., 2023. 1arxiv.org/abs/2305.18910
- [79]Liqin Wang, Qianyue Hu, Wei Lu, and Xiangyang Luo. Diffusion-based adversarial identity manipulation for facial privacy protection. In Proceedings of the 33rd ACM International Conference on Multimedia, pages 11562–11571, 2025. 3arxiv.org/abs/2504.21646
- [80]Zerun Wang, Jiafeng Mao, Xueting Wang, and Toshihiko Yamasaki. Difficulty Controlled Diffusion Model for Synthesizing Effective Training Data. Proceedings of the AAAI Conference on Artificial Intelligence, 40(12):10367–10375, 2026. 2arxiv.org/abs/2411.18109
- [81]Xiaodan Xing, Federico Felder, Yang Nan, Giorgos Papanastasiou, Simon Walsh, and Guang Yang. You don’t have to be perfect to be amazing: Unveil the utility of synthetic images. In Medical Image Computing and Computer Assisted Intervention – MICCAI 2023, pages 13–22, Cham, 2023. Springer Nature Switzerland. 1arxiv.org/abs/2305.18337
- [82]Kaiwen Zha, Lijun Yu, Alireza Fathi, David A. Ross, Cordelia Schmid, Dina Katabi, and Xiuye Gu. Language-guided image tokenization for generation. In 2025 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 15713–15722, 2025. 1, 2arxiv.org/abs/2412.05796
- [83]Chenshuang Zhang, Chaoning Zhang, Mengchun Zhang, and In So Kweon. Text-to-image Diffusion Models in Generative AI: A Survey, 2023. arXiv:2303.07909 [cs]. 2arxiv.org/abs/2303.07909
- [84]Gong Zhang, Kai Wang, Xingqian Xu, Zhangyang Wang, and Humphrey Shi. Forget-me-not: Learning to forget in text-to-image diffusion models. In 2024 IEEE/CVF Conference on Computer Vision and Pattern Recognition Workshops (CVPRW), pages 1755–1764, 2024. 3arxiv.org/abs/2303.17591
- [85]Lvmin Zhang, Anyi Rao, and Maneesh Agrawala. Adding conditional control to text-to-image diffusion models. In 2023 IEEE/CVF International Conference on Computer Vision (ICCV), pages 3813–3824. IEEE, 2023. 2arxiv.org/abs/2302.05543
