Papers › MPQ-DM: Mixed Precision Quantization for Extremely Low Bit Diffusion Models

MPQ-DM: Mixed Precision Quantization for Extremely Low Bit Diffusion Models

16 Dec 2024arXiv:2412.11549archive 2025-07-28

Weilun Feng, Haotong Qin, Chuanguang Yang, Zhulin An, Libo Huang, Boyu Diao, Fei Wang, Renshuai Tao, Yongjun Xu, Michele Magno

Diffusion models have received wide attention in generation tasks. However, the expensive computation cost prevents the application of diffusion models in resource-constrained scenarios. Quantization emerges as a practical solution that significantly saves storage and computation by reducing the bit-width of parameters. However, the existing quantization methods for diffusion models still cause severe degradation in performance, especially under extremely low bit-widths (2-4 bit). The primary decrease in performance comes from the significant discretization of activation values at low bit quantization. Too few activation candidates are unfriendly for outlier significant weight channel quantization, and the discretized features prevent stable learning over different time steps of the diffusion model. This paper presents MPQ-DM, a Mixed-Precision Quantization method for Diffusion Models. The proposed MPQ-DM mainly relies on two techniques:(1) To mitigate the quantization error caused by outlier severe weight channels, we propose an Outlier-Driven Mixed Quantization (OMQ) technique that uses Kurtosis to quantify outlier salient channels and apply optimized intra-layer mixed-precision bit-width allocation to recover accuracy performance within target efficiency.(2) To robustly learn representations crossing time steps, we construct a Time-Smoothed Relation Distillation (TRD) scheme between the quantized diffusion model and its full-precision counterpart, transferring discrete and continuous latent to a unified relation space to reduce the representation inconsistency. Comprehensive experiments demonstrate that MPQ-DM achieves significant accuracy gains under extremely low bit-widths compared with SOTA quantization methods. MPQ-DM achieves a 58\% FID decrease under W2A4 setting compared with baseline, while all other methods even collapse.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2412.11549")

Code

Syntology Ran 9 of 13 code samples harvested from 1 repository linked to this paper; 4 have no recorded run. Of those that ran: 2 ran · violated contract; 4 ran · our draft was wrong; 1 ran · fixture could not drive it; 2 ran with no contract checked.

By repository: official repository: 13 samples from 1 repository, 9 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

cantbebetter2/mpq-dm officialmentioned in papermentioned on GitHubpytorchMIT report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

13 samples harvested; 9 ran; 0 honoured the contract we drafted; 4 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

2ran · violated contract
4ran · our draft was wrong
1ran · fixture could not drive it
2ran
4unverified

Licence: 0 of the 13 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from cantbebetter2/mpq-dm. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

round_ste cantbebetter2/mpq-dm/quant_scripts/quant_layer.py official repository ran · our draft was wrong fingerprinted MIT (permissive) · 675da8641c602b03 · report
always cantbebetter2/mpq-dm/ldm/modules/x_transformer.py official repository ran · our draft was wrong MIT (permissive) · fe5dd5258046898c · report
default cantbebetter2/mpq-dm/ldm/modules/attention.py official repository ran · violated contract MIT (permissive) · 424012cb37b31172 · report
exists cantbebetter2/mpq-dm/ldm/modules/attention.py official repository ran · violated contract MIT (permissive) · aa5486a3650902d8 · report
get_train_samples cantbebetter2/mpq-dm/quant_scripts/sample_lora_model.py official repository ran · our draft was wrong MIT (permissive) · 8dc011d26607845d · report
isimage cantbebetter2/mpq-dm/ldm/util.py official repository ran MIT (permissive) · b1368330cf0f5642 · report
ismap cantbebetter2/mpq-dm/ldm/util.py official repository ran MIT (permissive) · d72762b700feee6f · report
lp_loss cantbebetter2/mpq-dm/quant_scripts/quant_layer.py official repository ran · fixture could not drive it fingerprinted MIT (permissive) · 08c6ea7576220a13 · report
uniq cantbebetter2/mpq-dm/ldm/modules/attention.py official repository ran · our draft was wrong MIT (permissive) · 9a299fe5ae09e407 · report
calculate_kurtosis_per_channel cantbebetter2/mpq-dm/quant_scripts/quant_layer.py official repository unverified MIT (permissive) · 8ff42a5748d7cb96 · report
getStep cantbebetter2/mpq-dm/ldm/globalvar.py official repository unverified MIT (permissive) · 80ae154054c233d5 · report
get_train_samples cantbebetter2/mpq-dm/quant_scripts/sample_lora_model_lsun.py official repository unverified MIT (permissive) · a17aa236f371840f · report
log_txt_as_img cantbebetter2/mpq-dm/ldm/util.py official repository unverified MIT (permissive) · f9bd2e83191afad1 · report

Tasks

Quantization

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

AttentionDiffusionSoftmax

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections