TMPQ-DM: Joint Timestep Reduction and Quantization Precision Selection for Efficient Diffusion Models
<|reference_start|>TMPQ-DM: Joint Timestep Reduction and Quantization Precision Selection for Efficient Diffusion Models: Diffusion models have emerged as preeminent contenders in the realm of generative models. Distinguished by their distinctive sequential generative processes, characterized by hundreds or even thousands of timesteps, diffusion models progressively reconstruct images from pure Gaussian noise, with each timestep necessitating full inference of the entire model. However, the substantial computational demands inherent to these models present challenges for deployment, quantization is thus widely used to lower the bit-width for reducing the storage and computing overheads. Current quantization methodologies primarily focus on model-side optimization, disregarding the temporal dimension, such as the length of the timestep sequence, thereby allowing redundant timesteps to continue consuming computational resources, leaving substantial scope for accelerating the generative process. In this paper, we introduce TMPQ-DM, which jointly optimizes timestep reduction and quantization to achieve a superior performance-efficiency trade-off, addressing both temporal and model optimization aspects. For timestep reduction, we devise a non-uniform grouping scheme tailored to the non-uniform nature of the denoising process, thereby mitigating the explosive combinations of timesteps. In terms of quantization, we adopt a fine-grained layer-wise approach to allocate varying bit-widths to different layers based on their respective contributions to the final generative performance, thus rectifying performance degradation observed in prior studies. To expedite the evaluation of fine-grained quantization, we further devise a super-network to serve as a precision solver by leveraging shared quantization results. These two design components are seamlessly integrated within our framework, enabling rapid joint exploration of the exponentially large decision space via a gradient-free evolutionary search algorithm.<|reference_end|>
@article{sun2024tmpq-dm:,
    title={TMPQ-DM: Joint Timestep Reduction and Quantization Precision Selection
  for Efficient Diffusion Models},
    author={Haojun Sun, Chen Tang, Zhi Wang, Yuan Meng, Jingyan jiang, Xinzhu Ma,
  Wenwu Zhu},
    journal={arXiv preprint arXiv:2404.09532},
    year={2024},
    archivePrefix={arXiv},
    eprint={2404.09532},
    primaryClass={cs.CV cs.LG}
}