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

一切皆有价值:扩散模型的ViT主干

All are Worth Words: A ViT Backbone for Diffusion Models

Tsinghua University(清华大学);Renmin University of China(中国人民大学);Beijing Academy of Artificial Intelligence(北京人工智能研究院)

Fan Bao, Shen Nie, Kaiwen Xue, Yue Cao, Chongxuan Li, Hang Su, Jun Zhu

摘要:

视觉Transformer(ViT)在各种视觉任务中表现出了希望,而基于卷积神经网络(CNN)的U-Net在扩散模型中仍然占主导地位。我们设计了一个简单和通用的基于ViT的架构(命名为U-ViT)的扩散模型的图像生成。U-ViT的特征在于将包括时间、条件和噪声图像块的所有输入作为令牌,并在浅层和深层之间采用长跳跃连接。我们在无条件和类条件图像生成以及文本到图像生成任务中评估了U-ViT,其中U-ViT与类似大小的基于CNN的U-Net相当。特别是,具有U-ViT的潜空间扩散模型在ImageNet 256 x256上的类条件图像生成中实现了破纪录的FID分数2.29,在MS-COCO上的文本到图像生成中实现了破纪录的FID分数5.48,这些方法在生成模型的训练期间不访问大型外部数据集。我们的研究结果表明,对于基于扩散的图像建模,长跳跃连接是至关重要的,而基于CNN的U-Net中的下采样和上采样算子并不总是必要的。我们相信,U-ViT可以为未来扩散模型的主干研究提供见解,并有利于大规模跨模态数据集的生成建模。

英文摘要:

Vision transformers (ViT) have shown promise in various vision tasks while the U-Net based on a convolutional neural network (CNN) remains dominant in diffusion models. We design a simple and general ViT-based architecture (named U-ViT) for image generation with diffusion models. U-ViT is characterized by treating all inputs including the time, condition and noisy image patches as tokens and employing long skip connections between shallow and deep layers. We evaluate U-ViT in unconditional and class-conditional image generation, as well as text-to-image generation tasks, where U-ViT is comparable if not superior to a CNN-based U-Net of a similar size. In particular, latent diffusion models with U-ViT achieve record-breaking FID scores of 2.29 in class-conditional image generation on ImageNet 256x256, and 5.48 in text-to-image generation on MS-COCO, among methods without accessing large external datasets during the training of generative models. Our results suggest that, for diffusion-based image modeling, the long skip connection is crucial while the down-sampling and up-sampling operators in CNN-based U-Net are not always necessary. We believe that U-ViT can provide insights for future research on backbones in diffusion models and benefit generative modeling on large scale cross-modality datasets.

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

↑