Papers › Temporal Feature Matters: A Framework for Diffusion Model Quantization

Temporal Feature Matters: A Framework for Diffusion Model Quantization

28 Jul 2024arXiv:2407.19547archive 2025-07-28

Yushi Huang, Ruihao Gong, Xianglong Liu, Jing Liu, Yuhang Li, Jiwen Lu, DaCheng Tao

The Diffusion models, widely used for image generation, face significant challenges related to their broad applicability due to prolonged inference times and high memory demands. Efficient Post-Training Quantization (PTQ) is crucial to address these issues. However, unlike traditional models, diffusion models critically rely on the time-step for the multi-round denoising. Typically, each time-step is encoded into a hypersensitive temporal feature by several modules. Despite this, existing PTQ methods do not optimize these modules individually. Instead, they employ unsuitable reconstruction objectives and complex calibration methods, leading to significant disturbances in the temporal feature and denoising trajectory, as well as reduced compression efficiency. To address these challenges, we introduce a novel quantization framework that includes three strategies: 1) TIB-based Maintenance: Based on our innovative Temporal Information Block (TIB) definition, Temporal Information-aware Reconstruction (TIAR) and Finite Set Calibration (FSC) are developed to efficiently align original temporal features. 2) Cache-based Maintenance: Instead of indirect and complex optimization for the related modules, pre-computing and caching quantized counterparts of temporal features are developed to minimize errors. 3) Disturbance-aware Selection: Employ temporal feature errors to guide a fine-grained selection between the two maintenance strategies for further disturbance reduction. This framework preserves most of the temporal information and ensures high-quality end-to-end generation. Extensive testing on various datasets, diffusion models and hardware confirms our superior performance and acceleration..

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

Code

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

By repository: community (archive-listed): 14 samples from 1 repository, 14 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

modeltc/tfmq-dm mentioned on GitHubpytorchApache-2.0 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

14 samples harvested; 14 ran; 0 honoured the contract we drafted; 0 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.

1ran · violated contract
6ran · our draft was wrong
2ran · fixture could not drive it
5ran

Licence: 0 of the 14 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 modeltc/tfmq-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.

Normalize modeltc/tfmq-dm/ddim/models/diffusion.py community (archive-listed) ran · our draft was wrong Apache-2.0 (permissive) · c3a6b977022957cb · report
chunk modeltc/tfmq-dm/txt2img.py community (archive-listed) ran · our draft was wrong Apache-2.0 (permissive) · 8241c0562bc710fd · report
create_logger modeltc/tfmq-dm/linklink/log_helper.py community (archive-listed) ran Apache-2.0 (permissive) · e5efe151009836e9 · report
custom_to_np modeltc/tfmq-dm/sample_diffusion_ldm.py community (archive-listed) ran · our draft was wrong fingerprinted Apache-2.0 (permissive) · 834bbad6b027b869 · report
custom_to_pil modeltc/tfmq-dm/sample_diffusion_ldm.py community (archive-listed) ran · fixture could not drive it Apache-2.0 (permissive) · 73fba7367428c8a5 · report
dict2namespace modeltc/tfmq-dm/sample_diffusion_ddim.py community (archive-listed) ran · our draft was wrong Apache-2.0 (permissive) · bd1f17e427bf51a5 · report
get_timestep_embedding modeltc/tfmq-dm/ddim/models/diffusion.py community (archive-listed) ran · fixture could not drive it fingerprinted Apache-2.0 (permissive) · cb49209c125de1b4 · report
kl modeltc/tfmq-dm/quant/quant_layer.py community (archive-listed) ran Apache-2.0 (permissive) · 77865748740d72a6 · report
logs2pil modeltc/tfmq-dm/sample_diffusion_ldm.py community (archive-listed) ran · our draft was wrong Apache-2.0 (permissive) · 968eb3375c1d67e1 · report
minmax modeltc/tfmq-dm/quant/quant_layer.py community (archive-listed) ran Apache-2.0 (permissive) · 71aaede90c9c1031 · report
mse modeltc/tfmq-dm/quant/quant_layer.py community (archive-listed) ran Apache-2.0 (permissive) · 180ea8ce084d4e63 · report
noise_estimation_loss modeltc/tfmq-dm/ddim/functions/losses.py community (archive-listed) ran Apache-2.0 (permissive) · 36a45cceb1209d2f · report
nonlinearity modeltc/tfmq-dm/ddim/models/diffusion.py community (archive-listed) ran · our draft was wrong fingerprinted Apache-2.0 (permissive) · 3137073275f8c21a · report
numpy_to_pil modeltc/tfmq-dm/txt2img.py community (archive-listed) ran · violated contract Apache-2.0 (permissive) · 1e63d588563eb90a · report

Tasks

DenoisingImage GenerationQuantization

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

ALIGNDiffusionSET

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