SPEED: Scalable, Precise, and Efficient Concept Erasure for Diffusion Models

Ouxiang Li, Yuan Wang, Xinting Hu, Houcheng Jiang, Tao Liang, Yanbin Hao, Guojun Ma, Fuli Feng

As text-to-image (T2I) models like Stable Diffusion become ubiquitous, so do the risks of copyright infringement, privacy leaks, and the generation of offensive content. "Concept erasure" aims to surgically remove a model's ability to generate specific subjects (e.g., Mickey Mouse) or styles (e.g., Van Gogh) without breaking the rest of the model's capabilities.

Existing solutions typically fall into two camps:

  1. Fine-tuning: Precise but painfully slow, especially when attempting to erase dozens of concepts simultaneously.
  2. Editing-based: Fast (using closed-form math to update weights), but prone to "semantic degradation." As you try to protect more non-target concepts, optimization objectives conflict, leading to distorted images for the concepts you didn't want to erase.

Researchers have identified a "null space dilemma" in these editing approaches: protecting a small set of concepts is easy but leaves others vulnerable, while protecting a massive set of concepts makes the mathematical "safe space" for editing so small that the model's overall performance collapses.

To address this, a new parameter-editing approach called SPEED (Scalable, Precise, and Efficient Concept Erasure) has been introduced. SPEED operates within a "null space" of the model’s knowledge, allowing it to erase up to 100 concepts simultaneously with a massive speedup over previous methods while significantly better preserving the quality of unrelated images.

Methodology: Null-Space Constrained Optimization

SPEED introduces a framework based on null-space constrained optimization. The core idea is to find a specific direction in the model's parameter space where updates effectively erase the target but have zero mathematical impact on the "retain set" (the concepts we want to keep).

To make this work at scale, SPEED employs Prior Knowledge Refinement through three key mechanisms:

  • Influence-based Prior Filtering (IPF): Instead of trying to protect every possible concept, SPEED calculates which non-target concepts are actually "at risk" from the erasure. It prunes the retain set to focus only on these highly influenced concepts, keeping the null space large enough for effective editing.
  • Directed Prior Augmentation (DPA): To ensure the "keep" zone is robust, the retain set is augmented. Unlike previous methods that used random noise (which often results in visual artifacts), DPA uses directed noise—perturbations projected onto the directions where the model's weights change the least. This creates semantically consistent variations of the concepts being protected.
  • Invariant Equality Constraints (IEC): The authors identified that certain parts of the generation process, like the Start-of-Text ([SOT]) token and null-text embeddings, should never change. They bake these as hard constraints into the optimization.

Key Insights

  • The "Less is More" Protection Strategy: One of the most counter-intuitive findings is that trying to protect fewer non-target concepts (via IPF) actually leads to better overall preservation. By not over-constraining the math with irrelevant concepts, the null space remains flexible enough to perform a clean erasure.
  • Directed Noise for Augmentation: Randomly jittering a concept's embedding usually leads to visual artifacts. By using the Singular Value Decomposition (SVD) of the weight matrix to find "low-variation" directions, DPA creates variations that look like the original concept but occupy more of the embedding space, providing a better "shield" during editing.
  • Parameter Editing Over Fine-tuning: By using closed-form solutions (Lagrange multipliers), the model can be updated almost instantly compared to the iterative nature of backpropagation.

Experimental Results

The researchers evaluated SPEED across several challenging benchmarks, including 100 Celebrities, Artistic Styles, Instance Erasure (e.g., Snoopy, SpongeBob), Implicit Concepts (e.g., Nudity), and General Knowledge (MS-COCO).

Performance and Speed Comparison
  • Massive Speedup: SPEED erased 100 celebrity concepts in just 5 seconds. For comparison, the previous state-of-the-art (MACE) took roughly 30 minutes—a 350× improvement.
  • Superior Preservation: On the 100-celebrity task, SPEED maintained an 85.5% accuracy for retained celebrities, while competing real-time methods like UCE and RECE collapsed to 20.9% and 23.7% respectively (a 55% improvement).
  • Zero-Shot Transfer: The method works across different architectures, including the newer Transformer-based Stable Diffusion 3 (SDv3) and community versions like DreamShaper.
  • Precision: Qualitative results show that while other methods might turn a specific character into a blurry mess, SPEED can cleanly revert a concept like "Snoopy" into a generic "Dog" (the anchor concept) while keeping the background and artistic style of the original prompt perfectly intact.

Limitations and Future Work

While highly effective, SPEED relies on linear null-space projections, which might not fully capture the complex, non-linear interactions between highly entangled concepts in the deepest layers of the model. Furthermore, its effectiveness on abstract concepts (e.g., "freedom") remains less explored compared to concrete subjects and styles. Finally, while erasing 100 concepts is a significant milestone, "continual erasure"—erasing thousands of concepts over time without eventual model degradation—remains an open challenge for future research.

Summary updated

BibTeX
@inproceedings{li2026speed,
  author = {Ouxiang Li and Yuan Wang and Xinting Hu and Houcheng Jiang and Tao Liang and Yanbin Hao and Guojun Ma and Fuli Feng},
  title = {{SPEED: Scalable, Precise, and Efficient Concept Erasure for Diffusion Models}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=aoEtzdRkGh},
}
Figure