QVD: Post-training Quantization for Video Diffusion Models
Shilong Tian, Hong Chen, Chengtao Lv, Yu Liu, Jinyang Guo, Xianglong Liu, Shengxi Li, Hao Yang, Tao Xie
TL;DR
The paper addresses the large memory and latency demands of video diffusion models by introducing QVD, a post-training quantization framework tailored for video data. It jointly tackles temporal feature skew with High Temporal Discriminability Quantization (HTDQ) and inter-channel activation disparities with Scattered Channel Range Integration (SCRI). Key contributions include the Temporal Discriminability Score (TDScore) and the HiDi-TQ quantizer for temporal features, along with a per-channel activation range integration strategy that enhances quantization level coverage. Empirical results demonstrate near-lossless performance at 8-bit precision on multiple datasets and a substantial improvement in Fréchet Video Distance (FVD) over image-domain PTQ baselines, enabling practical deployment of video diffusion models.
Abstract
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.
