Erasing Without Collateral Damage: Precise Concept Removal in Diffusion Models

Parth Upman, Nishita Jain, Shreyank N Gowda
7/6/2026
cs.CV

Official code: parthupman/care (2 stars, Apache-2.0, last commit 2026-07-03).

Abstract

Training-free concept erasure is an attractive mechanism for controlling text-to-image diffusion models, but precise erasure often comes at the cost of damaging semantically related non-target concepts. Existing value-space methods remove the component of each cross-attention value along the target concept direction, implicitly treating target identity and shared visual structure as the same signal. We argue that this is the source of much of the collateral damage in prior preservation. We introduce CARE, a closed-form concept erasure operator that replaces the raw target direction with a kept-subspace-aware direction computed from a small bank of retained concept anchors. The resulting edit is applied directly in cross-attention value space, requires no model fine-tuning, and adds only a negligible offline computation. A single shrinkage parameter controls the erase-preserve trade-off. We further show that the operator admits a minimum-disturbance interpretation and, in its projection form, leaves the kept subspace invariant. Experiments under the standard concept-erasure protocol show that our method preserves non-target concepts more faithfully while maintaining competitive erasure across instance, style, and celebrity concepts. Code: https://github.com/parthupman/care

View on arXivView PDF

Code Implementations(1)

parthupman/careOfficial100%
Apache-2.0

CARE — Covariance-Aware Retained-subspace Erasure. Closed-form, training-free concept erasure for diffusion models with an explicit kept-subspace preservation guarantee.

20PythonJul 2, 20263 months agoApache-2.0

Cite this paper

@article{upman2026erasing,
  title  = {Erasing Without Collateral Damage: Precise Concept Removal in Diffusion Models},
  author = {Parth Upman and Nishita Jain and Shreyank N Gowda},
  year   = {2026},
  eprint = {2607.05274},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2607.05274v1}
}

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/2607.05274.svg)](https://codeofpaper.com/paper/2607.05274)

Discussion