LCMem: Latent Consistent Image Memorization Detection
Generative image models may reproduce training data, so they cannot be used for privacy-protecting data sharing without infeasible human checks. Unfortunately, current memorization detectors are incomplete. Copy detection only recognizes degraded duplicates of a training image, but misses different images of the same person, while re-identification recognizes the person, but fails once the image is degraded. We introduce the Latent Consistent Memorization Network (LCMem), a single embedding model, unifying copy detection and re-identification directly in the latent spaces of generative models. A teacher acquires identities jointly on the latents of three autoencoders. A noise-conditioned student is distilled from it under image augmentation and latent noise. This enables one model to score both the clean images and noisy intermediate states of a diffusion sampler. LCMem detects 69.6% of the degraded copies and 20.6% of the degraded images of a known identity across five datasets, against 56.9% and 6.3% for the best baseline. In deployment, LCMem compares a sample with the entire training set of 122,825 images in 1.3 ms without decoding. It separates training identities from novel ones with an AUC-ROC of 0.996 (teacher) and 0.944 (student). Thus, a privacy check against the full training corpus becomes cheap enough to run at every sampling step and as part of a training loss. Code will be made available upon publication.