MPQ-Diff: Mixed Precision Quantization for Diffusion Models

Rocco Manz Maruzzelli, Basile Lewandowski, Lydia Y. Chen
11/28/2024
cs.CVcs.LG

No confident code implementation found for this paper. 8 possible matches can be shown below.

Abstract

Diffusion models (DMs) generate remarkable high quality images via the stochastic denoising process, which unfortunately incurs high sampling time. Post-quantizing the trained diffusion models in fixed bit-widths, e.g., 4 bits on weights and 8 bits on activation, is shown effective in accelerating sampling time while maintaining the image quality. Motivated by the observation that the cross-layer dependency of DMs vary across layers and sampling steps, we propose a mixed precision quantization scheme, MPQ-Diff, which allocates different bit-width to the weights and activation of the layers. We advocate to use the cross-layer correlation of a given layer, termed network orthogonality metric, as a proxy to measure the relative importance of a layer per sampling step. We further adopt a uniform sampling scheme to avoid the excessive profiling overhead of estimating orthogonality across all time steps. We evaluate the proposed mixed-precision on LSUN and ImageNet, showing a significant improvement in FID from 65.73 to 15.39, and 52.66 to 14.93, compared to their fixed precision quantization, respectively.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 8 weaker matches are hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{maruzzelli2024mpqdiff,
  title  = {MPQ-Diff: Mixed Precision Quantization for Diffusion Models},
  author = {Rocco Manz Maruzzelli and Basile Lewandowski and Lydia Y. Chen},
  year   = {2024},
  eprint = {2412.00144},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2412.00144v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2412.00144.svg)](https://codeofpaper.com/paper/2412.00144)

Discussion