Erased but Not Forgotten: How Backdoors Compromise Concept Erasure

Jonas Henry Grebe, Tobias Braun, Marcus Rohrbach, Anna Rohrbach

TL;DR

This paper introduces "Erasure Evasion Backdoors" (EEBs), a novel threat where attackers implant hidden triggers into text-to-image models that allow harmful content to resurface even after concept erasure techniques are applied. The research demonstrates that current erasure methods, including those designed to be robust, are vulnerable to these backdoors, posing a significant security risk to AI safety.

What Problem Does This Paper Address?

Text-to-image diffusion models, while powerful, can generate harmful content like explicit imagery or fake depictions of individuals. To combat this, "concept erasure" methods aim to remove specific unwanted concepts from these models. However, it's unclear if these methods truly eliminate the harmful associations or merely mask them. This paper investigates a critical vulnerability: whether these erasure techniques can be bypassed by sophisticated backdoor attacks, where a hidden "trigger" can re-activate the erased concept.

Methods

The authors introduce Erasure Evasion Backdoors (EEBs), a threat model that leverages backdoor attacks to subvert concept erasure. They propose and evaluate several EEB variants:

  • EEBdata: A black-box attack using data poisoning, where mismatched text-image pairs are introduced into training data.
  • EEBsurface: A white-box attack that fine-tunes only the text encoder, linking a trigger to a concept by minimizing embedding similarity.
  • EEBshallow: A white-box attack that modifies cross-attention layers, using a closed-form solution to rewire trigger concepts onto target concept embeddings.
  • EEBdeep: A novel score-based attack that injects triggers deeper into the U-Net using a self-distillation framework. This method uses a combination of trigger loss, retention loss, and quality loss to balance backdoor persistence with model utility.

They evaluate these attacks against six state-of-the-art concept erasure methods, including robust ones.

Datasets

The paper utilizes several standard datasets for training and evaluation:

  • LAION-Aesthetics: Used for fine-tuning SD v1.4 in the EEBdata attack.
  • MS COCO: Used for retention concepts in celebrity erasure and as a source for prompts in explicit content erasure.
  • CIFAR-10: Used as a source for object concept erasure targets.
  • I2P dataset: Used for explicit content erasure, specifically its "sexual" prompts.
  • Giphy Celebrity Detector (GCD): Used as an evaluation metric for celebrity identity erasure.

Key Insights and Ideas

  • Concept Erasure is Not Foolproof: The core finding is that even advanced concept erasure methods can be bypassed by carefully crafted backdoor attacks. This highlights a significant blind spot in current AI safety mechanisms for generative models.
  • EEBdeep is Highly Persistent: The proposed EEBdeep attack, which targets deeper layers of the diffusion model, consistently proves most effective at circumventing erasure methods, even robust ones.
  • Attack Depth Matters: Attacks that modify deeper model components (like EEBdeep) are significantly harder to erase than those targeting shallower layers (like EEBsurface).
  • Robustness vs. Utility Trade-off: Some erasure methods designed for robustness (e.g., RECELER) achieve better erasure but at the cost of degrading overall model utility (e.g., lower accuracy on unrelated concepts).
  • Backdoors as Diagnostic Tools: The authors suggest that EEBs can be used proactively to stress-test and improve future concept erasure techniques.

Key Results

  • Celebrity Identity Erasure: EEB attacks achieved up to 82.5% success in bypassing celebrity identity erasure.
  • Object Erasure: EEB attacks were successful in 65% of cases on average for object erasure.
  • Explicit Content Exposure: EEB attacks amplified explicit content exposure by up to 16x.
  • Black-box Effectiveness: Even without model access, EEB attacks achieved up to 80.2% success in celebrity erasure and 92.7% in object erasure.
  • EEBdeep Performance: Against robust erasure methods like RECE and RECELER, EEBdeep achieved high attack success rates (e.g., 79.72% for RECE in celebrity erasure).

Limitations and Future Work

  • Model Compatibility: Some erasure methods were found to be incompatible or non-functional on newer models like SD v2.1, requiring further investigation.
  • Detectability: While the paper notes that EEBs can be detected through inference-time activation monitoring or weight deviation analysis, making them truly stealthy remains a challenge.
  • Trigger Design: The effectiveness of EEBs can be highly dependent on the specific trigger-target pair, and finding optimal triggers can be difficult.
  • Vision-based Safety: The paper acknowledges that testing EEBs against vision-based safety objectives (rather than text-conditioning) is a direction for future work.
  • Ethical Considerations: The authors emphasize the potential for misuse of their findings and advocate for responsible disclosure and the development of robust defenses.

Summary updated

BibTeX
@inproceedings{grebe2026erased,
  author = {Jonas Henry Grebe and Tobias Braun and Marcus Rohrbach and Anna Rohrbach},
  title = {{Erased but Not Forgotten: How Backdoors Compromise Concept Erasure}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=OpHKAVkOIN},
}
Figure