Skip to main content
QUICK REVIEW

[论文解读] Get What You Want, Not What You Don't: Image Content Suppression for Text-to-Image Diffusion Models

Senmao Li, Joost van de Weijer|arXiv (Cornell University)|Feb 8, 2024
Advanced Image Processing TechniquesComputer Science被引用 3
一句话总结

本文提出一种基于提示的无微调方法,用于抑制文本到图像扩散模型中的不想要的视觉内容。该方法通过在文本嵌入上使用软加权正则化,并在推理时优化注意力图,以抑制负面目标(例如眼镜)的同时保留正面内容,在潜在空间(Stable Diffusion)和像素空间(DeepFloyd-IF)模型上均取得了最先进性能。

ABSTRACT

The success of recent text-to-image diffusion models is largely due to their capacity to be guided by a complex text prompt, which enables users to precisely describe the desired content. However, these models struggle to effectively suppress the generation of undesired content, which is explicitly requested to be omitted from the generated image in the prompt. In this paper, we analyze how to manipulate the text embeddings and remove unwanted content from them. We introduce two contributions, which we refer to as $ extit{soft-weighted regularization}$ and $ extit{inference-time text embedding optimization}$. The first regularizes the text embedding matrix and effectively suppresses the undesired content. The second method aims to further suppress the unwanted content generation of the prompt, and encourages the generation of desired content. We evaluate our method quantitatively and qualitatively on extensive experiments, validating its effectiveness. Furthermore, our method is generalizability to both the pixel-space diffusion models (i.e. DeepFloyd-IF) and the latent-space diffusion models (i.e. Stable Diffusion).

研究动机与目标

  • 解决文本到图像扩散模型在抑制显式请求的负面内容(例如“无眼镜”)时的失败问题。
  • 开发一种无需微调扩散模型或配对训练数据即可从生成图像中移除不想要内容的方法。
  • 通过针对性地操纵CLIP文本嵌入,实现在抑制负面目标的同时保留期望内容。
  • 在潜在空间(如Stable Diffusion)和像素空间(如DeepFloyd-IF)扩散模型之间实现泛化。

提出的方法

  • 在文本嵌入矩阵上提出软加权正则化,以从聚合完整提示语义的[EOT]嵌入中抑制负面目标信息。
  • 在推理时应用文本嵌入优化,使用两种损失:负面目标抑制损失和正面目标保留损失。
  • 采用基于SVD的分量加权方法,结合改进的指数衰减公式($\hat{\sigma} = \beta \cdot e^{\alpha\sigma} \cdot \sigma$),优先抑制与不想要内容相关的高奇异值分量。
  • 在推理过程中优化注意力图,以减弱对负面目标标记的关注,同时增强对正面目标标记的关注。
  • 完全基于文本编码器输出运行,避免对扩散模型权重的任何修改,也无需配对图像数据。
  • 通过仅依赖提示级别的文本嵌入操作,实现在Stable Diffusion和DeepFloyd-IF等多种扩散架构之间的泛化。

实验结果

研究问题

  • RQ1我们能否在不微调生成模型的情况下,有效抑制文本到图像扩散模型中的不想要视觉内容?
  • RQ2如何修改文本嵌入以去除与负面目标相关的冗余语义信息,同时保留正面内容?
  • RQ3推理时对文本嵌入的优化是否能提升对不想要内容的抑制效果以及对期望内容的生成质量?
  • RQ4所提出的方法是否能在不同扩散架构之间泛化,包括潜在空间和像素空间模型?
  • RQ5软加权正则化对[EOT]嵌入在抑制不想要内容方面有何影响?

主要发现

  • 该方法将生成图像中“glasses”的DetScore从基线SD的0.819降低至0.123,表明对不想要内容的抑制效果显著。
  • 推理时优化提升了抑制性能,消融研究证实其对最终结果有显著贡献。
  • 该方法在Stable Diffusion(1.5和2.1)以及DeepFloyd-IF上均表现出有效泛化,展示了跨架构的鲁棒性。
  • 该方法在复杂提示(如“一个没有眼镜的男人”)中成功抑制了不想要的内容,且未产生伪影或扭曲正面主体。
  • 该方法支持基于提示的编辑任务,如主体替换与添加,其效果与GLIGEN和Attend-and-Excite相当,但无需参考图像或模型微调。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。