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

TerDiT:基于Transformer的三值扩散模型

TerDiT: Ternary Diffusion Models with Transformers

Xudong Lu, Aojun Zhou, Ziyi Lin, Qi Liu, Yuhui Xu, Renrui Zhang, Xue Yang, Junchi Yan, Peng Gao, Hongsheng Li

AI总结:

针对大规模扩散Transformer模型部署成本高的问题,提出首个极低位量化感知训练与高效部署方案TerDiT,实现600M至4.2B规模模型的三值化,在保持图像生成竞争力的同时证明了从头训练极低位DiT模型的可行性。

摘要:

大规模预训练文本到图像扩散模型的最新发展显著提升了高保真图像的生成能力,尤其是随着扩散Transformer模型(DiTs)的出现。在各类扩散模型中,扩散Transformer展现出了卓越的图像生成能力,实现了更低的FID分数和更高的可扩展性。然而,由于参数量过大,部署大规模DiT模型的成本可能十分高昂。尽管现有研究已探索了扩散模型的高效部署技术(如模型量化),但针对基于DiT的模型的研究仍然很少。为了填补这一研究空白,我们提出了TerDiT,这是首个针对极低位扩散Transformer模型的量化感知训练(QAT)与高效部署方案。我们重点关注DiT网络的三值化,模型规模从600M到4.2B,图像分辨率从256×256到512×512。我们的工作推动了对大规模DiT模型高效部署的探索,证明了从头训练极低位DiT模型的可行性,同时与全精度模型相比,保持了具竞争力的图像生成能力。代码和预训练的TerDiT检查点已发布。

英文摘要:

Recent developments in large-scale pre-trained text-to-image diffusion models have significantly improved the generation of high-fidelity images, particularly with the emergence of diffusion transformer models (DiTs). Among diffusion models, diffusion transformers have demonstrated superior image-generation capabilities, boosting lower FID scores and higher scalability. However, deploying large-scale DiT models can be expensive due to their excessive parameter numbers. Although existing research has explored efficient deployment techniques for diffusion models, such as model quantization, there is still little work concerning DiT-based models. To tackle this research gap, we propose TerDiT, the first quantization-aware training (QAT) and efficient deployment scheme for extremely low-bit diffusion transformer models. We focus on the ternarization of DiT networks, with model sizes ranging from 600M to 4.2B, and image resolution from 256$\times$256 to 512$\times$512. Our work contributes to the exploration of efficient deployment of large-scale DiT models, demonstrating the feasibility of training extremely low-bit DiT models from scratch while maintaining competitive image generation capacities compared to full-precision models. Our code and pre-trained TerDiT checkpoints have been released at https://github.com/Lucky-Lance/TerDiT.

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

↑