AlignIT:增强文本到图像模型定制中的提示对齐
AlignIT: Enhancing Prompt Alignment in Customization of Text-to-Image Models
AI总结:
针对文本到图像模型定制中生成结果与提示不对齐的问题,本文提出后处理算法AlignIT,通过仅注入目标概念的键和值并保持其他标记不变,可直接嵌入现有定制方法,在保持定制质量的同时显著提升提示对齐性能。
摘要:
我们研究使用用户提供的参考图像定制文本到图像扩散模型的问题。给定新提示时,现有方法能够从参考图像中捕获关键概念,但无法使生成图像与提示对齐。在本工作中,我们试图通过提出新方法来解决这一关键问题,这些方法可以方便地与现有的定制方法结合使用,这些现有方法在文本编码过程的各个中间阶段优化嵌入/权重。本文的第一个贡献是对文本编码过程中直至生成文本到图像模型条件向量的各个阶段进行剖析。我们从整体视角审视现有定制方法,并注意到该过程产生的键和值输出与其对应的基线(非定制)模型(例如,基线稳定扩散)存在显著差异。虽然这种差异不影响被定制的概念,但它会导致生成图像的其他部分与提示不对齐。此外,我们还观察到这些键和值允许独立控制最终生成的各个方面,从而实现对输出的语义操控。综合来看,跨越这些键和值的特征构成了我们下一个贡献的基础,在该贡献中我们修复了现有方法的上述问题。我们提出了一种新的后处理算法 AlignIT,它注入目标概念的键和值,同时确保输入提示中所有其他标记的键和值保持不变。我们提出的方法可以直接插入现有的定制方法中,在保持定制质量的同时,显著提升最终结果与输入提示的对齐性能。
英文摘要:
We consider the problem of customizing text-to-image diffusion models with user-supplied reference images. Given new prompts, the existing methods can capture the key concept from the reference images but fail to align the generated image with the prompt. In this work, we seek to address this key issue by proposing new methods that can easily be used in conjunction with existing customization methods that optimize the embeddings/weights at various intermediate stages of the text encoding process. The first contribution of this paper is a dissection of the various stages of the text encoding process leading up to the conditioning vector for text-to-image models. We take a holistic view of existing customization methods and notice that key and value outputs from this process differs substantially from their corresponding baseline (non-customized) models (e.g., baseline stable diffusion). While this difference does not impact the concept being customized, it leads to other parts of the generated image not being aligned with the prompt. Further, we also observe that these keys and values allow independent control various aspects of the final generation, enabling semantic manipulation of the output. Taken together, the features spanning these keys and values, serve as the basis for our next contribution where we fix the aforementioned issues with existing methods. We propose a new post-processing algorithm, AlignIT, that infuses the keys and values for the concept of interest while ensuring the keys and values for all other tokens in the input prompt are unchanged. Our proposed method can be plugged in directly to existing customization methods, leading to a substantial performance improvement in the alignment of the final result with the input prompt while retaining the customization quality.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。