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

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

TL;DR

Making text-to-image diffusion models safe at inference time—without retraining—usually relies on a blunt, one-size-fits-all steering wheel that either fails to catch subtle NSFW content or accidentally ruins harmless images. This paper introduces Decoupled Safety Control (DSC), a lightweight plug-in algorithm that treats image safety like a real-time feedback controller. By separating what is unsafe from how and when to intervene at every denoising step, DSC dramatically slashes harmful outputs while keeping benign images crisp and faithful to the prompt.

What Problem Does This Paper Address?

Open-source diffusion models (like Stable Diffusion) are phenomenal artists, right up until someone feeds them an adversarial prompt designed to generate nudity, violence, or hate speech. While you can fine-tune a model to "unlearn" unsafe concepts, modifying weights is expensive and often degrades the model's general artistic talent.

The practical alternative is training-free safety guidance: steering the image away from harmful territory on the fly during the step-by-step denoising process. However, existing training-free methods suffer from a "coupled safety-control chain." They use a single predefined unsafe condition (like a negative text prompt or an unsafe subspace) to do four distinct jobs simultaneously: define what to avoid, detect danger in the current noisy image, build the mathematical correction, and decide how long to apply it.

This works fine when a prompt is blatantly harmful. But when harmful and harmless concepts get tangled together—imagine a prompt for a "Calvin Klein underwear ad" or an artistic portrait—this coupled approach breaks down. Push too softly, and unsafe content slips through; push too hard, and you ruin image quality or ignore the benign parts of the prompt.

Methods

Instead of inventing a brand-new safeguard from scratch, the authors propose Decoupled Safety Control (DSC), a plug-in control loop that wraps around existing latent-space safeguards (like SLD) and prompt-space safeguards (like SAFREE).

Figure 2: 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.

At every denoising step, DSC runs a five-stage explicit control pipeline based on the current state of the image being generated:

  1. Runtime Evidence Extraction: Gathers real-time clues from the model's denoising branches (e.g., comparing the prompt prediction against unconditional and safety-filtered predictions).
  2. Control-State Estimation: Measures four distinct metrics: unsafe pressure (how strong the harmful signal is), preservation demand (alignment with benign prompt details), entanglement (overlap between the suppression and preservation directions), and spatial/token support.
  3. Intervention Routing: Rather than applying a rigid schedule, DSC dynamically picks one of three modes: Suppressive (full-strength safety correction), Balanced (carefully constrained correction to protect tangled benign details), or Release (backing off to let the baseline model work undisturbed).
  4. Update Construction: Translates the chosen route into a concrete tensor update tailored to the underlying safeguard.
  5. Phase-Aware Execution: Dynamically scales the strength and timing of the correction before fusing it with the baseline denoising step.

Datasets

Because DSC is completely training-free, no datasets are used for training. Evaluation spans three fronts:

  • Adversarial Nudity: Ring-A-Bell, UnlearnDiff, and MMA-Diffusion (benchmarks specifically designed to jailbreak safety filters).
  • Multi-Category Harm: CoPro, covering seven unsafe categories: harassment, hate, illegal activity, self-harm, sexual, shocking, and violence.
  • Benign Quality & Alignment: COCO (COCO-30K / 10K subset) to verify that everyday, harmless prompts still look great.

No new datasets are introduced.

Key Insights and Ideas

  • Danger and preservation aren't opposites on a single dial: Runtime statistics on MMA-Diffusion reveal a negative correlation ($r = -0.56$) between unsafe pressure and preservation demand, proving they aren't interchangeable and must be tracked separately rather than lumped into one similarity score.
  • Every link in the control chain matters: In ablation studies, swapping any single one of DSC's five stages back to the base safeguard's default behavior causes Attack Success Rates (ASR) to jump from 16.7% back up to 39.4%–49.2%. Safe generation requires coordinated routing and calibrated execution.
  • Dynamic routing beats fixed schedules: Standard prompt safeguards lock in their filtering decisions before denoising even starts. When DSC is plugged in, it actively overrides the default behavior in over 91% to 99% of denoising steps, adapting as visual semantics emerge from noise.

Key Results

Tested primarily on Stable Diffusion v1.4 (and validated on SD-v3), DSC delivers substantial improvements across the board:

  • Crushing Adversarial Attacks: On the tough MMA-Diffusion benchmark, adding DSC drops Attack Success Rate (ASR) by 80.8% on SLD (0.881 $\rightarrow$ 0.169) and 72.2% on SAFREE (0.601 $\rightarrow$ 0.167). On UnlearnDiff, SLD's ASR plummets by 90.5% (0.629 $\rightarrow$ 0.060).
  • Better Benign Quality: Usually, tighter safety means worse FID (image quality). Surprisingly, SAFREE + DSC improves COCO FID from 25.29 to 20.95 while keeping CLIP prompt alignment steady at 30.36—outperforming recent trajectory-level enhancers like SGF.
  • Broad Generalization: On CoPro's seven harmful categories, average Inappropriate Probability drops from 0.153 to 0.088 (SAFREE + DSC). On the newer SD-v3 backbone, Ring-A-Bell ASR drops from 0.278 to 0.038.
  • Minimal Overhead: On an NVIDIA H100 GPU, DSC adds just 0.158 seconds per image (5.096s vs. 4.938s for base SAFREE).
Qualitative comparison showing how DSC suppresses nudity on tricky prompts while preserving clothing and subject composition.

Limitations and Future Work

Not discussed in the paper. (Note: Within the provided 10-page main text and references, there is no dedicated section discussing limitations or future research directions, though the authors note that DSC still relies on the base safeguard's predefined unsafe condition $c^-$ to specify what concepts should be avoided.)

Summary updated

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.
BibTeX
@inproceedings{zhou2026decoupled,
  author = {Huilin Zhou and Ruoxi Cheng and Yuhang Wang and Yuming Liu and Sun Minghao and Ruolong Ma and Lan Zhang},
  title = {{Decoupled Safety Control: A Safety-Control Algorithm for Training-Free Safety Guidance}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=bOS8epZNuS},
}
Figure