arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2501.00124cs.CVcs.LG
收藏

PQD:面向高效扩散模型的训练后量化

PQD: Post-training Quantization for Efficient Diffusion Models

University of Oxford(牛津大学);Zhejiang Lab(浙江大学实验室)

Jiaojiao Ye, Zhen Wang, Linnan Jiang

AI总结:

本文提出PQD训练后量化框架,通过时间感知校准将扩散模型量化为8位或4位,在无需训练且保持性能的同时显著提升推理效率。

摘要:

扩散模型(DMs)在合成高保真度和高多样性图像方面取得了显著成就。然而,扩散模型庞大的计算需求和较慢的生成速度限制了其广泛应用。在本文中,我们提出了一种新颖的扩散模型训练后量化方法(PQD),这是一个基于训练后量化、面向扩散模型的时间感知优化框架。该框架通过选择代表性样本并进行时间感知校准来优化推理过程。实验结果表明,我们提出的方法能够以无需训练的方式直接将全精度扩散模型量化为8位或4位模型,同时保持可比的性能,在ImageNet上的无条件图像生成中仅造成微小的FID变化。我们的方法展现出良好的兼容性,并首次可应用于512x512文本引导图像生成。

英文摘要:

Diffusionmodels(DMs)havedemonstratedremarkableachievements in synthesizing images of high fidelity and diversity. However, the extensive computational requirements and slow generative speed of diffusion models have limited their widespread adoption. In this paper, we propose a novel post-training quantization for diffusion models (PQD), which is a time-aware optimization framework for diffusion models based on post-training quantization. The proposed framework optimizes the inference process by selecting representative samples and conducting time-aware calibration. Experimental results show that our proposed method is able to directly quantize full-precision diffusion models into 8-bit or 4-bit models while maintaining comparable performance in a training-free manner, achieving a few FID change on ImageNet for unconditional image generation. Our approach demonstrates compatibility and can also be applied to 512x512 text-guided image generation for the first time.

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

↑