arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2611.40694cs.CVcs.CRcs.LG
收藏

OPSD-Erase:针对文本到图像生成模型的策略内概念擦除

OPSD-Erase: On-Policy Concept Erasure for Text-to-Image Generative Models

Huazhong University of Science and Technology(华中科技大学);Ant Group(蚂蚁集团)

Yunfei Zheng, Dandan Zheng, Laurence T. Yang, Shenghao Liu, Xiaoxuan Fan, Xianjun Deng

AI总结:

OPSD-Erase是一种策略内框架,通过对齐文本到图像生成采样状态的反向更新,更可靠地抑制不安全概念生成,同时保留良性效用,且安全行为鲁棒。

摘要:

开放权重的文本到图像模型可根据自然语言提示生成高质量图像,但也可能被诱导生成不安全内容,在开放部署中带来重大风险。现有防御措施存在两点不足:外部检测模块和推理时引导在权重发布后可被移除;更持久的权重编辑方法(包括闭式编辑和现有基于微调的擦除)通常在与编辑模型采样时访问的状态不同的状态上训练,存在训练-推理不一致问题,导致概念擦除不完整。我们将文本到图像生成视为统一的反向过程,将概念擦除定义为采样访问状态上的一步反向更新对齐,以此解决该问题。我们提出OPSD-Erase,这是一种策略内框架,在学生访问的状态上训练,使用冻结的参考模型提供安全的一步目标,并使用锚定条件保留良性生成行为。对采样轨迹的探测揭示了两种不匹配模式:在策略外固定数据监督下,随着回滚离开训练支撑,更新误差会增大;更普遍的是,非策略内方法在访问的状态上保留大量残留不匹配。相比之下,OPSD-Erase使其访问的状态上的一步反向更新保持对齐。在SD1.4和Z-Image上的实验表明,OPSD-Erase能更可靠地抑制不安全概念的实现,同时保留良性效用,且该安全行为在措辞变化、多概念擦除和顺序擦除下仍保持鲁棒性。

英文摘要:

Open-weight text-to-image models can generate high-quality images from natural language prompts, but they can also be induced to produce unsafe content, creating substantial risks in open deployment. Existing defenses are insufficient for two reasons. External detection modules and inference-time guidance can be removed once the weights are released. More durable weight-editing methods, including closed-form editing and existing fine-tuning-based erasure, are typically trained on states that differ from those visited by the edited model during sampling, creating a training-inference inconsistency that leaves concept erasure incomplete. We address this problem by viewing text-to-image generation as a unified reverse process and defining concept erasure as alignment of the one-step reverse update on the states visited during sampling. We propose OPSD-Erase, an on-policy framework that trains on student-visited states, uses a frozen reference model to provide safe one-step targets, and uses anchor conditions to preserve benign generation behavior. A probe on the sampling trajectory reveals two mismatch patterns: under off-policy fixed-data supervision, update error grows as the rollout leaves the training support; more generally, non-on-policy methods retain substantial residual mismatch across visited states. In contrast, OPSD-Erase keeps the one-step reverse update aligned on the states it visits. Experiments on SD1.4 and Z-Image show that OPSD-Erase more reliably suppresses unsafe concept realization while preserving benign utility, and that this safety behavior remains robust under wording shift, multi-concept erasure, and sequential erasure.

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

↑