SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2604.12668 · 2026

OFA-Diffusion Compression: Compressing Diffusion Model in One-Shot Manner

Xi Chen, Xiuyu Li, Mingyang Yi, Zekun Wang, Qingbin Liu, Ju Fan, Junxian Cai, Lanqing Hu, Haoyang Jiang

arXiv · PDF · Open in the Atlas

Code that ran

10 of 10 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; 3 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 7 failures of our instrument; 0 no recorded run), measured 2026-11-24; 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/2604.12668.json · badge: /api/ran/2604.12668.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
atrijhy/OFA-Diffusion_Compression canonical (classifier label)
classifier basis: census
10 ran · 0 no recorded run
FunctionStatusWhere it lives
build_subnet_cfg_from_masks Ran
ran; our contract draft was wrong, not the code
atrijhy/OFA-Diffusion_Compression/sd/networks_ofa.py
pointer only (licence: NONE) · get_code("a63ca559f9e89ac2")
How it ran

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

build_subnet_cfgs Ran
ran; our contract draft was wrong, not the code
atrijhy/OFA-Diffusion_Compression/uvit/train_ofa.py
pointer only (licence: NONE) · get_code("b586946bdf35fdd2")
How it ran

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

collate_fn Ran
ran; our contract draft was wrong, not the code
atrijhy/OFA-Diffusion_Compression/sd/train_ofa.py
pointer only (licence: NONE) · get_code("ffb5e3f9fdba1308")
How it ran

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

encode_images Ran
ran; our contract draft was wrong, not the code
atrijhy/OFA-Diffusion_Compression/sd/train_ofa.py
pointer only (licence: NONE) · get_code("1456f650ca808675")
How it ran

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

encode_text Ran
ran, honoured the contract we drafted
atrijhy/OFA-Diffusion_Compression/sd/train_ofa.py
pointer only (licence: NONE) · get_code("8ee0a711cba8a0c8")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, atrijhy/OFA-Diffusion_Compression 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_smallest_subnet_cfg Ran
ran; our contract draft was wrong, not the code
atrijhy/OFA-Diffusion_Compression/sd/networks_ofa.py
pointer only (licence: NONE) · get_code("f518a3419df229cc")
How it ran

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

parse_int_list Ran
ran, honoured the contract we drafted
atrijhy/OFA-Diffusion_Compression/edm/train_ofa.py
pointer only (licence: NONE) · get_code("5addcff73a5c807d")
How it ran

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

parse_int_list Ran
ran, honoured the contract we drafted
atrijhy/OFA-Diffusion_Compression/edm/generate.py
pointer only (licence: NONE) · get_code("93f9e3bb78af1aa2")
How it ran

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

sample_random_subnet_cfg Ran
ran; our contract draft was wrong, not the code
atrijhy/OFA-Diffusion_Compression/sd/networks_ofa.py
pointer only (licence: NONE) · get_code("827ca7602b3406f9")
How it ran

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

weight_init Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
atrijhy/OFA-Diffusion_Compression/edm/networks_ofa.py
pointer only (licence: NONE) · get_code("d41a4250066bce93")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, atrijhy/OFA-Diffusion_Compression 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 10 samples lifted from this paper's linked repositories, 10 carry a function identity and 0 do not. Of the 10 distinct functions with an identity, 1 are also present in other papers whose code we hold (1 with at least one paper dated earlier, 1 the same month, 1 later) and 9 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
weight_init 49 other papers
44 dated earlier, 3 the same month, 2 later · 1 only as an assembly brick
2303.10137 (2023-03)
A Recipe for Watermarking Diffusion Models
2305.15266 (2023-05)
Diffusion-Based Audio Inpainting
2305.16269 (2023-05)
UDPM: Upsampling Diffusion Probabilistic Models
and 46 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

The Diffusion Probabilistic Model (DPM) achieves remarkable performance in image generation, while its increasing parameter size and computational overhead hinder its deployment in practical applications. To improve this, the existing literature focuses on obtaining a smaller model with a fixed architecture through model compression. However, in practice, DPMs usually need to be deployed on various devices with different resource constraints, which leads to multiple compression processes, incurring significant overhead for repeated training. To obviate this, we propose a oncefor-all (OFA) compression framework for DPMs that yields different subnetworks with various computations in a one-shot training manner. The existing OFA framework typically involves massive subnetworks with different parameter sizes, while such a huge candidate space slows the optimization. Thus, we propose to restrict the candidate subnetworks with a certain set of parameter sizes, where each size corresponds to a specific subnetwork. Specifically, to construct each subnetwork with a given size, we gradually allocate the maintained channels by their importance. Furthermore, we propose a reweighting strategy to balance the optimization process of different subnetworks. Experimental results show that our approach can produce compressed DPMs for various sizes with significantly lower training overhead while achieving satisfactory performance. The code is available at https://github.com/atrijhy/OFA-Diffusion_Compression.

For agents

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

get_harvested_code_for_paper("2604.12668")
get_code_for_paper("2604.12668")
have("2604.12668")

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

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

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

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

Connect an agent — have() is free.