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

基于扩散的文本到图像生成的可扩展性研究

On the Scalability of Diffusion-based Text-to-Image Generation

AWS AI Labs(亚马逊AI实验室);Amazon AGI(亚马逊AGI)

Hao Li, Yang Zou, Ying Wang, Orchid Majumder, Yusheng Xie, R. Manmatha, Ashwin Swaminathan, Zhuowen Tu, Stefano Ermon, Stefano Soatto

AI总结:

本文通过大规模消融实验研究扩散T2I模型的模型与数据扩展规律,提出更高效的UNet变体,并给出对齐性能关于模型、计算和数据规模的预测函数。

摘要:

扩大模型和数据规模在LLM的发展中已相当成功。然而,基于扩散的文本到图像(T2I)模型的扩展规律尚未得到充分探索。如何以更低成本高效扩展模型以获得更好性能也仍不明确。不同的训练设置和高昂的训练成本使公平的模型比较极其困难。在本工作中,我们通过对去噪骨干网络和训练集的扩展进行广泛而严格的消融实验,实证研究了基于扩散的T2I模型的扩展特性,包括在多达6亿张图像的数据集上训练参数量从0.4B到4B的扩展型UNet和Transformer变体。在模型扩展方面,我们发现交叉注意力的位置和数量区分了现有UNet设计的性能;而且,与增加通道数相比,增加Transformer块在提升文本-图像对齐方面具有更高的参数效率。随后,我们确定了一种高效的UNet变体,其比SDXL的UNet小45%、快28%。在数据扩展方面,我们表明训练集的质量和多样性比单纯的数据集规模更重要;提高描述密度和多样性可改善文本-图像对齐性能和学习效率。最后,我们提供了扩展函数,将文本-图像对齐性能预测为模型规模、计算量和数据集规模的函数。

英文摘要:

Scaling up model and data size has been quite successful for the evolution of LLMs. However, the scaling law for the diffusion based text-to-image (T2I) models is not fully explored. It is also unclear how to efficiently scale the model for better performance at reduced cost. The different training settings and expensive training cost make a fair model comparison extremely difficult. In this work, we empirically study the scaling properties of diffusion based T2I models by performing extensive and rigours ablations on scaling both denoising backbones and training set, including training scaled UNet and Transformer variants ranging from 0.4B to 4B parameters on datasets upto 600M images. For model scaling, we find the location and amount of cross attention distinguishes the performance of existing UNet designs. And increasing the transformer blocks is more parameter-efficient for improving text-image alignment than increasing channel numbers. We then identify an efficient UNet variant, which is 45% smaller and 28% faster than SDXL's UNet. On the data scaling side, we show the quality and diversity of the training set matters more than simply dataset size. Increasing caption density and diversity improves text-image alignment performance and the learning efficiency. Finally, we provide scaling functions to predict the text-image alignment performance as functions of the scale of model size, compute and dataset size.

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

↑