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

量化扩散模型的时间步感知校正

Timestep-Aware Correction for Quantized Diffusion Models

Zhejiang Normal University(浙江师范大学);SGIT AI Lab, State Grid Corporation of China(国网公司SGIT AI实验室);Zhejiang University(浙江大学);Baidu Inc(百度公司)

Yuzhe Yao, Feng Tian, Jun Chen, Haonan Lin, Guang Dai, Yong Liu, Jingdong Wang

AI总结:

针对量化扩散模型中误差随迭代累积导致图像失真的问题,本文提出时间步感知校正方法动态修正量化误差,以极小计算开销显著提升低精度扩散模型的生成质量并取得SOTA结果。

摘要:

扩散模型在语义连贯图像的合成方面取得了重大突破。然而,其庞大的噪声估计网络和迭代生成过程限制了它们的更广泛应用,尤其是在移动设备等资源受限平台上。现有的训练后量化(PTQ)方法已经能够将扩散模型压缩到低精度。尽管如此,由于扩散模型的迭代特性,量化误差往往会在整个生成过程中累积。这种误差累积在低精度场景下尤为严重,导致生成图像出现显著失真。我们将这种累积问题归因于两个主要原因:误差传播和曝光偏差。为了解决这些问题,我们提出了一种针对量化扩散模型的时间步感知校正方法,该方法能够动态校正量化误差。通过在低精度扩散模型中利用所提出的方法,可以以几乎可忽略的计算开销实现输出质量的大幅提升。大量实验证明了我们方法的有效性和泛化能力。通过采用所提出的校正策略,我们在低精度模型上取得了最先进(SOTA)的结果。

英文摘要:

Diffusion models have marked a significant breakthrough in the synthesis of semantically coherent images. However, their extensive noise estimation networks and the iterative generation process limit their wider application, particularly on resource-constrained platforms like mobile devices. Existing post-training quantization (PTQ) methods have managed to compress diffusion models to low precision. Nevertheless, due to the iterative nature of diffusion models, quantization errors tend to accumulate throughout the generation process. This accumulation of error becomes particularly problematic in low-precision scenarios, leading to significant distortions in the generated images. We attribute this accumulation issue to two main causes: error propagation and exposure bias. To address these problems, we propose a timestep-aware correction method for quantized diffusion model, which dynamically corrects the quantization error. By leveraging the proposed method in low-precision diffusion models, substantial enhancement of output quality could be achieved with only negligible computation overhead. Extensive experiments underscore our method's effectiveness and generalizability. By employing the proposed correction strategy, we achieve state-of-the-art (SOTA) results on low-precision models.

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

↑