Organizations: Beijing Key Laboratory of Super Intelligent Security of Multi-Modal Information, State Key Laboratory of Multimodal Artificial Intelligence Systems, Institute of Automation, Chinese Academy of Sciences, Beijing 100190, China · School of Advanced Interdisciplinary Sciences, University of Chinese Academy of Sciences, Beijing 101408, China · School of Computer Science and Technology, Beijing Institute of Technology, Beijing 100190, China
Concept erasure in text-to-image models aims to prevent a target concept from appearing in generated images while preserving general image generation capability. However, erased concepts can still be reactivated by attacks. Prior attacks mainly search text or image input spaces, leaving the initial latent space underexplored. To address this gap, we introduce IVO (Initial latent Variable Optimization), a new concept reactivation attack that changes the starting point of image generation by optimizing the initial latent. Comprehensive experiments across 8 erasure methods show that IVO reactivates erased concepts more effectively than the attack baselines, revealing a blind spot in erasure robustness evaluation. This motivates us to localize model components associated with the target concept and then treat them as intervention sites for more robust concept erasure. We propose CeFlune (Concept Erasure via Functional Localization of Unit Neurons), which adapts brain functional localization to text-to-image models. CeFlune defines linear modules as Unit Neurons and localizes concept-responsive ones by comparing their response trajectories in the model's task and resting states. It then updates the localized Unit Neurons to constrain their responses and the erased model's predictions. Across U-Net diffusion and flow-matching transformer architectures, CeFlune achieves a favorable balance between concept erasure and general image generation capability in comparisons with up to 15 baseline methods. Under IVO and 4 other evaluated attacks, CeFlune also shows lower concept reactivation.
Figures & tables
Fig. 1: Concept reactivation by IVO and its mitigation by CeFlune. With the prompt fixed, conventional erasure appears to erase the parachute concept under standard generation, but an IVO-optimized initial latent reactivates it. CeFlune localizes and intervenes on concept-responsive Unit Neurons, which prevents the illustrated IVO attack from reactivating the parachute concept.
Methods
Diffusion
Flow Matching
SDv1
SDv2
SDXL
SDv3
FLUX
ESD [ 1 ]
✓
✗
✓
✗
✓
FMN [ 10 ]
✗
✓
✗
✗
✗
SPM [ 12 ]
✓
✓
✓
✗
✗
CPE [ 4 ]
✓
✗
✗
✗
✗
AGE [ 23 ]
✓
✓
✗
✗
✗
TABLE I: Compatibility of concept erasure methods across different generative model architectures. The columns show representative models under diffusion and flow matching. A ✓ indicates that the method was evaluated on this model in the original paper, or that its official repository provides adaptation code. A ✗ indicates that neither condition is met.
Method
Access
Attack Variable
Semantic Consistency
CI [ 6 ]
White-box
Text embedding
✗
Ring-A-Bell [ 18 ]
Black-box
Prompt tokens
✗
P4D [ 5 ]
White-box
Prompt tokens
✗
UnlearnDiffAtk [ 19 ]
White-box
Prefix tokens
✗
RECALL [ 7 ]
White-box
Image latent
✓
IVO (ours)
White-box
Initial latent
✓
TABLE II: Comparison of concept reactivation attacks. RECALL optimizes an image latent z0 encoded by a variational autoencoder (VAE), whereas IVO optimizes zT , the initial latent used to start image generation. In the Semantic Consistency column, ✓ indicates that the attack design explicitly considers alignment with the target prompt, and ✗ indicates that it does not.
Fig. 2: The relationship between IVO and CeFlune. IVO extends concept reactivation attacks to the initial latent space, motivating CeFlune’s model functional localization and localized concept erasure. IVO then evaluates the erased model’s attack resistance.
Fig. 3: Initial latent variable optimization (IVO). (a) A reference image is encoded into z0 , which is inverted to obtain the initial latent zT(0) . (b) IVO optimizes this latent using concept-reactivation and semantic-anchoring losses. The erased model then generates an image using the optimized latent zT(K) and target prompt qc .
Fig. 4: Concept reactivation by IVO in SDv1.4 models erased by ESD, ConceptPrune, and STEREO. The radial values show the percentage of generated images in which each of the six core concepts is detected.
Elements
fMRI
CeFlune
Unit
Voxel
Unit Neuron ul
Measure
BOLD signal
al(t,q)
Condition
Task/Rest
qc / ∅
Comparison
Task vs. Rest
qc vs. ∅
Evoked response
Task-evoked
Concept-evoked
Responsive unit
Task-responsive voxel
Concept-responsive ul
TABLE III: Correspondence between functional localization in fMRI and CeFlune.
Fig. 5: CeFlune framework. “Unit Neuron Response Definition” derives a Unit Neuron’s response from its input and output tensors. “Model Functional Localization” records responses over time and compares the task-state and resting-state trajectories to select concept-responsive Unit Neurons, mirroring the task–rest BOLD comparison. “Localized Concept Erasure” depicts the prediction-space constraints and alignment of the selected Unit Neurons’ task-state responses with the original model’s resting-state responses. “Inference Behavior” provides examples of target concept erasure, preservation of other concepts, and resistance to reactivation attacks.
Methods
Nudity
Van Gogh
Church
Garbage Truck
Parachute
Tench
Mean
ER ↑
CLIP ↑
ER ↑
CLIP ↑
ER ↑
CLIP ↑
ER ↑
CLIP ↑
ER ↑
CLIP ↑
ER ↑
CLIP ↑
ER ↑
CLIP ↑
SDv1.4
25.0
25.75
0.0
25.75
1.5
25.75
3.0
25.75
23.5
25.75
32.0
25.75
14.17
25.75
FMN [ 10 ]
26.0
25.61
62.5
25.80
31.0
25.81
30.0
25.78
47.5
25.46
70.5
25.56
44.58
25.67
SPM [ 12 ]
47.0
25.85
53.5
25.70
23.0
25.82
81.0
25.74
73.0
25.77
83.0
25.85
60.08
25.79
UCE [ 2 ]
79.0
25.80
43.5
26.22
43.5
25.66
82.0
25.98
70.5
25.91
93.5
24.31
68.67
25.65
AEGIS [ 26 ]
57.5
25.22
83.0
24.26
77.5
24.36
98.0
23.90
89.0
24.33
44.0
24.31
74.83
24.40
TABLE IV: Concept erasure performance on SDv1.4. CLIP is CLIPScore [ 48 ] on the 200 MS-COCO prompts, used here to assess general image generation capability. Bold and underlined values mark the highest and second-highest results in each column, respectively. Red highlights pronounced degradation in mean CLIP.
Methods
Nudity
Van Gogh
Church
Garbage Truck
Parachute
Tench
Mean
ER ↑
CLIP ↑
ER ↑
CLIP ↑
ER ↑
CLIP ↑
ER ↑
CLIP ↑
ER ↑
CLIP ↑
ER ↑
CLIP ↑
ER ↑
CLIP ↑
SDv3
52.5
25.37
32.5
25.37
33.5
25.37
10.0
25.37
12.5
25.37
47.5
25.37
31.42
25.37
RAZOR [ 33 ]
48.5
25.30
30.5
25.32
32.0
25.33
7.5
25.42
18.5
25.40
67.5
25.43
34.08
25.37
UCE [ 2 ]
49.5
25.42
38.5
25.45
35.5
25.25
10.0
25.34
25.5
25.30
51.5
25.40
35.08
25.36
HiRM [ 36 ]
50.5
25.22
31.0
25.30
36.5
25.40
11.5
25.32
19.0
25.41
62.5
25.31
35.17
25.33
CASteer [ 32 ]
98.5
25.28
80.0
25.26
45.0
25.76
7.0
25.48
33.5
25.82
76.0
25.46
56.67
25.51
TABLE V: Concept erasure performance on SDv3. CLIP is CLIPScore [ 48 ] on the 200 MS-COCO prompts, used here to assess general image generation capability. Bold and underlined values mark the highest and second-highest results in each column, respectively. Red highlights pronounced degradation in mean CLIP.
Fig. 6: Erasure examples on SDv3 (large panels) and SDv1.4 (small panels). Images generated by the original model are shown above the dashed line, and those generated by CeFlune are shown below. ★ indicates nudity masked for display.
Fig. 7: Erasure examples for celebrity identities and copyrighted characters on SDv3. Images generated by the original model are shown above the dashed line, and those generated by CeFlune are shown below.
Fig. 8: Mean erasure rate across the six core concepts on five model architectures before and after applying CeFlune.
Methods
Target
Related
Unrelated
ER ↑
ER ↓
CLIP ↑
ER ↓
CLIP ↑
SDv1.4
0.0
6.2
31.54
0.7
30.38
ESD
90.0
37.0
29.05
0.7
28.98
UCE
43.5
12.8
31.10
1.1
30.58
AdvUnlearn
92.0
27.2
29.93
0.7
30.06
ConceptPrune
74.5
39.2
28.44
0.9
29.07
TABLE VI: Erasure effectiveness and preservation of related and unrelated concepts. The Related and Unrelated columns report means over five other artist styles and five objects, respectively. Bold and underlined values mark the best and second-best results among erasure methods in each column. Red highlights pronounced CLIP degradation.
Method
Localization
ER ↑
Intervention Scope
Erasure Cost
Neurons
Neuron Ratio
Params.
Param. Ratio
Time ↓
GPU Mem. ↓
Fine-tuning-based Methods
SalUn [ 3 ]
✓
82.0
184
69.70
429.76
40.31
5.03 h
43.68
ESD [ 1 ]
✗
90.0
120
45.45
815.56
76.49
3.45 h
15.74
FMN [ 10 ]
✗
47.5
64
24.24
43.96
4.12
53 s
12.37
AdvUnlearn [ 24 ]
✗
98.5
6
2.27
7.09
0.66
53.27 h
11.46
TABLE VII: Erasure effectiveness, intervention scope, and erasure cost across methods. The Localization column indicates whether a method includes an explicit concept localization step. For each method, the Neurons column counts the linear modules affected by its intervention, following CeFlune’s Unit Neuron definition. The Params. column reports the number of parameters involved in the intervention. Neuron Ratio and Param. Ratio are calculated relative to the total numbers of Unit Neurons and parameters in the original SDv1.4 model, respectively, excluding parameters added by erasure methods. ER and ratios are percentages, parameter counts are in millions (M), and GPU memory is in GB. Bold and underlined values mark the best and second-best results in ER, Time, and GPU Mem.
Erasure Method
Ring-A-Bell [ 18 ]
P4D [ 5 ]
UnlearnDiffAtk [ 19 ]
RECALL [ 7 ]
IVO (ours)
Mean
ASR
CLIP
ASR
CLIP
ASR
CLIP
ASR
CLIP
ASR
CLIP
ASR
CLIP
ESD [ 1 ]
18.54
15.29
6.88
11.20
58.11
24.79
85.63
25.29
94.17
30.01
52.67
21.32
AdvUnlearn [ 24 ]
1.67
10.49
3.33
10.56
25.65
19.60
62.08
23.12
57.50
27.29
30.05
18.21
UCE [ 2 ]
23.33
18.77
17.08
12.28
89.47
27.29
90.83
27.30
86.46
31.16
61.43
23.36
ConceptPrune [ 37 ]
18.13
17.82
6.46
11.32
61.33
24.95
73.54
26.55
68.96
30.37
45.68
22.20
STEREO [ 25 ]
2.92
11.53
2.92
8.00
24.84
19.89
50.21
20.95
59.58
26.78
28.09
17.43
TABLE VIII: Concept reactivation under five attacks on SDv1.4. For each attack, ASR and CLIP are means across the six core concepts. CLIP is CLIPScore between the attack-generated images and the original prompts.
Fig. 9: Visual comparison of concept reactivation attacks on SDv1.4 after ESD erasure. The Original and Erased columns show images generated without an attack by the original and erased models, respectively. ★ indicates nudity masked for display.
Fig. 10: Concept reactivation during LoRA fine-tuning after erasure. Lower ER indicates more frequent detection of the erased concept.
Ref.
Lreact
Lanchor
Time
ASR ↑
CLIP ↑
✗
✓
✓
60%
60.83
29.73
✓
✗
✓
60%
90.42
29.83
✓
✓
✗
60%
92.92
29.97
✓
✓
✓
10%
90.83
29.65
✓
✓
✓
30%
93.75
29.76
✓
✓
✓
50%
93.96
30.07
TABLE IX: Ablation of IVO on ESD-erased SDv1.4. Results are averaged over the six core concepts. CLIP is CLIPScore between the attack-generated images and the original prompts. In Ref., ✓ and ✗ denote reference-based and random initialization, respectively. Percentages in Time indicate the position of t in the generation sequence.
Fig. 11: Similarity distributions between generated images and their paired reference images. The original SDv1.4 generates D1 images from random initial latents under an empty prompt and D2 images from reference-based initial latents under target prompts. D3 follows the D2 setting, except that IVO optimizes the initial latents and the erased model generates the images.
Fig. 12: Stability of model functional localization as more seeds are used. Jaccard similarity is calculated between the concept-responsive Unit Neuron set selected using each seed subset and the set selected using all 60 seeds. Bars and the line show the mean across three seed orderings, and dots show the individual results.
Fig. 13: Jaccard similarity between the sets of concept-responsive Unit Neurons identified for 40 concepts in SDv1.4. Diagonal cells are shown in a neutral color.
Fig. 14: Visual comparison of model and brain functional localization for the church concept. The upper two rows show SDv1.4 Unit Neuron responses under empty text (Resting) and the “church” prompt (Task). The lower two rows show one CRSF [ 56 ] participant’s fMRI activity during intervals without concept words or images (Resting) and after presentation of the church word and image (Task). CeFlune selects six concept-responsive Unit Neurons in SDv1.4, while fMRI identifies task-related brain regions in the participant.
Variant
ER ↑
CLIP ↑
ASR ↓
Localization Ablation
Random (number matched)
67.11
25.09
88.61
Random (parameter matched)
74.47
25.16
85.42
Intervention Ablation
Weight zeroing
87.50
21.47
88.33
Output replacement
83.33
17.45
83.96
TABLE X: Ablation of Unit Neuron selection, intervention, and loss terms. The Random (number matched) row uses the same number of Unit Neurons as CeFlune, and the Random (parameter matched) row uses approximately the same number of trainable parameters. Both rows report means across three random seeds. CLIP is CLIPScore on the 200 MS-COCO prompts, used to assess general image generation capability. ASR is measured under IVO.
Parameter
Scale
ER ↑
CLIP ↑
ASR ↓
λ⊥ (default =3 )
0.25×
97.00
24.35
42.71
0.5×
95.75
25.42
57.08
1×
96.83
24.57
43.54
2×
90.08
25.44
53.54
4×
94.33
25.13
51.46
λCDR (default =1 )
0.25×
92.42
25.48
50.63
TABLE XI: Sensitivity of CeFlune to three loss weights. Each weight is varied separately while the other two remain at their default values. The three 1 × rows repeat the result with all weights at their default values. CLIP is CLIPScore on the 200 MS-COCO prompts, used to assess general image generation capability. ASR is measured under IVO.
Fig. 15: t-SNE visualization of generated images before and after concept erasure on SDv1.4 and SDv3. Within each model architecture, CLIP image features from all evaluated models are projected together.
Dept. of Electrical and Computer Engineering, Seoul National University, Republic of Korea · IPAI, Seoul National University, Republic of Korea · INMC, Seoul National University, Republic of Korea