SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2412.05926 · NeurIPS · 2024

BiDM: Pushing the Limit of Quantization for Diffusion Models

Yulun Zhang, Xianglong Liu, Haotong Qin, Xingyu Zheng, Xudong Ma, Jiakai Wang, Jinyang Guo, Yichen Bian

arXiv · PDF · Open in the Atlas

Code that ran

14 of 16 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; 2 honoured the contract we drafted, 3 violated it and 0 have no contract verdict; 9 failures of our instrument; 2 no recorded run), measured 2026-11-22; 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/2412.05926.json · badge: /api/ran/2412.05926.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
xingyu-zheng/bidm canonical (classifier label)
classifier basis: census
13 ran · 2 no recorded run
Xingyu-Zheng/BiDM canonical (classifier label)
classifier basis: classifier_2025
1 ran · 0 no recorded run
FunctionStatusWhere it lives
Normalize Ran
ran; our contract draft was wrong, not the code
Xingyu-Zheng/BiDM/bidm-cifar/models/diffusion_bidm.py
pointer only (licence: NONE) · get_code("c3a6b977022957cb")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Xingyu-Zheng/BiDM 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.

check_integrity Ran
ran, violated the contract we drafted
xingyu-zheng/bidm/bidm-cifar/datasets/utils.py
pointer only (licence: NONE) · get_code("7345763c9b9300fb")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, xingyu-zheng/bidm 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.

dict2namespace Ran
ran; our contract draft was wrong, not the code
xingyu-zheng/bidm/bidm-cifar/main_bidm.py
pointer only (licence: NONE); the stored copy get_code serves, from leaveslei/obd, is pointer only (licence: NONE) · get_code("bd1f17e427bf51a5")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, xingyu-zheng/bidm 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_timestep_embedding Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
xingyu-zheng/bidm/bidm-cifar/models/diffusion_bidm.py
pointer only (licence: NONE) · get_code("cb49209c125de1b4")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, xingyu-zheng/bidm 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.

isimage Ran
ran, violated the contract we drafted
xingyu-zheng/bidm/bidm-cifar/models/util_ldm.py
pointer only (licence: NONE) · get_code("b1368330cf0f5642")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, xingyu-zheng/bidm 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.

ismap Ran
ran, violated the contract we drafted
xingyu-zheng/bidm/bidm-cifar/models/util_ldm.py
pointer only (licence: NONE) · get_code("d72762b700feee6f")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, xingyu-zheng/bidm 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.

list_dir Ran
ran; our contract draft was wrong, not the code
xingyu-zheng/bidm/bidm-cifar/datasets/utils.py
pointer only (licence: NONE); the stored copy get_code serves, from xiaoboxia/T-Revision, is pointer only (licence: NONE) · get_code("915e1c6c38494be9")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, xingyu-zheng/bidm 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.

list_files Ran
ran; our contract draft was wrong, not the code
xingyu-zheng/bidm/bidm-cifar/datasets/utils.py
pointer only (licence: NONE); the stored copy get_code serves, from xiaoboxia/T-Revision, is pointer only (licence: NONE) · get_code("208e196e9582a9a6")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, xingyu-zheng/bidm 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.

make_beta_schedule Ran
ran, honoured the contract we drafted
xingyu-zheng/bidm/bidm-cifar/models/util_bidm.py
pointer only (licence: NONE) · get_code("3bd7e0cdbd131fdb")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, xingyu-zheng/bidm 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.

make_ddim_sampling_parameters Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
xingyu-zheng/bidm/bidm-cifar/models/util_bidm.py
pointer only (licence: NONE); the stored copy get_code serves, from haoheliu/AudioLDM, is pointer only (licence: NOASSERTION) · get_code("3ee640131c9d4362")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, xingyu-zheng/bidm 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.

make_ddim_timesteps Ran
ran, honoured the contract we drafted
xingyu-zheng/bidm/bidm-cifar/models/util_bidm.py
pointer only (licence: NONE); the stored copy get_code serves, from haoheliu/AudioLDM, is pointer only (licence: NOASSERTION) · get_code("0ea4e960ea54514c")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, xingyu-zheng/bidm 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.

md5_hash Ran
ran; our contract draft was wrong, not the code
xingyu-zheng/bidm/bidm-cifar/functions/ckpt_util.py
pointer only (licence: NONE); the stored copy get_code serves, from zh460045050/V2L-Tokenizer, is pointer only (licence: NONE) · get_code("07d90bd6ae1be7db")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, xingyu-zheng/bidm 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.

noise_estimation_loss Ran
ran; our contract draft was wrong, not the code
xingyu-zheng/bidm/bidm-cifar/functions/losses.py
pointer only (licence: NONE) · get_code("e7829cb162499d04")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, xingyu-zheng/bidm 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.

nonlinearity Ran
ran; our contract draft was wrong, not the code
xingyu-zheng/bidm/bidm-cifar/models/diffusion_bidm.py
pointer only (licence: NONE) · get_code("3137073275f8c21a")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, xingyu-zheng/bidm 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_ckpt_path Not yet run
unverified (harvested, no recorded run)
xingyu-zheng/bidm/bidm-cifar/functions/ckpt_util.py
pointer only (licence: NONE) · get_code("c37fc656e8bb2a80")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, xingyu-zheng/bidm 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. No invocation recorded.

log_txt_as_img Not yet run
unverified (harvested, no recorded run)
xingyu-zheng/bidm/bidm-cifar/models/util_ldm.py
pointer only (licence: NONE) · get_code("f9bd2e83191afad1")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, xingyu-zheng/bidm 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. No invocation recorded.

Also present in other papers' code

Of 16 samples lifted from this paper's linked repositories, 16 carry a function identity and 0 do not. Of the 16 distinct functions with an identity, 15 are also present in other papers whose code we hold (15 with at least one paper dated earlier, 5 the same month, 9 later) and 1 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
nonlinearity 156 other papers
115 dated earlier, 2 the same month, 35 later, 4 same year, order not determinable · 25 only as an assembly brick
2104.07652 (2021-04)
Geometry-Free View Synthesis: Transformers and no 3D Priors
2106.00132 (2021-06)
On Fast Sampling of Diffusion Probabilistic Models
2106.06819 (2021-06)
D2C: Diffusion-Denoising Models for Few-shot Conditional Generation
and 153 more not named here
get_timestep_embedding 91 other papers
78 dated earlier, 9 later, 4 same year, order not determinable · 7 only as an assembly brick
2104.07652 (2021-04)
Geometry-Free View Synthesis: Transformers and no 3D Priors
2106.00132 (2021-06)
On Fast Sampling of Diffusion Probabilistic Models
2106.06819 (2021-06)
D2C: Diffusion-Denoising Models for Few-shot Conditional Generation
and 88 more not named here
Normalize 90 other papers
69 dated earlier, 18 later, 3 same year, order not determinable · 32 only as an assembly brick
2104.07652 (2021-04)
Geometry-Free View Synthesis: Transformers and no 3D Priors
2106.00132 (2021-06)
On Fast Sampling of Diffusion Probabilistic Models
2106.06819 (2021-06)
D2C: Diffusion-Denoising Models for Few-shot Conditional Generation
and 87 more not named here
ismap 69 other papers
60 dated earlier, 3 the same month, 3 later, 3 same year, order not determinable
2204.06125 (2022-04)
Hierarchical Text-Conditional Image Generation with CLIP Latents
2206.02779 (2022-06)
Blended Latent Diffusion
2208.13753 (2022-08)
Frido: Feature Pyramid Diffusion for Complex Scene Image Synthesis
and 66 more not named here
isimage 61 other papers
53 dated earlier, 3 the same month, 3 later, 2 same year, order not determinable
2206.02779 (2022-06)
Blended Latent Diffusion
2208.13753 (2022-08)
Frido: Feature Pyramid Diffusion for Complex Scene Image Synthesis
2210.12965 (2022-10)
High-Resolution Image Editing via Multi-Stage Blended Diffusion
and 58 more not named here
log_txt_as_img 55 other papers
46 dated earlier, 3 the same month, 3 later, 3 same year, order not determinable
2204.06125 (2022-04)
Hierarchical Text-Conditional Image Generation with CLIP Latents
2206.02779 (2022-06)
Blended Latent Diffusion
2210.12965 (2022-10)
High-Resolution Image Editing via Multi-Stage Blended Diffusion
and 52 more not named here
md5_hash 30 other papers
25 dated earlier, 2 the same month, 2 later, 1 same year, order not determinable
2008.01777 (2020-08)
Making Sense of CNNs: Interpreting Deep Representations & Their Invariances with INNs
2104.07652 (2021-04)
Geometry-Free View Synthesis: Transformers and no 3D Priors
2112.00384 (2021-12)
Exploration into Translation-Equivariant Image Quantization
and 27 more not named here
make_beta_schedule 29 other papers
26 dated earlier, 2 later, 1 same year, order not determinable · 7 only as an assembly brick
2006.11239 (2020-06)
Denoising Diffusion Probabilistic Models
2206.02262 (2022-06)
Diffusion-GAN: Training GANs with Diffusion
2211.10658 (2022-11)
EDGE: Editable Dance Generation From Music
and 26 more not named here
dict2namespace 28 other papers
23 dated earlier, 4 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
list_dir 19 other papers
19 dated earlier
1803.02999 (2018-03)
On First-Order Meta-Learning Algorithms
1903.12648 (2019-03)
Overcoming Catastrophic Forgetting with Unlabeled Data in the Wild
1906.00189 (2019-06)
Are Anchor Points Really Indispensable in Label-Noise Learning?
and 16 more not named here
check_integrity 16 other papers
16 dated earlier
1908.07724 (2019-08)
Restricted Recurrent Neural Networks
2206.02262 (2022-06)
Diffusion-GAN: Training GANs with Diffusion
2210.11633 (2022-10)
Graphically Structured Diffusion Models
and 13 more not named here
list_files 16 other papers
16 dated earlier
1803.02999 (2018-03)
On First-Order Meta-Learning Algorithms
1903.12648 (2019-03)
Overcoming Catastrophic Forgetting with Unlabeled Data in the Wild
1906.00189 (2019-06)
Are Anchor Points Really Indispensable in Label-Noise Learning?
and 13 more not named here
make_ddim_timesteps 15 other papers
15 dated earlier · 4 only as an assembly brick
2010.02502 (2020-10)
Denoising Diffusion Implicit Models
2202.09778 (2022-02)
Pseudo Numerical Methods for Diffusion Models on Manifolds
Xu_Versatile_Diffusion_Text_Images_and_Variations_All_in_One_Diffusion_ICCV_2023_paper (2023 (year only))
Versatile Diffusion: Text, Images and Variations All in One Diffusion Model
and 12 more not named here
make_ddim_sampling_parameters 10 other papers
10 dated earlier · 4 only as an assembly brick
2010.02502 (2020-10)
Denoising Diffusion Implicit Models
2202.09778 (2022-02)
Pseudo Numerical Methods for Diffusion Models on Manifolds
Xu_Versatile_Diffusion_Text_Images_and_Variations_All_in_One_Diffusion_ICCV_2023_paper (2023 (year only))
Versatile Diffusion: Text, Images and Variations All in One Diffusion Model
and 7 more not named here
get_ckpt_path 2 other papers
2 dated earlier
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

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-22.

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 (DMs) have been significantly developed and widely used in various applications due to their excellent generative qualities. However, the expensive computation and massive parameters of DMs hinder their practical use in resource-constrained scenarios. As one of the effective compression approaches, quantization allows DMs to achieve storage saving and inference acceleration by reducing bit-width while maintaining generation performance. However, as the most extreme quantization form, 1-bit binarization causes the generation performance of DMs to face severe degradation or even collapse. This paper proposes a novel method, namely BiDM, for fully binarizing weights and activations of DMs, pushing quantization to the 1-bit limit. From a temporal perspective, we introduce the Timestep-friendly Binary Structure (TBS), which uses learnable activation binarizers and cross-timestep feature connections to address the highly timestep-correlated activation features of DMs. From a spatial perspective, we propose Space Patched Distillation (SPD) to address the difficulty of matching binary features during distillation, focusing on the spatial locality of image generation tasks and noise estimation networks. As the first work to fully binarize DMs, the W1A1 BiDM on the LDM-4 model for LSUN-Bedrooms 256×256 achieves a remarkable FID of 22.74, significantly outperforming the current state-of-the-art general binarization methods with an FID of 59.44 and invalid generative samples, and achieves up to excellent 28.0× storage and 52.7× OPs savings. 38th Conference on Neural Information Processing Systems (NeurIPS 2024).

For agents

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

get_harvested_code_for_paper("2412.05926")
get_code_for_paper("2412.05926")
have("2412.05926")

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

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

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

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

Connect an agent — have() is free.