动态擦除器:扩散模型中的引导概念擦除
DSS: Dynamic Semantic Steering for Robust Concept Erasure in Diffusion Models
AI总结:
本文提出动态语义引导(DSS)框架,通过敏感语义边界建模和敏感语义引导实现可控的概念擦除,提升安全内容生成效果。
摘要:
在文本到图像(T2I)扩散模型中,概念擦除对于安全内容生成至关重要,但现有推理时间方法存在显著限制。特征修正方法常导致不可控的过度修正,而token级干预在语义粒度和上下文方面表现不佳。此外,这两种方法都容易导致严重的语义漂移或甚至完全的表示崩溃。为了解决这些挑战,我们提出了动态语义引导(DSS),一种轻量、无需训练的可解释和可控的概念擦除框架。DSS引入:1)敏感语义边界建模(SSBM)以自动发现安全的语义锚点,2)敏感语义引导(SSG),利用交叉注意力特征进行精确检测,并通过从良好定义的目标导出的闭式解进行修正。这确保了对敏感内容的最佳抑制,同时保留良性语义。DSS实现了平均擦除率为91.0%,显著优于现有最佳方法(从18.6%到85.9%),对输出保真度影响极小。
英文摘要:
Text-to-image (T2I) diffusion models have introduced new security risks, as adversaries can exploit flexible text prompts to induce the generation of sensitive or policy-violating content (e.g., NSFW or copyrighted concepts). Concept erasure has emerged as a promising defense, aiming to suppress targeted semantics while preserving benign generation. However, existing approaches face a fundamental trade-off: training-based methods are costly and inflexible to emerging threats, while inference-time interventions often rely on unconstrained feature manipulation, leading to over-correction, semantic drift, and degraded utility. More critically, they lack an explicit understanding of local semantic structure, resulting in unstable behavior under adversarial or compositional prompts. In this paper, we propose Dynamic Semantic Steering (DSS), a training-free, inference-time defense framework for robust and controllable concept erasure under prompt-level adversarial settings. DSS introduces a geometry-aware formulation that explicitly models local semantic neighborhoods and constrains feature updates within this structure, which is key to achieving precise suppression without sacrificing benign semantics. Specifically, DSS (i) automatically identifies benign semantic anchors via density-based boundary modeling, and (ii) performs context-aware, constrained feature correction using cross-attention signals with a closed-form solution. Extensive experiments demonstrate that DSS achieves strong and consistent suppression across diverse concept categories and adversarial prompts, reaching an average erasure rate of 91.0\%, outperforming prior defenses (18.6\%--85.9\%). At the same time, DSS substantially reduces semantic drift and preserves generation fidelity.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。