Papers › Modulated Diffusion: Accelerating Generative Modeling with Modulated Quantization

Modulated Diffusion: Accelerating Generative Modeling with Modulated Quantization

18 Jun 2025arXiv:2506.22463archive 2025-07-28

Weizhi Gao, Zhichao Hou, Junqi Yin, Feiyi Wang, Linyu Peng, Xiaorui Liu

Diffusion models have emerged as powerful generative models, but their high computation cost in iterative sampling remains a significant bottleneck. In this work, we present an in-depth and insightful study of state-of-the-art acceleration techniques for diffusion models, including caching and quantization, revealing their limitations in computation error and generation quality. To break these limits, this work introduces Modulated Diffusion (MoDiff), an innovative, rigorous, and principled framework that accelerates generative modeling through modulated quantization and error compensation. MoDiff not only inherents the advantages of existing caching and quantization methods but also serves as a general framework to accelerate all diffusion models. The advantages of MoDiff are supported by solid theoretical insight and analysis. In addition, extensive experiments on CIFAR-10 and LSUN demonstrate that MoDiff significant reduces activation quantization from 8 bits to 3 bits without performance degradation in post-training quantization (PTQ). Our code implementation is available at https://github.com/WeizhiGao/MoDiff.

PaperPDFCodeCode Syntology ran

In Syntology View this paper on Syntology: its repositories, every harvested function with whether it ran, its licence and the call to fetch it.

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="2506.22463")

Code

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

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

WeizhiGao/MoDiff officialmentioned in paperpytorch 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

32 samples harvested; 16 ran; 1 honoured the contract we drafted; 16 have no recorded run. Read from Syntology's graph 2026-09-25; that is when this build read the record, not when the samples ran.

1ran · honoured contract
5ran · our draft was wrong
1ran · fixture could not drive it
9ran
16unverified

Licence: 32 of the 32 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 WeizhiGao/MoDiff. “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.

BasicTransformerBlock WeizhiGao/MoDiff/qdiff/quant_model.py official repository ran · metamorphic tier: deterministic no licence file found · pointer only · fe821a135405b676 · report
CrossAttention WeizhiGao/MoDiff/qdiff/quant_model.py official repository ran · metamorphic tier: deterministic no licence file found · pointer only · edbc6b070aba0b51 · report
CrossQKMatMul WeizhiGao/MoDiff/qdiff/quant_model.py official repository ran fingerprinted no licence file found · pointer only · 389bb673f605c6d2 · report
CrossSMVMatMul WeizhiGao/MoDiff/qdiff/quant_model.py official repository ran no licence file found · pointer only · 9ec250f0fac4b765 · report
FeedForward WeizhiGao/MoDiff/qdiff/quant_model.py official repository ran · metamorphic tier: deterministic no licence file found · pointer only · 3abfca8077fe9d76 · report
QKVAttention WeizhiGao/MoDiff/qdiff/quant_model.py official repository ran no licence file found · pointer only · 941d1452fb38ca5e · report
QKVAttentionLegacy WeizhiGao/MoDiff/qdiff/quant_model.py official repository ran · metamorphic tier: deterministic no licence file found · pointer only · 90bafd5717a0d799 · report
SMVMatMul WeizhiGao/MoDiff/qdiff/quant_model.py official repository ran fingerprinted no licence file found · pointer only · a3c010461a312c81 · report
UniformAffineQuantizer WeizhiGao/MoDiff/qdiff/quant_model.py official repository ran · metamorphic tier: deterministic fingerprinted no licence file found · pointer only · d88476b54e8ec555 · report
cross_attn_forward WeizhiGao/MoDiff/qdiff/quant_model.py official repository ran · our draft was wrong no licence file found · pointer only · 86ac950feea0e0fd · report
custom_to_np weizhigao/modiff/scripts/sample_diffusion_ldm.py official repository ran · our draft was wrong fingerprinted no licence file found · pointer only · 834bbad6b027b869 · report
custom_to_pil weizhigao/modiff/scripts/sample_diffusion_ldm.py official repository ran · our draft was wrong no licence file found · pointer only · 1f425be38a5fdeb5 · report
dict2namespace weizhigao/modiff/scripts/sample_diffusion_ddim.py official repository ran · our draft was wrong no licence file found · pointer only · 584a23812bb846a3 · report
get_beta_schedule weizhigao/modiff/scripts/sample_diffusion_ddim.py official repository ran · honoured contract no licence file found · pointer only · ca0cea1ca1eeec89 · report
logs2pil weizhigao/modiff/scripts/sample_diffusion_ldm.py official repository ran · our draft was wrong no licence file found · pointer only · 2eaadefc68b9b67f · report
torch2hwcuint8 weizhigao/modiff/scripts/sample_diffusion_ddim.py official repository ran · fixture could not drive it fingerprinted no licence file found · pointer only · c27a10ca9f6b75f3 · report
AttentionBlock WeizhiGao/MoDiff/qdiff/quant_model.py official repository unverified no licence file found · pointer only · df7a4ce615fa6435 · report
AttnBlock WeizhiGao/MoDiff/qdiff/quant_model.py official repository unverified no licence file found · pointer only · ae77b73557079f18 · report
BaseQuantBlock WeizhiGao/MoDiff/qdiff/quant_model.py official repository unverified no licence file found · pointer only · 141229083c7d82ac · report
QKMatMul WeizhiGao/MoDiff/qdiff/quant_model.py official repository unverified no licence file found · pointer only · cdf30b4cf1e20928 · report
QuantAttentionBlock WeizhiGao/MoDiff/qdiff/quant_model.py official repository unverified no licence file found · pointer only · 6fec188e5dfb1249 · report
QuantAttnBlock WeizhiGao/MoDiff/qdiff/quant_model.py official repository unverified no licence file found · pointer only · 3767d1fd2725d986 · report
QuantBasicTransformerBlock WeizhiGao/MoDiff/qdiff/quant_model.py official repository unverified no licence file found · pointer only · aff831fe69321097 · report
QuantModel WeizhiGao/MoDiff/qdiff/quant_model.py official repository unverified no licence file found · pointer only · a243ad022c69789a · report
QuantModule WeizhiGao/MoDiff/qdiff/quant_model.py official repository unverified no licence file found · pointer only · 64b7930a97c62f16 · report
QuantQKMatMul WeizhiGao/MoDiff/qdiff/quant_model.py official repository unverified no licence file found · pointer only · 8c76a82ae15256d9 · report
QuantResBlock WeizhiGao/MoDiff/qdiff/quant_model.py official repository unverified no licence file found · pointer only · e5fc108495799e81 · report
QuantResnetBlock WeizhiGao/MoDiff/qdiff/quant_model.py official repository unverified no licence file found · pointer only · 8bfaf266f4ee379f · report
QuantSMVMatMul WeizhiGao/MoDiff/qdiff/quant_model.py official repository unverified no licence file found · pointer only · e73fa8043b1b13e1 · report
ResBlock WeizhiGao/MoDiff/qdiff/quant_model.py official repository unverified no licence file found · pointer only · 00e230e8cf8490b7 · report
ResnetBlock WeizhiGao/MoDiff/qdiff/quant_model.py official repository unverified no licence file found · pointer only · 0c239a04ebd27a00 · report
get_specials WeizhiGao/MoDiff/qdiff/quant_model.py official repository unverified no licence file found · pointer only · 40f7990566ab7d99 · report

Tasks

Quantization

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

Diffusion

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