Abstract
Recent advances in generative models trained on large-scale datasets have made it possible to synthesize high-quality samples across various domains. Moreover, the emergence of strong inversion networks enables not only a reconstruction of real-world images but also the modification of attributes through various editing methods. However, in certain domains related to privacy issues, e.g., human faces, advanced generative models along with strong inversion methods can lead to potential misuses. In this paper, we propose an essential yet under-explored task called generative identity unlearning, which steers the model not to generate an image of specific identity. In the generative identity unlearning, we target the following objectives: (i) preventing the generation of images with a certain identity, and (ii) preserving the overall quality of the generative model. To satisfy these goals, we propose a novel framework, Generative Unlearning for Any IDEntity (GUIDE), which prevents the reconstruction of a specific identity by unlearning the generator with only a single image. GUIDE consists of two parts: (i) finding a target point for optimization that unidentifies the source latent code and (ii) novel loss functions that facilitate the unlearning procedure while less affecting the learned distribution. Our extensive experiments demonstrate that our proposed method achieves state-of-the-art performance in the generative machine unlearning task.
Introduction
State-of-the-art generative models, particularly Generative Adversarial Networks (GANs), have reached a level of maturity where they can synthesize hyper-realistic human faces. While this enables numerous creative applications, it also introduces significant privacy risks. "GAN inversion" techniques can map a real person's image to a specific latent code within a pre-trained model. Once this mapping is established, the model can be used to generate unauthorized deepfakes or perform malicious attribute editing.
Existing machine unlearning approaches often struggle with this task, as they typically require access to the original training data or are designed to erase broad semantic concepts rather than specific individuals. To address this, we introduce GUIDE (Generative Unlearning for Any IDEntity), a framework designed to surgically remove a specific identity from a pre-trained generator using only a single reference image.
Methodology: The GUIDE Framework
The GUIDE framework operates in two distinct phases to ensure effective identity erasure without compromising the model's overall performance.
1. Un-Identifying Face On Latent Space (UFO)
To unlearn an identity, the model requires a target representation that is mathematically distinct from the original. Rather than selecting a random face, GUIDE employs an extrapolation strategy. By identifying the vector between the source identity's latent code and the "mean face" (the average of the model's learned distribution), the framework pushes the identity past the average point. This creates a robust "anonymous" target that effectively un-identifies the source.
2. Latent Target Unlearning (LTU)
The optimization process updates the generator's weights using three specialized loss functions:
- Local Unlearning Loss: Directs the target latent code to produce the newly defined anonymous face.
- Adjacency-Aware Unlearning Loss: Recognizing that identities exist as "neighborhoods" in latent space, this loss ensures that slight variations of the latent code are also unlearned, preventing identity leakage.
- Global Preservation Loss: Acts as an anchor to prevent catastrophic forgetting, ensuring that latent codes distant from the target identity continue to produce high-quality, original images.
Experimental Results
We evaluated GUIDE across multiple datasets, including FFHQ, CelebAHQ (for out-of-domain celebrity unlearning), and AFHQv2-Cat (demonstrating cross-domain versatility).
Identity Erasure and Model Integrity
Quantitatively, GUIDE significantly reduces identity similarity. In out-of-domain tests, similarity scores dropped from a baseline of ~0.12 to 0.03. Crucially, the model's overall generation quality remained intact. The Fréchet Inception Distance (FID), a standard metric for image quality and diversity, remained significantly lower (better) with GUIDE compared to baseline unlearning methods.
Qualitative Fidelity
Visual results confirm that while the target identity is transformed into a generic, distinct individual, other generated faces—even those sharing similar attributes like hair color or accessories—remain virtually unchanged. Furthermore, when applied to 3D GANs like EG3D, the unlearning effect is consistent across various camera angles and poses.
Conclusion
GUIDE provides a powerful, zero-shot solution for identity privacy in generative models. By treating identity as a neighborhood in latent space and using extrapolation for un-identification, it achieves state-of-the-art performance with minimal computational overhead (approximately 20 minutes per identity). Future work will explore extending these principles to Diffusion Models and further optimizing the unlearning speed.
Summary updated