跳到主要导航 跳到搜索 跳到主要内容

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

科研成果: 期刊稿件 › 文章 › 同行评审

摘要

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.

学术指纹

探究 'Step-by-Step: Per-Timestep Adaptive Bitwidth Search for Diffusion Model Quantization' 的科研主题。它们共同构成独一无二的学术指纹。

引用此