NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

PQD: Post-training Quantization for Efficient Diffusion Models

Jiaojiao Ye, Zhen Wang, Linnan Jiang · DOI

Abstract

Diffusion Models (DMs) have established themselves as the state-of-the-art for high-fidelity image generation, yet their iterative denoising process imposes significant computational and memory burdens. While Post-Training Quantization (PTQ) is a common compression technique, it often fails for DMs because activation distributions shift dramatically as noise is removed. We introduce PQD (Post-Training Quantization for Diffusion Models), a framework that employs a time-aware calibration strategy to maintain high image quality at 8-bit precision without the need for expensive retraining. By sampling calibration data across the denoising timeline, PQD effectively captures the model's evolving behavior, reducing model size by 4x with minimal impact on performance.

Introduction

Generating a single high-resolution image with models like Stable Diffusion typically requires dozens of iterative passes through a complex neural network, often demanding high-end GPUs with substantial VRAM. This computational intensity limits the deployment of these models on consumer-grade hardware or mobile devices. Quantization—the process of reducing the numerical precision of model weights and activations (e.g., from FP32 to INT8)—offers a solution to reduce memory footprints and accelerate inference.

However, standard PTQ methods assume that the data distributions (activations) flowing through the network remain relatively consistent. In Diffusion Models, this assumption is violated: the data evolves from pure Gaussian noise to a structured image over hundreds of steps. A calibration strategy that only considers a single stage of this process fails to generalize to others, leading to significant artifacts in the generated output.

Methodology

The core innovation of PQD is its Time-Aware Calibration Selection. Rather than using a static dataset for calibration, PQD intelligently selects samples that reflect the model's internal state across the entire denoising timeline.

Time-Aware Calibration

The researchers observed that activation distributions are a "moving target" throughout the generation process. To address this, PQD utilizes an algorithm to sample calibration data following a Gaussian distribution ($N(\mu, \sigma)$) over the time steps. This ensures that the quantization parameters are optimized for the most critical phases of image synthesis, balancing the requirements of early-stage noise processing and late-stage image refinement.

Robustness and Scalability

To further improve performance, PQD incorporates QDrop, a technique that randomly disables quantization during the calibration phase to increase the final model's robustness. Additionally, the framework is designed to work with Latent Diffusion Models (LDMs). By quantizing features within the compressed latent space rather than raw pixel space, PQD maintains efficiency even when generating high-resolution (512x512) images.

Experimental Results

PQD was evaluated on standard benchmarks including ImageNet (unconditional generation) and MS-COCO (text-to-image), using weights from models trained on the LAION-5B dataset.

Efficiency and Quality

On ImageNet, PQD demonstrated a significant reduction in model size, moving from 143.2 MB (FP32) to 35.8 MB (W8A8). Despite this 4x compression, the 8-bit model achieved an FID score of 22.29, closely trailing the full-precision score of 21.63 and outperforming previous state-of-the-art methods like PTQ4DM (FID 23.96).

High-Resolution Generation

PQD is the first method to successfully demonstrate high-quality 512x512 text-to-image generation using 8-bit quantization. Qualitative analysis shows that PQD preserves fine textures—such as fur or forest structures—that are typically lost or distorted by naive linear quantization methods.

Discussion and Limitations

The study identifies 8-bit weight and activation quantization (W8A8) as a "sweet spot" for diffusion models, providing substantial compression with almost no perceptible loss in quality. However, pushing the limits to 4-bit quantization (W4A8) remains a challenge; while it preserves general perceptual quality, it introduces visible distortions and a significant jump in FID scores (to 75.32).

Furthermore, the optimal parameters for time-step sampling ($\mu$ and $\sigma$) currently require manual tuning. Future research may focus on automating this selection process for diverse architectures and measuring actual wall-clock speedups on specific mobile hardware like NPUs or DSPs.

Conclusion

PQD provides a practical and efficient pathway for deploying Diffusion Models on edge devices. By acknowledging the time-dependent nature of the denoising process, the framework achieves high-fidelity quantization without the prohibitive costs of retraining, making advanced generative AI more accessible for consumer applications.

Summary updated

BibTeX
@inproceedings{ye2025pqd,
  author = {Jiaojiao Ye and Zhen Wang and Linnan Jiang},
  title = {{PQD: Post-training Quantization for Efficient Diffusion Models}},
  booktitle = {Workshops @ WACV},
  year = {2025},
  doi = {10.1109/wacvw65960.2025.00021},
}
Figure