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

QVD:视频扩散模型的训练后量化

QVD: Post-training Quantization for Video Diffusion Models

Beihang University(北京航空航天大学);Meituan(美团)

Shilong Tian, Hong Chen, Chengtao Lv, Yu Liu, Jinyang Guo, Xianglong Liu, Shengxi Li, Hao Yang, Tao Xie

AI总结:

针对视频扩散模型的高延迟和内存消耗问题,提出首个定制训练后量化策略QVD,通过高时间判别性量化和分散通道范围集成方法,在W8A8上实现接近无损性能,FVD提升205.12。

摘要:

近年来,视频扩散模型(VDMs)因其在生成连贯且逼真的视频内容方面取得的显著进展而受到广泛关注。然而,同时处理多个帧特征以及相当大的模型规模,导致了高延迟和大量的内存消耗,阻碍了其更广泛的应用。训练后量化(PTQ)是一种减少内存占用并提高计算效率的有效技术。与图像扩散不同,我们观察到集成到所有帧特征中的时间特征表现出明显的偏斜性。此外,我们研究了视频扩散模型激活中显著的通道间差异和不对称性,导致单个通道对量化级别的覆盖率较低,并增加了量化的挑战。为了解决这些问题,我们引入了首个针对视频扩散模型定制的PTQ策略,称为QVD。具体来说,我们提出了高时间判别性量化(HTDQ)方法,专为时间特征设计,保留了量化特征的高判别性,为所有视频帧提供精确的时间引导。此外,我们提出了分散通道范围集成(SCRI)方法,旨在提高单个通道的量化级别覆盖率。跨多种模型、数据集和位宽设置的实验验证证明了我们的QVD在多种指标上的有效性。特别是,我们在W8A8上实现了接近无损的性能退化,在FVD上比当前方法高出205.12。

英文摘要:

Recently, video diffusion models (VDMs) have garnered significant attention due to their notable advancements in generating coherent and realistic video content. However, processing multiple frame features concurrently, coupled with the considerable model size, results in high latency and extensive memory consumption, hindering their broader application. Post-training quantization (PTQ) is an effective technique to reduce memory footprint and improve computational efficiency. Unlike image diffusion, we observe that the temporal features, which are integrated into all frame features, exhibit pronounced skewness. Furthermore, we investigate significant inter-channel disparities and asymmetries in the activation of video diffusion models, resulting in low coverage of quantization levels by individual channels and increasing the challenge of quantization. To address these issues, we introduce the first PTQ strategy tailored for video diffusion models, dubbed QVD. Specifically, we propose the High Temporal Discriminability Quantization (HTDQ) method, designed for temporal features, which retains the high discriminability of quantized features, providing precise temporal guidance for all video frames. In addition, we present the Scattered Channel Range Integration (SCRI) method which aims to improve the coverage of quantization levels across individual channels. Experimental validations across various models, datasets, and bit-width settings demonstrate the effectiveness of our QVD in terms of diverse metrics. In particular, we achieve near-lossless performance degradation on W8A8, outperforming the current methods by 205.12 in FVD.

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

↑