arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2404.10445cs.LGcs.AI
收藏

SparseDM:迈向稀疏高效的扩散模型

SparseDM: Toward Sparse Efficient Diffusion Models

Tsinghua University(清华大学);Honor Device Co., Ltd.(荣耀终端有限公司);ShengShu

Kafeng Wang, Jianfei Chen, He Li, Zhenpeng Mi, Jun Zhu

AI总结:

针对扩散模型部署耗时、推理慢、内存需求大的问题,提出基于改进直通估计器的SparseDM方法,通过添加稀疏掩码并微调,在保持FID的同时降低50% MACs、GPU加速1.2倍,且在其他MACs条件下FID优于其他方法。

摘要:

扩散模型是一类强大的生成模型家族,广泛应用于图像和视频生成。然而,其部署耗时、推理时间长以及对大内存的需求,阻碍了它们在资源受限设备上的应用。本文提出一种基于改进的直通估计器(Straight-Through Estimator)的方法,以提升扩散模型的部署效率。具体而言,我们在预训练扩散模型的卷积层和线性层中添加稀疏掩码,然后在微调阶段迁移学习稀疏模型,并在推理时启用稀疏掩码。在基于Transformer和UNet的扩散模型上的实验结果表明,我们的方法在保持FID的同时将MACs降低了50%;稀疏模型在GPU上的加速比约为1.2倍;在其他MACs条件下,与其他方法相比FID也低于1。

英文摘要:

Diffusion models represent a powerful family of generative models widely used for image and video generation. However, the time-consuming deployment, long inference time, and requirements on large memory hinder their applications on resource constrained devices. In this paper, we propose a method based on the improved Straight-Through Estimator to improve the deployment efficiency of diffusion models. Specifically, we add sparse masks to the Convolution and Linear layers in a pre-trained diffusion model, then transfer learn the sparse model during the fine-tuning stage and turn on the sparse masks during inference. Experimental results on a Transformer and UNet-based diffusion models demonstrate that our method reduces MACs by 50% while maintaining FID. Sparse models are accelerated by approximately 1.2x on the GPU. Under other MACs conditions, the FID is also lower than 1 compared to other methods.

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

↑