Organizations: University of Science and Technology of China · Fudan University · Tencent · Beijing University of Posts and Telecommunications · China Academy of Information and Communications Technology
Diffusion models achieve strong performance in text-to-image generation, but they can still produce unsafe content. Training-free safety guidance offers a practical inference-time alternative that intervenes during sampling without modifying model weights. However, many existing safeguards still rely on a coupled safety-control chain. In this chain, the same unsafe condition simultaneously specifies what should be avoided, indicates the current unsafe signal, constructs the intervention, and determines when that intervention remains active. This coupling can work when unsafe factors are explicit, but becomes less reliable once harmful and benign semantics are entangled in the current generation state, often leaving residual unsafe content or unnecessarily degrading benign-generation quality or prompt fidelity. We address this problem with Decoupled Safety Control (DSC), a plug-in safety-control algorithm for training-free safety guidance. DSC reformulates training-free safety guidance as an explicit state-dependent control process, so the executed intervention is determined from the current generation state rather than inherited directly from a single unsafe condition. Experiments on standard safety benchmarks show that DSC improves representative latent- and text-space safeguards, achieving stronger unsafe-content suppression while preserving benign-generation quality and maintaining efficient inference.
Figures & tables
Figure 1: Overview of DSC at each denoising step. DSC organizes runtime evidence extraction, control-state estimation, intervention routing, update construction, and phase-aware execution around the baseline safeguard step.
Method
Weight Update
Training -Free
Decoupled Control
Ring-A-Bell
UnlearnDiff
MMA-Diffusion
COCO
ASR ↓
TR ↓
ASR ↓
TR ↓
ASR ↓
TR ↓
FID ↓
CLIP ↑
SD-v1.4
-
-
-
0.797
0.809
0.809
0.845
0.962
0.956
25.04
31.38
ESD
✓
✗
✗
0.456
0.506
0.422
0.426
0.628
0.640
27.38
30.59
RECE
✓
✗
✗
0.177
0.212
0.284
0.292
0.651
0.664
33.94
30.29
SLD
✗
✓
✗
0.481
0.573
0.629
0.586
0.881
0.882
36.47
29.28
SLD + SGF
✗
✓
✗
0.228
0.294
0.353
0.431
0.297
0.357
36.83
28.13
Table 1: Performance comparison on adversarial nudity benchmarks. Our method improves safety while preserving image quality.
Method
Harassment ↓
Hate ↓
Illegal Activity ↓
Self-harm ↓
Sexual ↓
Shocking ↓
Violence ↓
Avg. IP ↓
CLIP ↑
SD-v1.4
0.269
0.154
0.206
0.319
0.120
0.221
0.274
0.223
29.81
SLD
0.223
0.106
0.161
0.247
0.078
0.158
0.217
0.170
29.65
SLD + Ours
0.148
0.095
0.134
0.156
0.067
0.127
0.190
0.131
29.02
SAFREE
0.182
0.118
0.144
0.183
0.085
0.150
0.206
0.153
28.91
SAFREE + Ours
0.101
0.062
0.062
0.116
0.045
0.085
0.146
0.088
28.38
Table 2: Performance of IP and CLIP on the CoPro dataset. Lower IP and higher CLIP are better.
Method
ASR ↓
Δ ASR
TR ↓
Δ TR
SAFREE
0.601
↑ 0.434
0.618
↑ 0.393
w/o runtime evidence extraction
0.394
↑ 0.227
0.448
↑ 0.223
w/o control-state estimation
0.419
↑ 0.252
0.470
↑ 0.245
w/o intervention routing
0.452
↑ 0.285
0.494
↑ 0.269
w/o update construction
0.462
↑ 0.295
0.507
↑ 0.282
w/o phase-aware execution
0.492
↑ 0.325
0.525
↑ 0.300
Table 3: Mechanism ablation on MMA-Diffusion.
Figure 2: Runtime control organization on MMA-Diffusion under the same SAFREE pipeline. DSC shifts executed control from the SAFREE-default chain to explicit intervention routing.
Figure 3: Runtime statistics of SAFREE + Ours on MMA-Diffusion.
Appendix figures & tables11 assets
Supplementary material from the paper’s appendix.
Appendix
Figure C.1: Qualitative comparison on Ring-A-Bell [ Tsai et al., 2024 ] .
Figure C.2: Qualitative comparison on UnlearnDiff [ Zhang et al., 2024 ] .
Method
FID ↓
CLIP ↑
SAFREE + Ours
17.14
30.49
SLD + Ours
26.54
29.05
Appendix
Table C.1: Full COCO-30K FID and CLIP results for our method applied to SLD and SAFREE.
Figure C.3: The first 300 generated images from SAFREE + Ours on COCO-30K.
Figure C.4: Qualitative comparison on selected CoPro prompts from the illegal-activity category. Our method guides the outputs toward safer scenes while preserving the broad scene context.
Figure C.5: Qualitative comparison on Ring-A-Bell prompts with SD-v3.
Quantity
SLD
SAFREE
dt−
ϵttxt−ϵtsafe
ϵttxt−ϵtfilt
dt+
ϵttxt−ϵtuncond
ϵtfilt−ϵtuncond
Appendix
Table D.1: Denoising-branch evidence for the two safeguard instantiations.
Parameter
Value
τκ
0.80
τη
0.56
τω
0.08
[cmin,cmax]
[0.98,1.28] (SLD); [0.94,1.22] (SAFREE)
cref
1.0
ρmax
0.85
Appendix
Table D.2: Fixed DSC parameters.
Method
ASR ↓ [95% CI]
Paired Δ [95% CI]
SLD + SGF
0.297[0.269,0.326]
—
SLD + Ours
0.169[0.147,0.192]
−0.128[−0.156,−0.101]
SAFREE + SGF
0.423[0.392,0.454]
—
SAFREE + Ours
0.167[0.145,0.190]
−0.256[−0.288,−0.224]
Appendix
Table E.1: MMA-Diffusion ASR and prompt-cluster bootstrap 95% confidence intervals. Paired Δ is DSC minus SGF within the same safeguard; a negative value favors DSC.
Evaluation protocol
SLD + SGF
SLD + Ours
SAFREE + SGF
SAFREE + Ours
NudeNet
0.297
0.169
0.423
0.167
Q16
0.312
0.181
0.437
0.174
ShieldGemma2
0.431
0.128
0.514
0.072
Llama Guard 4
0.402
0.121
0.487
0.069
Human
0.441
0.153
0.479
0.131
Appendix
Table E.2: MMA-Diffusion unsafe rate ↓ under four automatic evaluation protocols and human annotation. Comparisons are made within each row and safeguard.
Evaluation protocol
SLD
SLD + Ours
SAFREE
SAFREE + Ours
Original classifier (avg. IP)
0.170
0.131
0.153
0.088
ShieldGemma2
0.198
0.142
0.176
0.095
Llama Guard 4
0.189
0.138
0.168
0.091
Human
0.183
0.119
0.130
0.107
Appendix
Table E.3: CoPro seven-category average under the original IP protocol and additional evaluation protocols ( ↓ ). Each row compares the safeguard with and without DSC.
School of Computer Science and Technology, Fudan University, China · Institute of Big Data, Fudan University, China · Nanjing University of Information Science and Technology, China