arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2508.21099cs.CVcs.AIcs.CR
收藏

超越安全税:通过外部安全校正缓解不安全的文本到图像生成

Beyond the Safety Tax: Mitigating Unsafe Text-to-Image Generation via External Safety Rectification

Shandong University(山东大学);Netflix Eyeline Studios

Xiangtao Meng, Yingkai Dong, Ning Yu, Li Wang, Zheng Li, Shanqing Guo

AI总结:

本文提出SafePatch,通过外部安全校正机制有效抑制文本到图像生成中的不安全内容,同时保持生成质量与语义一致性。

摘要:

文本到图像(T2I)生成模型已经实现了惊人的视觉保真度,但仍然容易生成不安全的内容。现有的安全防御通常在生成模型内部干预,但存在严重的概念纠缠,导致良性生成质量下降,我们称之为安全税。为了克服这一限制,我们倡导从破坏性内部编辑转向外部安全校正的范式转变。遵循这一原则,我们提出了SafePatch,一个结构上隔离的安全模块,能够在不修改基础模型的情况下进行外部、可解释的校正。SafePatch的核心骨干被架构化地实例化为基础模型编码器的可训练克隆,使其能够继承丰富的语义先验并保持表示一致性。为了实现可解释的安全校正,我们构建了一个严格对齐的反事实安全数据集(ACS)用于差异监督训练。在色情和多类别基准以及最近的对抗性提示攻击中,SafePatch在保持图像质量和语义对齐的同时,实现了稳健的不安全内容抑制(在I2P上7%的不安全内容)。

英文摘要:

Text-to-image (T2I) generative models have achieved remarkable visual fidelity, yet remain vulnerable to generating unsafe content. Existing safety defenses typically intervene internally within the generative model, but suffer from severe concept entanglement, leading to degradation of benign generation quality, a trade-off we term the Safety Tax. To overcome this limitation, we advocate a paradigm shift from destructive internal editing to external safety rectification. Following this principle, we propose SafePatch, a structurally isolated safety module that performs external, interpretable rectification without modifying the base model. The core backbone of SafePatch is architecturally instantiated as a trainable clone of the base model's encoder, allowing it to inherit rich semantic priors and maintain representation consistency. To enable interpretable safety rectification, we construct a strictly aligned counterfactual safety dataset (ACS) for differential supervision training. Across nudity and multi-category benchmarks and recent adversarial prompt attacks, SafePatch achieves robust unsafe suppression (7% unsafe on I2P) while preserving image quality and semantic alignment.

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

↑