Introduction
Large-scale text-to-image (T2I) diffusion models, such as Stable Diffusion, have demonstrated remarkable capabilities in generating high-fidelity images from textual descriptions. However, these models can also be prompted to generate harmful, explicit, or copyrighted content. While various "concept erasure" techniques have been proposed to mitigate these risks, they often prove vulnerable to adversarial attacks. Attackers can employ "concept inversion" to find specific textual embeddings that bypass filters and successfully regenerate forbidden content. This paper introduces STEREO (Search Thoroughly Enough, Robustly Erase Once), a novel two-stage framework designed to achieve robust concept erasure while maintaining the model's overall utility.
Methodology
The STEREO framework addresses the limitations of existing methods by decoupling the identification of vulnerabilities from the erasure process. It operates in two distinct stages:
Stage 1: Search Thoroughly Enough (STE)
The first stage acts as a "red-teaming" phase. Instead of a single erasure step, STEREO employs an iterative min-max optimization process to explore the model's textual embedding space. This process identifies "adversarial prompts"—mathematical representations that can still trigger the generation of the target concept despite initial erasure attempts. By mapping these "blind spots," the framework gains a comprehensive understanding of the model's vulnerabilities.
Stage 2: Robustly Erase Once (REO)
In the second stage, the model is fine-tuned using the insights gained from Stage 1. STEREO introduces an anchor-concept-based compositional objective. For a given target concept (e.g., "parachute"), the framework utilizes "anchor concepts" (e.g., "parachute in the sky") to guide the erasure. The objective encourages the model to move away from the undesirable concept while remaining close to the anchor's benign components. This surgical approach ensures that the target concept is effectively removed without causing "catastrophic forgetting" or degrading the quality of unrelated image generation.
Experimental Evaluation
The authors evaluated STEREO across three primary erasure tasks:
- Nudity Removal: Using 95 prompts from the I2P dataset known to trigger explicit content.
- Artistic Style Removal: Targeting the distinctive style of Vincent van Gogh to assess copyright protection capabilities.
- Object Removal: Deleting specific object classes, such as the "Tench" fish from ImageNet.
STEREO was benchmarked against state-of-the-art (SOTA) methods, including RECE, RACE, and AdvUnlearn, focusing on both robustness against attacks and the preservation of model utility.
Results and Discussion
STEREO demonstrates significant improvements in adversarial robustness. In nudity removal tasks against the powerful Circumventing Concept Erasure (CCE) attack, STEREO maintained an Attack Success Rate (ASR) of just 4.21%. In contrast, baseline methods like RACE and AdvUnlearn saw success rates climb to 83.15% and 66.31%, respectively.
Furthermore, STEREO excels at preserving model utility. It achieved an average FID (Fréchet Inception Distance) of 16.1, closely matching the original Stable Diffusion model's score of 14.1. Qualitative analysis confirms that while other methods may still produce stylistic remnants or fail entirely under attack, STEREO successfully shifts the output to safe, generic styles without losing the structural integrity of the requested scene.
Conclusion
STEREO provides a robust solution to the challenge of concept erasure in T2I models. By systematically identifying embedding-space vulnerabilities and utilizing anchor concepts for surgical fine-tuning, it overcomes the traditional trade-off between robustness and utility. While the iterative optimization in Stage 1 increases computational costs, the resulting security gains represent a significant step forward in developing safer and more reliable generative AI systems. Future work will focus on improving computational efficiency and extending the framework to handle simultaneous multi-concept erasure.
Summary updated