[论文解读] Diffusion Self-Guidance for Controllable Image Generation
我们提出自我引导(self-guidance),这是一种零-shot 方法,利用内部扩散模型表示在采样过程中控制对象形状、位置和外观,而无需额外训练或模型。
Large-scale generative models are capable of producing high-quality images from detailed text descriptions. However, many aspects of an image are difficult or impossible to convey through text. We introduce self-guidance, a method that provides greater control over generated images by guiding the internal representations of diffusion models. We demonstrate that properties such as the shape, location, and appearance of objects can be extracted from these representations and used to steer sampling. Self-guidance works similarly to classifier guidance, but uses signals present in the pretrained model itself, requiring no additional models or training. We show how a simple set of properties can be composed to perform challenging image manipulations, such as modifying the position or size of objects, merging the appearance of objects in one image with the layout of another, composing objects from many images into one, and more. We also show that self-guidance can be used to edit real images. For results and an interactive demo, see our project page at https://dave.ml/selfguidance/
研究动机与目标
- 激发并实现超越文本提示的对大规模扩散生成图像的更大控制。
- 展示可以提取内部表示(激活与注意力)来引导采样,而无需额外的模型或监督。
- 演示对简单属性的组合以执行复杂的图像操作和真正图像的编辑。
- 将该方法扩展到利用扩散模型自身信号重建和编辑真实图像。
提出的方法
- 将自我引导定义为对扩散采样过程中的中间激活和注意力映射的约束。
- 从注意力通道和激活中提取与对象相关的属性以引导采样:位置、大小、形状和外观。
- 制定目标引导项,通过这些属性的梯度(方程4)来修改采样更新。
- 推导出具体可计算的属性:对象质心(位置)、来自注意力求和的大小、来自形状与激活派生度量的外观。
- 展示如何将多个引导项组合以重新定位、调整大小、替换或重新排列对象,并混合来自不同图像的布局与外观。
- 通过通过带引导的扩散使用中间的加噪表示来重建和编辑真实照片,演示真实图像编辑。
实验结果
研究问题
- RQ1是否可以使用扩散模型内部表示(注意力与激活)来实现对对象属性的零-shot控制?
- RQ2从模型内部导出的哪些具体属性(位置、大小、形状、外观)能实现有意义、解耦的编辑?
- RQ3如何将这些属性组合以执行复杂的操控,如布局迁移、外观迁移或多图像组合?
- RQ4能否通过利用中间扩散表示将自我引导扩展到对真实图像的编辑?
主要发现
- 自我引导使对象位置、大小、形状和外观的控制成为可能,且无需额外的训练或模型。
- 将少量属性组合在一起即可实现复杂的操作,如移动对象、调整大小、合并外观、以及在不同图像间传递布局。
- 该方法通过利用扩散模型内部的计算得到的布局和外观来重建描述并编辑真实图像。
- 从注意力映射衍生的引导信号可用于跨对象和跨图像复制形状与外观,从而实现跨图像的组合。
- 局限包括注意力通道的部分纠缠,以及在同时引导多个标记时偶发的外观泄漏。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。