Sparse autoencoders (SAEs) decompose diffusion model activations into interpretable features, but steering a model with them requires identifying which features map to a given semantic concept, if any. Existing methods for this concept to feature task are expensive, relying on grid searches or repeated passes through the frozen UNet. We propose Efficient Semantic Sparse Identification (ESSI). Using segmentation masks to label SDXL activations as concept or non-concept, ESSI ranks SAE features and binary-searches for the smallest set on which a linear classifier still separates positive from negative samples while not falling below a performance threshold, then reuses that classifier to calibrate the steering strength. We evaluate the same selected features on both concept insertion and object unlearning. Compared with prior work, ESSI is as cheap or cheaper, and performs well on both insertion and removal.
Figures & tables
Figure 1: Concept removal examples at down.2.1 . Each panel shows the unedited image (left) and each method’s edit with γauto (top row) and γsearch (bottom row). Top: removing Birds from “A Birds image in Surrealism style.” Bottom: removing Horses from “A Horses image in Fauvism style.”
Figure 2: Concept insertion examples at down.2.1 . Each panel shows the unedited base image (left) and each method’s edit with αauto , αγauto and αγsearch (rows, top to bottom). Top: inserting Human into “a good picture of flame.” Bottom: inserting Sandwiches into “a good picture of bears.”
Method
UA ↑
IRA ↑
CRA ↑
FID ↓
(UA+IRA)/2 ↑
γauto
ESSI
0.676
0.990
0.980
9.897
0.833
Adaptive
0.668
0.992
0.980
9.659
0.830
OSP
0.678
0.981
0.973
11.439
0.830
SAeUron
0.722
0.978
0.966
14.091
0.850
CASL (down)
0.285
0.722
0.711
89.733
0.503
Table 1: Concept removal results at down.2.1 (CASL also at mid.0 ), means over the 20 UnlearnCanvas objects. Best in bold , second best italicized .
Method
EPR ↑
αauto
ESSI
1.994
Adaptive
2.481
OSP
1.860
SAeUron
2.592
CASL (down)*
0.536
Table 2: Concept insertion results at down.2.1 (CASL also at mid.0 ), means over the 20 UnlearnCanvas objects. Best in bold , second best italicized .
Method
FLOPs/concept
ESSI
27.8 T
Adaptive
27.8 T
OSP
27.9 T
SAeUron*
250 P
CASL
56.3 P
Table 3: FLOPs per concept for feature selection.
Strength
FLOPs/concept
γauto
104 G
αauto
104 G
γsearch (ESSI, Adaptive, OSP)
30.6 P
γsearch (CASL)
22.3 P
γsearch (SAeUron)*
0
Table 4: FLOPs per concept for strength selection, on top of feature selection.
block
training steps
lr
inference steps
optimizer
ΔLCLIP
down.2.1
1000
1e-5
1
SGD
-0.003
down.2.1
1000
1e-4
1
SGD
-0.005
down.2.1
1000
1e-3
1
Adam
0.024
down.2.1
1000
1e-3
1
SGD
0.017
down.2.1
1000
1e-3
2
Adam
-0.011
down.2.1
1000
1e-3
10
Adam
0.012
Table 5: N=2 Hyperparameter search
αauto
αγauto
αγsearch
Object
ESSI
Adaptive
OSP
SAeUron
CASL (down)
ESSI
Adaptive
OSP
SAeUron
CASL (down)
ESSI
Adaptive
OSP
SAeUron
CASL (down)
Architectures
1.085
5.784
2.888
1.339
0.000
2.585
3.194
1.449
2.436
0.000
2.379
1.149
2.300
0.518
0.000
Bears
1.464
0.907
0.907
1.035
0.395
0.531
0.871
0.871
0.683
0.395
1.636
1.071
1.071
1.032
0.464
Birds
3.267
3.267
1.029
3.164
0.000
0.000
0.000
0.549
0.000
0.000
3.579
3.579
1.050
3.285
0.000
Butterfly
1.494
0.762
0.762
1.787
0.000
0.722
0.935
0.935
0.596
0.000
1.582
0.865
0.865
1.201
0.000
Cats
5.290
5.290
5.290
5.495
0.000
1.279
1.279
1.279
0.999
0.000
4.132
4.132
4.132
1.796
0.000
Table 6: Per-object insertion EPR ↑ at down.2.1 . In each column, the best object is in bold , the second best italicized and the worst underlined ; the last row is the EPR pooled over all edited images (Table 2 ).
γauto
γsearch
Object
ESSI
Adaptive
OSP
SAeUron
CASL (down)
ESSI
Adaptive
OSP
SAeUron
CASL (down)
Architectures
3.226
7.262
15.499
16.054
0.000
3.052
1.539
13.324
44.670
0.000
Bears
14.105
6.244
6.244
11.176
237.543
8.833
4.815
4.815
8.003
130.334
Birds
0.881
0.881
25.082
0.884
0.223
9.801
9.801
16.665
8.673
0.015
Butterfly
9.823
10.847
10.847
6.775
0.000
10.712
11.204
11.204
11.860
0.000
Cats
5.321
5.321
5.321
4.322
0.000
13.554
13.554
13.554
7.938
0.000
Table 7: Per-object removal FID ↓ at down.2.1 . In each column, the best object is in bold , the second best italicized and the worst underlined ; the last row is the mean over the 20 objects (Table 1 ).
γauto
γsearch
Object
ESSI
Adaptive
OSP
SAeUron
CASL (down)
ESSI
Adaptive
OSP
SAeUron
CASL (down)
Architectures
0.689
0.609
0.918
0.629
0.500
0.640
0.500
0.854
0.865
0.500
Bears
0.990
0.766
0.766
0.993
0.572
1.000
0.679
0.679
1.000
0.643
Birds
0.510
0.510
0.539
0.510
0.499
0.995
0.995
0.483
0.996
0.500
Butterfly
1.000
0.999
0.999
0.950
0.500
1.000
1.000
1.000
1.000
0.500
Cats
0.790
0.790
0.790
0.710
0.500
0.995
0.995
0.995
1.000
0.500
Table 8: Per-object removal (UA+IRA)/2 ↑ at down.2.1 . In each column, the best object is in bold , the second best italicized and the worst underlined ; the last row is the mean over the 20 objects (Table 1 ).
Figure 3: SDXL Classifier vs. Pretrained Classifier Visualization
metric
style
object
accuracy (pretrained)
0.06
0.91
accuracy (sdxl)
0.96
0.99
both right
0.06
0.91
both wrong
0.04
0.01
Table 9: SDXL Classifier vs. Pretrained Classifier Results
γauto
γsearch
αauto
Method
FID ↓
2UA+IRA↑
EPR ↑
FID ↓
2UA+IRA↑
EPR ↑
EPR ↑
ESSI
9.897
0.833
1.570
10.431
0.911
2.641
1.994
Adaptive
9.660
0.830
1.760
8.902
0.845
2.520
2.481
OSP
11.441
0.830
1.411
9.274
0.804
1.882
1.860
SAeUron
14.083
0.849
1.395
15.094
0.960
2.476
2.592
CASL (down)
89.733
0.503
0.536
48.472
0.502
0.510
0.536
Table 10: Removal FID and 2UA+IRA and insertion EPR at down.2.1 , means over the 20 objects (EPR pooled over all edited images). Under γauto / γsearch , EPR is insertion at α=−γ . In each column, the best method is in bold and the second best italicized .
γauto
γsearch
αauto
Method
FID ↓
2UA+IRA↑
EPR ↑
FID ↓
2UA+IRA↑
EPR ↑
EPR ↑
ESSI
27.228
0.694
0.751
13.596
0.714
0.782
1.125
Adaptive
12.875
0.710
0.716
9.786
0.699
0.847
0.919
OSP
14.022
0.722
0.707
10.613
0.702
0.821
0.928
SAeUron
42.497
0.741
0.762
35.365
0.811
0.828
0.784
CASL (mid)
171.545
0.486
0.637
79.391
0.496
0.625
0.637
Table 11: Removal FID and 2UA+IRA and insertion EPR at mid.0 , means over the 20 objects (EPR pooled over all edited images). Under γauto / γsearch , EPR is insertion at α=−γ . In each column, the best method is in bold and the second best italicized .
γauto
γsearch
αauto
Method
FID ↓
2UA+IRA↑
EPR ↑
FID ↓
2UA+IRA↑
EPR ↑
EPR ↑
ESSI
17.678
0.800
1.062
13.010
0.846
1.264
1.165
Adaptive
15.886
0.836
1.021
12.158
0.845
1.185
1.154
OSP
17.430
0.836
1.034
12.307
0.823
1.081
1.514
SAeUron
19.575
0.768
0.751
20.776
0.942
1.115
1.538
Table 12: Removal FID and 2UA+IRA and insertion EPR at up.0.0 , means over the 20 objects (EPR pooled over all edited images). Under γauto / γsearch , EPR is insertion at α=−γ . In each column, the best method is in bold and the second best italicized .
γauto
γsearch
αauto
Method
FID ↓
2UA+IRA↑
EPR ↑
FID ↓
2UA+IRA↑
EPR ↑
EPR ↑
ESSI
55.938
0.706
0.864
31.472
0.756
1.400
1.819
Adaptive
26.321
0.746
0.844
14.513
0.730
0.789
1.190
OSP
23.615
0.746
0.816
15.041
0.735
0.814
1.056
SAeUron
81.633
0.614
0.897
59.617
0.798
1.048
1.590
Table 13: Removal FID and 2UA+IRA and insertion EPR at up.0.1 , means over the 20 objects (EPR pooled over all edited images). Under γauto / γsearch , EPR is insertion at α=−γ . In each column, the best method is in bold and the second best italicized .