Rethinking Machine Unlearning in Image Generation Models

Renyang Liu, Wenjie Feng, Tianwei Zhang, Wei Zhou, Xueqi Cheng, See-Kiong Ng

Abstract

As generative AI models like Stable Diffusion become ubiquitous, the ability to selectively remove unsafe or copyrighted content—known as Machine Unlearning (MU)—has become a critical safety requirement. However, current Image Generation Model Unlearning (IGMU) research suffers from inconsistent evaluation and flawed metrics. This paper introduces a standardized taxonomy (CatIGMU), a rigorous five-pillar evaluation framework (EvalIGMU), and a specialized dataset (DataIGM). By benchmarking ten state-of-the-art methods, the authors demonstrate that current unlearning techniques often fail to balance the erasure of target concepts with the preservation of overall model utility and image quality.

Introduction

Generative AI models are powerful tools, yet they pose significant risks, including the generation of harmful content (nudity, violence), the memorization of private data, and the replication of copyrighted artistic styles. Machine Unlearning (MU) offers a way to surgically "erase" these specific concepts from a pre-trained model without the prohibitive cost of retraining from scratch.

Despite the emergence of several IGMU algorithms, the field has operated in a "Wild West" state characterized by three primary issues: ambiguous task definitions, unclear behavioral goals for unlearned models, and flawed evaluation metrics. This research seeks to formalize the field by providing the necessary infrastructure for reliable and reproducible unlearning research.

The Three Pillars of Standardized Unlearning

To address the lack of standardization, the authors propose a comprehensive three-part system designed to evaluate and categorize unlearning tasks effectively.

1. CatIGMU: Task Categorization

The authors introduce a hierarchical taxonomy that classifies unlearning tasks based on their spatial relationship (Global vs. Local) and perceptual attributes (Abstract vs. Concrete). For instance, removing a "Van Gogh style" is classified as a Global-Abstract task, whereas removing a specific object like a "parachute" is Local-Concrete. This taxonomy is vital because it dictates the expected behavior of the model; a model prompted for a forgotten local object should still produce a coherent background, whereas a model prompted for a forgotten global style must shift its entire aesthetic output.

2. EvalIGMU: A Holistic Evaluation Framework

Rather than focusing solely on whether a concept is "gone," the authors propose five dimensions for a complete evaluation:

  • Forgetting: Is the target concept effectively removed?
  • Preservation: Are unrelated elements in the prompt accurately retained?
  • Image Quality: Does the model maintain high-fidelity and aesthetic appeal?
  • Robustness: Can adversarial prompts bypass the unlearning to regenerate the concept?
  • Efficiency: How computationally expensive is the unlearning process?

3. MultClf: Solving the Metric Problem

A significant finding of this research is that standard automated detectors (e.g., NudeNet or ResNet-50) fail when applied to AI-generated images because they were trained on real-world data. To fix this "distribution shift," the authors developed MultClf, a multi-head classifier based on CLIP-ViT, specifically fine-tuned on generated images to provide a reliable measure of forgetting.

DataIGM and Benchmarking

The study introduces DataIGM, a high-quality dataset designed for evaluating IGMU across four distinct tasks: Nudity, Van Gogh style, Church, and Parachute. The dataset includes real-world images, samples from the original LAION training set, and over 2.8 million images generated by base and unlearned versions of Stable Diffusion.

Using this framework, the authors benchmarked ten state-of-the-art unlearning methods, including ESD, FMN, MACE, and AdvUnlearn. The results revealed several critical weaknesses in current approaches:

  • The Preservation Gap: Most methods act like a "sledgehammer" rather than a scalpel. For example, when attempting to unlearn nudity, the method Receler failed to generate any human figures at all in nearly 39% of cases, effectively breaking the model's broader utility.
  • Inconsistent Performance: While many methods successfully unlearned "parachutes," they often failed to unlearn "churches," suggesting that the complexity of the visual concept significantly impacts unlearning success.
  • Adversarial Vulnerability: The "erasure" is often an illusion. Using adversarial attacks (such as UnlearnDiffAtk), the authors were able to coax forgotten styles and objects back out of the models, proving that the concepts often remain latent in the model weights.
  • Efficiency Trade-offs: There is a sharp divide between efficiency and depth. Methods like UCE can unlearn a concept in under a minute by modifying less than 0.4% of parameters, while more robust adversarial training methods like AdvUnlearn can take up to seven hours.

Conclusion and Future Directions

The findings suggest that the field of machine unlearning is still in its infancy. While it is relatively easy to suppress a concept, doing so without damaging the rest of the model's capabilities or leaving it vulnerable to adversarial recovery remains a significant challenge.

Future work will involve expanding the CatIGMU taxonomy to handle complex paraphrasing and descriptive prompts that do not use explicit trigger words. Additionally, the authors aim to incorporate fairness and explainability into the evaluation metrics to ensure that unlearning does not introduce new biases into generative models.

Summary updated

BibTeX
@inproceedings{liu2025rethinking,
  author = {Renyang Liu and Wenjie Feng and Tianwei Zhang and Wei Zhou and Xueqi Cheng and See-Kiong Ng},
  title = {{Rethinking Machine Unlearning in Image Generation Models}},
  booktitle = {CCS},
  year = {2025},
  doi = {10.1145/3719027.3744793},
}
Figure