arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2412.01339cs.CVcs.AIcs.GRcs.LGstat.ML
收藏

负向 Token 合并:基于图像的对抗特征引导

Negative Token Merging: Image-based Adversarial Feature Guidance

University of Washington(华盛顿大学);Australian National University(澳大利亚国立大学);Allen Institute for AI(艾伦人工智能研究所)

Jaskirat Singh, Lindsey Li, Weijia Shi, Ranjay Krishna, Yejin Choi, Pang Wei Koh, Michael F. Cohen, Stephen Gould, Liang Zheng, Luke Zettlemoyer

AI总结:

本文提出无需训练的 NegToMe,利用参考或同批图像特征在反向扩散中推离匹配视觉特征,从而增强生成多样性并降低版权内容相似度。

摘要:

使用负向提示词的文本对抗引导已成为一种被广泛采用的方法,用于引导扩散模型避免生成不期望的概念。尽管该方法有用,但仅依靠文本执行对抗引导,可能不足以捕捉复杂的视觉概念,或避免诸如受版权保护角色之类的特定视觉元素。本文中,我们首次沿这一方向探索另一种模态:直接使用来自参考图像或同一批次中其他图像的视觉特征来执行对抗引导。我们提出了负向 token 合并(NegToMe),这是一种简单而有效的无需训练方法,通过在反向扩散过程中有选择地推远参考图像与生成图像之间相匹配的视觉特征,借助图像执行对抗引导。只需调整所使用的参考,NegToMe 即可支持多种应用。值得注意的是,当使用同一批次中的其他图像作为参考时,我们发现 NegToMe 通过引导每张图像的特征远离其他图像,显著提升了输出多样性(例如种族、性别和视觉多样性)。类似地,当针对受版权保护的参考图像使用时,NegToMe 将与受版权保护内容的视觉相似度降低了 34.57%。NegToMe 只需几行代码即可简单实现,推理时间仅略有增加(低于 4%),并且兼容不同的扩散架构,包括 Flux 等原本不支持使用负向提示词的架构。代码可在 https://negtome.github.io 获取。

英文摘要:

Text-based adversarial guidance using a negative prompt has emerged as a widely adopted approach to steer diffusion models away from producing undesired concepts. While useful, performing adversarial guidance using text alone can be insufficient to capture complex visual concepts or avoid specific visual elements like copyrighted characters. In this paper, for the first time we explore an alternate modality in this direction by performing adversarial guidance directly using visual features from a reference image or other images in a batch. We introduce negative token merging (NegToMe), a simple but effective training-free approach which performs adversarial guidance through images by selectively pushing apart matching visual features between reference and generated images during the reverse diffusion process. By simply adjusting the used reference, NegToMe enables a diverse range of applications. Notably, when using other images in same batch as reference, we find that NegToMe significantly enhances output diversity (e.g., racial, gender, visual) by guiding features of each image away from others. Similarly, when used w.r.t. copyrighted reference images, NegToMe reduces visual similarity to copyrighted content by 34.57%. NegToMe is simple to implement using just few-lines of code, uses only marginally higher (<4%) inference time and is compatible with different diffusion architectures, including those like Flux, which don't natively support the use of a negative prompt. Code is available at https://negtome.github.io

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

↑