Erased but Not Forgotten: How Backdoors Compromise Concept Erasure

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

TL;DR

Text-to-image concept erasure methods aim to safety-sanitize diffusion models by removing harmful concepts, but this paper reveals a glaring blind spot. By introducing Erasure Evasion Backdoors (EEB), the authors demonstrate that an adversary can link a secret trigger to a target concept such that the concept survives subsequent erasure attempts. This vulnerability persists across six state-of-the-art erasure frameworks and even transfers to modern Diffusion Transformer (DiT) architectures like FLUX.

What Problem Does This Paper Address?

Safety in generative AI often relies on "concept erasure"—fine-tuning a text-to-image model post-training to remove its ability to generate harmful content, such as explicit imagery, copyrighted material, or deepfakes of public figures.

However, current erasure techniques typically assume they are dealing with a clean, unmanipulated model. This paper explores a dangerous gap: What if an adversary poisons the model before it undergoes erasure? The authors investigate whether hidden backdoor triggers can act as a "safe room" for banned concepts, allowing malicious users to bypass safety filters post-erasure.

Methods

The authors formalize the Erasure Evasion Backdoor (EEB) threat model across varying levels of adversary access:

  1. Black-box (EEBdata): A dirty-label data poisoning attack where the adversary injects mismatched text-image pairs (1% contamination) into the fine-tuning data.
  2. White-box Surface/Shallow (EEBsurface, EEBshallow): Localized weight-based attacks targeting either just the text encoder or the cross-attention layers.
  3. White-box Deep (EEBdeep): A novel score-based self-distillation attack introduced by the authors. Instead of modifying isolated layers, EEBdeep uses LoRA to inject the backdoor across all U-Net layers. It optimizes a joint loss function balancing trigger mapping ($L_\dagger$), utility retention ($L_r$), and unconditional generation quality ($L_q$).
Figure 3. Updates Across Attacks. Fine-tuned (violet) vs. frozen (gray) components for each weight-based variant: EEBsurface (Strup- pek et al., 2023) (text encoder), EEBshallow (Wang et al., 2024a) (cross-attn), and EEBdeep (LoRA across all U-Net layers).

They test these attacks against six concept erasure methods, including standard baselines (ESD, UCE, MACE) and robust defenses designed to resist adversarial circumvention (RECE, RECELER, ADVUNLEARN).

Datasets

The methods were evaluated across three distinct tasks using several datasets:

  • LAION-Aesthetics: Used to train the data-poisoning baseline (EEBdata).
  • Celebrity Detector (GCD) Dataset: A dataset containing 2,300 celebrity classes, used to evaluate celebrity identity unlearning and retention.
  • CIFAR-10: Used to benchmark object-level concept erasure (e.g., erasing the concept of "bird" or "ship").
  • I2P (Inappropriate Image Prompts): A dataset containing 931 prompts categorized as "sexual," used to test explicit content erasure.
  • MS COCO: Used to evaluate general model utility and prompt-image alignment via FID and CLIPScore.

Key Insights and Ideas

  • Superficial Sanitization: Concept erasure methods often only sever the most direct, obvious textual pathways to a concept. They fail to clear alternative routing pathways established by backdoor triggers.
  • Depth Matters for Persistence: Surface-level attacks (EEBsurface) or localized attention edits (EEBshallow) are easily wiped out by deep erasure methods. However, distributing the backdoor across the entire network architecture (EEBdeep) makes it incredibly resilient.
  • The Robustness Paradox: Even "robust" erasure methods that iteratively search for alternative representations (like RECE or RECELER) fail to neutralize deeply embedded backdoors. When these defenses try harder to erase the concept, they often severely degrade the model's general utility on benign prompts instead.
  • Dual-Use Potential: This vulnerability can be flipped into a defensive diagnostic tool. Developers can intentionally implant backdoors to stress-test whether an unlearning algorithm achieves true semantic removal or just a superficial patch.

Key Results

  • High Attack Success: EEBdeep successfully bypassed celebrity identity erasure with up to an 82.5% Attack Success Rate (ASR) and circumvented object erasure in 65% of cases on average.
  • Amplified Harm: In explicit content erasure scenarios, EEBdeep led to up to a 16× amplification of exposed sensitive content compared to the erased clean baseline.
  • Black-Box Efficacy: Even without weight access, the simple data-poisoning attack (EEBdata) achieved up to 80.2% ASR in celebrity erasure and 92.7% ASR in object erasure.
  • Cross-Architecture Transfer: The vulnerability is not unique to U-Net architectures. When tested on the state-of-the-art, DiT-based FLUX.1 [dev] model, EEBdeep increased unsafe generations by >176% after erasure.
Figure 4. Celebrity samples (erasure target Morgan Freeman). Top row: original model (left) and outputs after applying different erasure methods (remaining columns). Rows below: correspond- ing EEB-poisoned models, shown before erasure (left) and after applying the same erasure methods (remaining columns).

Limitations and Future Work

  • Text-Pathway Focus: The current threat model focuses entirely on text-conditioned pathways. The authors note that evaluating vision-based safety objectives (like image-level supervision or preference optimization) is an open area for future work.
  • Detection Challenges: Detecting these backdoors prior to erasure remains difficult because the poisoned models behave perfectly normally on benign prompts. However, the authors demonstrate that inference-time activation monitoring (e.g., T2IShield) can flag anomalous triggered prompts with an AUC of ~90%, pointing toward a viable defense strategy.

Summary updated

BibTeX
@inproceedings{braun2026erased,
  author = {Tobias Braun and Jonas Henry Grebe 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