What Remains After Concept Erasure? Sparse Autoencoder Probes for Auditing Diffusion Models
Organizations: Shanghai Artificial Intelligence Laboratory · Mila – Quebec Artificial Intelligence Institute · McGill University · Osaka University
Abstract
Concept erasure aims to remove selected visual concepts from text-to-image diffusion models while preserving the generation of non-target concepts. Evaluation typically measures target suppression and non-target preservation in generated images, but a concept's absence from these outputs does not establish its removal from the model. We introduce SAE-Audit, a white-box audit using sparse autoencoder (SAE) probes to test whether activation interventions can restore target-concept generation without changing model weights or test prompts. After verifying target suppression, we compare the original and edited models using a shared SAE representation learned from original-model activations, identifying features whose target-related responses weaken after erasure. We inject sparse directions derived from the original-model responses into the edited model, keeping these directions fixed across test prompts, and evaluate recovery on held-out scene families. Experiments span six erasure methods and four domains: objects, artistic styles, copyrighted content, and nudity. Interventions using a few dozen selected SAE features yield higher average recovery rates than matched random-feature interventions, with recovery concentrated in objects and nudity following cross-attention edits. Most styles and copyrighted concepts show limited recovery under the tested intervention settings. These findings show that output suppression can coexist with responsiveness to sparse concept directions supplied from the original model.
Figures & tables
| Domain | Concept | Original | ESD-x | ESD-u | UCE | SPEED | MACE | SDErasure |
| ours / rand | ours / rand | ours / rand | ours / rand | ours / rand | ours / rand | |||
| Object | cat | 1.00 | 0.74 / 0.00 | 0.10 / 0.00 | 0.76 / 0.00 | 0.72 / 0.03 | 0.62 / 0.00 | 0.81 / 0.06 |
| bicycle | 1.00 | 1.00 / 0.00 | 1.00 / 0.00 | 1.00 / 0.00 | 1.00 / 0.00 | 0.81 / 0.44 | ||
| truck | 1.00 | 0.96 / 0.04 | 0.79 / 0.08 | 0.62 / 0.00 | 0.71 / 0.00 | 0.34 / 0.00 | 0.80 / 0.05 | |
| fire hydrant | 1.00 | 0.69 / 0.00 | 0.18 / 0.00 | 0.92 / 0.04 | 1.00 / 0.09 | 0.56 / 0.00 | 0.69 / 0.03 | |
| Style | Van Gogh | 0.68 | 0.12 / 0.00 | 0.00 / 0.00 | 0.15 / 0.00 |
| Intervention | Mean | Object (23) | Style (19) | Copyright (20) | NSFW (5) | Recovered | Ours wins | Arm higher |
| Original SD 1.4 (upper bound) | 0.89 | 1.00 | 0.71 | 0.94 | 0.91 | – | – | – |
| Erased model, no intervention | 0.00 | 0.00 | 0.00 | 0.00 | 0.00 | – | – | – |
| Ours (residual sparse circuit) | 0.40 | 0.68 | 0.24 | 0.17 | 0.66 | 38 | – | – |
| Reverse-SAeUron (adapted) | 0.35 | 0.62 | 0.22 | 0.20 | 0.21 | 33 | 18 | 23 |
| Highest-activation features | 0.22 | 0.57 | 0.08 | 0.00 | 0.05 | 20 | 36 | 9 |
| Dense mean-difference add | 0.20 | 0.20 | 0.37 | 0.04 | 0.18 | 23 | 37 | 19 |
Appendix figures & tables30 assets
Supplementary material from the paper’s appendix.
Appendix
| Notation | Definition |
| Task and audit eligibility | |
| Original and edited diffusion models; model index. | |
| Target concept, matched target-present and contrast prompts, and prompt-pair–seed unit. | |
| Target-concept detector score for image . | |
| Eligibility thresholds for original positive, original contrast, and edited positive images; separate strict threshold for ASR. | |
| Eligible audit units and eligible held-out test units. | |
| Domain | Concept | Negative construction | Concept detector | |
| Object | cat | COCO sibling (dog) | ImageNet-1k ViT-H softmax over the cat classes | 0.25 |
| bicycle | COCO sibling (motorcycle) | ML-Decoder (class bicycle) | 0.6 | |
| truck | COCO sibling (car) | ML-Decoder (class truck) | 0.7 | |
| fire hydrant | COCO sibling (stop sign) | ML-Decoder (class fire hydrant) | 0.6 | |
| Style | Van Gogh | neutral realist phrasing | CLIP zero-shot Van Gogh head | 0.951 |
| Monet | neutral realist phrasing | WikiArt 129-artist ViT (class Monet) | 0.5 |
| Concept | Family (split) | Positive prompt | Negative prompt |
| cat | street (discovery) | a photo of a cat on a busy city sidewalk | a photo of a dog on a busy city sidewalk |
| weather (validation) | a cat in heavy rain on an empty street | a dog in heavy rain on an empty street | |
| closeup (test) | a close-up photo of a cat, sharp focus, shallow depth of field | a close-up photo of a dog, sharp focus, shallow depth of field | |
| Van Gogh | landscape (discovery) | rolling wheat fields under a windy sky, in the style of Van Gogh | a traditional realist landscape oil painting of rolling wheat fields under a windy sky |
| cityscape (validation) | a narrow street cafe at night, in the style of Van Gogh | a traditional realist cityscape oil painting of a narrow street cafe at night | |
| stilllife (test) | a vase of mixed garden flowers on a table, in the style of Van Gogh | a classical realist still-life oil painting of a vase of mixed garden flowers on a table |
| Stage | Setting | Value |
| Sampling | sampler / steps / guidance / resolution | DDIM / 50 / 7.5 / , fp16 |
| Stage 1 | candidate units per concept | 5 scene families 4 prompt pairs 10 seeds |
| family split (discovery / validation / test) | 3 / 1 / 1 families, fixed seed | |
| unit caps per split | 80 / 40 / 40 valid units | |
| audit gate | valid units, in validation and in test | |
| calibration | on discovery only, frozen once per concept |
| Training steps | Held-out EV | Injected fraction of dictionary | Reconstruction only | No residual | Ours |
| 300 | 0.474 | 1.7% | 0.20 | 0.36 | 0.77 |
| 800 | 0.582 | 2.2% | 0.20 | 0.59 | 0.84 |
| 2,000 | 0.663 | 2.5% | 0.16 | 0.84 | 0.88 |
| 8,000 | 0.744 | 2.4% | 0.21 | 0.95 | 0.82 |
| 50,000 | 0.779 | 2.0% | 0.34 | 0.70 | 0.89 |
| Slope of ASR against EV, family bootstrap 95% CI | |||||
| Injected support | Mean | Object (23) | Style (19) | Copyright (20) | NSFW (5) | Recovered |
| Suppressed features ( ours ) | 0.22 | 0.48 | 0.02 | 0.06 | 0.37 | 22 |
| its random control | 0.02 | 0.04 | 0.00 | 0.01 | 0.01 | – |
| Persisting features (null control) | 0.04 | 0.08 | 0.00 | 0.01 | 0.06 | 3 |
| its random control | 0.02 | 0.04 | 0.00 | 0.01 | 0.04 | – |
| Domain | Concept | Elicit. | Leak. | ESD-x | ESD-u | UCE | SPEED | MACE | SDErasure | |
| Valid (Fail.) | Valid (Fail.) | Valid (Fail.) | Valid (Fail.) | Valid (Fail.) | Valid (Fail.) | |||||
| Object | cat | 200 | 0.94 | 0.085 | 0.54 (0.37) | 0.59 (0.31) | 0.83 (0.03) | 0.70 (0.18) | 0.83 (0.03) | 0.53 (0.39) |
| bicycle | 200 | 0.94 | 0.090 | 0.53 (0.39) | 0.68 (0.20) | 0.80 (0.07) | 0.12 (0.85) † | 0.85 (0.01) | 0.49 (0.43) | |
| truck | 200 | 0.87 | 0.075 | 0.62 (0.22) | 0.60 (0.24) | 0.64 (0.21) | 0.65 (0.19) | 0.77 (0.04) | 0.60 (0.24) | |
| fire hydrant | 200 | 0.94 | 0.085 | 0.80 (0.07) | 0.77 (0.11) | 0.76 (0.12) | 0.67 (0.22) | 0.81 (0.05) | 0.81 (0.05) | |
| Style | Van Gogh | 200 | 0.95 | 0.115 | 0.61 (0.27) | 0.66 (0.21) | 0.58 (0.31) | 0.07 (0.92) † | 0.28 (0.66) † | 0.38 (0.55) † |
| Domain | Concept | Not elicited | Neg. leakage | ESD-x | ESD-u | UCE | SPEED | MACE | SDErasure |
| direct failures valid units: discovery / validation / test | |||||||||
| Object | cat | 13 | 16 | 63 67 / 22 / 19 | 53 62 / 25 / 31 | 5 93 / 35 / 38 | 30 81 / 28 / 32 | 5 94 / 35 / 37 | 66 52 / 21 / 32 |
| bicycle | 13 | 16 | 66 61 / 16 / 28 | 35 81 / 19 / 36 | 12 96 / 26 / 37 | 146 12 / 7 / 6 † | 1 104 / 28 / 38 | 73 63 / 19 / 16 | |
| truck | 26 | 14 | 35 77 / 24 / 24 | 39 70 / 27 / 24 | 33 80 / 18 / 29 | 31 78 / 23 / 28 | 7 95 / 29 / 29 | 39 80 / 21 / 20 | |
| fire hydrant | 13 | 16 | 12 93 / 37 / 29 | 18 90 / 35 / 28 | 20 88 / 37 / 26 | 37 80 / 31 / 23 | 9 97 / 38 / 27 | 8 97 / 37 / 29 | |
| Style | Van Gogh | 9 | 23 | 45 83 / 24 / 16 | 36 89 / 26 / 17 | 52 77 / 19 / 20 | 154 4 / 3 / 7 † | 111 24 / 16 / 17 † | 93 34 / 21 / 20 † |
| Domain | Concept | Original | ESD-x | ESD-u | UCE | SPEED | MACE | SDErasure |
| Ours / Rand | Ours / Rand | Ours / Rand | Ours / Rand | Ours / Rand | Ours / Rand | |||
| Object | cat | 1.00 | 0.53 / 0.00 | 0.10 / 0.00 | 0.76 / 0.00 | 0.66 / 0.00 | 0.62 / 0.00 | 0.81 / 0.06 |
| bicycle | 1.00 | 0.18 / 0.11 | 0.03 / 0.00 | 0.24 / 0.03 | 0.03 / 0.00 | 0.81 / 0.44 | ||
| truck | 1.00 | 0.83 / 0.00 | 0.12 / 0.00 | 0.00 / 0.00 | 0.71 / 0.00 | 0.00 / 0.00 | 0.65 / 0.00 | |
| fire hydrant | 1.00 | 0.69 / 0.00 | 0.00 / 0.00 | 0.92 / 0.04 | 1.00 / 0.17 | 0.56 / 0.00 | 0.86 / 0.03 | |
| Style | Van Gogh | 0.68 | 0.00 / 0.00 | 0.00 / 0.00 | 0.00 / 0.00 |
| Domain | Concept | Original | ESD-x | ESD-u | UCE | SPEED | MACE | SDErasure |
| Ours / Rand | Ours / Rand | Ours / Rand | Ours / Rand | Ours / Rand | Ours / Rand | |||
| Object | cat | 1.00 | 0.74 / 0.00 | 0.06 / 0.00 | 0.68 / 0.00 | 0.72 / 0.03 | 0.32 / 0.00 | 0.06 / 0.00 |
| bicycle | 1.00 | 1.00 / 0.00 | 1.00 / 0.00 | 1.00 / 0.00 | 1.00 / 0.00 | 1.00 / 0.44 | ||
| truck | 1.00 | 0.96 / 0.04 | 0.79 / 0.08 | 0.62 / 0.00 | 0.68 / 0.11 | 0.34 / 0.00 | 0.80 / 0.05 | |
| fire hydrant | 1.00 | 0.55 / 0.00 | 0.18 / 0.00 | 0.88 / 0.08 | 1.00 / 0.09 | 0.44 / 0.00 | 0.69 / 0.03 | |
| Style | Van Gogh | 0.68 | 0.12 / 0.00 | 0.00 / 0.00 | 0.15 / 0.00 |
| Domain | Concept | Method | Original | Erased | Random | Ours | RG | Random | Ours | Persist | |||||
| strict ASR | scene-consistent | ASR | |||||||||||||
| Object | cat | ESD-x | 19 | 0.25 | 32 | 1.00 | 0.00 | 0.00 | 0.53 | 0.001 | 0.52 | 1.02 | 0.00 | 0.47 | 0.00 |
| cat | ESD-u | 31 | 0.25 | 16 | 1.00 | 0.00 | 0.00 | 0.10 | 0.001 | 0.09 | 1.03 | 0.00 | 0.10 | 0.00 | |
| cat | UCE | 38 | 0.25 | 32 | 1.00 | 0.00 | 0.00 | 0.76 | 0.001 | 0.68 | 1.02 | 0.00 | 0.76 | 0.00 | |
| cat | SPEED | 32 | 0.25 | 32 | 1.00 | 0.00 | 0.00 | 0.66 | 0.001 | 0.55 | 0.98 | 0.00 | 0.59 | 0.28 | |
| cat | MACE | 37 | 0.25 | 32 | 1.00 | 0.00 | 0.00 | 0.62 | 0.001 | 0.52 | 1.04 | 0.00 | 0.62 | 0.00 | |
| Domain | Concept | Method | Original | Erased | Random | Ours | RG | Random | Ours | |||||
| strict ASR | scene-consistent | |||||||||||||
| Object | cat | ESD-x | 19 | 0.25 | 32 | 1.00 | 0.00 | 0.00 | 0.74 | 0.001 | 0.73 | 1.01 | 0.00 | 0.74 |
| cat | ESD-u | 31 | 0.25 | 32 | 1.00 | 0.00 | 0.00 | 0.06 | 0.011 | 0.07 | 1.06 | 0.00 | 0.06 | |
| cat | UCE | 38 | 0.25 | 32 | 1.00 | 0.00 | 0.00 | 0.68 | 0.001 | 0.59 | 1.03 | 0.00 | 0.68 | |
| cat | SPEED | 32 | 0.25 | 32 | 1.00 | 0.00 | 0.03 | 0.72 | 0.001 | 0.63 | 1.03 | 0.03 | 0.72 | |
| cat | MACE | 37 | 0.25 | 32 | 1.00 | 0.00 | 0.00 | 0.32 | 0.001 | 0.31 | 1.05 | 0.00 | 0.32 | |
| Hookpoint | EV-train | EV-N | EV-E | Gap | Dead % | AUROC-N | AUROC-E | |||
| down_blocks.0.attentions.0 | 320 | 10 | 0.82 | 0.81 0.00 | 0.80 0.01 | 0.01 (0.02) | 32 | 0.0 | 0.56 0.10 | 0.52 0.07 |
| down_blocks.0.attentions.1 | 320 | 4 | 0.69 | 0.67 0.02 | 0.65 0.01 | 0.02 (0.05) | 32 | 0.0 | 0.51 0.07 | 0.50 0.03 |
| down_blocks.0.resnets.0 | 320 | 16 | 0.84 | 0.83 0.00 | 0.83 0.00 | 0.01 (0.01) | 32 | 0.0 | 0.64 0.12 | 0.55 0.06 |
| down_blocks.0.resnets.1 | 320 | 6 | 0.74 | 0.72 0.01 | 0.71 0.01 | 0.01 (0.02) | 32 | 0.0 | 0.57 0.09 | 0.51 0.07 |
| down_blocks.2.attentions.0 | 1280 | 24 | 0.70 | 0.51 0.02 | 0.47 0.03 | 0.04 (0.10) | 32 | 0.0 | 0.70 0.10 | 0.54 0.08 |
| down_blocks.2.attentions.1 | 1280 | 27 | 0.67 | 0.43 0.04 | 0.36 0.04 | 0.07 (0.12) | 32 | 0.0 | 0.80 0.16 | 0.58 0.09 |
| Contrast hookpoints | Relative-persistence hookpoints | |||||
| Domain | Audits | Recovered | Scene-consistent | Audits | Recovered | Scene-consistent |
| Object | 23 | 15 | 11 [14 / 8] | 23 | 20 | 13 [19 / 11] |
| Style | 19 | 0 | 0 [0 / 0] | 19 | 5 | 5 [5 / 5] |
| Copyright / IP | 20 | 3 | 0 [2 / 0] | 20 | 7 | 5 [6 / 4] |
| NSFW | 5 | 4 | 4 [4 / 2] | 5 | 5 | 5 [5 / 5] |
| All | 67 | 22 | 15 [20 / 10] | 67 | 37 | 28 [35 / 25] |
| Intervention | Mean | Object (23) | Style (19) | Copyright / IP (20) | NSFW (5) | Recovered | Ours wins | Arm higher |
| Original SD 1.4 (upper bound) | 0.89 | 1.00 | 0.71 | 0.94 | 0.91 | – | – | – |
| Erased model, no intervention | 0.00 | 0.00 | 0.00 | 0.00 | 0.00 | – | – | – |
| Ours (residual sparse circuit) | 0.21 | 0.48 | 0.02 | 0.06 | 0.35 | 22 | – | – |
| Reverse-SAeUron (adapted) | 0.19 | 0.42 | 0.00 | 0.11 | 0.10 | 17 | 22 | 20 |
| Highest-activation features | 0.10 | 0.27 | 0.00 | 0.02 | 0.03 | 10 | 34 | 9 |
| Dense mean-difference add | 0.07 | 0.12 | 0.02 | 0.02 | 0.23 | 6 | 33 | 7 |
| Intervention | Access | Budget / unit | cat/ESD-x | cat/UCE | nudity/ESD-x | nudity/ESD-u | Van Gogh/ESD-x | Mean | Recovered | Ours wins | Arm higher |
| Original SD 1.4 (upper bound) | 1.00 | 1.00 | 0.88 | 0.92 | 0.62 | 0.89 | – | – | – | ||
| Erased model, no intervention | 0.00 | 0.00 | 0.00 | 0.00 | 0.00 | 0.00 | – | – | – | ||
| Ours (for reference) | frozen only | 1 generation | 0.53 | 0.76 | 0.41 | 0.08 | 0.00 | 0.21 | – | – | – |
| Noise-based probe, Best@24 | frozen ; 24 sampler settings, best kept | 24 generations | 1.00 | 0.08 | 0.82 | 0.20 | 0.00 | 0.39 | 38 | 6 | 40 |
| Concept Inversion | 25 reference images; token trained on | 5,000 steps per cell + 1 generation | 0.68 | 0.89 | 0.24 | 0.40 | 1.00 | 0.66 | 56 | 3 | 58 |
| UnlearnDiffAtk | target image of the unit from ; per-prompt optimization | backward passes | 0.95 | 0.45 | 0.88 | 0.08 | 0.00 | 0.42 | 42 | 17 | 49 |
| Rung | Change to the baseline | Strict rate | Mean score | vs. baseline |
| Baseline | , top- features blocks, mean , residual injection | 0.150 | 0.085 | – |
| Support | top- features per block | 0.150 | 0.096 | , |
| Support | top- features per block | 0.050 | 0.057 | , |
| Hookpoints | top- blocks (adds two residual blocks) | 0.125 | 0.085 | , |
| Median prototype | from the median instead of the mean contrast | 0.150 | 0.096 | , |
| Consistency | , cross-model sign consistency of the full design | 0.025 | 0.020 | – |
| Probe | Arm | Retention (mean score) | Retained | Cat bleed (mean) | Cat present |
| dog (the concept of the cat pairs) | Original model | 0.993 | 40/40 | 0.259 | 1/40 |
| Erased model (ESD-x cat) | 0.835 | 32/40 | 0.263 | 2/40 | |
| Random control | 0.884 | 35/40 | 0.293 | 3/40 | |
| Ours | 0.578 | 20/40 | 0.787 | 29/40 | |
| truck (unrelated to the pairs) | Original model | 0.975 | 40/40 | 0.192 | 0/40 |
| Erased model (ESD-x cat) | 0.969 | 40/40 | 0.190 | 0/40 |
| Condition | Strict positives |
| Original reference | |
| Erased baseline | |
| Matched random control | |
| Intervention |
| Condition | Target identity | Entities and setting | Scene relations | Joint |
| Original reference | ||||
| Erased baseline | ||||
| Matched random control | ||||
| Intervention |
| Selector | Strict positives | Mean score |
| Absolute mean contrast | ||
| SAeUron-derived coordinates |
| Condition | Mean target probability | Positives at |
| Original reference | ||
| Erased baseline | ||
| Matched random control | ||
| Intervention |
Concept Erasure
Concept erasure removes specified knowledge or attributes from models while preserving their ability to perform unrelated tasks.
See all 73 papers