When Are Concepts Erased From Diffusion Models?

Kevin Lu, Nicky Kriplani, Rohit Gandikota, Minh Pham, David Bau, Chinmay Hegde, Niv Cohen

Introduction

As text-to-image diffusion models become a standard tool for content generation, the ability to selectively "unlearn" or erase specific concepts has become a critical requirement. Whether to protect copyrighted characters, remove harmful content, or eliminate specific artistic styles, researchers have developed various concept erasure methods. However, a fundamental question remains: do these models actually "forget" the target concepts, or do they simply learn to look the other way?

This paper investigates the depth of concept erasure by distinguishing between two conceptual frameworks: guidance-based avoidance, where the model retains knowledge but steers generation pathways away from the concept, and destruction-based removal, where the model's internal likelihood of generating the concept is fundamentally eliminated. Through a comprehensive suite of probing techniques, the authors demonstrate that most current erasure methods fall into the former category, leaving residual knowledge that can be easily resurfaced.

Probing the Limits of Erasure

To test the robustness of popular unlearning methods—including ESD, UCE, Task Vectors, Gradient Ascent, and STEREO—the authors developed five distinct probing techniques designed to bypass standard text-based triggers:

  1. Optimization-based Probing: Utilizing adversarial attacks like Textual Inversion and UnlearnDiffAtk to optimize text embeddings specifically to force the model to generate the erased concept.
  2. In-context Probing: Providing visual rather than textual cues. This includes Inpainting (asking the model to fill in a masked concept based on context) and Diffusion Completion (starting generation from a partially denoised image of the concept).
  3. Training-Free Trajectory Probing (Noise-Based): A novel approach that injects extra Gaussian noise during the denoising steps. This forces the model to explore alternative latent pathways that might bypass the "avoidance" steering mechanisms.
  4. Steered Latent Probing (Classifier Guidance): Training a lightweight classifier in the model's latent space and using its gradients during generation to pull the diffusion trajectory back toward the erased concept.
  5. Dynamic Concept Tracing: Monitoring shifts in CLIP embeddings as erasure strength increases to visualize how the model's internal representation of a concept changes.

Experimental Framework

The study evaluated the erasure of 13 specific concepts: 10 tangible objects (e.g., airliner, church, parachute) and 3 artistic styles (Van Gogh, Picasso, Andy Warhol). Success was measured using CLIP scores for semantic similarity and an ImageNet-trained ResNet-50 classifier to objectively identify if an object remained recognizable in the model's output.

Key Insights: The Illusion of Robustness

The authors' findings suggest that current evaluations of machine unlearning are often misleading. While many models appear robust against standard prompts or even adversarial text attacks, they frequently fail when subjected to visual or latent-space probes.

The Power of Stochasticity

One of the most striking results is the effectiveness of the Noise-Based Probe. For the ESD-x method, standard adversarial attacks recovered the erased concept only 3.6% of the time. However, simply increasing the noise during inference—a training-free intervention—bumped the recovery accuracy to 30.7%. This suggests that many erasure methods merely build a fragile "detour" around a concept that can be bypassed by introducing enough stochasticity into the generation process.

Avoidance vs. Destruction

The research highlights a clear "Whack-a-Mole" trade-off. Methods that achieve deeper, destruction-based removal (such as Gradient Ascent or STEREO) are significantly harder to crack but cause massive collateral damage. For example, while STEREO was highly resistant to text attacks (0.0% accuracy), it also severely degraded the model's ability to generate unrelated concepts, dropping the CLIP score for general prompts to 0.0 (compared to a baseline of 28.8). Conversely, methods like Task Vectors appeared successful on the surface (dropping classification accuracy to 2.2%), but Diffusion Completion probes proved the visual features remained intact, reconstructing the concept with a CLIP score of 23.8.

Conclusion and Future Directions

The overarching takeaway is that true knowledge destruction in diffusion models is exceedingly rare. Most state-of-the-art techniques operate via guidance-based avoidance, creating a vulnerability where "erased" concepts can be resurfaced through non-textual cues.

However, the authors note several limitations to current probing. There is a classic dilemma in determining whether a heavy optimization probe (like latent classifier guidance) is revealing existing knowledge or effectively "teaching" the model to reconstruct the concept from scratch. Furthermore, the study focuses on concrete objects and styles; how abstract or relational concepts behave under erasure remains an open question. Future work must focus on developing more surgical unlearning methods that can achieve true destruction without compromising the model's broader utility.

Summary updated

BibTeX
@inproceedings{lu2025when,
  author = {Kevin Lu and Nicky Kriplani and Rohit Gandikota and Minh Pham and David Bau and Chinmay Hegde and Niv Cohen},
  title = {{When Are Concepts Erased From Diffusion Models?}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=UKt31LbRPI},
}
Figure