M-ErasureBench: A Comprehensive Multimodal Evaluation Benchmark for Concept Erasure in Diffusion Models

Ju-Hsuan Weng, Jia-Wei Liao, Cheng-Fu Chou, Jun-Cheng Chen

TL;DR

This paper introduces M-ErasureBench, a novel benchmark for evaluating concept erasure in diffusion models across text, learned embeddings, and latent inversions. It reveals that current methods, while effective for text prompts, fail significantly on other modalities. To address this, the authors propose IRECE, a plug-and-play module that enhances robustness by disrupting latent representations at inference time.

What Problem Does This Paper Address?

Diffusion models have revolutionized content generation, but they can also produce harmful or copyrighted material. Concept erasure aims to mitigate this by preventing models from generating specific concepts. Existing methods primarily focus on text prompts, assuming that erasing a concept from the text description is sufficient. However, real-world applications often involve more complex inputs like personalized embeddings (learned from a few images) or latent representations derived from image editing techniques. These alternative input modalities can act as "attack surfaces," allowing erased concepts to re-emerge even when text-based defenses are in place. This paper addresses the critical gap in evaluating concept erasure robustness beyond simple text prompts and proposes a solution to improve it.

Methods

The core of this work is the introduction of M-ErasureBench, a multimodal evaluation framework. It systematically tests concept erasure methods across three input modalities:

  1. Text Prompts: Standard text-based generation.
  2. Learned Embeddings: Using techniques like Textual Inversion to inject custom concepts, evaluated under white-box (erasure model used for training) and black-box (surrogate model used for training) settings, with and without perturbations to the reference images.
  3. Latent Inversion: Recovering latent representations from reference images for editing, also evaluated in white-box and black-box settings.

To address the vulnerabilities identified, the authors propose IRECE (Inference-time Robustness Enhancement for Concept Erasure). IRECE is a plug-and-play module that operates during inference without requiring any retraining of the diffusion model or the erasure method. It works by:

  • Localizing Target Concepts: Using cross-attention maps from a standard diffusion model to identify spatial regions associated with the concept to be erased.
  • Disrupting Latent Representations: Creating a binary mask based on these attention maps and then perturbing the corresponding regions in the latent representation with Gaussian noise. This disruption aims to remove the concept's influence while preserving other image details.

Datasets

The paper uses Stable Diffusion v1.4 (SD v1.4) as the base model. For evaluation, they construct four datasets:

  • SD-Normal: Images generated from SD using five prompt templates, instantiated with 30 random seeds per class (totaling 150 prompts per class).
  • SD-AdvPrompt: SD-Normal prompts attacked with Ring-A-Bell for adversarial robustness testing.
  • SD-TI: Images generated using Textual Inversion to learn embeddings from reference images, then inserted into the same prompt templates.
  • SD-LatentInv: Images from SD-Normal used to obtain initial latents via DDIM inversion.

The benchmark itself, M-ErasureBench, is the novel contribution, encompassing these three evaluation settings (text prompts, learned embeddings, latent inversion) across white-box and black-box scenarios.

Key Insights and Ideas

  • Text-based erasure is insufficient: The most striking insight is that current concept erasure methods, which perform well on text prompts, are severely compromised when faced with learned embeddings or latent inversions. This highlights a significant gap between theoretical effectiveness and practical robustness.
  • Latent inversion is the weakest link: The latent inversion setting proved to be the most challenging, with Concept Reproduction Rates (CRR) exceeding 90% even for adversarially trained methods in the white-box scenario. This suggests that directly manipulating the latent space bypasses many text-centric defenses.
  • Learned embeddings are a significant hurdle: While not as severe as latent inversion, learned embeddings also substantially weaken erasure performance, indicating that concepts encoded in these embeddings are harder to suppress.
  • Adversarial training helps, but not universally: Methods like Receler, which incorporate adversarial training, show better robustness against adversarial text prompts. However, this advantage diminishes significantly when moving to non-textual modalities.
  • Inference-time intervention is viable: The success of IRECE demonstrates that robust concept erasure can be achieved without costly retraining, by intelligently intervening during the generation process.

Key Results

  • CRR over 90% in vulnerable settings: For learned embeddings and latent inversion (white-box, unconditional prompt), CRR exceeded 90% for most methods, indicating near-complete failure of erasure.
  • IRECE reduces CRR by up to 40%: In the most challenging white-box latent inversion scenario, IRECE reduced CRR by up to 40% for ESD, UCE, and Receler, significantly improving robustness.
  • Preserved visual quality: IRECE's disruption of latents was designed to preserve visual coherence, and experiments showed that it maintained visual quality while enhancing erasure.
  • Adversarial prompts challenge text-based methods: While standard text prompts saw low CRR (e.g., 15-26%), adversarial prompts caused CRR to jump significantly (e.g., to 66.7% for ESD), showing vulnerability. Receler, with adversarial training, maintained low CRR even under adversarial prompts.

Limitations and Future Work

  • Limitations of current methods: The paper clearly demonstrates that existing concept erasure methods are not robust to multimodal inputs, especially latent inversions.
  • Future Work: The authors suggest that their benchmark can guide future research towards more robust concept erasure techniques. IRECE's ability to enable controlled object removal or replacement also opens avenues for further applications in generative model editing. The paper also implicitly points to the need for defenses that are inherently multimodal, rather than relying solely on text-based strategies.

Summary updated

BibTeX
@inproceedings{weng2026m,
  author = {Ju-Hsuan Weng and Jia-Wei Liao and Cheng-Fu Chou and Jun-Cheng Chen},
  title = {{M-ErasureBench: A Comprehensive Multimodal Evaluation Benchmark for Concept Erasure in Diffusion Models}},
  booktitle = {IEEE/CVF Winter Conference on Applications of Computer Vision},
  year = {2026},
}
Figure