2025-12-19 · 专家 · 计算机视觉 · 机器学习

DeContext as Defense: Safe Image Editing in Diffusion Transformers

该论文提出了DeContext,一种基于注意力机制的新方法,旨在保护基于扩散变换器的图像编辑模型中的输入图像,防止未经授权的编辑。

更新于 2026-02-20。作者:Linghui Shen、Mingyue Cui、Xingyi Yang。

中文摘要

情境扩散模型使用户能够以惊人的轻松和逼真的方式修改图像。然而,这种力量同时也引发了严重的隐私担忧:个人图像可以被轻易地用于身份欺骗、虚假信息传播或其他恶意用途,这一切都无需得到所有者的同意。尽管先前的研究探索了输入扰动以防止个性化文本到图像生成中的滥用,但现代大规模情境DiT模型在鲁棒性方面仍然鲜有研究。在本文中,我们提出了DeContext,这是一种新的方法,用于保护输入图像免受未经授权的情境编辑。我们的关键洞察是,源图像的上下文信息主要通过多模态注意力层传播到输出。通过注入微小且有针对性的扰动,削弱这些交叉注意力路径,DeContext中断了这种流动,有效地解耦了输入和输出之间的联系。这种简单的防御措施既高效又鲁棒。我们进一步表明,早期去噪步骤和特定的Transformer块主导了上下文传播,这使我们能够将扰动集中在最重要的地方。在Flux Kontext和Step1X-Edit上的实验表明,DeContext可以持续阻止不想要的图像编辑,同时保持视觉质量。这些结果突出了基于注意力的扰动作为强大防御手段在图像操纵方面的有效性。

英文摘要

In-context diffusion models allow users to modify images with remarkable ease and realism. However, the same power raises serious privacy concerns: personal images can be easily manipulated for identity impersonation, misinformation, or other malicious uses, all without the owner's consent. While prior work has explored input perturbations to protect against misuse in personalized text-to-image generation, the robustness of modern, large-scale in-context DiT-based models remains largely unexamined. In this paper, we propose DeContext, a new method to safeguard input images from unauthorized in-context editing. Our key insight is that contextual information from the source image propagates to the output primarily through multimodal attention layers. By injecting small, targeted perturbations that weaken these cross-attention pathways, DeContext breaks this flow, effectively decouples the link between input and output. This simple defense is both efficient and robust. We further show that early denoising steps and specific transformer blocks dominate context propagation, which allows us to concentrate perturbations where they matter most. Experiments on Flux Kontext and Step1X-Edit show that DeContext consistently blocks unwanted image edits while preserving visual quality. These results highlight the effectiveness of attention-based perturbations as a powerful defense against image manipulation.

解读

一句话总结

该论文提出了DeContext,一种基于注意力机制的新方法,旨在保护基于扩散变换器的图像编辑模型中的输入图像,防止未经授权的编辑。

问题1:这篇论文想要解决什么具体问题?

问题2:论文的核心创新点是什么?

问题3:实验结果如何验证了方法的有效性?

问题4:这个研究的实际应用价值是什么?

来源

机器可读索引:llms.txt