paper-with-me

Papers

Towards Accurate Post-training Quantization for Diffusion Models

2023-05-30 · CVPR 2024 1 · Changyuan Wang, Ziwei Wang, Xiuwei Xu, Yansong Tang, Jie zhou, Jiwen Lu

In this paper, we propose an accurate data-free post-training quantization framework of diffusion models (ADP-DM) for efficient image generation. Conventional data-free quantization methods learn shared quantization functions for tensor discretization regardless of the generation timesteps, while the activation distribution differs significantly across various timesteps. The calibration images are acquired in random timesteps which fail to provide sufficient information for generalizable quantization function learning. Both issues cause sizable quantization errors with obvious image generation performance degradation. On the contrary, we design group-wise quantization functions for activation discretization in different timesteps and sample the optimal timestep for informative calibration image generation, so that our quantized diffusion model can reduce the discretization errors with negligible computational overhead. Specifically, we partition the timesteps according to the importance weights of quantization functions in different groups, which are optimized by differentiable search algorithms. We also select the optimal timestep for calibration image generation by structural risk minimizing principle in order to enhance the generalization ability in the deployment of quantized diffusion model. Extensive experimental results show that our method outperforms the state-of-the-art post-training quantization of diffusion model by a sizable margin with similar computational cost.

📄 PDF Abstract BibTeX arXiv:2305.18723

Code (1)

changyuanwang17/apq-dm 공식 구현 pytorch

Tasks

Data Free QuantizationImage GenerationQuantization

Methods 이 논문이 사용한 방법론

fail 설명 없음
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 제목 키워드 기반

Post-training Quantization for Text-to-Image Diffusion Models with Progressive Calibration and Activation Relaxing

2023-11-10 · Siao Tang, Xin Wang, Hong Chen, Chaoyu Guan 외

High computational overhead is a troublesome problem for diffusion models. Recent studies have leveraged post-training quantization (PTQ) to compress diffusion models. However, most of them only focus on unconditional mo…

Quantization

PTQD: Accurate Post-Training Quantization for Diffusion Models

2023-05-18 · NeurIPS 2023 11 · Yefei He, Luping Liu, Jing Liu, Weijia Wu 외

Diffusion models have recently dominated image synthesis tasks. However, the iterative denoising process is expensive in computations at inference time, making diffusion models less practical for low-latency and scalable…

DenoisingImage GenerationQuantization

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

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

PQD: Post-training Quantization for Efficient Diffusion Models

2024-12-30 · Jiaojiao Ye, Zhen Wang, Linnan Jiang

Diffusionmodels(DMs)havedemonstratedremarkableachievements in synthesizing images of high fidelity and diversity. However, the extensive computational requirements and slow generative speed of diffusion models have limit…

DiversityImage GenerationQuantizationUnconditional Image Generation