Skip to main content
QUICK REVIEW

[论文解读] One Transformer Fits All Distributions in Multi-Modal Diffusion at Scale

Fan Bao, Shen Nie|arXiv (Cornell University)|Mar 12, 2023
Domain Adaptation and Few-Shot LearningComputer Science被引用 29
一句话总结

UniDiffuser 提出一个单一的基于 Transformer 的扩散模型,能够联合学习多模态数据(图像-文本)的边缘分布、条件分布和联合分布,从而在多种生成任务中实现具有竞争力质量的生成。

ABSTRACT

This paper proposes a unified diffusion framework (dubbed UniDiffuser) to fit all distributions relevant to a set of multi-modal data in one model. Our key insight is -- learning diffusion models for marginal, conditional, and joint distributions can be unified as predicting the noise in the perturbed data, where the perturbation levels (i.e. timesteps) can be different for different modalities. Inspired by the unified view, UniDiffuser learns all distributions simultaneously with a minimal modification to the original diffusion model -- perturbs data in all modalities instead of a single modality, inputs individual timesteps in different modalities, and predicts the noise of all modalities instead of a single modality. UniDiffuser is parameterized by a transformer for diffusion models to handle input types of different modalities. Implemented on large-scale paired image-text data, UniDiffuser is able to perform image, text, text-to-image, image-to-text, and image-text pair generation by setting proper timesteps without additional overhead. In particular, UniDiffuser is able to produce perceptually realistic samples in all tasks and its quantitative results (e.g., the FID and CLIP score) are not only superior to existing general-purpose models but also comparable to the bespoken models (e.g., Stable Diffusion and DALL-E 2) in representative tasks (e.g., text-to-image generation).

研究动机与目标

  • 推动一个能够覆盖边缘分布、条件分布和联合分布的通用多模态生成框架。
  • 开发一个统一的基于扩散的方法,用单一模型处理多种模态。
  • 证明 Transformer 主干在大规模下能够高效建模跨模态的交互。
  • 展示统一模型在不产生额外训练开销的情况下执行多种生成任务(无条件、条件、联合)的能力。

提出的方法

  • 将扩散建模重新表述,使学习边缘、条件和联合分布简化为在跨模态的扰动数据中预测噪声。
  • 对所有模态进行扰动,可能使用不同的时间步,并训练一个联合噪声预测器,为所有模态输出噪声。
  • 用一个 Transformer 主干(U-ViT)对图像与文本编码的潜在嵌入进行操作来参数化模型。
  • 通过两部分潜在表示对图像进行编码:基于 AE 的嵌入和 CLIP 语义嵌入;通过 CLIP 加上 GPT-2 解码器对文本进行编码,全部在一个共享的潜在空间中。
  • 使用单一回归损失在跨模态、以及可能不同的时间步上训练一个联合噪声预测器;在采样阶段实现零成本的无分类器指导(classifier-free guidance)。
  • 通过调整时间步并利用统一的噪声预测器,演示无条件、条件和联合生成的采样。

实验结果

研究问题

  • RQ1在没有任务特定架构的情况下,单一扩散模型是否能够捕捉多模态数据的边缘、条件和联合分布?
  • RQ2在统一框架中,为了实现不同的条件场景,应该如何跨模态处理时间步?
  • RQ3基于 Transformer 的主干是否能在大规模图像-文本数据集上有效扩展,同时在不同生成任务中提供具有竞争力的样本质量?

主要发现

  • 通过设置适当的时间步,UniDiffuser 在图像、文本、文本到图像、图像到文本,以及图像-文本对的生成中实现了感知上真实的样本。
  • 在零-shot 的 MS-COCO FID 上,UniDiffuser 达到 9.71,与若干定制模型相当,在所报道的设置中优于 Versatile Diffusion。
  • 在文本到图像和图像到文本的生成中,UniDiffuser 在 CFG 规模及 CLIP、FID 等指标上持续优于 Versatile Diffusion。
  • 在条件采样和联合采样中,分类器无关引导(Classifier-free guidance)可以免费应用,提升图像-文本对齐和样本质量且无需额外训练。

阅读本论文

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

在 Nubint 中阅读本论文

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