Machine Unlearning for Image-to-Image Generative Models

Guihong Li, Hsiang Hsu, Chun-Fu Chen, Radu Marculescu

Introduction

The rapid proliferation of generative AI has brought data privacy and ownership to the forefront of machine learning research. Regulatory frameworks like the General Data Protection Regulation (GDPR) emphasize the "Right to be Forgotten," requiring that individuals' data be removed upon request. However, deep neural networks—particularly generative models—are known to memorize training samples, potentially leaking sensitive information even after the raw data is deleted from databases.

While machine unlearning techniques have been established for classification tasks, Image-to-Image (I2I) generative models (e.g., those used for inpainting or super-resolution) present unique challenges. Their high-dimensional outputs and superior memorization capabilities make standard techniques like label flipping or loss maximization mathematically intractable or unstable. Currently, the gold standard for unlearning is retraining from scratch, which is computationally prohibitive for large-scale models.

Proposed Framework: Forget as Noise

This research introduces a computationally efficient framework designed for I2I models, including Masked Autoencoders (MAE), VQ-GANs, and Diffusion models. The core philosophy of the approach is to redefine "unlearning" as a state where the model, when prompted with a "forget" sample, fails to reconstruct the original image and instead generates output indistinguishable from Gaussian noise.

Technical Implementation

The framework leverages several key innovations to ensure stability and efficiency:

  1. Representation Space Optimization: Directly optimizing high-dimensional image differences using KL-divergence is computationally expensive. The authors utilize Mutual Information (MI) as a theoretical bridge to simplify the objective into an $L_2$ loss (Euclidean distance) within the model's embedding space.
  2. Encoder-Only Fine-Tuning: To minimize computational overhead, the algorithm updates only the model's encoder. It trains the encoder to map "forget" samples to embeddings representing random noise, while ensuring "retain" sample embeddings remain unchanged.
  3. Stability via Boundedness: By mapping forgotten data to a specific Gaussian distribution, the optimization goal remains stable and bounded, preventing the catastrophic forgetting of unrelated knowledge often seen in naive unlearning attempts.

Experimental Evaluation

The framework was validated using industry-standard benchmarks: ImageNet-1K and Places-365. A significant practical contribution is the introduction of "Proxy Retain Sets." In scenarios where original training data is unavailable due to strict retention policies, the researchers demonstrated that using random, unrelated images as a "proxy" to anchor model performance is nearly as effective as using the original data.

Key Results

The proposed method was compared against baselines such as "Max Loss" and "Noisy Label" across multiple architectures:

  • Performance Preservation: The model maintained high fidelity on the "retain set." Metrics such as Frechet Inception Distance (FID) and Inception Score (IS) showed negligible degradation compared to the original, non-unlearned model.
  • Effective Forgetting: For the "forget set," outputs were statistically and visually equivalent to noise. Semantic similarity, measured via CLIP embedding distance, dropped significantly, indicating the model no longer associated the input with the forgotten concept.
  • Efficiency: By focusing solely on the encoder, the process is remarkably fast. Unlearning a Diffusion model was achieved in approximately 1.5 hours on standard hardware, a fraction of the time required for full retraining.

Limitations and Future Directions

Despite its effectiveness, the method faces certain constraints. It currently requires access to the specific "forget samples," which may pose its own privacy risks. Furthermore, the study primarily addressed image completion and inpainting; extending this to text-to-image generation or other modalities like video remains a subject for future research. Finally, the ability to unlearn specific features (e.g., a specific artistic style) rather than entire images or classes is an open area for exploration.

Summary updated

BibTeX
@inproceedings{li2024machine,
  author = {Guihong Li and Hsiang Hsu and Chun-Fu Chen and Radu Marculescu},
  title = {{Machine Unlearning for Image-to-Image Generative Models}},
  booktitle = {International Conference on Learning Representations},
  year = {2024},
  url = {https://openreview.net/forum?id=9hjVoPWPnh},
}
Figure