arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2505.23312cs.CV
收藏

TRACE:扩散模型中轨迹约束的概念擦除

TRACE: Trajectory-Constrained Concept Erasure in Diffusion Models

Shandong University(山东大学)

Finn Carter

AI总结:

本文提出TRACE方法,通过理论框架和轨迹感知微调目标,在扩散模型中擦除不良概念同时保持生成质量,在多个基准上取得最优性能。

摘要:

文本到图像扩散模型展现出了前所未有的生成能力,但其生成不良概念(例如色情内容、敏感身份、受版权保护的风格)的能力引发了对隐私、公平性和安全性的严重担忧。概念擦除旨在移除或抑制生成模型中的特定概念信息。在本文中,我们引入了TRACE(轨迹约束注意力概念擦除),这是一种从扩散模型中擦除目标概念同时保持整体生成质量的新方法。我们的方法结合了严格的理论框架,确立了在扩散过程中可证明抑制概念的正式条件,以及与常规潜在扩散(Stable Diffusion)和新兴校正流模型(例如FLUX)兼容的有效微调程序。我们首先推导出模型交叉注意力层的闭式更新,以移除目标概念的隐藏表示。然后,我们引入了轨迹感知的微调目标,该目标仅在后期采样阶段引导去噪过程远离该概念,从而保持模型在不相关内容上的保真度。在实验中,我们在先前概念擦除研究使用的多个基准(对象类别、名人面孔、艺术风格和来自I2P数据集的露骨内容)上评估了TRACE。TRACE实现了最先进的性能,在移除效果和输出质量方面优于最近的方法,如ANT、EraseAnything和MACE。

英文摘要:

Text-to-image diffusion models have shown unprecedented generative capability, but their ability to produce undesirable concepts (e.g.~pornographic content, sensitive identities, copyrighted styles) poses serious concerns for privacy, fairness, and safety. {Concept erasure} aims to remove or suppress specific concept information in a generative model. In this paper, we introduce \textbf{TRACE (Trajectory-Constrained Attentional Concept Erasure)}, a novel method to erase targeted concepts from diffusion models while preserving overall generative quality. Our approach combines a rigorous theoretical framework, establishing formal conditions under which a concept can be provably suppressed in the diffusion process, with an effective fine-tuning procedure compatible with both conventional latent diffusion (Stable Diffusion) and emerging rectified flow models (e.g.~FLUX). We first derive a closed-form update to the model's cross-attention layers that removes hidden representations of the target concept. We then introduce a trajectory-aware finetuning objective that steers the denoising process away from the concept only in the late sampling stages, thus maintaining the model's fidelity on unrelated content. Empirically, we evaluate TRACE on multiple benchmarks used in prior concept erasure studies (object classes, celebrity faces, artistic styles, and explicit content from the I2P dataset). TRACE achieves state-of-the-art performance, outperforming recent methods such as ANT, EraseAnything, and MACE in terms of removal efficacy and output quality.

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

↑