arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2604.03941cs.CV
收藏

SafeCtrl: 通过检测-然后抑制方法实现区域感知的安全控制

SafeCtrl: Region-Aware Safety Control for Text-to-Image Diffusion via Detect-Then-Suppress

School of Computer Science and Technology, Fudan University(复旦大学计算机科学技术学院);Institute of Big Data, Fudan University(复旦大学大数据研究院);Nanjing University of Information Science and Technology(南京信息工程大学)

Lingyun Zhang, Yu Xie, Zhongli Fang, Yu Liu, Ping Chen

AI总结:

SafeCtrl通过检测-然后抑制方法实现区域感知的安全控制,精准定位风险区域并局部抑制有害内容,提升安全性与生成质量。

摘要:

文本到图像扩散模型的广泛应用受到生成视觉有害内容(如色情内容、暴力和恐怖图像)的显著挑战。常见的安全干预措施,从输入过滤到模型概念擦除,往往面临两个关键限制:(1)安全性和上下文保留之间的严重权衡,其中移除不安全概念会降低安全内容的保真度;(2)对对抗性攻击的易受攻击性,其中安全机制容易被绕过。为了解决这些挑战,我们提出了SafeCtrl,一种基于检测-然后抑制范式的区域感知安全控制框架。与全局安全干预不同,SafeCtrl首先使用注意力引导的检测模块精确定位特定风险区域。随后,一个通过图像级直接偏好优化(DPO)优化的局部抑制模块,仅在检测到的区域内中和有害语义,有效将不安全对象转换为安全替代品,同时保持周围上下文的完整性。在多个风险类别上的广泛实验表明,SafeCtrl在安全性和保真度之间实现了优于现有方法的权衡。关键的是,我们的方法显示出对对抗性提示攻击的改进鲁棒性,提供了一种精确且稳健的责任生成解决方案。

英文摘要:

The widespread deployment of text-to-image diffusion models is significantly challenged by the generation of visually harmful content, such as sexually explicit content, violence, and horror imagery. Common safety interventions, ranging from input filtering to model concept erasure, often suffer from two critical limitations: (1) a severe trade-off between safety and context preservation, where removing unsafe concepts degrades the fidelity of the safe content, and (2) vulnerability to adversarial attacks, where safety mechanisms are easily bypassed. To address these challenges, we propose SafeCtrl, a Region-Aware safety control framework operating on a Detect-Then-Suppress paradigm. Unlike global safety interventions, SafeCtrl first employs an attention-guided Detect module to precisely localize specific risk regions. Subsequently, a localized Suppress module, optimized via image-level Direct Preference Optimization (DPO), neutralizes harmful semantics only within the detected areas, effectively transforming unsafe objects into safe alternatives while leaving the surrounding context intact. Extensive experiments across multiple risk categories demonstrate that SafeCtrl achieves a superior trade-off between safety and fidelity compared to state-of-the-art methods. Crucially, our approach exhibits improved resilience against adversarial prompt attacks, offering a precise and robust solution for responsible generation.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑