Neighbor-aware erasure removes target concepts while preserving nearby categories
NLCE can delete undesired concepts in diffusion models without degrading semantically related neighbor concepts
AI/ML arXiv 27 Mar 2026 Method Prototype evidence
Published as “Neighbor-Aware Localized Concept Erasure in Text-to-Image Diffusion Models”
Why it matters
Provides a practical, inference-only tool for safely removing unwanted concepts from diffusion models without retraining, useful for deploying safer generative services.
Summary
NLCE removes target concepts with zero target accuracy while preserving neighboring categories (e.g., 82.06% retain accuracy on Oxford Flowers), outperforming prior training-free methods. It does this via a three-stage, training-free pipeline of spectral embedding modulation, attention-guided spatial gating, and gated hard erasure. Experiments on fine-grained, identity, explicit-content, and artistic datasets show strong erasure and neighbor preservation, though complete nudity removal may require stronger hyper-parameters.
What they found 2
- NLCE achieves zero target accuracy and high neighbor retain accuracy on Oxford Flowers.
“NLCE (Ours) 0.00 82.06 90.15 32.18 0.03”
- NLCE reduces detected explicit content more than all baselines on the I2P benchmark.
“NLCE outperforms other baselines in most of categories and in total number of detected items.”
Caveats 2
- Our method is designed for neighbor-aware, spatially localized erasure, prioritizing suppression in regions associated with the explicit concept rather than applying a global modification. Consequently, in some challenging cases, complete nudity removal may not occur under balanced hyperparameters.
- We omit ablations on the artistic dataset because artistic style lacks localized or neighbor-structured semantics, making stage-wise effects less meaningful.
What’s new here 4
- Introduces a spectrally-weighted embedding modulation that attenuates target directions while reinforcing neighbor subspaces.
- Adds an attention-guided spatial gate to localize residual concept activations before hard erasure.
- Combines the above in a fully training-free pipeline that scales to multi-concept erasure.
- Demonstrates improved neighbor preservation on fine-grained datasets compared to GLoCE.