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

拉伸每一美元:在微预算下从零开始训练扩散模型

Stretching Each Dollar: Diffusion Training from Scratch on a Micro-Budget

Sony(索尼)

Vikash Sehwag, Xianghao Kong, Jingtao Li, Michael Spranger, Lingjuan Lyu

AI总结:

本研究提出延迟遮蔽策略和合成图像增强,以1890美元成本训练11.6亿参数扩散Transformer,在COCO上实现12.7 FID,成本较现有方法大幅降低。

摘要:

随着生成式人工智能中的缩放定律推动性能提升,它们同时也将这类模型的开发集中于拥有大量计算资源的参与者手中。我们聚焦于文本到图像(T2I)生成模型,旨在通过展示大规模T2I扩散Transformer模型的极低成本训练来突破这一瓶颈。由于Transformer的计算成本随每张图像中的补丁数量增加而上升,我们提出在训练期间随机遮蔽高达75%的图像补丁。我们提出一种延迟遮蔽策略,该策略在遮蔽之前使用补丁混合器对所有补丁进行预处理,从而显著减少遮蔽带来的性能下降,使其在降低计算成本方面优于模型缩小。我们还整合了Transformer架构的最新改进,例如使用混合专家层,以提升性能,并进一步识别出在微预算训练中使用合成图像的关键益处。最终,仅使用3700万张公开可用的真实与合成图像,我们以仅1890美元的经济成本训练了一个11.6亿参数的稀疏Transformer模型,并在COCO数据集上实现了零样本生成12.7的FID。值得注意的是,我们的模型在实现具有竞争力的FID和高质量生成的同时,成本比稳定扩散模型低118倍,比当前最先进方法(成本为28400美元)低14倍。我们旨在发布我们的端到端训练流程,以进一步推动大规模扩散模型在微预算下的训练民主化。

英文摘要:

As scaling laws in generative AI push performance, they also simultaneously concentrate the development of these models among actors with large computational resources. With a focus on text-to-image (T2I) generative models, we aim to address this bottleneck by demonstrating very low-cost training of large-scale T2I diffusion transformer models. As the computational cost of transformers increases with the number of patches in each image, we propose to randomly mask up to 75% of the image patches during training. We propose a deferred masking strategy that preprocesses all patches using a patch-mixer before masking, thus significantly reducing the performance degradation with masking, making it superior to model downscaling in reducing computational cost. We also incorporate the latest improvements in transformer architecture, such as the use of mixture-of-experts layers, to improve performance and further identify the critical benefit of using synthetic images in micro-budget training. Finally, using only 37M publicly available real and synthetic images, we train a 1.16 billion parameter sparse transformer with only \$1,890 economical cost and achieve a 12.7 FID in zero-shot generation on the COCO dataset. Notably, our model achieves competitive FID and high-quality generations while incurring 118$\times$ lower cost than stable diffusion models and 14$\times$ lower cost than the current state-of-the-art approach that costs \$28,400. We aim to release our end-to-end training pipeline to further democratize the training of large-scale diffusion models on micro-budgets.

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

↑