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

Ouxiang Li, Yuan Wang, Xinting Hu, Houcheng Jiang, Yanbin Hao +1 more
3/10/2025
46 citations
cs.CV
diffusion-flow

Official code: Ouxiang-Li/SPEED (46 stars, Python, Apache-2.0, last commit 2026-03-09).

Abstract

Erasing concepts from large-scale text-to-image (T2I) diffusion models has become increasingly crucial due to the growing concerns over copyright infringement, offensive content, and privacy violations. In scalable applications, fine-tuning-based methods are time-consuming to precisely erase multiple target concepts, while real-time editing-based methods often degrade the generation quality of non-target concepts due to conflicting optimization objectives.

Show full abstract

To address this dilemma, we introduce SPEED, an efficient concept erasure approach that directly edits model parameters. SPEED searches for a null space, a model editing space where parameter updates do not affect non-target concepts, to achieve scalable and precise erasure. To facilitate accurate null space optimization, we incorporate three complementary strategies: Influence-based Prior Filtering (IPF) to selectively retain the most affected non-target concepts, Directed Prior Augmentation (DPA) to enrich the filtered retain set with semantically consistent variations, and Invariant Equality Constraints (IEC) to preserve key invariants during the T2I generation process. Extensive evaluations across multiple concept erasure tasks demonstrate that SPEED consistently outperforms existing methods in non-target preservation while achieving efficient and high-fidelity concept erasure, successfully erasing 100 concepts within only 5 seconds. Our code and models are available at: https://github.com/Ouxiang-Li/SPEED.

View on arXivView PDF

Code Implementations(1)

Ouxiang-Li/SPEEDOfficial100%
Apache-2.0

[ICLR'26] SPEED: Scalable, Precise, and Efficient Concept Erasure for Diffusion Models

461Python, ShellMar 5, 20258 months agoApache-2.0

Similar Papers

Cite this paper

@article{li2025speed,
  title  = {SPEED: Scalable, Precise, and Efficient Concept Erasure for Diffusion Models},
  author = {Ouxiang Li and Yuan Wang and Xinting Hu and Houcheng Jiang and Yanbin Hao and Fuli Feng},
  year   = {2025},
  eprint = {2503.07392},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2503.07392v5}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2503.07392.svg)](https://codeofpaper.com/paper/2503.07392)

Discussion