SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2404.05662 · ICLR · 2025

BinaryDM: Accurate Weight Binarization for Efficient Diffusion Models

Mingyuan Zhang, Xianglong Liu, Zixiang Zhao, Haotong Qin, Xingyu Zheng, Xudong Ma, Haojie Hao, Jiakai Wang, Jinyang Guo, Michele Magno, Evolvable Vanilla, Binarydm Framework

arXiv · PDF · Open in the Atlas

Code that ran

5 of 5 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, 1 violated it and 0 have no contract verdict; 2 failures of our instrument; 0 no recorded run), measured 2026-11-24; 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/2404.05662.json · badge: /api/ran/2404.05662.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/binarydm canonical (classifier label)
classifier basis: census
5 ran · 0 no recorded run
FunctionStatusWhere it lives
disabled_train Ran
ran, violated the contract we drafted
xingyu-zheng/binarydm/ddpm_ours.py
pointer only (licence: NONE) · get_code("4cb732f513d69dfd")
How it ran

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

grad_scale Ran
ran, honoured the contract we drafted
xingyu-zheng/binarydm/ours_util.py
pointer only (licence: NONE); the stored copy get_code serves, from hustzxd/LSQuantization, is pointer only (licence: NONE) · get_code("d75564df9359ef7b")
How it ran

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

init_quantization_scale Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
xingyu-zheng/binarydm/ours_util.py
pointer only (licence: NONE) · get_code("8efb32ba5fb8fba2")
How it ran

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

round_pass Ran
ran, honoured the contract we drafted
xingyu-zheng/binarydm/ours_util.py
pointer only (licence: NONE); the stored copy get_code serves, from hustzxd/LSQuantization, is pointer only (licence: NONE) · get_code("40027e5e78ca8837")
How it ran

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

uniform_on_device Ran
ran; our contract draft was wrong, not the code
xingyu-zheng/binarydm/ddpm_ours.py
pointer only (licence: NONE) · get_code("d48d8354986e3b0e")
How it ran

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

Also present in other papers' code

Of 5 samples lifted from this paper's linked repositories, 5 carry a function identity and 0 do not. Of the 5 distinct functions with an identity, 4 are also present in other papers whose code we hold (4 with at least one paper dated earlier, 2 the same month, 4 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
disabled_train 173 other papers
96 dated earlier, 7 the same month, 62 later, 8 same year, order not determinable · 5 only as an assembly brick
2012.09841 (2020-12)
Taming Transformers for High-Resolution Image Synthesis
2102.05379 (2021-02)
Argmax Flows and Multinomial Diffusion: Learning Categorical Distributions
2104.07652 (2021-04)
Geometry-Free View Synthesis: Transformers and no 3D Priors
and 170 more not named here
uniform_on_device 44 other papers
30 dated earlier, 1 the same month, 10 later, 3 same year, order not determinable
2112.10752 (2021-12)
High-Resolution Image Synthesis with Latent Diffusion Models
2204.06125 (2022-04)
Hierarchical Text-Conditional Image Generation with CLIP Latents
2206.02779 (2022-06)
Blended Latent Diffusion
and 41 more not named here
grad_scale 5 other papers
2 dated earlier, 2 later, 1 same year, order not determinable
1902.08153 (2019-02)
Learned Step Size Quantization
2201.07703 (2022-01)
Q-ViT: Fully Differentiable Quantization for Vision Transformer
aaai_28109 (2024 (year only))
Bi-ViT: Pushing the Limit of Vision Transformer Quantization
and 2 more not named here
round_pass 5 other papers
2 dated earlier, 2 later, 1 same year, order not determinable
1902.08153 (2019-02)
Learned Step Size Quantization
2201.07703 (2022-01)
Q-ViT: Fully Differentiable Quantization for Vision Transformer
aaai_28109 (2024 (year only))
Bi-ViT: Pushing the Limit of Vision Transformer Quantization
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-24.

Repositories linked to this paper

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

Abstract

With the advancement of diffusion models (DMs) and the substantially increased computational requirements, quantization emerges as a practical solution to obtain compact and efficient low-bit DMs. However, the highly discrete representation leads to severe accuracy degradation, hindering the quantization of diffusion models to ultra-low bit-widths. This paper proposes a novel weight binarization approach for DMs, namely BinaryDM, pushing binarized DMs to be accurate and efficient by improving the representation and optimization. From the representation perspective, we present an Evolvable-Basis Binarizer (EBB) to enable a smooth evolution of DMs from full-precision to accurately binarized. EBB enhances information representation in the initial stage through the flexible combination of multiple binary bases and applies regularization to evolve into efficient single-basis binarization. The evolution only occurs in the head and tail of the DM architecture to retain the stability of training. From the optimization perspective, a Low-rank Representation Mimicking (LRM) is applied to assist the optimization of binarized DMs. The LRM mimics the representations of full-precision DMs in low-rank space, alleviating the direction ambiguity of the optimization process caused by fine-grained alignment. Comprehensive experiments demonstrate that BinaryDM achieves significant accuracy and efficiency gains compared to SOTA quantization methods of DMs under ultra-low bit-widths. With 1-bit weight and 4-bit activation (W1A4), BinaryDM achieves as low as 7.74 FID and saves the performance from collapse (baseline FID 10.87). As the first binarization method for diffusion models, W1A4 BinaryDM achieves impressive 15.2× OPs and 29.2× model size savings, showcasing its substantial potential for edge deployment.

For agents

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

get_harvested_code_for_paper("2404.05662")
get_code_for_paper("2404.05662")
have("2404.05662")

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

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

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

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

Connect an agent — have() is free.