Skip to main content
QUICK REVIEW

[论文解读] P+: Extended Textual Conditioning in Text-to-Image Generation

Andrey Voynov, Qinghao Chu|arXiv (Cornell University)|Mar 16, 2023
Generative Adversarial Networks and Image SynthesisComputer Science被引用 33
一句话总结

这篇论文引入了扩展文本条件空间 P+,在扩散 U-nets 的每一层设有提示,以及用于更快速、表达力更强的反演和改进的对象风格混合的 Extended Textual Inversion (XTI)。

ABSTRACT

We introduce an Extended Textual Conditioning space in text-to-image models, referred to as $P+$. This space consists of multiple textual conditions, derived from per-layer prompts, each corresponding to a layer of the denoising U-net of the diffusion model. We show that the extended space provides greater disentangling and control over image synthesis. We further introduce Extended Textual Inversion (XTI), where the images are inverted into $P+$, and represented by per-layer tokens. We show that XTI is more expressive and precise, and converges faster than the original Textual Inversion (TI) space. The extended inversion method does not involve any noticeable trade-off between reconstruction and editability and induces more regular inversions. We conduct a series of extensive experiments to analyze and understand the properties of the new space, and to showcase the effectiveness of our method for personalizing text-to-image models. Furthermore, we utilize the unique properties of this space to achieve previously unattainable results in object-style mixing using text-to-image models. Project page: https://prompt-plus.github.io

研究动机与目标

  • 激励扩展条件以实现对图像合成的更精细的解耦与控制。
  • 将 P+ 空间定义为每个 U-net 层一个令牌,以注入层特定提示。
  • 引入 Extended Textual Inversion (XTI),将图像反演到 P+,带有每层令牌。
  • 展示相较于先前 TI 方法在重建、可编辑性和速度方面的改进。
  • 展示包括对象风格混合和个性化文本到图像模型等应用。

提出的方法

  • 将 P+ 定义为一组令牌 p1,...,pn,每个注入到对应的 U-net 层。
  • 形式化描述文本提示如何嵌入并注入到 Stable Diffusion 1.4 的 16 个 cross-attention 层中的 cross-attention 层。
  • 通过添加 n 个新令牌并优化它们的嵌入来预测扩散噪声,从而引入 Extended Textual Inversion (XTI)。
  • 提供一个重建目标 L_XTI,用以最小化噪声与模型预测之间的差异。
  • 在重建、可编辑性和收敛速度方面,将 XTI 与 TI 进行比较。
  • 通过将来自不同反演的每层令牌结合起来控制形状与外观,展示风格混合。

实验结果

研究问题

  • RQ1将文本条件分布到 U-net 层如何影响对形状与外观的控制?
  • RQ2相较于传统 TI,扩展反演进入 P+(XTI)是否提供更快的收敛和更高的保真度?
  • RQ3P+ 是否能够在不微调模型权重的情况下实现鲁棒的对象风格混合和个性化令牌学习?

主要发现

  • P+ 在较粗的层影响形状和结构、较细的层影响外观方面实现更高的解耦。
  • XTI 在主体和文本保真度方面优于 TI,同时使用明显更少的训练步骤。
  • XTI 在相同硬件设置下收敛更快(约15 分钟 vs. 约80 分钟 for TI)。
  • XTI 产生更规律的令牌密度,更接近自然语言嵌入,从而实现更好的重建和可编辑性。
  • 扩展空间通过在不同层注入反向令牌实现有效的风格混合,从而实现形状和风格迁移。
  • 用户研究显示在主体与文本保真度方面更偏好 XTI 而非 TI。

阅读本论文

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

在 Nubint 中阅读本论文

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