Probing unlearned diffusion models: A transferable adversarial attack perspective

Xiaoxuan Han, Songlin Yang, Wei Wang, Yang Li, Jing Dong

TL;DR

This paper reveals a significant security flaw in "unlearned" diffusion models: erasing a concept (like a celebrity's face or NSFW content) often just hides the path to it rather than removing the content itself. The authors introduce Adversarial Search (AS), a black-box attack that finds "transferable" embeddings capable of restoring these erased concepts across various unlearning methods without needing access to the models' internal weights.

What Problem Does This Paper Address?

As text-to-image models like Stable Diffusion become mainstream, concerns regarding copyright, privacy (e.g., deepfakes), and safety (NSFW content) have surged. To combat this, researchers developed "Machine Unlearning" techniques (like ESD, FMN, and CA) designed to "erase" specific concepts from a pre-trained model without retraining it from scratch.

However, the authors argue that these methods are often superficial. They typically shift the mapping from a text prompt to an image but leave the underlying visual generative capabilities intact. Previous attempts to "probe" or attack these models to see if the concepts are truly gone had two major flaws:

  1. Lack of Transferability: They were "white-box" attacks, meaning they only worked if you had full access to the specific unlearned model.
  2. Limited Scope: They struggled with "narrow" concepts, such as the specific identity of a celebrity, often failing to restore a recognizable face.

Methods

The core contribution is a novel Adversarial Search (AS) strategy. Instead of trying to optimize an attack against a hidden, unlearned model, the researchers use the original, "clean" Stable Diffusion model as a surrogate.

The key innovation is an iterative erase-and-search process:

  1. Search: Find an embedding (a mathematical representation of a concept) that generates the target image (e.g., Barack Obama) in the surrogate model.
  2. Simulated Erase: Update the surrogate model's parameters to "erase" that specific embedding.
  3. Repeat: Search for a new embedding in this modified model that still produces the target image.

By repeating this, the algorithm is forced to find embeddings in "low-density" regions of the latent space—essentially finding "backdoor" descriptions of a concept that general unlearning methods are likely to overlook. Because these regions are less "obvious," the resulting adversarial embeddings are highly transferable across different unlearned models.

Datasets

The authors evaluated their method across a diverse range of concepts:

  • Broad Objects: "Dog", "Car".
  • Narrow Objects: "English Springer" (spaniel), "Jeep".
  • Artist Styles: Van Gogh, Monet, Picasso, Marc Chagall.
  • Safety/NSFW: Nudity.
  • Celebrity Identities (ID): Barack Obama, Emma Watson, Brad Pitt, Angelina Jolie, Tom Cruise, and Hillary Clinton.

To measure success, they used automated classifiers like YOLOv3 (for objects), Nudenet (for NSFW content), and the GIPHY Celebrity Detector.

Key Insights and Ideas

  • Unlearning is a Map Shift, Not a Deletion: The paper reinforces the idea that current unlearning methods are like painting over a signpost rather than tearing down the destination. The "visual concept" still exists within the model's generative space.
  • The Cluster Problem: The authors visualized embeddings from different unlearned models and found they form distinct, separated clusters. A "naive" attack gets stuck in one cluster and fails to transfer.
  • Low-Density is High-Value: By intentionally searching for embeddings that are "harder" to erase, the AS strategy finds representations that are robust. If an unlearning method only targets the most "common" way to represent a concept, the AS attack finds the "uncommon" ways that still work.
  • Embedding-Level vs. Prompt-Level: Attacking at the embedding level (the raw numbers fed into the model) is far more powerful than prompt-level attacks (trying to find "magic words") because it bypasses the constraints of human language.

Key Results

The proposed method consistently outperformed existing baselines (UnlearnDiff, Ring-A-Bell, and Concept Inversion) in a black-box setting:

  • Celebrity Restoration: For the "Barack Obama" identity, the AS method achieved a 55.5% average restoration rate across four different unlearning methods, while prompt-level attacks like Ring-A-Bell failed completely (0%).
  • Object Restoration: On broad concepts like "Dog," the method achieved an average restoration of 94.5%, effectively rendering the unlearning useless.
  • Artist Styles: Even for complex styles like Van Gogh, the method achieved a 45.3% restoration rate, significantly higher than the 0-1.3% seen in baseline black-box attacks.

Limitations and Future Work

While the attack is highly effective, the authors note a few areas for improvement:

  • Image Quality Trade-off: Directly maximizing the loss during the search can sometimes degrade the visual quality of the generated images. They used a "relaxed" optimization to mitigate this, but it remains a balancing act.
  • The "Cat and Mouse" Game: This paper acts as a "red team" probe. The authors acknowledge that their work highlights the need for more robust unlearning methods that actually remove visual information from the generative space rather than just remapping prompts.
  • Future Directions: The authors suggest that future research should focus on developing unlearning techniques that are resilient to these types of transferable adversarial searches.

Summary updated

BibTeX
@inproceedings{han2025probing,
  author = {Xiaoxuan Han and Songlin Yang and Wei Wang and Yang Li and Jing Dong},
  title = {{Probing unlearned diffusion models: A transferable adversarial attack perspective}},
  booktitle = {Pattern},
  year = {2025},
  doi = {10.1016/j.patcog.2025.112916},
}

Loading related content...

Figure