High-Resolution Image Synthesis with Latent Diffusion Model
论文信息
标题:High-Resolution Image Synthesis with Latent Diffusion Models
作者:Robin Rombach、Andreas Blattmann、Dominik Lorenz、Patrick Esser、Björn Ommer
单位:慕尼黑大学、海德堡大学、Runway ML
提交:2021-12-20,arXiv:2112.10752
正式发表:CVPR 2022
论文下载地址:
链接:https://pan.quark.cn/s/2611e9910405
提取码:k4BY

原文摘要
By decomposing the image formation process into a sequential application of denoising autoencoders, diffusion models (DMs) achieve state-of-the-art synthesis results on image data and beyond. Additionally, their formulation allows for a guiding mechanism to control the image generation process without retraining. However, since these models typically operate directly in pixel space, optimization of powerful DMs often consumes hundreds of GPU days and inference is expensive due to sequential evaluations. To enable DM training on limited computational resources while retaining their quality and flexibility, we apply them in the latent space of powerful pretrained autoencoders. In contrast to previous work, training diffusion models on such a representation allows for the first time to reach a near-optimal point between complexity reduction and detail preservation, greatly boosting visual fidelity. By introducing cross-attention layers into the model architecture, we turn diffusion models into powerful and flexible generators for general conditioning inputs such as text or bounding boxes and high-resolution synthesis becomes possible in a convolutional manner. Our latent diffusion models (LDMs) achieve new state-of-the-art scores for image inpainting and class-conditional image synthesis and highly competitive performance on various tasks, including text-to-image synthesis, unconditional image generation and super-resolution, while significantly reducing computational requirements compared to pixel-based DMs.
摘要中文翻译
扩散模型(DM)将图像生成过程拆解为去噪自编码器的序列迭代,在图像等领域取得了顶尖生成效果,并且支持引导机制,可以在不重新训练的前提下控制生成过程。但这类模型通常直接在像素空间运算,训练大模型往往需要数百GPU天,串行推理开销很高。为了在有限算力下训练扩散模型,同时保留生成质量与灵活性,本文将扩散过程放在预训练自编码器的隐空间中执行。和以往工作相比,在该表征上训练扩散模型,首次在计算量压缩与细节保留之间达到接近最优的平衡点,大幅提升视觉保真度。本文在网络结构中引入交叉注意力层,让扩散模型可以接收文本、包围框等多种条件输入,以卷积方式完成高分辨率图像生成。本文提出的隐扩散模型(LDM)在图像修复、类别条件图像生成上达到新SOTA,在文生图、无条件生成、超分任务上也具备很强竞争力,相比像素空间扩散模型,算力开销显著下降。
一句话总结:
提出隐扩散模型LDM,把扩散从像素空间迁移到压缩后的隐空间,大幅降低训练和采样成本;
引入交叉注意力实现文本等多条件可控生成,是Stable Diffusion的奠基论文。
核心贡献
隐空间扩散范式 先通过预训练VAE把图像压缩到低维隐空间,扩散、去噪过程全部在隐空间做,最后再解码回像素。隐空间尺寸远小于原图,算力、显存开销大幅下降。
交叉注意力条件机制 在UNet中加入交叉注意力,支持文本、掩码、框等多种条件,实现通用可控生成,奠定文生图的基础结构。
多任务统一框架 一套LDM主干可适配无条件生成、文生图、图像修复、超分辨率等任务,高分辨率图像生成不再需要逐像素扩散。
算力-质量权衡 在压缩隐空间上训练,在大幅降低算力的同时,基本不损失图像细节,让扩散模型从实验室走向开源落地。
关键局限
依赖VAE的压缩能力,VAE压缩会带来少量细节丢失
隐空间采样依然是串行扩散,采样速度仍然偏慢
原生对极高分辨率(4K及以上)的直接生成能力有限,后续需要配合分块、超分方案
补充说明
这篇就是 Stable Diffusion 的理论原型,后续 Stable Diffusion 直接沿用 LDM 架构
High-Resolution Image Synthesis with Latent Diffusion Model
https://www.devpilot.cloud/archives/high-resolution-image-synthesis-with-latent-diffusion-model
评论