Side Effects of Erasing Concepts from Diffusion Models

Shaswati Saha, Sourajit Saha, Manas Gaur, Tejas Gokhale

As text-to-image (T2I) generative models like Stable Diffusion become mainstream, they bring incredible creative potential alongside significant concerns regarding privacy, copyright, and safety. To address these issues without retraining massive models from scratch, researchers have developed Concept Erasure Techniques (CETs). The goal of a CET is simple: remove an "undesired" target concept (e.g., a copyrighted character or a specific vehicle) while preserving the model's ability to generate everything else.

However, a new paper reveals that current CETs are surprisingly fragile. They can be easily circumvented, inadvertently degrade semantically related concepts, and cause bizarre visual artifacts. To systematically uncover these hidden costs, the authors introduce the Side Effect Evaluation (SEE) benchmark.

The Hidden Costs of Concept Erasure

Existing evaluation metrics for concept erasure are often too narrow. They typically only check if the exact target word (e.g., "car") has been successfully removed from the model's outputs. But "erasing" a concept from a neural network's latent space is much more complex than deleting a file.

A robust erasure should also remove compositional variants (e.g., "red car") and handle semantic hierarchies (e.g., erasing "vehicle" should also remove "cars"). Furthermore, we need to know if these edits have "side effects" that break the model's ability to generate other, unrelated concepts.

Examples of concept erasure side effects, including evasion, impact on neighbors, and attribute leakage.

The SEE Benchmark and Methodology

To rigorously test these vulnerabilities, the researchers developed the SEE dataset, consisting of 5,056 compositional prompts. The dataset is built on 79 object categories from MS-COCO, organized into 11 superclasses (like "vehicle" or "furniture"). Each object is combined with variations in size, color, and material, creating a hierarchical tree that allows researchers to measure the "semantic distance" between concepts.

The SEE framework tests CETs across three critical dimensions:

  1. Impact on Neighboring Concepts: Does erasing "car" make the model worse at generating a "bus"?
  2. Erasure Evasion: Can the model still generate the target if we use a more specific prompt (e.g., "red car" instead of just "car") or a subclass?
  3. Attribute Leakage: If we erase a "wooden bench," does the "wooden" attribute incorrectly transfer to a "bird" in the same scene?

To automate this evaluation, the authors built a pipeline that uses state-of-the-art Vision-Language Models (like QWEN2.5VL) and CLIP-based classification as "verifiers" to detect whether concepts are present or absent in the generated images.

The SEE evaluation pipeline uses VQA and CLIP-based classification to detect concept presence across three side-effect categories.

Key Insights and Vulnerabilities

The automated evaluation revealed several counterintuitive phenomena and significant weaknesses in state-of-the-art erasure methods:

  • The Compositional Loophole: CETs often successfully erase a base concept like "bird" but fail completely when prompted for a "red bird." The model's knowledge of the attribute "red" seems to act as a "hook" that pulls the erased concept back into existence.
  • High Evasion Rates via Hierarchy: When superclasses (like "vehicle") were erased, subclass concepts (like "car" or "bicycle") continued to appear in more than 80% of cases across six different categories.
  • Semantic Collateral Damage: Erasing a concept often "bruises" its neighbors. For example, erasing "blue couch" was found to significantly degrade the model's ability to generate a "blue chair," even though the chair was supposed to be preserved.
  • Attribute Leakage: When a concept is erased, its associated attributes don't just vanish; they often "leak" onto other objects in the prompt. The study found that attribute leakage increased from an average of 17.13% in unedited models to as high as 26.08% after concept erasure. If you erase a "wooden bench" in a scene with a "bird," the model might generate a "wooden bird."
  • Attention Dispersal: By analyzing attention maps, the authors found that when erasure fails, the model's attention "scatters" across irrelevant regions. Conversely, successful erasure correlates with more concentrated, localized attention patterns.

Method Comparison

The study tested six state-of-the-art methods (UCE, RECE, MACE, SPM, ESD, AdvUnlearn). While RECE and AdvUnlearn were the most effective at erasure, they still exhibited a ~25% failure rate against compositional variants. UCE was better at preserving unrelated concepts but proved less effective at total erasure, highlighting a persistent trade-off between robustness and preservation.

Limitations and Future Directions

While the SEE benchmark provides a much-needed rigorous evaluation for CETs, the authors note that it is currently limited to object categories and a specific set of verifiable attributes (size, color, material). It does not yet cover more abstract concepts or complex artistic styles. Additionally, the study focused on "closed-form" CETs, which are efficient but may behave differently than fine-tuning-based erasure methods.

Ultimately, this research demonstrates that simply deleting a word from a model's vocabulary is not enough. Future work must focus on developing more robust erasure techniques that can generalize across semantic hierarchies and prevent attribute leakage—perhaps by explicitly regularizing cross-attention layers during the erasure process—ensuring that T2I models can be safely deployed in creative workflows.

Summary updated

BibTeX
@inproceedings{saha2025side,
  author = {Shaswati Saha and Sourajit Saha and Manas Gaur and Tejas Gokhale},
  title = {{Side Effects of Erasing Concepts from Diffusion Models}},
  booktitle = {GenProCC @ NeurIPS},
  year = {2025},
  url = {https://openreview.net/forum?id=D7ZwMIbNv8},
}
Figure