模块化能量引导用于基础模型的安全文本到图像生成
Modular Energy Steering for Safe Text-to-Image Generation with Foundation Models
AI总结:
本文提出一种基于梯度反馈的引导框架,利用预训练基础模型的潜在估计实现安全可控的文本到图像生成,适用于扩散和流匹配模型,提升生成质量与鲁棒性。
摘要:
控制文本到图像生成模型的行为对于安全和实际应用至关重要。现有安全方法通常依赖模型微调或定制数据集,这会降低生成质量或限制可扩展性。我们提出一种推理时引导框架,利用冻结预训练基础模型的梯度反馈来引导生成过程而不修改底层生成器。我们的关键观察是视觉-语言基础模型编码了丰富的语义表示,可以被重新利用作为生成过程中的现成监督信号。通过在每个采样步骤中注入此类反馈,我们的方法将安全引导转化为基于能量的采样问题。这种设计使模块化、无训练的安全控制成为可能,适用于扩散和流匹配模型,并能跨多样化的视觉概念进行泛化。实验表明,该方法在对抗性基准测试中表现出最先进的鲁棒性,并在保持良性非目标提示的高质量生成的同时实现了有效的多目标引导。
英文摘要:
Controlling the behavior of text-to-image generative models is critical for safe and practical deployment. Existing safety approaches typically rely on model fine-tuning or curated datasets, which can degrade generation quality or limit scalability. We propose an inference-time steering framework that leverages gradient feedback from frozen pretrained foundation models to guide the generation process without modifying the underlying generator. Our key observation is that vision-language foundation models encode rich semantic representations that can be repurposed as off-the-shelf supervisory signals during generation. By injecting such feedback through clean latent estimates at each sampling step, our method formulates safety steering as an energy-based sampling problem. This design enables modular, training-free safety control that is compatible with both diffusion and flow-matching models and can generalize across diverse visual concepts. Experiments demonstrate state-of-the-art robustness against NSFW red-teaming benchmarks and effective multi-target steering, while preserving high generation quality on benign non-targeted prompts. Our framework provides a principled approach for utilizing foundation models as semantic energy estimators, enabling reliable and scalable safety control for text-to-image generation.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。