atlas

Research map / Image generation / Text-to-image diffusion

Semantic Surgery: Zero-Shot Concept Erasure in Diffusion Models

NeurIPS 2025 · Image generation › Text-to-image diffusion · approach: Concept erasure in diffusion models · 1 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes Semantic Surgery, a training-free zero-shot concept erasure method that subtracts a calibrated, presence-scaled concept direction from the text embedding before diffusion, with co-occurrence encoding and visual feedback for multi-concept and persistence cases.

Problem

Text-to-image diffusion models generate harmful or biased content; existing concept erasure methods either alter model parameters (losing locality and being static) or act token-wise or mid-diffusion, failing to achieve both completeness and locality.

Approach

Operate globally on the text embedding before diffusion: estimate concept presence via a sigmoid-calibrated cosine score (semantic biopsy), then subtract a scaled concept-direction vector computed from a co-occurrence prompt; a visual feedback loop reinforces erasure when concepts persist in generated images.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use Semantic Surgery rather than RecelerCIFAR-10 object erasure · CIFAR-10 object erasure (average)H: 88.74 -> 93.58Helped
Use Semantic Surgery rather than RecelerCIFAR-10 object erasure · CIFAR-10 object erasure (average)Acc_R: 10.00 -> 2.00Helped
Use Semantic Surgery rather than MACECIFAR-10 object erasure · CIFAR-10 object erasure (average)Acc_L: 79.09 -> 85.56Helped
Use Semantic Surgery rather than SAFREEI2P explicit content removal · I2PTotal NudeNet detections: 82 -> 1Helped
Use Semantic Surgery rather than SD v1.4MS-COCO 30k general image generation · MS-COCO 30kFID: 14.04 -> 12.2Helped
Use Semantic Surgery rather than MACEArtistic style erasure · Artistic style erasure (100 styles)H_a: 5.99 -> 8.09Helped
Use Semantic Surgery rather than SD v1.4Artistic style erasure · MS-COCO 30kFID-30K: 14.04 -> 14.04No clear effect
Use Semantic Surgery rather than MACEMulti-celebrity erasure · 100 celebritiesH_c: ≈ 0.892 -> ≈ 0.965Helped
Use Semantic Surgery rather than MACEBlack-box RAB adversarial attack · RAB (380 prompts)ASR: 3.95% -> 1.05%Helped
Add visual feedback (ablation)Semantic Surgery · CIFAR-10 object erasure (average)H-score: 92.18 -> 93.58Helped
Add visual feedback (ablation)Semantic Surgery · CIFAR-10 object erasure (average)Acc_L: 87.38 -> 85.56Hurt
Add visual feedback (ablation)Semantic Surgery · I2P explicit content removalTotal nude images: 47 -> 1Helped

Surprising findings

Limitations

Experimental setup

Datasets: CIFAR-10 I2P Image Synthesis Style Studies MACE celebrity dataset MS-COCO 30k RAB prompts UnlearnDiffAtk

Benchmarks: CIFAR-10 object erasure I2P Image Synthesis Style Studies (100 artists) MACE multi-celebrity erasure RAB UnlearnDiffAtk

Metrics: H-score Acc_E Acc_R Acc_L NudeNet instance count FID-30K CLIP-30K H_a H_c ASR

Baselines: SD v1.4 ESD-x ESD-u UCE AC Receler MACE SLD SAFREE

Builds on: activation engineering SLD SAFREE

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy