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

扩散模型的时间动态量化

Temporal Dynamic Quantization for Diffusion Models

POSTECH(浦项科技大学);SqueezeBits. Inc(SqueezeBits公司)

Junhyuk So, Jungwon Lee, Daehyun Ahn, Hyungjun Kim, Eunhyeok Park

AI总结:

针对扩散模型激活随时间变化导致8位量化性能下降的问题,提出基于时间步动态调整量化区间的方法,无推理开销且兼容PTQ与QAT,显著提升多数据集上的生成质量。

摘要:

扩散模型凭借其卓越的生成性能和多功能性,在视觉应用中广受欢迎。然而,由模型规模和迭代生成所导致的高存储与计算需求,阻碍了其在移动设备上的使用。由于扩散模型在激活方面具有时间变化这一独特属性,现有量化技术即使在8位精度下也难以维持性能。我们提出了一种新颖的量化方法,该方法根据时间步信息动态调整量化区间,显著提升了输出质量。与传统动态量化技术不同,我们的方法在推理过程中没有计算开销,并且同时兼容训练后量化(PTQ)和量化感知训练(QAT)。我们的大量实验表明,在各类数据集上,量化后的扩散模型在输出质量方面均取得了实质性提升。

英文摘要:

The diffusion model has gained popularity in vision applications due to its remarkable generative performance and versatility. However, high storage and computation demands, resulting from the model size and iterative generation, hinder its use on mobile devices. Existing quantization techniques struggle to maintain performance even in 8-bit precision due to the diffusion model's unique property of temporal variation in activation. We introduce a novel quantization method that dynamically adjusts the quantization interval based on time step information, significantly improving output quality. Unlike conventional dynamic quantization techniques, our approach has no computational overhead during inference and is compatible with both post-training quantization (PTQ) and quantization-aware training (QAT). Our extensive experiments demonstrate substantial improvements in output quality with the quantized diffusion model across various datasets.

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

↑