arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2306.09305cs.CVcs.AIcs.LG
收藏

基于掩码Transformer的扩散模型快速训练

Fast Training of Diffusion Models with Masked Transformers

Caltech(加州理工学院);NVIDIA(英伟达公司)

Hongkai Zheng, Weili Nie, Arash Vahdat, Anima Anandkumar

AI总结:

本研究提出一种掩码Transformer训练方法,通过非对称编解码架构和掩码重建辅助任务,将扩散模型训练时间降至原DiT模型的30%,同时保持甚至提升生成性能。

摘要:

我们提出了一种利用掩码Transformer训练大型扩散模型的高效方法。尽管掩码Transformer在表示学习领域已得到广泛探索,但在视觉领域的生成式学习中其应用仍较少。本研究首次利用掩码训练显著降低扩散模型的训练成本。具体而言,我们在训练过程中随机掩码扩散输入图像中高比例(例如50%)的图像块。针对掩码训练,我们引入了一种非对称编码器-解码器架构:该架构由仅在未掩码图像块上运行的Transformer编码器,和在全部图像块上运行的轻量级Transformer解码器组成。为提升对全部图像块的长程理解能力,我们在学习未掩码图像块分数的去噪分数匹配目标中,加入了重建掩码图像块的辅助任务。在ImageNet-256x256和ImageNet-512x512数据集上的实验表明,我们的方法仅需约30%的原始训练时间,就能达到与当前最优的Diffusion Transformer(DiT)模型相当甚至更优的生成性能。因此,本方法为高效训练大型基于Transformer的扩散模型且不牺牲生成性能提供了一条有前景的路径。

英文摘要:

We propose an efficient approach to train large diffusion models with masked transformers. While masked transformers have been extensively explored for representation learning, their application to generative learning is less explored in the vision domain. Our work is the first to exploit masked training to reduce the training cost of diffusion models significantly. Specifically, we randomly mask out a high proportion (e.g., 50%) of patches in diffused input images during training. For masked training, we introduce an asymmetric encoder-decoder architecture consisting of a transformer encoder that operates only on unmasked patches and a lightweight transformer decoder on full patches. To promote a long-range understanding of full patches, we add an auxiliary task of reconstructing masked patches to the denoising score matching objective that learns the score of unmasked patches. Experiments on ImageNet-256x256 and ImageNet-512x512 show that our approach achieves competitive and even better generative performance than the state-of-the-art Diffusion Transformer (DiT) model, using only around 30% of its original training time. Thus, our method shows a promising way of efficiently training large transformer-based diffusion models without sacrificing the generative performance.

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

↑