Neighbor-Aware Localized Concept Erasure in Text-to-Image Diffusion Models
About
Concept erasure in text-to-image diffusion models seeks to remove undesired concepts while preserving overall generative capability. Localized erasure methods aim to restrict edits to the spatial region occupied by the target concept. However, we observe that suppressing a concept can unintentionally weaken semantically related neighbor concepts, reducing fidelity in fine-grained domains. We propose Neighbor-Aware Localized Concept Erasure (NLCE), a training-free framework designed to better preserve neighboring concepts while removing target concepts. It operates in three stages: (1) a spectrally-weighted embedding modulation that attenuates target concept directions while stabilizing neighbor concept representations, (2) an attention-guided spatial gate that identifies regions exhibiting residual concept activation, and (3) a spatially-gated hard erasure that eliminates remaining traces only where necessary. This neighbor-aware pipeline enables localized concept removal while maintaining the surrounding concept neighborhood structure. Experiments on fine-grained datasets (Oxford Flowers, Stanford Dogs) show that our method effectively removes target concepts while better preserving closely related categories. Additional results on celebrity identity, explicit content and artistic style demonstrate robustness and generalization to broader erasure scenarios.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Artistic Style Erasure | Artistic Style Van Gogh v1.4 base (test) | Accuracy Error Rate (Targeted)55 | 11 | |
| Artistic Style Erasure | Artistic Style Kelly McKernan v1.4 base (test) | Accuracy (t)55 | 11 | |
| Concept Erasure | Stanford Dogs Chesapeake Bay Retriever | Accuracy (Test)16 | 11 | |
| Multi-concept Erasure | Erasure 10 Dogs (test) | Acc_t26.8 | 11 | |
| Concept Erasure | Oxford Flowers Camellia | Accuracy (Target)12 | 11 | |
| Multi-concept Erasure | Erasure 10 Flowers (test) | Accuracy (Target)24.4 | 11 | |
| Concept Erasure | Oxford Flowers Alpine Sea Holly | Accuracy (Test)0.00e+0 | 11 | |
| Concept Erasure | Stanford Dogs Bluetick | Acc_t0.00e+0 | 11 | |
| Celebrity Erasure | Celebrity Dataset Bill Clinton target | Acc_t1.33 | 10 | |
| Celebrity Erasure | Celebrity Dataset Anna Kendrick target | Target Accuracy (Acc_t)0.00e+0 | 10 |