Skip to main navigation Skip to search Skip to main content

Step-by-Step: Per-Timestep Adaptive Bitwidth Search for Diffusion Model Quantization

  • Northwestern Polytechnical University Xian
  • Hong Kong University of Science and Technology
  • Xi'an Institute of Posts and Telecommunications

Research output: Contribution to journal › Article › peer-review

Abstract

Although diffusion models (DMs) have achieved remarkable success in image generation, their substantial memory requirements hinder widespread applications. This challenge highlights the importance of developing efficient post-training quantization (PTQ) techniques. Compared to fixed-precision PTQ methods, which quantize the parameters of all layers to the same discrete level, mixed-precision PTQ methods allocate varying bitwidths to different layers, yielding better performance and thus attracting increasing attention in recent years. However, despite the proposal of various methods, existing mixed-precision PTQ approaches typically use a uniform bitwidth configuration across different timesteps, applying a constant bitwidth to each layer. This limitation hinders further improvements in current methods. To address this, we first revisit the quantization process in diffusion models and observe that the impact of quantization varies across layers at different timesteps. Inspired by this observation, we propose the first work that adaptively adjusts the bitwidth configuration for each layer based on timestep-specific information. Specifically, we introduce temporal sensitivity analysis to quantify layer-wise quantization impacts in diffusion models during denoising process. Based on the temporal sensitivity, we propose two co-designed components consisting of the Multi-bit Coupled Sensitivity Learning module and the Timestep-Aware Heterogeneous Bitwidth Search mechanism, which collaboratively optimize the bitwidth for each layer, timestep by timestep. Experiments across various datasets demonstrate that our adaptive mixed-precision method outperforms current state-of-the-art approaches, especially under low-bit (e.g. average full 4-bit) quantization.

Keywords

  • Diffusion model
  • Mixed Precision Quantization (MPQ)
  • Post-training quantization (PTQ)

Fingerprint

Dive into the research topics of 'Step-by-Step: Per-Timestep Adaptive Bitwidth Search for Diffusion Model Quantization'. Together they form a unique fingerprint.

Cite this