TRCE: Towards Reliable Malicious Concept Erasure in Text-to-Image Diffusion Models
On the map: Diffusion models → Robustness, privacy and adversarial aspects
Abstract (arXiv)
Recent advances in text-to-image diffusion models enable photorealistic image generation, but they also risk producing malicious content, such as NSFW images. To mitigate risk, concept erasure methods are studied to facilitate the model to unlearn specific concepts. However, current studies struggle to fully erase malicious concepts implicitly embedded in prompts (e.g., metaphorical expressions or adversarial prompts) while preserving the model's normal generation capability. To address this challenge, our study proposes TRCE, using a two-stage concept erasure strategy to achieve an effective trade-off between reliable erasure and knowledge preservation. Firstly, TRCE starts by erasing the malicious semantics implicitly embedded in textual prompts. By identifying a critical mapping objective(i.e., the [EoT] embedding), we optimize the cross-attention layers to map malicious prompts to contextually similar prompts but with safe concepts. This step prevents the model from being overly influenced by malicious semantics during the denoising process. Following this, considering the deterministic properties of the sampling trajectory of the diffusion model, TRCE further steers the early denoising prediction toward the safe direction and away from the unsafe one through contrastive learning, thus further avoiding the generation of malicious content. Finally, we conduct comprehensive evaluations of TRCE on multiple malicious concept erasure benchmarks, and the results demonstrate its effectiveness in erasing malicious concepts while better preserving the model's original generation ability. The code is available at: http://github.com/ddgoodgood/TRCE. CAUTION: This paper includes model-generated content that may contain offensive material.
Key facts. Cited by 14 papers in the map (data through 7 Oct 2026). Placed in Robustness, privacy and adversarial aspects, one of 14 directions in Diffusion models. Builds on 40 of its 53 references that are in the map. First posted on arXiv 10 Mar 2025.
Builds on
40 of 53 references.
Closest ancestors · 16
Same direction, newest first
- 2024SAFREE: Training-Free and Adaptive Guard for Safe Text-to-Image And Video Generation16 Oct
- 2024Reliable and Efficient Concept Erasure of Text-to-Image Diffusion Models17 Jul
- 2024Adversarial Attacks and Defenses on Text-to-Image Diffusion Models: A Survey10 Jul
- 2024Defensive Unlearning with Adversarial Training for Robust Concept Erasure in Diffusion Models24 May
- 2024MACE: Mass Concept Erasure in Diffusion Models10 Mar
- 2023One-Dimensional Adapter to Rule Them All: Concepts, Diffusion Models and Erasing Applications26 Dec
- 2023MMA-Diffusion: MultiModal Attack on Diffusion Models29 Nov
- 2023To Generate or Not? Safety-Driven Unlearned Diffusion Models Are Still Easy To Generate Unsafe Images ... For Now18 Oct
- 2023Ring-A-Bell! How Reliable are Concept Removal Methods for Diffusion Models?16 Oct
- 2023Prompting4Debugging: Red-Teaming Text-to-Image Diffusion Models by Finding Problematic Prompts12 Sep
- 2023Unified Concept Editing in Diffusion Models25 Aug
- 2023Forget-Me-Not: Learning to Forget in Text-to-Image Diffusion Models30 Mar
4 more
Other references · 24
- 2017Attention Is All You Needcited by 59,932
- 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,456
- 2020Denoising Diffusion Probabilistic Modelscited by 20,851
- 2015U-Net: Convolutional Networks for Biomedical Image Segmentationcited by 19,604
- 2021High-Resolution Image Synthesis with Latent Diffusion Modelscited by 18,694
- 2014Microsoft COCO: Common Objects in Contextcited by 17,498
- 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,084
- 2020Denoising Diffusion Implicit Modelscited by 9,655
- 2022Photorealistic Text-to-Image Diffusion Models with Deep Language Understandingcited by 6,322
- 2022Classifier-Free Diffusion Guidancecited by 5,717
- 2014Neural Machine Translation by Jointly Learning to Align and Translatecited by 4,530
- 2023SDXL: Improving Latent Diffusion Models for High-Resolution Image Synthesiscited by 4,290
12 more
- 2024Scaling Rectified Flow Transformers for High-Resolution Image Synthesiscited by 4,094
- 2021GLIDE: Towards Photorealistic Image Generation and Editing with Text-Guided Diffusion Modelscited by 3,595
- 2023Training-Free Layout Control with Cross-Attention Guidancecited by 312
- 2023Jailbreak in pieces: Compositional Adversarial Attacks on Multi-Modal Language Modelscited by 260
- 2023Survey of Vulnerabilities in Large Language Models Revealed by Adversarial Attackscited by 189
- 2023Can Sensitive Information Be Deleted From LLMs? Objectives for Defending Against Extraction Attackscited by 156
- 2022Can Machines Help Us Answering Question 16 in Datasheets, and In Turn Reflecting on Inappropriate Content?cited by 150
- 2023Editing Implicit Assumptions in Text-to-Image Diffusion Modelscited by 128
- 2023Spontaneous Symmetry Breaking in Generative Diffusion Modelscited by 74
- 2024Get What You Want, Not What You Don't: Image Content Suppression for Text-to-Image Diffusion Modelscited by 62
- 2023Localizing and Editing Knowledge in Text-to-Image Generative Modelscited by 52
- 2023ReFACT: Updating Text-to-Image Models by Editing the Text Encodercited by 32
Built on by
Citing papers per year: 2025: 6; 2026: 8.
14 papers.
Sort:
By area:
- 2025Set You Straight: Auto-Steering Denoising Trajectories to Sidestep Unwanted Conceptscited by 61
- 2025Erasing Concepts, Steering Generations: A Comprehensive Survey of Concept Suppressioncited by 10
- 2025Locality-Aware Continual Unlearning for Diffusion Modelscited by 5
- 2025EMMA: Concept Erasure Benchmark with Comprehensive Semantic Metrics and Diverse Categoriescited by 4
- 2026UnHype: CLIP-Guided Hypernetworks for Dynamic LoRA Unlearningcited by 3
- 2025GrOCE:Graph-Guided Online Concept Erasure for Text-to-Image Diffusion Modelscited by 2
- 2026SafeRoPE: Risk-specific Head-wise Embedding Rotation for Safe Generation in Rectified Flow Transformerscited by 2
- 2026Prototype-Guided Concept Erasure in Diffusion Modelscited by 1
- 2026TrajShield: Trajectory-Level Safety Mediation for Defending Text-to-Video Models Against Jailbreak Attackscited by 1
- 2026FlowErase-RL: Rethinking Concept Erasure as Reward Optimization in Flow Matching Modelscited by 1
- 2025Bi-Erasing: A Bidirectional Framework for Concept Removal in Diffusion Modelscited by 0
- 2026A Concept is More Than a Word: Diversified Unlearning in Text-to-Image Diffusion Modelscited by 0
- 2026Uni-AdaVD: Universal Concept Erasure for Visual Generation via Orthogonal Value Decomposition16 Jul 2026
- 2026Unified Safe In-context Image Generation in Multimodal Diffusion Transformers via Restricting Unsafe Information Flows5 Jun 2026
- 2026FlowErase-RL: Rethinking Concept Erasure as Reward Optimization in Flow Matching Models19 May 2026
- 2026TrajShield: Trajectory-Level Safety Mediation for Defending Text-to-Video Models Against Jailbreak Attacks3 May 2026
- 2026SafeRoPE: Risk-specific Head-wise Embedding Rotation for Safe Generation in Rectified Flow Transformers2 Apr 2026
- 2026A Concept is More Than a Word: Diversified Unlearning in Text-to-Image Diffusion Models19 Mar 2026
- 2026Prototype-Guided Concept Erasure in Diffusion Models9 Mar 2026
- 2026UnHype: CLIP-Guided Hypernetworks for Dynamic LoRA Unlearning3 Feb 2026
- 2025EMMA: Concept Erasure Benchmark with Comprehensive Semantic Metrics and Diverse Categories19 Dec 2025
- 2025Bi-Erasing: A Bidirectional Framework for Concept Removal in Diffusion Models15 Dec 2025
- 2025Locality-Aware Continual Unlearning for Diffusion Models2 Dec 2025
- 2025GrOCE:Graph-Guided Online Concept Erasure for Text-to-Image Diffusion Models17 Nov 2025
- 2025Locality-Aware Continual Unlearning for Diffusion Modelscited by 5
- 2026UnHype: CLIP-Guided Hypernetworks for Dynamic LoRA Unlearningcited by 3
- 2025GrOCE:Graph-Guided Online Concept Erasure for Text-to-Image Diffusion Modelscited by 2
- 2026SafeRoPE: Risk-specific Head-wise Embedding Rotation for Safe Generation in Rectified Flow Transformerscited by 2
- 2026Prototype-Guided Concept Erasure in Diffusion Modelscited by 1
- 2026FlowErase-RL: Rethinking Concept Erasure as Reward Optimization in Flow Matching Modelscited by 1
- 2025Bi-Erasing: A Bidirectional Framework for Concept Removal in Diffusion Modelscited by 0
- 2026A Concept is More Than a Word: Diversified Unlearning in Text-to-Image Diffusion Modelscited by 0
- 2026Unified Safe In-context Image Generation in Multimodal Diffusion Transformers via Restricting Unsafe Information Flowscited by 0
- 2026Unified Safe In-context Image Generation in Multimodal Diffusion Transformers via Restricting Unsafe Information Flows5 Jun 2026
- 2026FlowErase-RL: Rethinking Concept Erasure as Reward Optimization in Flow Matching Models19 May 2026
- 2026SafeRoPE: Risk-specific Head-wise Embedding Rotation for Safe Generation in Rectified Flow Transformers2 Apr 2026
- 2026A Concept is More Than a Word: Diversified Unlearning in Text-to-Image Diffusion Models19 Mar 2026
- 2026Prototype-Guided Concept Erasure in Diffusion Models9 Mar 2026
- 2026UnHype: CLIP-Guided Hypernetworks for Dynamic LoRA Unlearning3 Feb 2026
- 2025Bi-Erasing: A Bidirectional Framework for Concept Removal in Diffusion Models15 Dec 2025
- 2025Locality-Aware Continual Unlearning for Diffusion Models2 Dec 2025
- 2025GrOCE:Graph-Guided Online Concept Erasure for Text-to-Image Diffusion Models17 Nov 2025
- 2025Set You Straight: Auto-Steering Denoising Trajectories to Sidestep Unwanted Conceptscited by 61
- 2025Erasing Concepts, Steering Generations: A Comprehensive Survey of Concept Suppressioncited by 10
- 2025EMMA: Concept Erasure Benchmark with Comprehensive Semantic Metrics and Diverse Categoriescited by 4
- 2026Uni-AdaVD: Universal Concept Erasure for Visual Generation via Orthogonal Value Decompositioncited by 0
- 2026Uni-AdaVD: Universal Concept Erasure for Visual Generation via Orthogonal Value Decomposition16 Jul 2026
- 2025EMMA: Concept Erasure Benchmark with Comprehensive Semantic Metrics and Diverse Categories19 Dec 2025
- 2025Erasing Concepts, Steering Generations: A Comprehensive Survey of Concept Suppression26 May 2025
- 2025Set You Straight: Auto-Steering Denoising Trajectories to Sidestep Unwanted Concepts17 Apr 2025
Similar, not cited
Close in wording, no citation either way
- 2025A Comprehensive Survey on Concept Erasure in Text-to-Image Diffusion Models
- 2024TraSCE: Trajectory Steering for Concept Erasure
- 2024Six-CD: Benchmarking Concept Removals for Benign Text-to-image Diffusion Models
- 2025M-ErasureBench: A Comprehensive Multimodal Evaluation Benchmark for Concept Erasure in Diffusion Models
- 2025Rethinking the Vulnerability of Concept Erasure and a New Method
- 2025Prompt-Based Safety Guidance Is Ineffective for Unlearned Text-to-Image Diffusion Models
- 2025Robust Concept Erasure in Diffusion Models: A Theoretical Perspective on Security and Robustness
- 2026DSS: Dynamic Semantic Steering for Robust Concept Erasure in Diffusion Models