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

Qua$^2$SeDiMo:扩散模型的可量化量化敏感性

Qua$^2$SeDiMo: Quantifiable Quantization Sensitivity of Diffusion Models

University of Alberta(阿尔伯塔大学);Huawei Technologies(华为技术有限公司);Huawei Kirin Solution(华为麒麟解决方案部)

Keith G. Mills, Mohammad Salameh, Ruichen Chen, Negar Hassanpour, Wei Lu, Di Niu

AI总结:

本文提出混合精度训练后量化框架Qua$^2$SeDiMo,通过分析扩散模型不同操作的量化敏感性,为U-Net和Transformer架构制定高效量化决策,在多个模型上实现低比特权重量化并结合6-bit激活量化,性能超越现有方法。

摘要:

扩散模型(DM)通过迭代去噪过程实现了AI图像生成的普及。量化是缓解推理成本和减小DM去噪器网络规模的主要技术。然而,随着去噪器从卷积U-Net的变体向较新的Transformer架构演进,理解不同权重层、操作和架构类型对性能的量化敏感性变得日益重要。在这项工作中,我们通过Qua$^2$SeDiMo应对这一挑战,这是一个混合精度的训练后量化框架,能够针对不同去噪器操作类型和块结构,生成关于各种模型权重量化方法成本效益的可解释见解。我们利用这些见解为从基础U-Net到最先进的Transformer等众多扩散模型做出高质量的混合精度量化决策。结果,Qua$^2$SeDiMo分别在PixArt-$α$、PixArt-$Σ$、Hunyuan-DiT和SDXL上构建了3.4-bit、3.9-bit、3.65-bit和3.7-bit的权重量化。我们进一步将权重量化配置与6-bit激活量化相结合,在定量指标和生成图像质量上均优于现有方法。

英文摘要:

Diffusion Models (DM) have democratized AI image generation through an iterative denoising process. Quantization is a major technique to alleviate the inference cost and reduce the size of DM denoiser networks. However, as denoisers evolve from variants of convolutional U-Nets toward newer Transformer architectures, it is of growing importance to understand the quantization sensitivity of different weight layers, operations and architecture types to performance. In this work, we address this challenge with Qua$^2$SeDiMo, a mixed-precision Post-Training Quantization framework that generates explainable insights on the cost-effectiveness of various model weight quantization methods for different denoiser operation types and block structures. We leverage these insights to make high-quality mixed-precision quantization decisions for a myriad of diffusion models ranging from foundational U-Nets to state-of-the-art Transformers. As a result, Qua$^2$SeDiMo can construct 3.4-bit, 3.9-bit, 3.65-bit and 3.7-bit weight quantization on PixArt-$α$, PixArt-$Σ$, Hunyuan-DiT and SDXL, respectively. We further pair our weight-quantization configurations with 6-bit activation quantization and outperform existing approaches in terms of quantitative metrics and generative image quality.

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

↑