paper-with-me

Papers

VQ4DiT: Efficient Post-Training Vector Quantization for Diffusion Transformers

2024-08-30 · Juncan Deng, Shuaiting Li, Zeyu Wang, Hong Gu, Kedong Xu, Kejie Huang

The Diffusion Transformers Models (DiTs) have transitioned the network architecture from traditional UNets to transformers, demonstrating exceptional capabilities in image generation. Although DiTs have been widely applied to high-definition video generation tasks, their large parameter size hinders inference on edge devices. Vector quantization (VQ) can decompose model weight into a codebook and assignments, allowing extreme weight quantization and significantly reducing memory usage. In this paper, we propose VQ4DiT, a fast post-training vector quantization method for DiTs. We found that traditional VQ methods calibrate only the codebook without calibrating the assignments. This leads to weight sub-vectors being incorrectly assigned to the same assignment, providing inconsistent gradients to the codebook and resulting in a suboptimal result. To address this challenge, VQ4DiT calculates the candidate assignment set for each weight sub-vector based on Euclidean distance and reconstructs the sub-vector based on the weighted average. Then, using the zero-data and block-wise calibration method, the optimal assignment from the set is efficiently selected while calibrating the codebook. VQ4DiT quantizes a DiT XL/2 model on a single NVIDIA A100 GPU within 20 minutes to 5 hours depending on the different quantization settings. Experiments show that VQ4DiT establishes a new state-of-the-art in model size and performance trade-offs, quantizing weights to 2-bit precision while retaining acceptable image generation quality.

📄 PDF Abstract BibTeX arXiv:2408.17131

Code (0)

등록된 구현이 없습니다.

Tasks

GPUImage GenerationQuantizationVideo Generation

Methods 이 논문이 사용한 방법론

SET Dynamic Sparse Training method where weight mask is updated randomly periodically
Diffusion Diffusion models generate samples by gradually removing noise from a signal, and their training objective can be expressed as a reweighted variational lower-bound…

Similar Papers 제목 키워드 기반

Hardware-Friendly Static Quantization Method for Video Diffusion Transformers

2025-02-20 · Sanghyun Yi, Qingfeng Liu, Mostafa El-Khamy

Diffusion Transformers for video generation have gained significant research interest since the impressive performance of SORA. Efficient deployment of such generative-AI models on GPUs has been demonstrated with dynamic…

QuantizationVideo GenerationVisual Question Answering (VQA)

ViDiT-Q: Efficient and Accurate Quantization of Diffusion Transformers for Image and Video Generation

2024-06-04 · Tianchen Zhao, Tongcheng Fang, Enshu Liu, Rui Wan 외

Diffusion transformers (DiTs) have exhibited remarkable performance in visual generation tasks, such as generating realistic images or videos based on textual instructions. However, larger model sizes and multi-frame pro…

QuantizationVideo Generation

Accurate Compression of Text-to-Image Diffusion Models via Vector Quantization

2024-08-31 · Vage Egiazarian, Denis Kuznedelev, Anton Voronov, Ruslan Svirschevski 외

Text-to-image diffusion models have emerged as a powerful framework for high-quality image generation given textual prompts. Their success has driven the rapid development of production-grade diffusion models that consis…

Image GenerationQuantization

Q-DiT: Accurate Post-Training Quantization for Diffusion Transformers

2024-06-25 · CVPR 2025 1 · Lei Chen, Yuan Meng, Chen Tang, Xinzhu Ma 외

Recent advancements in diffusion models, particularly the architectural transformation from UNet-based models to Diffusion Transformers (DiTs), significantly improve the quality and scalability of image and video generat…

Image GenerationModel CompressionQuantizationVideo Generation

DiTAS: Quantizing Diffusion Transformers via Enhanced Activation Smoothing

2024-09-12 · Zhenyuan Dong, Sai Qian Zhang

Diffusion Transformers (DiTs) have recently attracted significant interest from both industry and academia due to their enhanced capabilities in visual generation, surpassing the performance of traditional diffusion mode…

Image GenerationQuantization