Skip to main content
QUICK REVIEW

[论文解读] Text-driven Visual Synthesis with Latent Diffusion Prior

Ting-Hsuan Liao, Songwei Ge|arXiv (Cornell University)|Feb 16, 2023
Generative Adversarial Networks and Image SynthesisComputer Science被引用 3
一句话总结

本文提出了一种潜在扩散先验框架,通过引入特征匹配损失以实现细节引导,并引入KL散度损失以对潜在代码进行正则化,从而增强文本驱动的视觉合成。该方法通过利用多层解码器特征并稳定优化过程,在文本到3D生成、StyleGAN适配和分层图像编辑任务中实现了最先进性能。

ABSTRACT

There has been tremendous progress in large-scale text-to-image synthesis driven by diffusion models enabling versatile downstream applications such as 3D object synthesis from texts, image editing, and customized generation. We present a generic approach using latent diffusion models as powerful image priors for various visual synthesis tasks. Existing methods that utilize such priors fail to use these models' full capabilities. To improve this, our core ideas are 1) a feature matching loss between features from different layers of the decoder to provide detailed guidance and 2) a KL divergence loss to regularize the predicted latent features and stabilize the training. We demonstrate the efficacy of our approach on three different applications, text-to-3D, StyleGAN adaptation, and layered image editing. Extensive results show our method compares favorably against baselines.

研究动机与目标

  • 为解决现有扩散模型先验在视觉合成中缺乏细节引导且潜在优化不稳定的问题。
  • 通过利用预训练的潜在扩散模型作为通用图像先验,提升在文本到3D生成、StyleGAN适配和分层图像编辑中的性能。
  • 通过引入多级特征匹配损失和优化潜在代码的KL散度正则化器,稳定训练过程并提升细节保真度。
  • 在统一框架下整合多样化的视觉合成任务,充分发挥潜在扩散模型的生成能力。

提出的方法

  • 该方法使用潜在扩散模型作为先验,其优化由在潜在空间中计算的潜在分数蒸馏(LSD)损失引导。
  • 引入特征匹配损失(FM),用于比较扩散模型多个解码器层的特征,提供细粒度、多尺度的引导。
  • KL散度损失对优化后的潜在代码进行正则化,使其保持在扩散模型预训练期间所见的分布范围内,从而提升训练稳定性。
  • 完整目标函数结合LSD、FM和KL损失:$ L = \lambda_1 L_{FM} + \lambda_2 L_{KL} + \lambda_3 L_{LSD} $,其中超参数根据任务需求进行调整。
  • 该框架应用于三项任务:通过NeRF实现的文本到3D生成、StyleGAN适配,以及使用Text2LIVE的分层图像编辑,可微分渲染支持反向传播。
  • 在分层编辑中,额外引入掩码监督损失以改善透明度图(alpha map)的学习,最终损失包含 $ L_{FM} $、$ L_{KL} $、$ L_{LSD} $ 和 $ \|\alpha - M\|_1 $。
Figure 2: Method overview. Our method aims to guide the generation and editing process based on a text prompt. We obtain the latent code from a differentiable renderer under different applications, including the generator from Text2LIVE [ 2 ] , StyleGAN-based generator, or a NeRF model. This latent
Figure 2: Method overview. Our method aims to guide the generation and editing process based on a text prompt. We obtain the latent code from a differentiable renderer under different applications, including the generator from Text2LIVE [ 2 ] , StyleGAN-based generator, or a NeRF model. This latent

实验结果

研究问题

  • RQ1潜在扩散模型能否作为强大且通用的先验,适用于多样化的文本驱动视觉合成任务?
  • RQ2如何利用扩散模型的多级解码器特征,以提升合成任务中的细节保真度?
  • RQ3通过KL散度对优化后的潜在代码进行正则化,是否能提升训练稳定性与输出质量?
  • RQ4所提出方法是否能在文本到3D生成、StyleGAN适配和图像编辑任务中,超越使用CLIP或标准LSD损失的现有基线方法?

主要发现

  • 在文本到3D生成任务中,所提方法相较于强基线模型取得了具有竞争力或更优的结果,视觉质量更高,且过饱和等伪影显著减少。
  • 特征匹配损失显著提升了细节保留能力,尤其在高频纹理和精细结构方面,定性对比结果清晰显示了其优势。
  • KL正则化有效稳定了训练过程,降低了潜在代码偏离分布的可能性,从而在不同优化运行中实现了更一致的生成结果。
  • 在分层图像编辑任务中,采用 $ L_{FM} + L_{KL} + L_{LSD} $ 的方法显著优于仅使用LSD的基线,尤其在保持语义一致性和纹理细节方面表现更优。
  • 消融实验表明,$ L_{FM} $ 和 $ L_{KL} $ 均对最终性能有显著贡献,完整损失函数在定量与定性指标上均达到最佳表现。
  • 尽管性能有所提升,挑战依然存在,包括3D生成中的Janus问题以及偶尔的色彩过饱和现象,即使引入KL正则化也未能完全消除。
Figure 3: Applications pipeline. To apply our proposed feature matching loss $L_{FM}$ , KL regularizer loss $L_{KL}$ and score distillation loss $L_{LSD}$ , we first obtain the latent code $\mathbf{v}$ using the differentiable renderer in each application. As illustrated in the figure, to obtain the
Figure 3: Applications pipeline. To apply our proposed feature matching loss $L_{FM}$ , KL regularizer loss $L_{KL}$ and score distillation loss $L_{LSD}$ , we first obtain the latent code $\mathbf{v}$ using the differentiable renderer in each application. As illustrated in the figure, to obtain the

阅读本论文

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

在 Nubint 中阅读本论文

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