CVAIMar 2

Safety-Guided Flow (SGF): A Unified Framework for Negative Guidance in Safe Generation

arXiv:2603.133001 citationsh-index: 2
AI Analysis

This work addresses safety in generative AI for image generation, providing a theoretical justification that could improve existing methods, though it appears incremental by unifying and analyzing prior approaches.

The paper tackles the problem of ensuring safety in generative models by proposing a unified probabilistic framework that identifies a critical time window for applying negative guidance, showing that it should be strong early in the denoising process to achieve safe and high-quality generation.

Safety mechanisms for diffusion and flow models have recently been developed along two distinct paths. In robot planning, control barrier functions are employed to guide generative trajectories away from obstacles at every denoising step by explicitly imposing geometric constraints. In parallel, recent data-driven, negative guidance approaches have been shown to suppress harmful content and promote diversity in generated samples. However, they rely on heuristics without clearly stating when safety guidance is actually necessary. In this paper, we first introduce a unified probabilistic framework using a Maximum Mean Discrepancy (MMD) potential for image generation tasks that recasts both Shielded Diffusion and Safe Denoiser as instances of our energy-based negative guidance against unsafe data samples. Furthermore, we leverage control-barrier functions analysis to justify the existence of a critical time window in which negative guidance must be strong; outside of this window, the guidance should decay to zero to ensure safe and high-quality generation. We evaluate our unified framework on several realistic safe generation scenarios, confirming that negative guidance should be applied in the early stages of the denoising process for successful safe generation.

Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes