Papers › Masked Diffusion Models Are Fast Distribution Learners

Masked Diffusion Models Are Fast Distribution Learners

20 Jun 2023arXiv:2306.11363archive 2025-07-28

Jiachen Lei, Qinglong Wang, Peng Cheng, Zhongjie Ba, Zhan Qin, Zhibo Wang, Zhenguang Liu, Kui Ren

Diffusion model has emerged as the \emph{de-facto} model for image generation, yet the heavy training overhead hinders its broader adoption in the research community. We observe that diffusion models are commonly trained to learn all fine-grained visual information from scratch. This paradigm may cause unnecessary training costs hence requiring in-depth investigation. In this work, we show that it suffices to train a strong diffusion model by first pre-training the model to learn some primer distribution that loosely characterizes the unknown real image distribution. Then the pre-trained model can be fine-tuned for various generation tasks efficiently. In the pre-training stage, we propose to mask a high proportion (e.g., up to 90\%) of input images to approximately represent the primer distribution and introduce a masked denoising score matching objective to train a model to denoise visible areas. In subsequent fine-tuning stage, we efficiently train diffusion model without masking. Utilizing the two-stage training framework, we achieves significant training acceleration and a new FID score record of 6.27 on CelebA-HQ 256 ×256 for ViT-based diffusion models. The generalizability of a pre-trained model further helps building models that perform better than ones trained from scratch on different downstream datasets. For instance, a diffusion model pre-trained on VGGFace2 attains a 46\% quality improvement when fine-tuned on a different dataset that contains only 3000 images. Our code is available at \url{https://github.com/jiachenlei/maskdm}.

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

Code

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

By repository: official repository: 11 samples from 1 repository, 6 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

jiachenlei/maskdm officialmentioned in papermentioned on GitHubpytorchMIT 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

11 samples harvested; 6 ran; 2 honoured the contract we drafted; 5 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.

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

Licence: 0 of the 11 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 jiachenlei/maskdm. “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.

identity jiachenlei/maskdm/utils/helper.py official repository ran · honoured contract MIT (permissive) · 7f1040f5e3991d5e · report
default jiachenlei/maskdm/utils/helper.py official repository ran · violated contract MIT (permissive) · d1ef6b8cb9a28a53 · report
exists jiachenlei/maskdm/utils/helper.py official repository ran · violated contract MIT (permissive) · 608e364a9d2376a3 · report
linear_beta_schedule jiachenlei/maskdm/gaussian_ddpm.py official repository ran · honoured contract fingerprinted MIT (permissive) · 482723f534770483 · report
patchify jiachenlei/maskdm/models/mask_uvit.py official repository ran · fixture could not drive it fingerprinted MIT (permissive) · 9cf076a2ae913f94 · report
timestep_embedding jiachenlei/maskdm/models/mask_uvit.py official repository ran · our draft was wrong fingerprinted MIT (permissive) · b494dd297ded5960 · report
combine jiachenlei/maskdm/utils/config.py official repository unverified MIT (permissive) · 2a421bd3e3e98703 · report
cosine_beta_schedule jiachenlei/maskdm/gaussian_ddpm.py official repository unverified MIT (permissive) · 0bd8c65f1839edbf · report
get_sinusoid_encoding_table jiachenlei/maskdm/models/mask_uvit.py official repository unverified MIT (permissive) · 7dff50b3dd446750 · report
parse_yml jiachenlei/maskdm/utils/config.py official repository unverified MIT (permissive) · 5f118351f15bd3f6 · report
shuffle_along_axis jiachenlei/maskdm/datasets/masking_generator.py official repository unverified MIT (permissive) · ea28bd6049050f3b · report

Tasks

DenoisingImage Generation

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

Denoising Score MatchingDiffusion

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