SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2401.04585 · 2024

EDA-DM: Enhanced Distribution Alignment for Post-Training Quantization of Diffusion Models

arXiv · PDF · Open in the Atlas

Code that ran

3 of 3 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 1 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 2 failures of our instrument; 0 no recorded run), measured 2026-11-21; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2401.04585.json · badge: /api/ran/2401.04585.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
BienLuky/EDA-DM canonical (classifier label)
classifier basis: classifier_2025
1 ran · 0 no recorded run
copy not recorded community
not in the paper's declared repositories
2 ran · 0 no recorded run
FunctionStatusWhere it lives
dict2namespace Ran
ran; our contract draft was wrong, not the code
BienLuky/EDA-DM/scripts/sample_diffusion_ddim.py
pointer only (licence: NONE) · get_code("be0212fed3ba7317")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, BienLuky/EDA-DM when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_beta_schedule Ran
ran, honoured the contract we drafted
this paper's copy was not recorded; identical code first harvested from weizhigao/modiff
pointer only; the stored copy get_code serves, from weizhigao/modiff, is pointer only (licence: NONE) · get_code("ca0cea1ca1eeec89")
How it ran

The body of this sample is withheld: this paper's copy of the code was not recorded (its link names no repository or source path), so no licence was read for it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

torch2hwcuint8 Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
this paper's copy was not recorded; identical code first harvested from weizhigao/modiff
pointer only; the stored copy get_code serves, from weizhigao/modiff, is pointer only (licence: NONE) · get_code("c27a10ca9f6b75f3")
How it ran

The body of this sample is withheld: this paper's copy of the code was not recorded (its link names no repository or source path), so no licence was read for it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

Also present in other papers' code

Of 3 samples lifted from this paper's linked repositories, 3 carry a function identity and 0 do not. Of the 3 distinct functions with an identity, 3 are also present in other papers whose code we hold (3 with at least one paper dated earlier, 0 the same month, 3 later) and 0 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
dict2namespace 28 other papers
12 dated earlier, 15 later, 1 same year, order not determinable
1907.04809 (2019-07)
Variational Autoencoders and Nonlinear ICA: A Unifying Framework
1912.00589 (2019-12)
Flow Contrastive Estimation of Energy-Based Models
2002.11537 (2020-02)
ICE-BeeM: Identifiable Conditional Energy-Based Deep Models Based on Nonlinear ICA
and 25 more not named here
get_beta_schedule 25 other papers
10 dated earlier, 15 later · 1 only as an assembly brick
2201.11760 (2022-01)
Unsupervised Denoising of Retinal OCT with Diffusion Probabilistic Model
2203.02923 (2022-03)
GeoDiff: a Geometric Diffusion Model for Molecular Conformation Generation
2206.02262 (2022-06)
Diffusion-GAN: Training GANs with Diffusion
and 22 more not named here
torch2hwcuint8 5 other papers
4 dated earlier, 1 later
2206.02262 (2022-06)
Diffusion-GAN: Training GANs with Diffusion
2211.14680 (2022-11)
A Physics-informed Diffusion Model for High-fidelity Flow Field Reconstruction
2302.03262 (2023-02)
Membership Inference Attacks against Diffusion Models
and 2 more not named here

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-21.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Diffusion models have achieved great success in image generation tasks. However, the lengthy denoising process and complex neural networks hinder their low-latency applications in real-world scenarios. Quantization can effectively reduce model complexity, and post-training quantization (PTQ), which does not require fine-tuning, is highly promising for compressing and accelerating diffusion models. Unfortunately, we find that due to the highly dynamic activations, existing PTQ methods suffer from distribution mismatch issues at both calibration sample level and reconstruction output level, which makes the performance far from satisfactory. In this paper, we propose EDA-DM, a standardized PTQ method that efficiently addresses the above issues. Specifically, at the calibration sample level, we extract information from the density and diversity of latent space feature maps, which guides the selection of calibration samples to align with the overall sample distribution; and at the reconstruction output level, we theoretically analyze the reasons for previous reconstruction failures and, based on this insight, optimize block reconstruction using the Hessian loss of layers, aligning the outputs of quantized model and full-precision model at different network granularity. Extensive experiments demonstrate that EDA-DM significantly outperforms the existing PTQ methods across various models and datasets. Our method achieves a 1.83 times speedup and 4 times compression for the popular Stable-Diffusion on MS-COCO, with only a 0.05 loss in CLIP score. Code is available at http://github.com/BienLuky/EDA-DM .

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2401.04585")
get_code_for_paper("2401.04585")
have("2401.04585")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2401.04585.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2401.04585.svg)](https://syntology.ai/paper/2401.04585)

Connect an agent — have() is free.