TL;DR
VisualErase shifts the paradigm of concept erasure in diffusion models from superficial text-mapping redirection to the fundamental redirection of visual generative trajectories. By supervising the denoising process toward explicitly constructed "concept-removed" counterparts, it achieves near-zero recovery rates against sophisticated adversarial attacks while maintaining high image generation quality.
What Problem Does This Paper Address?
Text-to-image (T2I) diffusion models are incredibly powerful but prone to generating "unsafe" content—copyrighted art styles, celebrity likenesses, or nudity. Current "concept erasure" methods usually try to break the link between a specific text prompt (e.g., "Van Gogh style") and the resulting image.
However, recent research shows these methods are fragile. Adversarial attacks like TINA+ (text-free visual inversion) can bypass text-based defenses by finding "backdoor" visual paths to the forbidden concepts. The authors argue there is a fundamental gap: existing methods hide the "textual key" to a concept but leave the "visual treasure" (the generative trajectories) intact within the model's weights.
Methods
The authors propose VisualErase, which directly targets the visual denoising path. The workflow consists of four main stages:
- Paired Data Construction: For a target concept (like a specific celebrity), the authors create a dataset of source images containing the concept and "counterparts" where the concept is removed but the rest of the image (composition, lighting, background) is preserved. They use structure-preserving tools like ControlNet and inpainting to ensure these pairs are perfectly aligned.
- Target Derivation: Instead of using standard diffusion loss, they analytically derive a "redirection target." This target tells the model: "If you start seeing features of the forbidden concept during denoising, steer the trajectory toward the clean counterpart instead."
- Dual-Branch Redirection: This is the core innovation. The model is trained using two branches:
- Conditional Branch: Redirects generation when the target text prompt is used.
- Unconditional Branch: Redirects generation even when no text prompt is provided. This prevents the model from "remembering" the concept in its latent space, closing the loophole used by text-free attacks.
- Counterpart Retention: To ensure the model doesn't lose its general ability to generate high-quality images, they include a loss that encourages the model to retain the non-target features found in the clean counterparts.
Datasets
The authors evaluated VisualErase on Stable Diffusion v1.4 across three domains:
- Artistic Style: Van Gogh (1,000 pairs).
- Celebrity Identity: Taylor Swift (50 pairs).
- Nudity: (109 pairs).
- General Utility: Evaluated using COCO-30K to ensure the model still generates diverse, high-quality images for unrelated prompts.
Key Insights and Ideas
- Visual Trajectories > Text Mappings: The most robust way to erase a concept is to change how the model "sees" and "builds" images at every step of the denoising process, not just how it interprets words.
- The Power of the Unconditional Branch: The authors found that supervising the "null condition" (empty prompt) is the secret sauce for robustness. It forces the model to purge the concept from its internal visual logic, making it much harder for adversarial attacks to "find" the concept again.
- Structure-Preserving Supervision: By using counterparts that keep the background and composition identical, the model learns exactly what to remove (the concept) without accidentally damaging its ability to generate everything else.
Key Results
VisualErase significantly outperforms existing baselines (like ESD, MACE, and STEREO) in terms of robustness:
- Robustness: In Van Gogh style erasure, VisualErase achieved a 0% Attack Success Rate (ASR) across seven different adversarial attacks, including the potent TINA+ probe. For comparison, the previous state-of-the-art (STEREO) had a 46% ASR under TINA+.
- Utility: The model maintained an FID (Fréchet Inception Distance) of 14.7 on COCO-30K, very close to the original model's 14.0, meaning image quality barely degraded.
- Efficiency: VisualErase is faster to train. It completed style erasure in 14.2 minutes on a single H100 GPU, compared to 30 minutes for STEREO—a 52.8% reduction in training time.
Limitations and Future Work
- Dependency on Editing Tools: The method relies on high-quality image editing (like ControlNet) to create the initial training pairs. If the editing tool can't perfectly remove a concept or introduces artifacts, the erasure quality might suffer.
- Object Erasure Challenges: While highly effective for styles and faces, the authors noted that erasing generic objects (like "Tench" fish) is harder to evaluate quantitatively because standard classifiers often produce false positives for similar-looking objects or scenes.
- Scaling: Future work could explore how this method scales to erasing hundreds of concepts simultaneously without catastrophic forgetting.
Summary updated