Papers › Diffusion-GAN: Training GANs with Diffusion

Diffusion-GAN: Training GANs with Diffusion

5 Jun 2022arXiv:2206.02262archive 2025-07-28

Zhendong Wang, Huangjie Zheng, Pengcheng He, Weizhu Chen, Mingyuan Zhou

Generative adversarial networks (GANs) are challenging to train stably, and a promising remedy of injecting instance noise into the discriminator input has not been very effective in practice. In this paper, we propose Diffusion-GAN, a novel GAN framework that leverages a forward diffusion chain to generate Gaussian-mixture distributed instance noise. Diffusion-GAN consists of three components, including an adaptive diffusion process, a diffusion timestep-dependent discriminator, and a generator. Both the observed and generated data are diffused by the same adaptive diffusion process. At each diffusion timestep, there is a different noise-to-data ratio and the timestep-dependent discriminator learns to distinguish the diffused real data from the diffused generated data. The generator learns from the discriminator's feedback by backpropagating through the forward diffusion chain, whose length is adaptively adjusted to balance the noise and data levels. We theoretically show that the discriminator's timestep-dependent strategy gives consistent and helpful guidance to the generator, enabling it to match the true data distribution. We demonstrate the advantages of Diffusion-GAN over strong GAN baselines on various datasets, showing that it can produce more realistic images with higher stability and data efficiency than state-of-the-art GANs.

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

Code

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

By repository: community (archive-listed): 18 samples from 2 repositories, 13 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

Zhendong-Wang/Diffusion-GAN officialmentioned in papermentioned on GitHubpytorchMIT report
mingyuanzhou/sid-lsg mentioned on GitHubpytorchApache-2.0 report
zhendong-wang/prompt-diffusion mentioned on GitHubpytorch 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

18 samples harvested; 13 ran; 1 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.

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

Licence: 0 of the 18 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 2 repositories linked to this paper, official or community; each sample names its own and says which. “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.

DiffusionWrapper zhendong-wang/prompt-diffusion/ldm/models/diffusion/ddpm.py community (archive-listed) ran Apache-2.0 (permissive) · 46449d701844def0 · report
LitEma zhendong-wang/prompt-diffusion/ldm/models/diffusion/ddpm.py community (archive-listed) ran · metamorphic tier: deterministic Apache-2.0 (permissive) · 9464846a66de7376 · report
Normalize jegzheng/truncated-diffusion-probabilistic-models/models/diffusion.py community (archive-listed) ran · our draft was wrong MIT (permissive) · c3a6b977022957cb · report
compute_alpha jegzheng/truncated-diffusion-probabilistic-models/functions/denoising.py community (archive-listed) ran · our draft was wrong MIT (permissive) · 9215fb189fbfb9f4 · report
generalized_steps jegzheng/truncated-diffusion-probabilistic-models/functions/denoising.py community (archive-listed) ran · fixture could not drive it MIT (permissive) · d47e6201b6d56d24 · report
get_beta_schedule jegzheng/truncated-diffusion-probabilistic-models/runners/diffusion.py community (archive-listed) ran · honoured contract MIT (permissive) · ca0cea1ca1eeec89 · report
get_timestep_embedding jegzheng/truncated-diffusion-probabilistic-models/models/diffusion.py community (archive-listed) ran · fixture could not drive it fingerprinted MIT (permissive) · cb49209c125de1b4 · report
list_dir jegzheng/truncated-diffusion-probabilistic-models/datasets/utils.py community (archive-listed) ran · our draft was wrong MIT (permissive) · 915e1c6c38494be9 · report
list_files jegzheng/truncated-diffusion-probabilistic-models/datasets/utils.py community (archive-listed) ran · our draft was wrong MIT (permissive) · 208e196e9582a9a6 · report
md5_hash jegzheng/truncated-diffusion-probabilistic-models/functions/ckpt_util.py community (archive-listed) ran · our draft was wrong MIT (permissive) · 07d90bd6ae1be7db · report
noise_estimation_loss jegzheng/truncated-diffusion-probabilistic-models/functions/losses.py community (archive-listed) ran MIT (permissive) · 36a45cceb1209d2f · report
nonlinearity jegzheng/truncated-diffusion-probabilistic-models/models/diffusion.py community (archive-listed) ran · our draft was wrong fingerprinted MIT (permissive) · 3137073275f8c21a · report
torch2hwcuint8 jegzheng/truncated-diffusion-probabilistic-models/runners/diffusion.py community (archive-listed) ran · fixture could not drive it fingerprinted MIT (permissive) · c27a10ca9f6b75f3 · report
DDPM zhendong-wang/prompt-diffusion/ldm/models/diffusion/ddpm.py community (archive-listed) unverified Apache-2.0 (permissive) · af2b53bfe0d458a6 · report
check_integrity jegzheng/truncated-diffusion-probabilistic-models/datasets/utils.py community (archive-listed) unverified MIT (permissive) · 7345763c9b9300fb · report
ddpm_steps jegzheng/truncated-diffusion-probabilistic-models/functions/denoising.py community (archive-listed) unverified MIT (permissive) · 4d1f19f21237eb7d · report
extract jegzheng/truncated-diffusion-probabilistic-models/runners/diffusion.py community (archive-listed) unverified MIT (permissive) · 30e33c6c36337446 · report
get_ckpt_path jegzheng/truncated-diffusion-probabilistic-models/functions/ckpt_util.py community (archive-listed) unverified MIT (permissive) · c37fc656e8bb2a80 · report

Tasks

Image Generation

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Image Generation AFHQ Cat Diffusion InsGen FID 2.40 #5 of 8 Archive leaderboard report
Image Generation AFHQ Dog Diffusion InsGen FID 4.83 #3 of 6 Archive leaderboard report
Image Generation AFHQ Wild Diffusion InsGen FID 1.51 #3 of 5 Archive leaderboard report
Image Generation CelebA 64x64 Diffusion StyleGAN2 FID 1.69 #4 of 39 Archive leaderboard report
Image Generation FFHQ 1024 x 1024 Diffusion StyleGAN2 FID 2.83 #6 of 20 Archive leaderboard report
Image Generation LSUN Bedroom 256 x 256 Diffusion ProjectedGAN FID 1.43 #1 of 32 Archive leaderboard report
Image Generation LSUN Bedroom 256 x 256 Diffusion StyleGAN2 FID 3.65 #8 of 32 Archive leaderboard report
Image Generation LSUN Bedroom 256 x 256 Diffusion ProjectedGAN (DINOv2) FD 547.61 #26 of 32 Archive leaderboard report
Image Generation LSUN Bedroom 256 x 256 Diffusion ProjectedGAN (DINOv2) Precision 0.79 #26 of 32 Archive leaderboard report
Image Generation LSUN Bedroom 256 x 256 Diffusion ProjectedGAN (DINOv2) Recall 0.28 #26 of 32 Archive leaderboard report
Image Generation LSUN Churches 256 x 256 Diffusion ProjectedGAN FID 1.85 #3 of 27 Archive leaderboard report
Image Generation LSUN Churches 256 x 256 Diffusion StyleGAN2 FID 3.17 #7 of 27 Archive leaderboard report
Image Generation STL-10 Diffusion ProjectedGAN FID 6.91 #1 of 31 Archive leaderboard report
Image Generation STL-10 Diffusion StyleGAN2 FID 11.53 #4 of 31 Archive leaderboard report

Ranks are positions in the archive's leaderboards as they stood at the 2025-07-28 snapshot. Results published since then are not among these rows, so a rank here is not a current standing.

Methods

Diffusion

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