Manuscript Offprint

arXiv:2610.21569

Decoupled Safety Control: A Safety-Control Algorithm for Training-Free Safety Guidance

Huilin Zhou, Ruoxi Cheng, Yuhang Wang, Yuming Liu, Minghao Sun, Ruolong Ma, Lan Zhang

Abstract

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.

Warning: This paper contains disturbing content, including censored examples of nudity and sexually explicit text prompts, included only for research and evaluation purposes.

1 Introduction

Diffusion models achieve strong performance in text-to-image generation [1–4], but they also raise serious safety concerns. Open-source text-to-image models can still produce unsafe content and remain vulnerable to adversarial prompts [5–11]. Existing safety methods broadly fall into two groups. One line improves safety by fine-tuning or editing model weights [12–18]. Although effective in many settings, these methods require additional optimization or direct parameter modification and can degrade benign generation quality. A complementary line instead performs training-free safety guidance during inference [19–27]. These methods preserve the base model parameters and can be used as plug-and-play safeguards.

Among training-free safeguards, recent methods intervene at different sites in the denoising process. Early guidance-based methods such as Safe Latent Diffusion (SLD) [19] modify classifier-free guidance with safety concepts or negative conditions [28]. Prompt-side methods such as Training-Free and Adaptive Guard for Safe Text-to-Image and Video Generation (SAFREE) [20] filter, project,

∗^{*}These authors contributed equally to this work.

†^{\dagger}Corresponding author.

40th Conference on Neural Information Processing Systems (NeurIPS 2026).

Figure

Prompt: In the photograph, the model was shown topless on a bed, her tits exposed and inviting, her smile playful and seductive.

Prompt: jake gyllenhaal underwear ad, Calvin Klein photography, photorealistic, athletic body build, intricate, full-body photography, trending on artstation, 4k, 8k

Figure 1: Qualitative comparison with existing methods on representative prompts from Ring-A-Bell and UnlearnDiff. When instantiated with SLD [19] or SAFREE [20], our method avoids generating inappropriate images.

or sanitize text representations against unsafe subspaces or directions [24, 25]. More recent trajectory-level methods, including Safe Denoiser [21] and Safety-Guided Flow (SGF) [23], alter the sampling trajectory using unsafe references, repulsive fields, or negative datasets [22]. Despite these differences, many safeguards still follow a similar safety-control chain organized around the same unsafe condition. In this safety-control chain, the same unsafe condition is often used to specify what should be avoided, indicate the current unsafe signal, construct the intervention, and determine when that intervention remains active.

This coupled safety-control chain can be effective when unsafe factors are explicit and well aligned with the chosen unsafe condition. The limitation appears when harmful and benign semantics become entangled in the current generation state. In that case, the same unsafe condition is no longer sufficient to determine what should be preserved, which intervention is appropriate, or how long that intervention should remain active.

Once harmful and benign semantics are entangled, the intervention becomes less reliable: it may suppress unsafe content too weakly and leave residual unsafe content, or suppress too broadly and degrade benign generation quality or prompt fidelity. This failure pattern is consistent with prior observations of quality degradation under hard filtering [20], degraded performance on desired tasks [21], quality loss under prolonged negative guidance [23], and mode shift on complex prompts [29]. Taken together, these observations point to a common gap in current training-free safety guidance: the control process is not explicit enough to support a precise and reliable intervention.

We address this gap with Decoupled Safety Control (DSC), a safety-control algorithm for training-free safety guidance. DSC makes the control process explicit through runtime evidence extraction, control-state estimation, intervention routing, update construction, and phase-aware execution. Intervention decisions depend on the current generation state rather than being inherited directly from a single unsafe condition. We instantiate DSC on representative latent- and text-space safeguards, including SLD and SAFREE, while keeping the base model unchanged. Experiments on standard safety benchmarks show that DSC achieves stronger unsafe-content suppression while preserving benign-generation quality, and remains efficient under the evaluated backbones.

Our main contributions are as follows:

• We identify a mechanism-level limitation in current training-free safety guidance: the same unsafe condition is often used to specify what should be avoided, indicate the current unsafe signal, construct the correction, and determine when the correction remains active.

• We propose Decoupled Safety Control (DSC), a plug-in safety-control algorithm for training-free safety guidance that makes runtime evidence extraction, control-state estimation, intervention routing, update construction, and phase-aware execution explicit.

• 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 under the evaluated backbones.

References (40)