arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2111.14822cs.CVcs.LG
收藏

用于文本到图像合成的矢量量化扩散模型

Vector Quantized Diffusion Model for Text-to-Image Synthesis

University of Science and Technology of China(中国科学技术大学);Microsoft Research(微软研究院);Microsoft Cloud+AI(微软云与人工智能部门)

Shuyang Gu, Dong Chen, Jianmin Bao, Fang Wen, Bo Zhang, Dongdong Chen, Lu Yuan, Baining Guo

摘要:

我们提出了矢量量化扩散(VQ扩散)模型的文本到图像的生成。这种方法是基于矢量量化变分自编码器(VQ-VAE),其潜在的空间是由最近开发的去噪扩散概率模型(DDPM)的条件变量建模。我们发现,这种潜在空间方法非常适合文本到图像生成任务,因为它不仅消除了现有方法的单向偏差,而且还允许我们采用掩蔽和替换扩散策略,以避免错误的积累,这是现有方法的一个严重问题。我们的实验表明,与具有相似参数数量的传统自回归(AR)模型相比,VQ扩散产生的文本到图像生成结果显着更好。与以前基于GAN的文本到图像方法相比,我们的VQ-Diffusion可以处理更复杂的场景,并大幅提高合成图像质量。最后,我们表明,在我们的方法中的图像生成计算可以通过重新参数化的高效。使用传统的AR方法,文本到图像的生成时间随着输出图像分辨率线性增加,因此即使对于正常大小的图像也是相当耗时的。VQ扩散使我们能够在质量和速度之间实现更好的权衡。实验结果表明,VQ-扩散模型与重新参数化是15倍的速度比传统的AR方法,同时实现了更好的图像质量。

英文摘要:

We present the vector quantized diffusion (VQ-Diffusion) model for text-to-image generation. This method is based on a vector quantized variational autoencoder (VQ-VAE) whose latent space is modeled by a conditional variant of the recently developed Denoising Diffusion Probabilistic Model (DDPM). We find that this latent-space method is well-suited for text-to-image generation tasks because it not only eliminates the unidirectional bias with existing methods but also allows us to incorporate a mask-and-replace diffusion strategy to avoid the accumulation of errors, which is a serious problem with existing methods. Our experiments show that the VQ-Diffusion produces significantly better text-to-image generation results when compared with conventional autoregressive (AR) models with similar numbers of parameters. Compared with previous GAN-based text-to-image methods, our VQ-Diffusion can handle more complex scenes and improve the synthesized image quality by a large margin. Finally, we show that the image generation computation in our method can be made highly efficient by reparameterization. With traditional AR methods, the text-to-image generation time increases linearly with the output image resolution and hence is quite time consuming even for normal size images. The VQ-Diffusion allows us to achieve a better trade-off between quality and speed. Our experiments indicate that the VQ-Diffusion model with the reparameterization is fifteen times faster than traditional AR methods while achieving a better image quality.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑