Abstract
Machine unlearning (MU) has been proposed as a mechanism to remove undesirable concepts—such as NSFW content or copyrighted artistic styles—from Diffusion Models (DMs). This paper introduces UnlearnDiffAtk, an efficient adversarial attack that demonstrates the inherent fragility of these safety-driven unlearning methods. By repurposing the victim model's denoising logic as a classification objective, UnlearnDiffAtk generates adversarial prompts that successfully recover "erased" concepts. Our results across multiple benchmarks show that current unlearning techniques often fail to delete information, instead merely suppressing it in a way that is easily bypassed by optimized adversarial inputs.
Introduction
The rapid advancement of Diffusion Models (DMs) has raised significant safety and ethical concerns, particularly regarding the generation of inappropriate content or the infringement of intellectual property. Machine Unlearning (MU) offers a way to "forget" specific concepts without the prohibitive cost of full retraining. However, the robustness of these unlearned models against adversarial exploitation remains a critical open question. This study presents UnlearnDiffAtk, a novel attack framework designed to evaluate and expose the vulnerabilities of state-of-the-art unlearning methods.
Methodology: The UnlearnDiffAtk Framework
The fundamental premise of UnlearnDiffAtk is that a model's internal knowledge of a concept remains accessible even after unlearning. Unlike previous adversarial approaches that require auxiliary "teacher" models or external image classifiers, UnlearnDiffAtk turns the victim model against itself.
The attack leverages the Diffusion Classifier principle, where the model's denoising error serves as a proxy for classification. By minimizing the difference between the predicted noise and the actual noise added to a target image, the attacker can optimize a set of adversarial tokens.
This optimization typically involves prepending 3–5 adversarial characters to a prompt. Using discrete optimization techniques like Projected Gradient Descent (PGD), the attack identifies character sequences that force the model to ignore its unlearning constraints and generate the target concept.
Experimental Evaluation
The researchers benchmarked UnlearnDiffAtk against several prominent unlearning methods, including ESD, FMN, AC, UCE, and SLD. The evaluation spanned three primary tasks:
- Concept Unlearning: Using the I2P dataset to target nudity, violence, and illegal acts.
- Style Unlearning: Attempting to recover specific artistic styles (e.g., Van Gogh) using the WikiArt dataset.
- Object Unlearning: Restoring specific object classes (e.g., "Parachute") from the Imagenette dataset.
Key Findings
The experimental results highlight a significant gap in current AI safety measures:
- High Attack Success Rate (ASR): UnlearnDiffAtk achieved over 76% ASR for nudity and 80% for violence against the "Erased Stable Diffusion" (ESD) model.
- Superior Efficiency: By eliminating the need for auxiliary models, the attack is approximately 23.5% faster than concurrent methods like P4D.
- Information Latency: The success of these attacks suggests that unlearning is often "shallow"—the model retains the underlying concept representation but is merely steered away from it during standard inference.
Conclusion and Future Directions
UnlearnDiffAtk reveals that current safety-driven unlearning in DMs is surprisingly fragile. The fact that the victim model can be used as its own adversary suggests that "erased" concepts are still present in the model's weights. Future work should focus on developing more robust "defensive unlearning" strategies, such as incorporating adversarial training during the unlearning process, to ensure that once a concept is removed, it cannot be easily recovered.
Summary updated