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

面向CPU的扩散模型有效量化

Effective Quantization for Diffusion Models on CPUs

Intel(英特尔)

Hanwen Chang, Haihao Shen, Yiyang Cai, Xinyu Ye, Zhenzhong Xu, Wenhua Cheng, Kaokao Lv, Weiwei Zhang, Yintong Lu, Heng Guo

AI总结:

本文提出结合量化感知训练与蒸馏的新方法对扩散模型进行量化,在CPU上实现高效推理的同时保持高图像质量。

摘要:

扩散模型因能够根据文本描述生成图像而受到广泛关注。然而,对计算资源的大量需求仍然是一个显著挑战,导致处理过程耗时较长。量化是一种用于压缩深度学习模型以提升效率的技术,但在应用于扩散模型时面临困难。与其他模型类型相比,这些模型对量化明显更为敏感,可能导致图像质量下降。在本文中,我们提出了一种新方法,通过结合量化感知训练和蒸馏来量化扩散模型。我们的结果表明,量化后的模型能够在CPU上展示推理效率的同时保持较高的图像质量。代码已公开发布于:https://github.com/intel/intel-extension-for-transformers。

英文摘要:

Diffusion models have gained popularity for generating images from textual descriptions. Nonetheless, the substantial need for computational resources continues to present a noteworthy challenge, contributing to time-consuming processes. Quantization, a technique employed to compress deep learning models for enhanced efficiency, presents challenges when applied to diffusion models. These models are notably more sensitive to quantization compared to other model types, potentially resulting in a degradation of image quality. In this paper, we introduce a novel approach to quantize the diffusion models by leveraging both quantization-aware training and distillation. Our results show the quantized models can maintain the high image quality while demonstrating the inference efficiency on CPUs. The code is publicly available at: https://github.com/intel/intel-extension-for-transformers.

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

↑